LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-22-2005, 05:59 AM   #1
ag2uki
Member
 
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84

Rep: Reputation: 16
help! unable to mount usb-drive when replugged!


hi all!
Here's my problem. If i plug my usb-drive at the first time, it worked normally. I can mount it & then do anything normally too. Then I unmounted & unplugged it.
But, when i plug it in the second time (and next time), I can't mount it again!! I tried to see a few lines in my 'dmesg'. It said:
Code:
usb 4-2: new high speed USB device using ehci_hcd and address 6
ehci_hcd 0000:00:1d.7: port 2 reset error -110
hub 4-0:1.0: hub_port_status failed (err = -32)
Then, I tried to restart my hotplug daemon (using '/etc/init.d/hotplug restart'). I can use my usb-drive again normally! It's like plugging my usb-drive at the first time. But after, I can't use my usb-drive again.
Should i restart my hotplug to use my usb-drive? I didn't find the same problem in mandrake, redhat, & ubuntu linux.
FYI, I'm using Debian w/ kernel: 2.6.12-3-686.
Any suggestions?

thanks before!

Last edited by ag2uki; 09-26-2005 at 08:28 PM.
 
Old 09-22-2005, 06:10 AM   #2
Fade-Dude
LQ Newbie
 
Registered: Sep 2005
Location: Welkom, South-Africa
Distribution: SuSe 9.3
Posts: 14

Rep: Reputation: 0
My redhat 8 did this too.... well almost...

Mu solution was to manually mount it when I want to use it, and the unmount it when i'm done.

mount /dev/sda1 /mnt/flash
then when i'm done
umount /mnt/flash
sometimes it wouldn't umount so i had to force it with -l
umount -l /mnt/flash
 
Old 09-22-2005, 08:16 PM   #3
ag2uki
Member
 
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84

Original Poster
Rep: Reputation: 16
Of course, I can do that too.
But I can't mount my usb-drive after unmounting & unpluging it!
Thanks for your reply.
Any sugestions please!?
 
Old 09-23-2005, 02:53 AM   #4
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
You could try if replugging works with "uhci" (usb 1.1) driver instead of "ehci" (usb 2.0). Try adding

ehci

to /etc/hotplug/blacklist

Then reboot (or unload modules "ehci") and see what happens. Note that this WILL slow down your usb-drive's transfer speeds. If your drive is a flashdrive as opposed to harddrive then switch to "uhci" could be worth the effort.
 
Old 09-23-2005, 05:02 AM   #5
ag2uki
Member
 
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84

Original Poster
Rep: Reputation: 16
Thanks basileus!It works!
But you're right. I only use usb1.1 driver.

regards
ag2uki
 
Old 09-24-2005, 12:52 PM   #6
subjazz
Member
 
Registered: May 2004
Location: Rodeo by the Bay
Distribution: Ubuntu;dosbox;Debian;BSD 6.0
Posts: 65

Rep: Reputation: 15
usb device mount

mount -t msdos /dev/sda /media/usb0
 
Old 10-04-2005, 02:32 PM   #7
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Rep: Reputation: 30
i'm having similar problems:

#mount /dev/sda /media/usb0
(wait about two minutes)
mount: /dev/sda is not a valid block device

same with /dev/sda1, /dev/sda2, and so on
 
Old 10-05-2005, 08:28 PM   #8
xenophales
LQ Newbie
 
Registered: Oct 2005
Distribution: Debian Sarge 2.4, Mandriva LE 10.2
Posts: 7

Rep: Reputation: 0
can't mount usb key

I am using Debian Sarge kernel 2.4.27-2-386 and I can't figure out how to mount
my usb key (fat32).

I've tried mount -t vfat /dev/sda1 flash

The key light flashes for a couple of seconds and then shuts off.

then I get the message

bad fs , bad superblock


Still fairly new to Linux.
Please help,
Thanks
xenophales
 
Old 10-06-2005, 06:02 AM   #9
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Rep: Reputation: 30
xenophales - I got mine to work last night with

mount -t vfat /dev/sdb1 /mnt/external.
you might also want to try
mount -t msdos /dev/sda /mnt/usb0
mount -t auto /dev/sda /mnt/usb0
 
Old 11-02-2005, 11:17 PM   #10
xenophales
LQ Newbie
 
Registered: Oct 2005
Distribution: Debian Sarge 2.4, Mandriva LE 10.2
Posts: 7

Rep: Reputation: 0
usb key works!

Thanks!!!

mount -t auto /dev/sda flash // works great!


flash is the directory that I created to mount the device, just in case
there is any confusion

Thanks again.
 
Old 12-01-2005, 12:05 AM   #11
chussung
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian Sarge, Mandrake 9.2
Posts: 1

Rep: Reputation: 0
mount as user not root?

