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.