How to mount disk partitions and mobile disks in Linux

Source: Internet
Author: User
Article Title: how to mount disk partitions and mobile hard disks in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

My computer's 80 GB hard drive windows pulls a primary partition and two extended partitions, all of which are nt format partitions. The rest is distributed to linux. I have a mobile hard drive of 80 GB and I made two separate zones, one FAT32 and the other NTFS (60 GB is mainly used for movie watching) and a 2g usb flash drive and several small USB flash drives are basically FAT32.

First I enter the yum install ntfs-3g3 on the linux terminal

Then modify/etc/fstab and add

LABEL = // ext3 defaults 1 1

Devpts/dev/pts devpts gid = 5, mode = 620 0 0

Tmpfs/dev/shm tmpfs defaults 0 0

Proc/proc defaults 0 0

Sysfs/sys sysfs defaults 0 0

LABEL = SWAP-hda4 swap defaults 0 0

/Dev/hda1/mnt/hda1 ntfs umask = 000, nls = utf8

/Dev/hda5/mnt/hda5 ntfs umask = 000, nls = utf8

/Dev/hda6/mnt/hda6 ntfs umask = 000, nls = utf8

/Dev/sda2/mnt/Y ntfs umask = 000, nls = utf8

You may see that the first three behind me are the first three NTFS partitions of the system hard disk, and the last is the second NTFS partition on my mobile hard disk.

In this way, when the system is started, the NTFS partition of the local hard disk and mobile hard disk can be correctly mounted and the Chinese characters are displayed normally.

But I didn't do it in the beginning.

LABEL = // ext3 defaults 1 1

Devpts/dev/pts devpts gid = 5, mode = 620 0 0

Tmpfs/dev/shm tmpfs defaults 0 0

Proc/proc defaults 0 0

Sysfs/sys sysfs defaults 0 0

LABEL = SWAP-hda4 swap defaults 0 0

/Dev/hda1/mnt/hda1 ntfs umask = 000, nls = utf8

/Dev/hda5/mnt/hda5 ntfs umask = 000, nls = utf8

/Dev/hda6/mnt/hda6 ntfs umask = 000, nls = utf8

In this case, the first FAT32 partition on the hard disk can be mounted to read and write normally, while the second NTFS partition can only be manually mounted. After mounting, the Chinese name directory cannot be displayed, however, the Chinese name directories of hda1, hda2, and hda3 are displayed normally. Think twice about it.

Then I

LABEL = // ext3 defaults 1 1

Devpts/dev/pts devpts gid = 5, mode = 620 0 0

Tmpfs/dev/shm tmpfs defaults 0 0

Proc/proc defaults 0 0

Sysfs/sys sysfs defaults 0 0

LABEL = SWAP-hda4 swap defaults 0 0

/Dev/hda1/mnt/hda1 ntfs umask = 000, nls = utf8

/Dev/hda5/mnt/hda5 ntfs umask = 000, nls = utf8

/Dev/hda6/mnt/hda6 ntfs umask = 000, nls = utf8

/Dev/sda1/mnt/x vfat umask = 000, nls = utf8

/Dev/sda2/mnt/Y ntfs umask = 000, nls = utf8

Now, the NTFS partition is normally pulled from the FAT32 partition, but an error is prompted. You can't just pull it using the method you started.

Related Article

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.