免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2799 | 回复: 3
打印 上一主题 下一主题

[驱动] U盘挂载奇怪问题请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-19 14:34 |只看该作者 |倒序浏览
2.6.26内核,SAMSUNG2440
用fdisk命令查询有设备/dev/sda1 可是查看/dev下却只有sda没有sda1,不解,请教····

插入U盘,终端提示如下:
[root@forch /]# usb 1-1: new full speed USB device using s3c2410-ohci and addres
s 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access     USB 2.0  SD/MMC Reader         PQ: 0 ANSI: 0 CCS

sd 0:0:0:0: [sda] 250880 512-byte hardware sectors (128 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] 250880 512-byte hardware sectors (128 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 removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0

[root@forch /]#


用fdisk命令查询
[root@forch /]# fdisk -l

Disk /dev/sda: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 256 * 512 = 131072 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               2         980      125312   b Win95 FAT32
[root@forch /]#

查看设备没有sda1:
[root@forch /]# ls /dev/ | grep sda
sda
[root@forch /]#

在系统里查确有sda1
[root@forch /]# find / -name sda1
/sys/block/sda/sda1
[root@forch /]#

论坛徽章:
0
2 [报告]
发表于 2011-09-19 15:34 |只看该作者
本帖最后由 forch 于 2011-09-22 10:22 编辑

把内核清理重新配置。文件系统里把sda1定位到udisk了。
[root@forch /]# mount /dev/udisk /mnt/yaffs/
[root@forch /]# ls /mnt/yaffs/
13579        xc7200~1     xcpost~1.gz
[root@forch /]#搞定

论坛徽章:
0
3 [报告]
发表于 2011-09-24 21:16 |只看该作者
学习。

论坛徽章:
1
巳蛇
日期:2013-10-28 15:55:33
4 [报告]
发表于 2011-09-25 08:07 |只看该作者
会不会是你的udev规则把sda1重定向了? 而非链接.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP