USB hotplugging and data loss....

Alexander Apprich a.apprich at science-computing.de
Wed Mar 16 08:48:15 UTC 2005


Dave,

Irving, Dave wrote:
> Hey,
> 
> I got myself a memory stick yesterday, and was pleasantly supprised when
> I plugged it in to my Linux box (FC3) at work and it was immediately
> detected and mounted.
> I could read / write to it with no problems at all.
> So, I took it home with me and did some work last night on my linux (FC3
> also) laptop - which I tar/gz'd and saved on my memory stick.
> Put the memory stick back in to my work box this morning - and the files
> from last night are gone (heh - this is a bit like the 'ole "the dog ate
> my homework" excuse isn't it...).
> So I played around a bit more with plugging in -> writing -> unplugging
> and noticed that sometimes the written files can be seen after plugging
> back in, and sometimes they cant.
> In terms of sys logs:
> 
[snip]
> 
> Does anyone have any idea what the problem could be?
> For the moment Im going to have to save -> remove -> re-insert -> check
> everytime I want to save something :o)
> 
> By the way - here's the log for when I insert the stick:
> 
[snip]
> 

not that I can really explain what happend to your USBstick ...
What I do to prevent data loss on the stick is, I use sync and then
unmount it via umount /media/usbdisk Could you try this out?!

> thanks,
> 
> Dave
> 

Alex




More information about the fedora-list mailing list