LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 695|回复: 4

fedora core 5 下挂载NTFS的问题

[复制链接]
发表于 2006-4-26 21:48:01 | 显示全部楼层 |阅读模式
依照北南南北大哥的指示。我一步步进行,在进行到 8。时就无法进行了。具体操作如下:
1。uname -p -r
得到2.6.15-1.2054_FC5 i686
2。下载了kernel-module-ntfs-2.6.15-1.2054_FC5-2.1.26-0.rr.10.4.i686.rpm
3。点鼠标安装。其中提示无法检查kernel-module-ntfs-2.6.15-1.2054_FC5-2.1.26-0.rr.10.4.i686.rpm,我选择了install anyway
4。 yum search ntfs
5。 yum install kmod-ntfs.i686
6。/sbin/fdisk -l
得到Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2550    20482843+   7  HPFS/NTFS
/dev/hda2            2551        2563      104422+  83  Linux
/dev/hda3            2564        4864    18482782+  8e  Linux LVM
7。mkdir /mnt/winc
8。mount -t ntfs -o nls=utf8,umask=000 /dev/hda1 /mnt/winc
mount: unknown filesystem type 'ntfs'无法继续进行。
注:我是以root身份登录的。
我的QQ号为617953500
发表于 2006-4-26 22:00:01 | 显示全部楼层
Next install the rpm:

    rpm -ihv kernel-ntfs-2.4.18-14.i686.rpm

    Preparing...      ############################### [100%]
       1:kernel-ntfs  ############################### [100%]


There should be no errors, just some '#'-charakters.

Note: newer NTFS RPMs will also print a message telling you if install succeeded.

If something goes wrong see the Help Section.

This is the only command we actually needed, but we'll go on and test what we have done.

Next load the kernel module

    /sbin/modprobe ntfs


There should be no output. If there are a lot of error messages see the Help Section.

The next command, dmesg prints the kernel logs. We search them for NTFS using grep.

    dmesg | grep NTFS

    NTFS driver v1.1.22 [Flags: R/O MODULE]


We can now check that the kernel really understands NTFS. The output may vary slightly, but you are looking for the entry ntfs.

    cat /proc/filesystems

    nodev   rootfs
    nodev   bdev
    nodev   proc
    nodev   sockfs
    nodev   tmpfs
    nodev   shm
    nodev   pipefs
            ext3
            ext2
    nodev   ramfs
    nodev   devpts
            ntfs


Mount
Mounting an NTFS Volume is covered in more detail in Section 4 of the Linux-NTFS FAQ (in the Wiki).

First you need to know which device your NTFS Volume is on and you need to create a directory as a mount point.

    /sbin/fdisk -l


The output might look like:

    Disk /dev/hda: 64 heads, 63 sectors, 4465 cylinders
    Units = cylinders of 4032 * 512 bytes

       Device Boot    Start       End    Blocks   Id  System
       /dev/hda1             1      2125   4283968+  07  NTFS/HPFS
       /dev/hda2          2126     19851  35735616   0f  Win95 Ext'd (LBA)
       /dev/hda5   *      2126      4209   4201312+  83  Linux
       /dev/hda6          4210      4465    516064+  82  Linux swap
         

    mkdir /mnt/windows
    mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222
    ls -l /mnt/windows

    ...
    -r-xr--r-- 1 root root  9719 Aug 24 1996 ansi.sys
    -r-xr--r-- 1 root root 15252 Aug 24 1996 attrib.exe
    -r-xr--r-- 1 root root 28096 Aug 24 1996 chkdsk.exe
    -r-xr--r-- 1 root root  5175 Aug 24 1996 choice.com
    ...


Hopefully everything is working for you now.

Note: Now, please read the NTFS FAQ (Frequently Asked Questions, in the Wiki), especially if you want to know:
        * How to change the owner or permissions of the mounted partition (Section 4.9) * How to have Linux mount the partition automatically at boot time (Section 4.10)
Uninstall
If you wish to remove the NTFS RPM, first list all the RPMs with ntfs in their name. You output might look something like this:

    rpm -qa | grep -i ntfs

    kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2


Then, cut and paste the name into the rpm erase command:

    rpm -e kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2
回复 支持 反对

使用道具 举报

发表于 2006-4-26 22:05:16 | 显示全部楼层
#cd ?????  dir

if needed:
#chmod 700  kernel-module-ntfs-2.6.15-1.2054_FC5-2.1.26-0.rr.10.4.i686.rpm

#rpm -ihv kernel-module-ntfs-2.6.15-1.2054_FC5-2.1.26-0.rr.10.4.i686.rpm
#/sbin/modprobe ntfs
#dmesg | grep NTFS
#cat /proc/filesystems
#/sbin/fdisk -l
#mkdir /mnt/windows
#mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222
#ls -l /mnt/windows


in /etc/fstab,add a line:
/dev/hda1 /mnt/windows  ntfs   ro,umask=0222  0 0
回复 支持 反对

使用道具 举报

发表于 2006-4-27 08:31:54 | 显示全部楼层
那里这么麻烦,我是这样做的
yum instal l kmod-ntfs  (用的http://rpm.livna.org/fedora)
mount /dev/sda8 /mnt/winf

什么都没加~还支持中文!
回复 支持 反对

使用道具 举报

发表于 2006-4-27 09:52:36 | 显示全部楼层
你执行了1、2、3就不用进行4、5了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表