kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

ZIYAD A. M. AL-BATLY zamb at saudi.net.sa
Tue Jun 7 19:59:28 UTC 2005


On Tue, 2005-06-07 at 20:08 +0100, Magnus Therning wrote:
> On Tue, Jun 07, 2005 at 09:44:05PM +0300, ZIYAD A. M. AL-BATLY wrote:
> >On Tue, 2005-06-07 at 11:12 -0700, Nathan Howell wrote:
> >> On Tue, 07 Jun 2005 07:05:40 -0700, Bob Nielsen wrote:
> >> 
> >> > On Tue, 2005-06-07 at 09:04 +0100, Richard Downer wrote:
> >> >> OK, so I know what I want the mount options to be - the next question
> >> >> is how do I set them! It's not me that mounts the drives - when I plug
> >> >> in the USB HD "magic" happens behind the scenes and something mounts
> >> >> the two partitions with the iocharset=utf8 option. They don't appear
> >> >> in /etc/fstab at all. As a workaround I can manually re-mount the
> >> >> partitions without the iocharset= option, but I'm looking for a proper
> >> >> solution.
> >> > 
> >> > Edit /etc/fstab to include the desired parameters for the drive.
> >> 
> >> Hotplugged devices like this aren't in fstab. That's what pmount is for,
> >> to handle mounting of removable devices without messing with /etc/fstab. I
> >> don't know how to (or if you can) set options for pmount though.
> >> 
> >> Nathan
> >> 
> >> 
> >Here's a quote from “pmount” manual, POLICY section:
> >        “device is not in /etc/fstab (if it is, pmount executes ‘mount
> >        device’ as the calling user to handle this transparently)”
> >
> >The only catch is that you are not guaranteed which “device name” will
> >be assigned to you hot-plugged drive, it might be “/dev/sda” or
> >“/dev/sdb” (or else).
> 
> You could use udev rules to make sure there is a link to whatever
> device the hotplug thing ends up being, right?
> 
> /M
> 
I'm not sure about “udev”, however, there's some way to fix this.  This
is in “fstab” manual:
  Instead of giving the device explicitly, one may indicate the (ext2 or
  xfs) filesystem that is to be mounted by its UUID or volume label (cf.
  e2label(8) or xfs_admin(8)), writing LABEL=<label> or UUID=<uuid>,
  e.g., ‘LABEL=Boot’ or ‘UUID=3e6be9de-8139-11d1-9106-a43f08d823a6’.
  This will make the system more robust: adding or removing a SCSI disk
  changes the disk device name but not the filesystem volume label.

I have tried this with a normal (not removable) disk and it worked fine
except, sadly, with FAT file-systems!  (That was a long time, so it
might be fixed in newer “mount” versions.  Just try it and see if it
works.)

To try this, just edit “/etc/fstab” and substitute the device name (say
“/dev/sda1”) with “LABEL=volume_name” (case sensitive, and substitute
“volume_name” with whatever you labeled your partition) and that's it.

Ziyad.




More information about the ubuntu-users mailing list