Page 1 of 1

[Solved] unable to mount a vfat usb stick

Posted: 09 Jan 2012, 14:17
by banshee22
Hi All,

I'm unable to mount a vfat usb stick.
I can see /dev/sdc1, but "mount -t vfat /dev/sdc1 /mnt/myrep" return me something like:

"mount: wrong fs type, bad option, bad super block on /dev/sdc1....."

Usb stick I'm trying to mount is just an empty FAT32 usb stick formated on windows.
I can mount it on mandriva without having anything to do: udev mounts it well.

in /var/log/syslog, I've a messsage like: "FAT: unrecognized mount option"iocharset=" or missing value"

Does it tells something to somebody?

Thanks!

Banshee

Re: unable to mount a vfat usb stick

Posted: 09 Jan 2012, 14:40
by fanthom
could be a bug in 'Language Selection Tool' - did you use it to create french language pack?
please show me content of "/sbin/mount.vfat" if you have that file.

also - please post output of 'blkid' command when stick is plugged in.

Re: unable to mount a vfat usb stick

Posted: 09 Jan 2012, 15:40
by banshee22
Not sure about what is "langage selection tool". It's been a long time since i've set langage to french ;-) I think I've not use this tool, just configure lxde...

this is /sbin/mount.vfat :

#!/bin/bash
# File generated by Porteus Language-Selection tool
mv /sbin/mount.vfat /sbin/mount.vfat-tmp
/bin/mount $1 "$2" -o iocharset=
mv /sbin/mount.vfat-tmp /sbin/mount.vfat

blkid command:

/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/sda1: LABEL="SYSTEM" UUID="4478E58978E57A56" TYPE="ntfs"
/dev/sda2: LABEL="DATA" UUID="08304E4D304E4244" TYPE="ntfs"
/dev/sdb1: LABEL="USB DISK" UUID="1831-3FE8" TYPE="vfat"
/dev/sdc1: UUID="6674-385D" TYPE="vfat"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
/dev/loop14: TYPE="squashfs"
/dev/loop15: TYPE="squashfs"
/dev/loop16: TYPE="squashfs"
/dev/loop17: TYPE="squashfs"
.....................................

Thanks for your help Fanthom!!

PubliƩ after 8 minutes 19 seconds:
Ok, this works! I've set iso8859-1 for iocharset value in /sbin/mount.vfat

Thanks again for your quick help!

May be you could tell me more about langage selection tool or give me a link to read about it?

Re: unable to mount a vfat usb stick

Posted: 09 Jan 2012, 16:00
by Ahau
Glad it's working for you now :)

Language Selection Tool can be accessed from the KDE or LXDE menu under 'System -> Language Selection Tool'. It will walk you through the process of setting your default language and keyboard layout and download some files necessary to change your locale. It will also create a module for you that will retain these settings and locale files.