LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2007, 04:36 AM   #1
sathyguy
Member
 
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93

Rep: Reputation: 15
USB is autodetecting but when its pull out throwing error


Friends,

OS: RHEL AS 3.0

when i insert my usb its detecting automatically in /dev/sda1.
after that i mount by /dev/sda1 /mnt/flash.
no problem in mounting.....
after finish my work...i umount /dev/sda1 /mnt/flash
it says /dev/sda1 not mounted.
when i unplug the usb device its throwing an IO error...
what might be the reason?

thanks
sathyguy
 
Old 08-22-2007, 05:31 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Umount the mountpoint, not the device: "umount /mnt/flash"?
 
Old 08-22-2007, 05:47 AM   #3
sathyguy
Member
 
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93

Original Poster
Rep: Reputation: 15
i tried both.....separately.
umount /mnt/flash
umount /dev/sda1 /mnt/flash

umounting is not a problem.its working fine..
but when i unplug/remove the usb im getting an io error....that is the problem.
 
Old 08-22-2007, 06:37 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
What exact error? What happens if you try to unload the corresponding kernel modules?
 
Old 08-22-2007, 08:39 AM   #5
sathyguy
Member
 
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93

Original Poster
Rep: Reputation: 15
ok....

as soon as i insert the usb....im getting the below message.
Quote:
[root@mypc root]# usb.c: USB device 2 (vend/prod 0xd7d/0x100) is not claimed by any active driver.
Starting timer : 0 0

Vendor: Model: USB DISK Rev: 1.20
Type: Direct-Access ANSI SCSI revision: 02

Starting timer : 0 0

Attached scsi remoable disk sda at scsi3, chennel 0,id 0, lun 0
SCSI device sda: 253952 512-byte hdwr sectors (130 MB)
sda: write protect is off
after this i have to press the enter key then only the prompt will display.

i.e., [root@mypc root]$

now i will mount the usb to the mount point /mnt/flash
[root@mypc root]$ mount /dev/sda1 /mnt/flash
[root@mypc root]$
ok...now its mounted.....
now im umouting.....
[root@mypc root]$ umount /mnt/flash
[root@mypc root]$
ok....its umounted....

now im removing the usb....(below is the error im getting)

Quote:
I/O error: dev 08:00, sector 2
I/O error: dev 08:00, sector 4
I/O error: dev 08:00, sector 6
I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 2
I/O error: dev 08:00, sector 4
I/O error: dev 08:00, sector 6
I/O error: dev 08:00, sector 24
I/O error: dev 08:00, sector 26
I/O error: dev 08:00, sector 28
I/O error: dev 08:00, sector 30

sda : READ CAPACITY FAILED
sda : status=1, message=00, host=0, driver=08
Info fld=0xa00(nonstd), Current sd00:00: sense key not ready
sda: block size assumed to be 512 bytes, disk size 1GB
sda: test WP failed, assume write enabled

I/O error: dev 08:00, sector 2
I/O error: dev 08:00, sector 4
I/O error: dev 08:00, sector 6
I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 2
I/O error: dev 08:00, sector 4
I/O error: dev 08:00, sector 6
unable to read partition table
after this i have to press the enter key then only the prompt will display.

i.e., [root@mypc root]$

thanks
sathyguy
 
  


Reply


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
Shared Home Directory Throwing Error Ingla Ubuntu 6 08-06-2007 07:21 AM
RPM Command not working, throwing undefined symbol error racurtis Linux - Software 2 04-03-2007 02:19 PM
IPSec w/ RHEL4- Racoon throwing error messages s0n|k Linux - Security 2 03-30-2007 05:34 PM
no longer autodetecting usb devices TuxLives Mandriva 9 05-02-2006 10:21 AM
SuSE YOU - throwing error neocookie Linux - Software 3 10-25-2004 03:58 PM


All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration