View previous topic :: View next topic |
Author |
Message |
Aitikin Apprentice

Joined: 14 May 2005 Posts: 227
|
Posted: Wed Apr 05, 2006 7:54 am Post subject: USB Drive not liking me |
|
|
Ok, so I've been trying to get everything squared away with udev and I've had great luck with my Olympus camera and my Sony Clie. Now I'm trying to get my USB drive working, but it just doesn't seem to like me. I've set up my fstab like so (pertanent line only):
Code: | /dev/flash /mnt/Flash msdos noauto,user,exec 0 0
|
and when I put in mount /dev/Flash I get:
Code: | mount: wrong fs type, bad option, bad superblock on /dev/flash,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so |
I have also tried mounting it manually as root with mount /dev/flash /mnt/Flash -t msdos or -t vfat or /dev/sdc/ -t msdos or -t vfat and recieve the same error message. It works in Windows XP and in Mac OS X on my iBook, but I can't get it to work here. fdisk shows
Code: | The number of cylinders for this disk is set to 1960.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdc: 513 MB, 513802240 bytes
16 heads, 32 sectors/track, 1960 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1960 501744 e W95 FAT16 (LBA)
Command (m for help):
|
My /etc/udev/rules.d/10-local.rules looks like this:
Code: | # PDA
SYSFS{product}="Palm Handheld", KERNEL="ttyUSB*", NAME="tts/USB%n", SYMLINK="pilot%e"
# Camera
BUS="usb", SYSFS{serial}=="BLOCKEDOUT", KERNEL="sd?1", NAME="%k", SYMLINK="olympus"
# Flash Drive
BUS="usb", KERNEL="sd?", NAME="%k", SYMLINK="flash"
# Making DVD-RW drive == /dev/dvdrw/
BUS=="ide", KERNEL=="hdc", NAME="%k", SYMLINK="dvdrw cdroms/cdrom%n"
|
dmesg | tail gives me:
Code: | FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev sdc.
FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev sdc.
FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev sdc.
FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev sdc.
FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev sdc.
|
Any help would be greatly appreciated. I have a paper to write and it's easiest to do if I can do it in Linux, Windows (on the off chance I have to use a lab computer), and OS X. If there's anything else that could be relevant or helpful, just let me know.
EDIT: I forgot to mention that I'm on an AMD64 with kernel 2.6.15 gentoo patches r7
Last edited by Aitikin on Wed Apr 05, 2006 8:07 am; edited 1 time in total |
|
Back to top |
|
 |
Sleipnir Guru


Joined: 20 Sep 2005 Posts: 372 Location: Germany
|
Posted: Wed Apr 05, 2006 8:01 am Post subject: |
|
|
In the error message there is a statement that maybe the correct codepage is missing.
Maybe this is the problem... Did you find any detailed error message in the syslog or
dmesg (as stated by the error message)? _________________ A)bort, R)etry, I)nfluence with large hammer. |
|
Back to top |
|
 |
Aitikin Apprentice

Joined: 14 May 2005 Posts: 227
|
Posted: Wed Apr 05, 2006 8:10 am Post subject: |
|
|
Nope, can't find anything more descriptive than what's already posted in dmesg. Don't remember how to get the syslog, so I can't check there. |
|
Back to top |
|
 |
Sleipnir Guru


Joined: 20 Sep 2005 Posts: 372 Location: Germany
|
Posted: Wed Apr 05, 2006 11:50 am Post subject: |
|
|
You can read the syslog messages under /var/log/messages. _________________ A)bort, R)etry, I)nfluence with large hammer. |
|
Back to top |
|
 |
feld Guru


Joined: 29 Aug 2004 Posts: 593 Location: USA
|
Posted: Wed Apr 05, 2006 3:54 pm Post subject: |
|
|
I didnt know msdos was a valid filesystem type? I thought you were always supposed to use vfat.
-Feld _________________ < bmg505> I think the first line in reiserfsck is
if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); } |
|
Back to top |
|
 |
Aitikin Apprentice

Joined: 14 May 2005 Posts: 227
|
Posted: Wed Apr 05, 2006 5:59 pm Post subject: |
|
|
Code: | Apr 5 12:59:40 GentooBox FAT: invalid media value (0xb9)
Apr 5 12:59:40 GentooBox VFS: Can't find a valid FAT filesystem on dev sdc.
Apr 5 12:59:42 GentooBox FAT: invalid media value (0xb9)
Apr 5 12:59:42 GentooBox VFS: Can't find a valid FAT filesystem on dev sdc.
|
Nothing more descriptive there. |
|
Back to top |
|
 |
Aitikin Apprentice

Joined: 14 May 2005 Posts: 227
|
Posted: Wed Apr 05, 2006 11:36 pm Post subject: |
|
|
feld wrote: | I didnt know msdos was a valid filesystem type? I thought you were always supposed to use vfat.
|
I found some post online talking about using it for FAT16 so I tried it after using vfat and getting the same error. |
|
Back to top |
|
 |
guyr Apprentice

Joined: 17 Aug 2004 Posts: 237
|
Posted: Sun Apr 09, 2006 5:10 am Post subject: |
|
|
Here's what works for me. I have a laptop with a bunch of available memory slots. I'm using only Compact Flash:
/dev/uba1 /mnt/removable vfat user,umask=0,codepage=850,iocharset=iso8859-1 0 0
It's been a long time, but I think I originally set up this card under Windows 2K. _________________ Guy Rouillier |
|
Back to top |
|
 |
Aitikin Apprentice

Joined: 14 May 2005 Posts: 227
|
Posted: Sun Apr 09, 2006 5:15 am Post subject: Thanks |
|
|
Thanks for the attempt, but no luck. I'm going to try starting that from scratch soon. |
|
Back to top |
|
 |
|