LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1046|回复: 12

u 盘用不了

[复制链接]
发表于 2007-3-19 22:36:28 | 显示全部楼层 |阅读模式
mount -t vfat /dev/sda /mn/upan
dmesg | tail

结果是:fat: invalid media value (0x01)
vfs :can't find a valid fat filesystem on dev sda

编译内核的时候已经选中SCSI 支持
u盘是 fat32 的
发表于 2007-3-20 00:18:19 | 显示全部楼层
/dev/sda1?
回复 支持 反对

使用道具 举报

发表于 2007-3-20 01:29:00 | 显示全部楼层
/dev/sda是一定不行的
要指定具体分区
回复 支持 反对

使用道具 举报

发表于 2007-3-20 05:24:25 | 显示全部楼层
Post by zhllg
/dev/sda是一定不行的
要指定具体分区

有的u盘就是用/dev/sda的,我现在插在电脑上这块就是,可以用fdisk -l看一下到底是用哪个。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-20 08:21:25 | 显示全部楼层
it should not be a sda1 or sda problem

when i mount a windows xp primary partion c,

mount -t vfat /dev/hda1 /mnt/win_c

i get errors:mount: wrong fs type, bad option, bad superblock on /dev/hda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

dmesg | tail came :FAT: codepage cp437 not found
FAT: codepage cp437 not found
回复 支持 反对

使用道具 举报

发表于 2007-3-20 09:42:35 | 显示全部楼层
Post by shitbaby
it should not be a sda1 or sda problem

when i mount a windows xp primary partion c,

mount -t vfat /dev/hda1 /mnt/win_c

i get errors:mount: wrong fs type, bad option, bad superblock on /dev/hda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

dmesg | tail came :FAT: codepage cp437 not found
FAT: codepage cp437 not found


你用的是不是ntfs,如果是的话先装一个ntfs3g
回复 支持 反对

使用道具 举报

发表于 2007-3-20 10:02:46 | 显示全部楼层
如果只读ntfs分区的话,不用装ntfs3g,直接就能mount上
回复 支持 反对

使用道具 举报

发表于 2007-3-20 10:10:17 | 显示全部楼层
Post by shitbaby
it should not be a sda1 or sda problem

dmesg | tail came :FAT: codepage cp437 not found
FAT: codepage cp437 not found

编译内核的时候吧codepage的那些编码都选上就好了,我也遇上一次
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-20 10:40:10 | 显示全部楼层
HOSTNAME="joey" swiftfox # grep 437 /usr/src/linux/.config
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_NLS_CODEPAGE_437=m

how to enable ??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-20 10:41:40 | 显示全部楼层
Post by sephinroth
如果只读ntfs分区的话,不用装ntfs3g,直接就能mount上

/dev/hda1 is fat32
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表