mount a removable hard disk under Linux

Source: Internet
Author: User

First, FAT32

1. Use the FDISK command to check partition and USB device information

By executing the fdisk-l command, we know that the identity of the mobile hard disk is/DV/SDB1

2. first set up a USB directory under the MNT directory

[Email protected] ~]# MKDIR/MNT/USB

3. Mount USB Drive

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

4. Uninstalling the USB flash drive

Umount/mnt/usb

5. If busy is prompted when uninstalling, it is possible that the Mount command will be executed after exiting in the current path. You can also do this by executing

Fuser/mnt/usb

/mnt/usb:4561c 5382c (the letter after the process ID indicates how the resource is consumed, the letter C after the PID represents the front path of current directory.)

Ps-ef |egrep ' (4561|5382) ' |grep-v grep

Execute fuser-k/mnt/usb,kill all processes that are using the removable hard drive, and if prompted before kill, add the-i parameter.

Umount/mnt/usb

Second, NTFS

1.yum install GCC to ensure the operating environment.

2. Download ntfs-3g, official website http://www.tuxera.com/community/ntfs-3g-download/

3. Unzip and install TAR-ZXVF tfs-3g_ntfsprogs-2013.1.13.tgz,

CD ntfs-3g_ntfsprogs-2013.1.13

Source installation./configure

Make && make install

4. View information for NTFS partitions

Fdisk-l | GRP NTFS

5. Mounting

Mount-t Ntfs-3g/dev/sdd1/mnt/usb

mount a removable hard disk under Linux

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.