Linux Mounts
[Email protected] ~]# mount/dev/sdb5/mnt/[[email protected] ~]# df-hfilesystem Size used Avail use% mounted ON/DEV/SDA 3 16G 2.1G 13G 14%/tmpfs 931M 0 931M 0%/dev/shm/dev/sda1 194M 28M 157M 16%/boot/dev/sdb5 2.0G 68M 1.9G 4%/mnt[[email p Rotected] ~]# df-tfilesystem Type 1k-blocks used Available use% mounted On/dev/sda3 ext4 16311208 2134352 13348288 14%/t Mpfs tmpfs 953276 0 953276 0%/dev/shm/dev/sda1 ext4 198337 28320 159777 16%/boot/dev/sdb5 ext4 2071384 68632 1897528 4% /mnt[[email protected] ~]#
Note: If you mount the file in a directory that will obscure the original file (the original file becomes the Lost+found folder) you must unmount the mounted hard drive to display
# ls/home/1.txt 2 wanghaipeng whp# mount/dev/sdb1/home/ # ls/home then look at the original file. lost+found# u Mount/home# ls/home1.txt 2 wanghaipeng whp#
Linux Umount Uninstall
[email protected]/]# mount label=wanghaipeng/home/whp/[[email protected]/]# DF-hfilesystem Size used Avail Us e% mounted On/dev/sda3 16G 2.1G 13G 14%/tmpfs 931M 0 931M 0%/dev/shm/dev/sda1 194M 28M 157M 16%/boot/de V/SDB5 2.0G 68M 1.9G 4%/mnt/dev/sdb1 2.0G 74M 1.9G 4%/home/whp[[email protected]/]# umount-l/home/whp/[[E Mail protected]/]# DF-hfilesystem Size used Avail use% mounted on/dev/sda3 16G 2.1G 13G 14%/tmpfs 931M 0 931M 0%/dev/shm/dev/sda1 194M 28M 157M 16%/boot/dev/sdb5 2.0G 68M 1.9G 4%/mnt[[email protected]/]#
Linux Mount Mount and unmount HDD script sharing