[wellylug] USB flash drive woes with 2.6.9
jumbophut
jumbophut at gmail.com
Fri Dec 17 18:53:16 NZDT 2004
On Fri, 17 Dec 2004 17:58:47 +1300, Andrew wrote:
>
> OK, an update on where I am with this. The little write-protect switch
> was set to unlock - read/write. I experimentally flicked this to lock,
> and it mounted fine. But it allowed me to 'touch' a new file, although
> that wasn't there when I umounted, replugged, and remounted. I tried
> flicking the switch back to unlock, but that just got me FAT errors.
>
It's a long shot, but you could try mounting manually, using the -o
rw,sync switch with read/write mounting or the -o ro,noatime option
for read-only mounting.
The first will ensure that anything you write is committed to the
drive right away. If you don't have sync set, there is a danger that
when you unplug the drive, some data will remain unwritten (e.g. your
touched file).
The second will ensure absolutely no writing takes place when you
mount read-only. I believe (but haven't actually checked) that even
just reading a file adjusts the 'last accessed' information on the
disk.
If it was still using /dev/sda1, you would do something like:
mount -t vfat -o rw,sync,gid=0,uid=0,umask=0000 /dev/sda1 /mnt/mntdir
I suppose /dev/sda1 changes with udev.
(Apologies if this is teaching you to suck eggs).
Anyway, 'man mount' is your friend.
--
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')
More information about the wellylug
mailing list