Linux partitions, formatted, mounted commands
Although Linux has been playing, but the hard drive is not very familiar with the operation, today is free, on the collation of the next.
1, zoning
Fdisk-l
You can see the hard drive information, like/dev/sda,/dev/vda,/dev/hda. SD is the SCSI port hard drive, SDA is the first block, SDB is the second block. HD is IDE port hard disk, VD is virtual hard disk
Fdisk/dev/vda
Use this command to partition, after dividing the area,/dev/vda will become/dev/vda1,/dev/vdb2 and so on, many numbers, representing the nth partition
Root#partprobe
This command causes the partition to take effect
2. Format
Mkfs.ext3/dev/vda1
This command formats the partition you just made into EXT3 format
3. Mount
Mount/dev/vda1/opt
This command mounts the/DEV/VDA1 to the/OPT directory
Df-h
View Mount Status
4, automatically mount the boot
Edit the/etc/fstab file to append the 3rd step to the end of the file
Thank you for reading, I hope to help you, thank you for your support for this site!