Thanks to both q's and the a's! I got my usb memory stick working because of this thread.

However I have one small related problem.

I can mount and umount via the terminal with both root and user.

I can mount via the user gui (gnome2.x)

My problem is the user can't umount the device. "device is busy"
is there a way to change the (right click>unmount) command to use the umount -l command?

My users seem to melt down at a command line.

Thanks
 
Old 08-14-2006, 11:08 AM   #12
thenols
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Dell USB Drive

I am fairly new to this as well. I am able to mount my usb drive with the following command

sudo mount -t usbfs /dev/sdc1 /mnt/usb0

But when I cd to it, all i get are some directories called 001, 002, 003, 004, and a file called deviecs.
And inside each directory there is a file called 001.

I have tried other filesystems: vfat, msdos and I alwas get the same error:


mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

So did the dmesg | tail, and I can see the system has found the usb drive, but mounting as a vfat has problems. here is what the syslog says:



usb 1-5: new high speed USB device using ehci_hcd and address 6
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
Vendor: M-SysT5 Model: Dell Memory Key Rev: 5.04
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdc: 1026303 512-byte hdwr sectors (525 MB)
sdc: Write Protect is off
sdc: Mode Sense: 45 00 00 08
sdc: assuming drive cache: write through
SCSI device sdc: 1026303 512-byte hdwr sectors (525 MB)
sdc: Write Protect is off
sdc: Mode Sense: 45 00 00 08
sdc: assuming drive cache: write through
/dev/scsi/host5/bus0/target0/lun0: [CUMANA/ADFS] p1<5>Attached scsi removable disk sdc at scsi5, channel 0, id 0, lun 0
usb-storage: device scan complete
FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev sdc1.

There may be some clue in here for me. If someone else has an idea please let me know!

Thanks!
 
Old 08-14-2006, 12:05 PM   #13
patolfo
Member
 
Registered: Jan 2006
Distribution: Debian-Sarge r2-k.2.6.8-2.386
Posts: 101
Blog Entries: 1

Rep: Reputation: 15
hey yo!!!
well I do have a slightly different problem, that is I connect my ipod video to the pc running sarge in kernel 2.6, and everything is perfect, but I can not eject it via konqueror in fact I can do it only in root fron konsole. The second problem is when I connect the usb sandisk memory stick, it only functions for root, user can not access it, it says I do not have enough permissions, any clue?
And the same way is for me only shot and I have to restart hotplug...

Is there any way to have both devices connected, cause if I invert the order of connection, lets say first the memory then the ipod, the ipod is not recognized

In the fstab for the ipod I have sda and for the memory sdb.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
none /proc/bus/usb usbdevfs noauto,user 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda9 /home ext3 defaults 0 2
/dev/hda8 /tmp ext3 defaults 0 2
/dev/hda5 /usr ext3 defaults 0 2
/dev/hda6 /var ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/hdc /media/dvd0 iso9660 ro,user,noauto 0 0
/dev/hdd /media/dvd1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy auto rw,user,noauto 0 0
/dev/sda2 /media/ipod vfat rw,user,noauto 0 5
/dev/sdb1 /media/usbstick vfat user,noauto 0 0

any suggestion?
 
Old 08-14-2006, 07:21 PM   #14
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Rep: Reputation: 15
I wonder how does one can be sure or know that plugged usb drive is on sda1 ? if I put sda1 in fstab and system will attach it to sde1 (that's what was happening in KDE under FC3), I will not get the disk.

Thank you.
 
Old 09-29-2006, 03:38 AM   #15
sqrt7
LQ Newbie
 
Registered: Jan 2006
Location: Greece
Distribution: Debian Sarge
Posts: 3

Rep: Reputation: 0
chussung, sometimes my flashdisk does the same thing. I understand that the device just needs some time to stop working. For example, if a file transfer (to or from the flashdisk) seems to be over, it's doesn't necessarily mean that the device is free. Just give it a minute. And, of course, if you still see that you still cannot unmount it after a while, try performing a lazy unmount by umount -l.

I'm also having problems with my flashdisk. I have created an entry in the fstab file and I mount and unmount by console. However, at some point it just stopped working! My flashdisk is now "Not a valid block device". I found a lot about it by STFWing but nothing seems to work :-)
 
  


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
unable to mount usb pen drive in redhat 9.0 zero79 Linux - Hardware 9 01-25-2007 09:07 PM
Mount usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 03:46 AM
Unable to mount AND write to USB jump drive TimmerKahuna Linux - Hardware 5 08-13-2006 01:31 PM
unable to mount pcmcia cd drive st0nec0ld Linux - Laptop and Netbook 1 12-30-2004 04:44 PM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM


All times are GMT -5. The time now is 04:31 AM.

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