• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 使用移动硬盘的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 5603
精华: 0
发帖: 15
金钱: 150 两
威望: 150 点
综合积分: 30 分
注册时间: 2009-04-30
最后登录: 2011-05-01
楼主  发表于: 2009-05-02 00:05

 使用移动硬盘的问题

我照着文档“2.5.3 使用优盘/移动硬盘”试验,连接了一个移动硬盘到板子上面,udisk文件夹下面是空的,超级终端显示如下信息:
[root@FriendlyARM /]# usb 1-1: new full speed USB device using s3c2410-ohci and
address 2
usb 1-1: New USB device found, idVendor=058f, idProduct=6390
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB TO IDE Bridge
usb 1-1: Manufacturer: Generic
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access     Generic  USB Disk         9.02 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
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] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda1.

U盘是可以的,为什么移动硬盘不行?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-05-02 01:56
系统只会尝试自动挂载移动硬盘的第一个分区(sda1), 而很不幸的是,你的移动硬盘的第一个分区不是一个合法的FAT32格式的。
"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: 5603
精华: 0
发帖: 15
金钱: 150 两
威望: 150 点
综合积分: 30 分
注册时间: 2009-04-30
最后登录: 2011-05-01
2楼  发表于: 2009-05-02 09:46
谢谢 kasim,我回头把盘格式化了再试,出于好奇,我想问一下,如果把第一个分区格式化成ext3能不能识别?
级别: 新手上路
UID: 5603
精华: 0
发帖: 15
金钱: 150 两
威望: 150 点
综合积分: 30 分
注册时间: 2009-04-30
最后登录: 2011-05-01
3楼  发表于: 2009-05-02 09:53
还有mini2440为什么不能识别NTFS呢?毕竟大于4G的文件还是要用NTFS格式的。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-05-02 09:57
其实只要是Linux 内核支持的文件系统格式都是可以挂载的,只是自动挂载的脚本可能不行。你可以自己手动挂载,比如
$mount -t ext3 /dev/sda1 /mnt/disk

内核目前支持的文件系统类型可以通过命令
$cat /proc/filesystems
来查看
"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: 5603
精华: 0
发帖: 15
金钱: 150 两
威望: 150 点
综合积分: 30 分
注册时间: 2009-04-30
最后登录: 2011-05-01
5楼  发表于: 2009-05-02 10:15
非常感谢kasim,我看到内核定制一章在“DOS/FAT/NT FileSystem”里面有关于"NTFS file system support",是否表示钩上这个选项就可以支持NTFS了?
级别: 新手上路
UID: 5603
精华: 0
发帖: 15
金钱: 150 两
威望: 150 点
综合积分: 30 分
注册时间: 2009-04-30
最后登录: 2011-05-01
6楼  发表于: 2009-05-02 10:31
mount fat32的分区成功:

[root@FriendlyARM /dev]# mount -t vfat /dev/sda2 /udisk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
[root@FriendlyARM /dev]# cd ..
[root@FriendlyARM /]# cd udisl
-/bin/sh: cd: can't cd to udisl
[root@FriendlyARM /]# cd udisk
[root@FriendlyARM /udisk]# ls
ls: ./runauto..: No such file or directory
08.11.12.WALL-E.2008.Blu-ray.REMUX.H264.1080P.DTS-HDMA5.1.SILUHD.chs.zip
97.mp3
Aptana Studio
Flash
...
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2009-05-02 10:46
引用第5楼cai555于2009-05-02 10:15发表的  :
非常感谢kasim,我看到内核定制一章在“DOS/FAT/NT FileSystem”里面有关于"NTFS file system support",是否表示钩上这个选项就可以支持NTFS了?

看起来应该是的
"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: 3522
精华: 0
发帖: 47
金钱: 470 两
威望: 405 点
综合积分: 94 分
注册时间: 2009-01-15
最后登录: 2011-06-30
8楼  发表于: 2009-05-02 14:46

