LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-22-2007, 02:52 AM   #1
asowani
LQ Newbie
 
Registered: Dec 2003
Posts: 28

Rep: Reputation: 15
How to fix USB Pen Drive unmount problems with slack 9.1?


Hello fellow LQers!

I have a strange problem with my USB pen drive. For years I am using slackware 9.1 (kernel 2.4) and use 512MB TranscendData USB JetFlash. I can mount/unmount it without problem and it works fine, except in one situation.

The problem is that, if I copy small files from my usb drive (/dev/sda1, mounted on /mnt/flash), everything is OK. But, when I try to copy a big file, half way through I get "Input/Output error" on the device, the drive gets unmounted and then I can not mount it again unless I reboot my machine.

Anyone faced similar problem? Can somebody suggest some solution to this?

Thanks,
Atul.
 
Old 11-22-2007, 05:32 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
are you mounting manually, do you have an entry in your /etc/fstab?

is hal mounting it?

2) do you have any cron jobs checking stuff such as tripwire?
 
Old 11-22-2007, 01:08 PM   #3
asowani
LQ Newbie
 
Registered: Dec 2003
Posts: 28

Original Poster
Rep: Reputation: 15
I figured out that there is some problem indeed. Here is my dmesg log immediately after connecting the pen drive:

scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: JetFlash Model: TS512MJF2B Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 02
Unable to get major 8 for SCSI disk
Unable to get major 8 for SCSI disk
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
sda: Unit Not Ready, sense:
Current 00:00: sns = 70 6
ASC=28 ASCQ= 0
Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28
0x00 0x00 0x00 0x00 0x00
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sns = 70 6
ASC=28 ASCQ= 0
Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28
0x00 0x00 0x00 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
ldm_validate_partition_table(): Disk read failed.
I/O error: dev 08:00, sector 0
unable to read partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
SCSI device sda: 1023744 512-byte hdwr sectors (524 MB)
sda: Write Protect is off
sda: sda1

And here is the dmesg log after I get read problems:

usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
hub.c: USB device not accepting new address (error=-71)
usb-storage: host_reset() requested but not implemented
scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0
SCSI disk error : host 1 channel 0 id 0 lun 0 return code = 6050000
I/O error: dev 08:01, sector 12488
<I/O error message repeated several times>
Directory sread (sector 0x1c30) failed
I/O error: dev 08:01, sector 7216
dev = 08:01, ino = 115460
Filesystem panic (dev 08:01).
msdos_write_inode: unable to read i-node block
 
Old 11-22-2007, 05:44 PM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
not a good sign, does this stick ever have to be used on a microsoft computer?

if not I am thinking you can format it to xfs, which is what I did, a journalised system that if you inadvertantly pull stick out, or there is a minor power hiccup, won't lose its data
 
Old 04-24-2008, 04:16 AM   #5
asowani
LQ Newbie
 
Registered: Dec 2003
Posts: 28

Original Poster
Rep: Reputation: 15
Lightbulb Found solution to this problem!

Eventually I found a solution to this problem - the autofs! Instead of mounting/unmounting the flash drive manually, I added it to the automounter. Now there is absolutely no problem accessing huge files from the drive. Thanks to all of you for your responses and helpful tips!
 
  


Reply

Tags
flash drive, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 04:36 PM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 02:28 PM
Problems Installing Slax on a USB Pen Drive PerpetualNewbie Slackware 1 02-27-2007 02:19 PM
Mounting usb pen drive file permssions problems linuxmandrake Debian 1 10-10-2005 08:21 PM
Can't unmount usb pen unless root but plugged it in as user Patroni Linux - Newbie 3 11-16-2003 08:15 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration