Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Stick Problem!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Lumpi
n00b
n00b


Joined: 03 Nov 2006
Posts: 4

PostPosted: Fri Nov 03, 2006 11:09 am    Post subject: USB Stick Problem! Reply with quote

Hi there,
I've got a 512 MB USB Stick from Kingston. When I plug it in my USB-Port I get the following messages:

usb 1-1: new high speed USB device using ehci_hcd and address 77
usb 1-1: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 77
usb-storage: waiting for device to settle before scanning
Vendor: Model: USB Flash Memory Rev: 6.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 1001472 512-byte hdwr sectors (513 MB)
sdb: Write Protect is off
sdb: Mode Sense: 0b 00 00 08
sdb: assuming drive cache: write through
SCSI device sdb: 1001472 512-byte hdwr sectors (513 MB)
sdb: Write Protect is off
sdb: Mode Sense: 0b 00 00 08
sdb: assuming drive cache: write through
sdb: sdb1
sd 4:0:0:0: Attached scsi removable disk sdb
sd 4:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete

Everything seems fine. The Stick is mounted and I can write to it.
But here's the problem:

If I unplug the stick after writing some data to it and plug it in again sometimes there is no data on it.
It's the same when I try to delete some data from the stick. Everything looks ok but after plugging in the stick again all deleted
files are still there. I've tried another stick but it makes no difference.

I've loaded all necessary modules. The stick is formated with fat16. I've already tried fat32 but nothing changes.
My kernelversion: 2.6.17-gentoo-r8

Maybe someone can help me!
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Fri Nov 03, 2006 11:15 am    Post subject: Reply with quote

Do you unmount the stick before unplugging it?
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
Lumpi
n00b
n00b


Joined: 03 Nov 2006
Posts: 4

PostPosted: Fri Nov 03, 2006 11:25 am    Post subject: Reply with quote

No I don't. A few month ago It worked without unmounting the stick.
Now I've tried it with unmounting. Seems to work.

Thank you
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Fri Nov 03, 2006 12:40 pm    Post subject: Reply with quote

you can run the command
Code:
$ sync

before unplugging

or have your stick mounted with the 'sync' option
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
orionas
n00b
n00b


Joined: 19 Sep 2006
Posts: 13
Location: Greece

PostPosted: Fri Nov 03, 2006 1:37 pm    Post subject: Reply with quote

Hi,
sync probably prevents data loss, but what about filesystem corruption?
I'm not sure about this :?
IMHO, the only way to be sure is to unmount the filesystem.
_________________
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum