主题 : mini2440挂在NTFS格式移动硬盘问题 复制链接 | 浏览器收藏 | 打印
级别: 骑士
UID: 4234
精华: 0
发帖: 152
金钱: 1420 两
威望: 1142 点
综合积分: 304 分
注册时间: 2009-03-05
最后登录: 2012-08-18
楼主  发表于: 2009-07-25 14:46

 mini2440挂在NTFS格式移动硬盘问题

我的内核为linux2.6.22.6,先将移动硬盘和开发板连接好后上电,显示的状态如下:
usb 1-1: reset full speed USB devic
e using s3c2410-ohci and address 2
scsi 0:0:0:0: Direct-Access     Maxtor 6 B160P0                PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 320173056 512-byte hardware sectors (163929 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 320173056 512-byte hardware sectors (163929 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
用# cat /proc/partitions命令出现的信息为:
major minor  #blocks  name

  31     0        192 mtdblock0
  31     1       2048 mtdblock1
  31     2      63152 mtdblock2
   8     0  160086528 sda
   8     1  160079661 sda1
挂载命令下:
# mount -t ntfs /dev/sda1 /mnt
提示信息为:
NTFS volume version 3.1.
这样就不动了,移动硬盘应该时没有挂载上
如果用
# mount -t ntfs /dev/sda /mnt
提示信息为:
mount: mounting /dev/sda on /mnt failed: Invalid argument
以上的信息说明硬盘驱动时没有问题的,

cat /proc/filesystems命令内容如下:
nodev   proc
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   futexfs
nodev   tmpfs
nodev   inotifyfs
nodev   devpts
        ext3
        ext2
        cramfs
nodev   ramfs
        msdos
        vfat
nodev   nfs
nodev   nfsd
        ntfs
nodev   jffs2
        romfs
        yaffs
        yaffs2
nodev   rpc_pipefs
这说明ntfs格式可以识别,这样驱动和文件系统都是对的,还有哪里有问题?
疑问请高手指点下,如果需要别的信息请回复,谢谢
最后说明下,FAT32格式下的U盘和硬盘都是实现挂载了的
[ 此帖被feiyangczm在2009-07-25 15:12重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-07-26 08:13
所有成功的mount都会记录在/proc/mounts里面
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 骑士
UID: 4234
精华: 0
发帖: 152
金钱: 1420 两
威望: 1142 点
综合积分: 304 分
注册时间: 2009-03-05
最后登录: 2012-08-18
2楼  发表于: 2009-07-27 09:48
老大,我做到这一步就死那不动了,还怎么看挂载的情况啊
mount -t ntfs /dev/sda1 /mnt
下面就是一个NTFS volume version 3.1.
就不会动了,只能关掉开发板才能继续,郁闷中啊。。。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-07-27 10:13
引用第2楼feiyangczm于2009-07-27 09:48发表的  :
老大,我做到这一步就死那不动了,还怎么看挂载的情况啊
mount -t ntfs /dev/sda1 /mnt
下面就是一个NTFS volume version 3.1.
就不会动了,只能关掉开发板才能继续,郁闷中啊。。。

你可以
1. 对着你的开发板看,等它告诉你内核挂在什么地方了;
2. 在你用的内核源代码里搜索"NTFS volume version 3.1", 找出NTFS文件系统模块,enable必要的debug信息,找出程序挂住的地方
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 骑士
UID: 4234
精华: 0
发帖: 152
金钱: 1420 两
威望: 1142 点
综合积分: 304 分
注册时间: 2009-03-05
最后登录: 2012-08-18
4楼  发表于: 2009-07-27 11:04
谢谢斑竹我去看看,我昨天发现我的虚拟机也是不能挂载ntfs格式的硬盘,今天我下载了个ntfs-3g装上可以了,我还想请问下ntfs-3g这个补丁包在开发板上是否可以用
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-07-27 11:34
引用第4楼feiyangczm于2009-07-27 11:04发表的  :
谢谢斑竹我去看看,我昨天发现我的虚拟机也是不能挂载ntfs格式的硬盘,今天我下载了个ntfs-3g装上可以了,我还想请问下ntfs-3g这个补丁包在开发板上是否可以用

只要它不是用X86的汇编写的就可以:)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."