Mount and Umount usage under Linux

Source: Internet
Author: User

Common partitioning loading methods in Linux systems:

Mount Mount ISO file:
#mkdir/MNT/ISO1
#mount –o Loop Linuxsetup.iso/mnt/iso1

Linux does not require a virtual optical drive, you can directly read the ISO file.

Mount Mount Optical Drive system
Generally speaking, the CDROM device file is/DEV/HDC, using the method:
If the file contains the Chinese file name or the folder name is all displayed as, and the English display is normal, we can add some parameters to let it display in Chinese. At this point, enter the following command:
#mkdir/mnt/cdrom
#mount/dev/hdc/mnt/cdrom–o iocharset=cp936

By default, the optical drive system is not specified, it can be automatically searched, and the encoding is specified in Chinese.

In the use of Linux mount command mount, we have introduced, you can refer to the following.

Mount Mount Floppy Drive
# Mkdir/mnt/floppy
# Mount/dev/fd0/mnt/floppy

Default file system is not specified, can be automatically searched for

Mount mount Windows shared file (Samba)

#mkdir/mnt/winshare
#mount-T Smbfs-o username=w,password=w,codepage=936,iocharset=gb2312//192.168.0.101/share/mnt/winshare

Specifies the user name, password, and codepage specified to access the share to the same meaning as Iocharset. The Windows system here is Simplified Chinese.

CODEPAGE specifies the code page for the file system, the Chinese code is 936;iocharset specified character set, Simplified Chinese is generally used cp936 or gb2312

Mount Mount U-disk (www.jbxue.com script Academy)
If the computer does not have other SCSI devices and USB peripherals, the device path of the inserted USB drive is/dev/sda1, using the command:
#mkdir/mnt/upan
#mount/dev/sda1/mnt/upan

Mount it.

Mount Mount NFS System
Similar to Windows shared connections. The server-side NFS service needs to be configured correctly. The connection can then be viewed through the client's: Showmount-e 192.168.0.30.
Mount-t NFS 192.168.0.30:/tmp/mnt/nfs

Umount Uninstalling the file system
Umount dir

As above:
Umout/mnt/upan
Or
Umount/dev/sda1

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.