Linux common commands (21)

Mount Linux partition

 

In the front we have to partition and format the disk, but if not mounted disk, you can not store the data entered, the following is said on the mount

 

mkdir -p / mnt / imooc: default mount directory is / mnt directory, if we want to mount the corresponding disk, you can create a mount point folder in the directory

mount  / dev / sda1 / mnt / imooc: After mounting the rear mount with the device name and mount points, mount the mount point we can store data to disk sda1 inside by imooc

umount / mnt / imooc: umount later canceled with the need to mount a mount named

vim + / etc / fstab: edit the configuration file

 

hint:

1, the direct use mount command to mount the file system after the restart would disappear, this time if we want to mount the device permanent, it is necessary in the configuration file / etc / fstab file inside with a "Device Name file system type mount point defaults 0 0 ", for example, / dev / sdb1 / mnt / imooc ext3 defaults 0 0

Guess you like

Origin www.cnblogs.com/BASE64/p/11512368.html