Get rid of windows

Source: Internet
Author: User
Get rid of windows-general Linux technology-Linux technology and application information. The following is a detailed description. Today, I decided not to use windows anymore on my computer! Actually, I already wanted to format it!

[Root @ localhost disk-1] # umount/dev/sda
Sda sda1 sda2 sda5 sda6 sda7 sda8 sda9
[Root @ localhost disk-1] # umount/dev/sda1
Umount:/media/disk-1: device is busy
Umount:/media/disk-1: device is busy
[Root @ localhost disk-1] # cd
[Root @ localhost ~] # Umount/dev/sda1
[Root @ localhost ~] # Mkfs. ext3/dev/sda1
Mke2fs 1.40.2 (12-Jul-2007)
Filesystem label =
OS type: Linux
Block size = 4096 (log = 2)
Fragment size = 4096 (log = 2)
1921984 inodes, 3840472 blocks
192023 blocks (5.00%) reserved for the super user
First data block = 0
Maximum filesystem blocks = 3934257152
118 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
32768,983 04, 163840,229 376, 294912,819 200, 884736,160 5632, 2654208

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs-c or-I to override.
[Root @ localhost ~] #

Tune2fs is an important file system adjustment tool in linux. Several options are described as follows:

-C: Run fsck to check the file system after the number of mount times reaches the specified value.
-I: Check Interval of the file system. When the time interval is reached, the system automatically checks the file system.
-L: displays many parameters of the file system.
-J: Convert to ext3 file system.

Normally, if you use the ext3 file system, use-c 0 to disable the file system check after the number of mounts reaches. However, it is best to use the-I Startup Check Interval at this time, otherwise it is difficult to remedy problems in the file system. My settings are-c 1 w, which is automatically checked once a week.

[Root @ localhost ~] # Tune2fs-I
Tune2fs 1.40.2 (12-Jul-2007)
Tune2fs: The option requires a parameter -- I
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
[-I interval [d | m | w] [-j] [-J journal_options]
[-L] [-s sparse_flag] [-m reserved_blocks_percent]
[-O [^] mount_options [,...] [-r reserved_blocks_count]
[-U user] [-C mount_count] [-L volume_label] [-M last_mounted_dir]
[-O [^] feature [,...] [-T last_check_time] [-u uuid] device
Why?
[Root @ localhost disk-1] # du
16./lost + found
20.
[Root @ localhost disk-1] # df
File System 1 K-block used available % mount point
/Dev/sda7 18922876 16358416 1587712 92%/
Tmpfs 252944 200 252744 1%/dev/shm
/Dev/sda6 19517424 18092112 1425312 93%/media/disk
/Dev/sda5 20480008 15975840 4504168 79%/media/software
/Dev/sda9 40678556 13226784 25385416 35%/media/disk-2
/Dev/sda1 15120616 168712 14183812 2%/media/disk-1
[Root @ localhost disk-1] #
Lost + found is keeping the dump files

When linux not safe reboot the ram information will keep in it

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.