Hi,
The FC3 hotplug aotumatically mounts a USB disk. After mounted, It become case insensitive, for example, I made a dir as 'mkdir SRC_1', if I ls it, it show src_1.
How to mount the USB disk case sensitive?
Yuandan
On Wed, Jun 01, 2005 at 07:44:12AM +1000, Yuandan Zhang wrote:
The FC3 hotplug aotumatically mounts a USB disk. After mounted, It become case insensitive, for example, I made a dir as 'mkdir SRC_1', if I ls it, it show src_1. How to mount the USB disk case sensitive?
What filesystem is on the drive?
Matthew Miller wrote:
On Wed, Jun 01, 2005 at 07:44:12AM +1000, Yuandan Zhang wrote:
The FC3 hotplug aotumatically mounts a USB disk. After mounted, It become case insensitive, for example, I made a dir as 'mkdir SRC_1', if I ls it, it show src_1. How to mount the USB disk case sensitive?
What filesystem is on the drive?
It is FAT32, here is output from fdisk -l
Disk /dev/sda: 1463 MB, 1463648256 bytes 64 heads, 63 sectors/track, 709 cylinders Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System /dev/sda1 1 709 1429312+ b Win95 FAT32
On Wed, Jun 01, 2005 at 07:59:06AM +1000, Yuandan Zhang wrote:
What filesystem is on the drive?
It is FAT32, here is output from fdisk -l
Lookit the man page for mount, and check out the "Mount options for vfat" section. Particularly, the "shortname" option, which defaults to "lower". I think you want "mixed" or "winnt".
Matthew Miller wrote:
On Wed, Jun 01, 2005 at 07:59:06AM +1000, Yuandan Zhang wrote:
What filesystem is on the drive?
It is FAT32, here is output from fdisk -l
Lookit the man page for mount, and check out the "Mount options for vfat" section. Particularly, the "shortname" option, which defaults to "lower". I think you want "mixed" or "winnt".
Thanks for info. I can make this work at command line as a root (this is on RH 9.0)
mount -t vfat -o shortname="winnt" /dev/sda1 /mnt/USB
How to add this to fstab, the currect fstab is /dev/sda1 /mnt/USB vfat users,noauto 0 0
The 2nd question is, on FC3, hotplug automatically mounts USB disks, where should I make such changes?
Thanks
Yuandan
On Wed, Jun 01, 2005 at 08:40:43AM +1000, Yuandan Zhang wrote:
Thanks for info. I can make this work at command line as a root (this is on RH 9.0) mount -t vfat -o shortname="winnt" /dev/sda1 /mnt/USB How to add this to fstab, the currect fstab is /dev/sda1 /mnt/USB vfat users,noauto 0 0
You should be able to add the shortname="winnt" to the options -- right with "users,noauto", with no space -- just do: users,noauto,shortname="winnt".
The 2nd question is, on FC3, hotplug automatically mounts USB disks, where should I make such changes?
I think there's still an fstab entry.
Yuandan Zhang wrote:
Matthew Miller wrote:
On Wed, Jun 01, 2005 at 07:44:12AM +1000, Yuandan Zhang wrote:
The FC3 hotplug aotumatically mounts a USB disk. After mounted, It become case insensitive, for example, I made a dir as 'mkdir SRC_1', if I ls it, it show src_1. How to mount the USB disk case sensitive?
What filesystem is on the drive?
It is FAT32, here is output from fdisk -l
Disk /dev/sda: 1463 MB, 1463648256 bytes 64 heads, 63 sectors/track, 709 cylinders Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System /dev/sda1 1 709 1429312+ b Win95 FAT32
Any FAT or NTFS (in fact, all DOS filesystems) are case insensitive. Not a bug, that's the definition of the filesystems. ---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com - - VitalStream, Inc. http://www.vitalstream.com - - - - "Doctor! My brain hurts!" "It will have to come out!" - ----------------------------------------------------------------------
Rick Stevens wrote:
It is FAT32, here is output from fdisk -l
Disk /dev/sda: 1463 MB, 1463648256 bytes 64 heads, 63 sectors/track, 709 cylinders Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System /dev/sda1 1 709 1429312+ b Win95 FAT32
Any FAT or NTFS (in fact, all DOS filesystems) are case insensitive. Not a bug, that's the definition of the filesystems.
Yes, I understand Fat is case insensitive. As Matthew suggested, I want the upper case file names showing in uppper case.
Yuandan Zhang wrote:
Rick Stevens wrote:
It is FAT32, here is output from fdisk -l
Disk /dev/sda: 1463 MB, 1463648256 bytes 64 heads, 63 sectors/track, 709 cylinders Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System /dev/sda1 1 709 1429312+ b Win95 FAT32
Any FAT or NTFS (in fact, all DOS filesystems) are case insensitive. Not a bug, that's the definition of the filesystems.
Yes, I understand Fat is case insensitive. As Matthew suggested, I want the upper case file names showing in uppper case.
The FAT translation is all lower case. Sorry. There are three levels of "pickyness" as to equivalency, but uppercase characters are displayed in lower case AFAIK. See the "Mount options for fat" in the mount(8) manpage. ---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com - - VitalStream, Inc. http://www.vitalstream.com - - - - He who laughs last thinks slowest. - ----------------------------------------------------------------------
On Tue, May 31, 2005 at 04:26:55PM -0700, Rick Stevens wrote:
Yes, I understand Fat is case insensitive. As Matthew suggested, I want the upper case file names showing in uppper case.
The FAT translation is all lower case. Sorry. There are three levels of "pickyness" as to equivalency, but uppercase characters are displayed in lower case AFAIK. See the "Mount options for fat" in the mount(8) manpage.
Yeah, but scroll on down to the mount options for vfat. Vfat is a hack which allows filenames longer than the old fat 8.3 format -- and while it's not case-sensitive, it *is* case-preserving. There's options for exactly how to deal with that.
On Tue, 2005-31-05 at 22:38 -0400, Matthew Miller wrote:
On Tue, May 31, 2005 at 04:26:55PM -0700, Rick Stevens wrote:
Yes, I understand Fat is case insensitive. As Matthew suggested, I want the upper case file names showing in uppper case.
The FAT translation is all lower case. Sorry. There are three levels of "pickyness" as to equivalency, but uppercase characters are displayed in lower case AFAIK. See the "Mount options for fat" in the mount(8) manpage.
Yeah, but scroll on down to the mount options for vfat. Vfat is a hack which allows filenames longer than the old fat 8.3 format -- and while it's not case-sensitive, it *is* case-preserving. There's options for exactly how to deal with that.
It may not always be case-preserving on 8.3 or shorter filenames.
On Wed, Jun 01, 2005 at 08:54:04AM -0600, Guy Fraser wrote:
Yeah, but scroll on down to the mount options for vfat. Vfat is a hack which allows filenames longer than the old fat 8.3 format -- and while it's not case-sensitive, it *is* case-preserving. There's options for exactly how to deal with that.
It may not always be case-preserving on 8.3 or shorter filenames.
Yeah, and the options help to deal with that. But it is *clearly* all a kludge.
On Wed, 2005-06-01 at 14:08, Matthew Miller wrote:
On Wed, Jun 01, 2005 at 08:54:04AM -0600, Guy Fraser wrote:
Yeah, but scroll on down to the mount options for vfat. Vfat is a hack which allows filenames longer than the old fat 8.3 format -- and while it's not case-sensitive, it *is* case-preserving. There's options for exactly how to deal with that.
It may not always be case-preserving on 8.3 or shorter filenames.
Yeah, and the options help to deal with that. But it is *clearly* all a kludge.
Unfortunately there is no universal filesystem format that preserves all attributes, so if you want to move the drive around among windows, linux, mac, etc. machines you have to deal with some sort of kludge.
Hi,
The FC3 hotplug aotumatically mounts a USB disk. After mounted, It become case insensitive, for example, I made a dir as 'mkdir SRC_1', if I ls it, it show src_1.
How to mount the USB disk case sensitive?
Yuandan
I had a similar issue with a JumpDrive, when using it between XP and Linux. Is the disk format Fat16?