主题 : tiny6410 挂载usb光驱 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 5156
精华: 0
发帖: 73
金钱: 415 两
威望: 163 点
综合积分: 146 分
注册时间: 2009-04-12
最后登录: 2018-02-08
楼主  发表于: 2014-02-15 17:15

 tiny6410 挂载usb光驱

我用6410挂载USB光驱,插入时,
scsi 2:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-4084N KQ09 PQ: 0 ANSI: 0
s3c2410-ohci s3c2410-ohci: urb ccd1f880 path 1.3 ep1in 93120000 cc 9 --> status -121
sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
sr 2:0:0:0: Attached scsi CD-ROM sr0
sr 2:0:0:0: Attached scsi generic sg0 type 5

中表明已连接到/dev/sr0下,但怎么都挂载不上,求各位帮忙。我使用mount -t iso9660 /dev/sr0 /mnt/cdrom 出现
mount: mounting /dev/sr0 on /mnt/cdrom/ failed: No such device
应该输入哪个参数啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2014-02-16 16:50
我想你可以用cat /proc/partitions看看输出里面是否包括sr0, 另外,你能贴出mount失败之后dmesg命令的输出吗?
"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: 5156
精华: 0
发帖: 73
金钱: 415 两
威望: 163 点
综合积分: 146 分
注册时间: 2009-04-12
最后登录: 2018-02-08
2楼  发表于: 2014-02-17 08:24
[root@FriendlyARM ~]# cat /proc/partitions
major minor  #blocks  name

  31        0        512 mtdblock0
  31        1       5120 mtdblock1
  31        2     256512 mtdblock2

使用直接mount 后出现的
[root@FriendlyARM /dev]# mount /dev/sr0 /mnt/cdrom/
sr 0:0:0:0: [sr0] Unhandled error code
sr 0:0:0:0: [sr0]  Result: hostbyte=0x07 driverbyte=0x00
sr 0:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00 00 00
end_request: I/O error, dev sr0, sector 0
EXT3-fs (sr0): error: unable to read superblock
sr 0:0:0:0: [sr0] Unhandled error code
sr 0:0:0:0: [sr0]  Result: hostbyte=0x07 driverbyte=0x00
sr 0:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00 00 00
end_request: I/O error, dev sr0, sector 0
EXT2-fs (sr0): error: unable to read superblock
one_wire_status: 4
sr 0:0:0:0: [sr0] Unhandled error code
sr 0:0:0:0: [sr0]  Result: hostbyte=0x07 driverbyte=0x00
sr 0:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00 00 00
end_request: I/O error, dev sr0, sector 0
SQUASHFS error: squashfs_read_data failed to read block 0x0
SQUASHFS error: unable to read squashfs_super_block
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
sr 0:0:0:0: [sr0] Unhandled error code
sr 0:0:0:0: [sr0]  Result: hostbyte=0x07 driverbyte=0x00
sr 0:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00 00 00
end_request: I/O error, dev sr0, sector 0
FAT: unable to read boot sector
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
sr 0:0:0:0: [sr0] Unhandled error code
sr 0:0:0:0: [sr0]  Result: hostbyte=0x07 driverbyte=0x00
sr 0:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00 00 00
end_request: I/O error, dev sr0, sector 0
FAT: unable to read boot sector
yaffs: dev is 11534336 name is "sr0" ro
yaffs: passed flags ""
yaffs: dev is 11534336 name is "sr0" ro
yaffs: passed flags ""
mount: mounting /dev/sr0 on /mnt/cdrom/ failed: Invalid argument
级别: 侠客
UID: 5156
精华: 0
发帖: 73
金钱: 415 两
威望: 163 点
综合积分: 146 分
注册时间: 2009-04-12
最后登录: 2018-02-08
3楼  发表于: 2014-02-17 08:33
我在ubuntu linux系统,同样是挂载sr1 就可以挂载上。信息如下:

[33280.646238] scsi 9:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-4084N KQ09 PQ: 0 ANSI: 0
[33280.657963] sr1: scsi3-mmc drive: 10x/10x writer dvd-ram cd/rw xa/form2 cdda tray
[33280.658199] sr 9:0:0:0: Attached scsi CD-ROM sr1
[33280.658282] sr 9:0:0:0: Attached scsi generic sg2 type 5
[33284.257339] ISO 9660 Extensions: Microsoft Joliet Level 3

使用命令:

harry@harry-desktop:/media$ sudo mount -t iso9660 /dev/sr1 /media/cdrom
mount: 块设备 /dev/sr1 写保护,已只读方式挂载

是不是6410内核的mount 命令未移植好呢
级别: 侠客
UID: 5156
精华: 0
发帖: 73
金钱: 415 两
威望: 163 点
综合积分: 146 分
注册时间: 2009-04-12
最后登录: 2018-02-08
4楼  发表于: 2014-02-17 09:43
已经可以了,内核没有支持iso9660文件系统,但现在又有一个问题,挂载数据cd就可以,如果是音频cd就挂载不上,
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2014-02-17 12:07

 回 4楼(adsllihg) 的帖子

也许你可以在PC的Ubuntu系统上挂载音频CD后用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: 5156
精华: 0
发帖: 73
金钱: 415 两
威望: 163 点
综合积分: 146 分
注册时间: 2009-04-12
最后登录: 2018-02-08
6楼  发表于: 2014-02-17 14:42
音频cd不是文件系统来的,不用mount,请问有人知道怎么抓轨吗,我看了,是cdda文件系统来的