/ 软件 / 536浏览

How to Auto-mount NTFS and FAT File Systems in FC5

文章目录

1、Check the core type by using:

[root@localhost ~]# uname -a

2、Download the latest kernel-module-ntfs package from here. For me, it’s this.

3、Install this rpm package. Don’t worry about the warning prompt generated by FC5 installer. Better we input installation command instead of install directly:

[root@localhost ~]# rpm -ivh /downloaded/softs/ kernel-module-ntfs-2.6.17-1.2187_FC5smp-2.1.27-0.rr.10.5.i686.rpm

4、Check the file system:

[root@localhost ~]# /sbin/fdisk -l
Disk /dev/sda: 78.5 GB, 78518522880 bytes 255 heads, 63 sectors/track, 9546 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 5 40131 de Dell Utility /dev/sda2 * 6 1964 15735667+ 7 HPFS/NTFS /dev/sda3 9154 9545 3148740 db CP/M / CTOS / ... /dev/sda4 1965 9153 57745642+ f W95 Ext'd (LBA) /dev/sda5 1965 3750 14346013+ b W95 FAT32 /dev/sda6 3751 5024 10233373+ 7 HPFS/NTFS /dev/sda7 5882 7840 15735636 b W95 FAT32 /dev/sda8 7841 9153 10546641 b W95 FAT32 /dev/sda9 5025 5753 5855661 83 Linux /dev/sda10 5754 5881 1028128+ 82 Linux swap / Solaris Partition table entries are not in disk order

5、Make new mount points:

[root@localhost ~]# mkdir /mnt/c
[root@localhost ~]# mkdir /mnt/d
[root@localhost ~]# mkdir /mnt/e
[root@localhost ~]# mkdir /mnt/f
[root@localhost ~]# mkdir /mnt/z

6、If we want to mount manually, we can do like this:

[root@localhost ~]# mount -t ntfs -o nls=utf8,umask=000 /dev/sda2 /mnt/c
[root@localhost ~]# mount -t vfat -o iocharset=utf8,umask=000 /dev/sda5 /mnt/d
[root@localhost ~]# mount -t vfat -o iocharset=utf8,umask=000 /dev/sda7 /mnt/e
[root@localhost ~]# mount -t vfat -o iocharset=utf8,umask=000 /dev/sda8 /mnt/f
[root@localhost ~]# mount -t ntfs -o nls=utf8,umask=000 /dev/sda6 /mnt/z

Go to /etc and modify fstab:

[root@localhost ~]# vi /etc/fstab

In fstab:

/dev/sda2    /mnt/c    ntfs    umask=000,nls=utf8
/dev/sda5    /mnt/d    vfat    umask=000,iocharset=utf8
/dev/sda7    /mnt/e    vfat    umask=000,iocharset=utf8
/dev/sda8    /mnt/f    vfat    umask=000,iocharset=utf8
/dev/sda6    /mnt/g    vfat    umask=000,iocharset=utf8

Save and restart.

Go to /mnt. Done!

Reference

1. How to mount NTFS and FAT32 File System under Fedora Core 4 [EB/OL].

0

  1. This post has no comment yet

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注