LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB is autodetecting but when its pull out throwing error (https://www.linuxquestions.org/questions/linux-newbie-8/usb-is-autodetecting-but-when-its-pull-out-throwing-error-578867/)

sathyguy 08-22-2007 03:36 AM

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

unSpawn 08-22-2007 04:31 AM

Umount the mountpoint, not the device: "umount /mnt/flash"?

sathyguy 08-22-2007 04:47 AM

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.

unSpawn 08-22-2007 05:37 AM

What exact error? What happens if you try to unload the corresponding kernel modules?

sathyguy 08-22-2007 07:39 AM

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


All times are GMT -5. The time now is 12:00 AM.