When formatting is complete, you want to write the data before you mount it.
////////////////////////////////////////////////////////////////////
[[email protected] ~]# fdisk-l/dev/sdb//////View partition status
[[email protected] ~]# mount/dev/sdb1/mnt/////mount to/mnt
[[email protected] ~]# df-h//View mount status
[[email protected] ~]# df-t////file system type
//////////////////////////////////////////////////////////////////////////////////
A directory can only mount one partition
[Email protected] ~]# ls/home/
aming Shaojun User7 Wangshaojun
[Email protected] ~]# mount/dev/sdb1/home/
[Email protected] ~]# ls/home/
Lost+found///////////////other directories are overwritten
The directory that uninstalls the/home partition is out again.
[Email protected] ~]# umount/home/
[Email protected] ~]# ls/home/
aming Shaojun User7 Wangshaojun
////////////////////////////////////////////////////////////////////////////////
Another form of Mount
[[email protected] ~]# Mount Label=dennywang/home/wangshaojun/123//////label is the label specified in the previous format
[Email protected] ~]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 18G 1.9G 15G 12%/
Tmpfs 931M 0 931M 0%/dev/shm
/DEV/SDA1 97M 27M 66M 29%/boot
//////////////////////////////////////////////////////////////////////////////
Uninstall failed
[Email protected] wangshaojun]# cd/home/wangshaojun/123/
[[email protected] 123]# UMOUNT/DEV/SDB1/////can also be umount-l can be uninstalled directly
Umount:/home/wangshaojun/123:device is busy.
(In some cases useful info about processes
The device is found by lsof (8) or fuser (1))
[Email protected] 123]# CD.
[Email protected] wangshaojun]# UMOUNT/DEV/SDB1
Linux command-mount Mount Umount Uninstall