学习
级别: 新手上路
UID: 5603
精华: 0
发帖: 15
金钱: 150 两
威望: 150 点
综合积分: 30 分
注册时间: 2009-04-30
最后登录: 2011-05-01
9楼  发表于: 2009-05-03 18:33
今天重新编译了内核,增加了对ntfs的支持,的确可以mount上ntfs的分卷了。但是,还是有问题,就是第一个分卷无法加载,比如,我的移动硬盘有四个分卷:
F: G: H: I: 前面三个都是ntfs格式的,I:盘是fat32格式的。我在每个分区里面分别新建了一个txt文件,文件名就是"盘符.txt“。我发现,后面三个盘都可以mount,就是F:盘不认,以下是超级终端上拷下来的:

[root@FriendlyARM /]# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   tmpfs
nodev   configfs
nodev   devpts
        ext3
nodev   ramfs
        vfat
        msdos
nodev   nfs
        ntfs
        yaffs
        yaffs2
nodev   rpc_pipefs
-----------------------------------------------------------------------------------
[root@FriendlyARM /]# usb 1-1: USB disconnect, address 2
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=152d, idProduct=2329
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
usb 1-1: Product: USB to ATA/ATAPI Bridge
usb 1-1: Manufacturer: JMicron
usb 1-1: SerialNumber: 090306B0C003
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access     Hitachi  HTS545032B9A300       PQ: 0 ANSI: 2 CCS

sd 1:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2 < sda5 sda6 sda7 >
sd 1:0:0:0: [sda] Attached SCSI disk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda1.
-----------------------------------------------------------------------------------------------------------------
[root@FriendlyARM /udisk]# ls /dev
1-1                 shm                 tty47
adc                 timer               tty48
audio               tty                 tty49
backlight           tty0                tty5
buttons             tty1                tty50
console             tty10               tty51
controlC0           tty11               tty52
cpu_dma_latency     tty12               tty53
dsp                 tty13               tty54
fb0                 tty14               tty55
full                tty15               tty56
i2c                 tty16               tty57
input               tty17               tty58
kmsg                tty18               tty59
leds                tty19               tty6
log                 tty2                tty60
loop                tty20               tty61
mem                 tty21               tty62
mixer               tty22               tty63
mtd0                tty23               tty7
mtd0ro              tty24               tty8
mtd1                tty25               tty9
mtd1ro              tty26               ttySAC0
mtd2                tty27               ttySAC1
mtd2ro              tty28               ttySAC2
mtdblock0           tty29               udisk
mtdblock1           tty3                urandom
mtdblock2           tty30               usbdev1.1_ep00
network_latency     tty31               usbdev1.1_ep81
network_throughput  tty32               usbdev1.2_ep00
null                tty33               usbdev1.2_ep02
pcmC0D0c            tty34               usbdev1.2_ep81
pcmC0D0p            tty35               vcs
ptmx                tty36               vcs1
pts                 tty37               vcs2
pwm                 tty38               vcs3
random              tty39               vcs4
root                tty4                vcsa
rtc                 tty40               vcsa1
rtc0                tty41               vcsa2
sda                 tty42               vcsa3
sda2                tty43               vcsa4
sda5                tty44               watchdog
sda6                tty45               zero
sda7                tty46
-----------------------------------------------------------------------------------------------------------------
[root@FriendlyARM /]# mount -t vfat /dev/sda7 /udisk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
[root@FriendlyARM /]# ls /udisk
i.txt
[root@FriendlyARM /]# umount /udisk
[root@FriendlyARM /]# mount -t ntfs /dev/sda6 /udisk
NTFS volume version 3.1.
[root@FriendlyARM /]# ls /udisk
H.txt                      System Volume Information
[root@FriendlyARM /]# umount /udisk
[root@FriendlyARM /]# mount -t ntfs /dev/sda5 /udisk
NTFS volume version 3.1.
[root@FriendlyARM /]# ls /udisk
G.txt                      System Volume Information
[root@FriendlyARM /]# umount /udisk

[root@FriendlyARM /]# mount -t ntfs /dev/sda2 /udisk
mount: mounting /dev/sda2 on /udisk failed: Invalid argument
[root@FriendlyARM /]# mount -t vfat /dev/sda2 /udisk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
mount: mounting /dev/sda2 on /udisk failed: Invalid argument

我换了其他的移动硬盘也有同样的问题,无法加载第一个分区。
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go