How to uninstall USB device under Linux system

Source: Internet
Author: User

Linux system is usually automatically mounted USB devices, if not automatically mounted on the need to manually mount the USB device, then the Linux how to mount the USB device? How do you uninstall it when you don't need it?

The following three types of information need to be identified before mounting

1, the file system type to mount the object

2, to mount the object of the device name

3, to determine the point of Mount

Use Mount command when mounting:

Format: Mount [-parameters] [device name] [Mount Point]

Our common USB device format is: FAT32 format, nfts format and so on.

Ext2 Linux currently used in the file system

Msdos MS-DOS FAT is the FAT16

The common FAT32 of VFAT Windows98

NFS Network File System

ISO9660 CD-ROM standard file system

File systems for NTFS Windows NT 2000

HPFS OS/2 File System

Before hanging the U disk, run the command cat/proc/partitions to see which partitions are present in the system.

After inserting the U disk, run the above command again to see what partitions are coming out.

1) Insert U disk

2 input fdisk-l/DEV/SDA view output, such as mine is this:

The code is as follows:

# fdisk-l/DEV/SDA "/P" disk/dev/sda:131 MB, 131104768 bytes

3 heads, Sectors/track, 2667 cylinders

Units = Cylinders of * 49152 bytes

Device Boot Start End Blocks Id System

/DEV/SDB1 * 1 2668 128016 6 FAT16

3 See the above output to know the device is the U disk, such as mine is/DEV/SDB1, and then is mounted

Suppose I mount the USB drive to the/MNT/USB directory (if not, the new one) is the mount-t Msdos/dev/sdb1/mnt/usb

If it's FAT32,

The code is as follows:

Mount-t Vfat/dev/sdb1/mnt/usb

If the format is ext2, use the command:

The code is as follows:

Mount-t Ext2/dev/sda1/mnt/usb

4 Open/mnt/usb can see the things on your u disk!

The code is as follows:

Cd/mnt/usb

5) The uninstall command is:

The code is as follows:

Umount/mnt/usb.

Above is the Linux mount and uninstall USB device method introduced, Mount USB interface Device can view the contents of the mobile disk, and do not need to use when it can unload, you have learned?

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.