Vernacular understand Linux disk mount (mount)

First, the issue of introducing mount

Most of us are used to windos system, the management of linux system disk on preconceptions, I do not really understand mount this action. After adding a new disk in linux system, to partition, format (file allocation system), mount. When performing ll / dev / sd *, you can see information related to the disk. Most people will find hard to add and partition, format, and can be used. In actual fact, there is no good mount the hard drive is like a newly built house with no doors, as is to mount a file folder and disk bundled together to make the door a disk.

Second, create a partition (the MBR)
1. Create Partition
[the root @ localhost ~] # the fdisk / dev / SDB
n-// create a new partition
P primary partition //
1 // partition 1
Enter start sector @
+ 100M // end size

extended partition e //
w // save the partition is provided.
2. Delete Partition

[root@localhost ~]# fdisk      /dev/sdb

d // delete, there will be the appropriate option

Third, the format

mkfs.ext4  /dev/sdb

Fourth, the mount

1, manually mount restart failure

# Mount -t ext4 / dev / sdb1 / mnt / disk1 (to know) // manual is not recommended

2, automatic

vim /etc/fstab

/dev/sdb1     /mnt/disk1     ext4               defaults           0       0

Disk file system mount point type default priority of

3, df -hT to see mount case

Guess you like

Origin www.cnblogs.com/zjz20/p/11237346.html