• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : 使用移动硬盘的问题 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
10楼  发表于: 2009-05-03 19:08
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 >

从这个来看,移动硬盘的第一个分区似乎是sda1, 你最好先把这个移动硬盘放到PC的Linux上试一下,确保每一个分区都能正确挂载,然后再用同样的mount参数在开发板上试
"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
11楼  发表于: 2009-05-05 19:27
今天在Ubuntu上面试了我的移动硬盘,4个盘都能挂上,然后又在mini2440上面执行:

[root@FriendlyARM /]# cd dev
[root@FriendlyARM /dev]# ls
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
shm                 tty47
[root@FriendlyARM /dev]# mount -t ntfs /dev/sda1 /udisk
mount: mounting /dev/sda1 on /udisk failed: No such file or directory
[root@FriendlyARM /dev]# mount -t ntfs /dev/sda /udisk
mount: mounting /dev/sda on /udisk failed: Invalid argument
[root@FriendlyARM /dev]# mount -t vfat /dev/sda /udisk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
mount: mounting /dev/sda on /udisk failed: Invalid argument
[root@FriendlyARM /dev]# mount /dev/sda /udisk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!
yaffs: dev is 8388608 name is "sda"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.0, "sda"
yaffs: dev is 8388608 name is "sda"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.0, "sda"
mount: mounting /dev/sda on /udisk failed: Invalid argument
[root@FriendlyARM /dev]# mount /dev/sda1 /udisk
mount: mounting /dev/sda1 on /udisk failed: No such file or directory

都不行
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
12楼  发表于: 2009-05-05 21:27
今天在Ubuntu上面试了我的移动硬盘,4个盘都能挂上,然后又在mini2440上面执行:

把你在Ubuntu上挂载四个分区的命令和参数贴出来;
另外,把Ubuntu上ls -l /dev/sda*的结果也贴出来
"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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
13楼  发表于: 2009-05-07 07:41
开发板上不会有/dev/sda1节点,它被改名为了/dev/udisk
"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
14楼  发表于: 2009-05-09 16:52
果然是/dev/udisk

谢谢kasim
级别: 骑士
UID: 4234
精华: 0
发帖: 152
金钱: 1420 两
威望: 1142 点
综合积分: 304 分
注册时间: 2009-03-05
最后登录: 2012-08-18
15楼  发表于: 2009-07-13 16:46
我最近也要搞移动硬盘这个东西,但还没有找到合适的方法,期待回复!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
16楼  发表于: 2009-07-13 17:06
引用第15楼feiyangczm于2009-07-13 16:46发表的  :
我最近也要搞移动硬盘这个东西,但还没有找到合适的方法,期待回复!

回复what?
"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."
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go