Linux command-mount Mount Umount Uninstall

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.