LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 03: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, 04:31 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Umount the mountpoint, not the device: "umount /mnt/flash"?
 
Old 08-22-2007, 04: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, 05:37 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What exact error? What happens if you try to unload the corresponding kernel modules?
 
Old 08-22-2007, 07: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 AM.

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
Open Source Consulting | Domain Registration