LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-10-2005, 03:13 AM   #1
rohr
Member
 
Registered: Jan 2005
Distribution: debian
Posts: 44

Rep: Reputation: 15
mount/umount usb pen - woody 2.4.21


Hi i have two problems with mount/umount usb pen:[list=1][*]/dev/sda1 does not exist[*]umount: /pen: device is busy[/list=1]

1.here is some data useful for you:
when i try to mount an usb pen on /pen i get the following
Code:
/dev/sda1 does not exist
then i run the following
Code:
#modprobe -r usb-storage
#modprobe usb-storage
and after that
Code:
 $mount /pen
it works fine. But, if i umount /pen and i try to mount it again i get the same error for /dev/sda1 and so i have to do modprobe's commands as i wrote there. Here some outputs of my system

Code:
# lsmod
Module                  Size  Used by    Not tainted
usb-storage            84704   1
Code:
# mount
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
/dev/hda4 on /home type ext3 (rw)
/dev/sda1 on /pen type vfat (rw,noexec,nosuid,nodev,user=catanuto)
Code:
#less /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda3       /       ext3    defaults,errors=remount-ro      0       1
/dev/hda4       /home   ext3    defaults        0       2
/dev/hda2       none    swap    sw      0       0
proc    /proc   proc    defaults        0       0
/dev/fd0        /floppy auto    defaults,user,noauto    0       0
/dev/cdrom      /cdrom  iso9660 defaults,ro,user,noauto 0       0
/dev/sda1       /pen    vfat noauto,user,async,rw       0       0
2. actually, i can not even umount /pen since i get
Code:
$umount: /pen: device is busy
even if no one of open files are running from /pen. I can correcty read/write from /pen but it's impossible to umount it.

Any help fine!
 
Old 02-10-2005, 04:44 AM   #2
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
Try using the 'force' option for umount (umount -f). And make sure that
you are not inside the /pen directory when you are trying to umount it.
Hope this helps.
 
Old 02-10-2005, 05:02 AM   #3
rohr
Member
 
Registered: Jan 2005
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
Thank you for reply.
I tried your suggestion but this i got

Code:
# umount -f /pen/
umount2: Device or resource busy
umount: /dev/sda1: not mounted
umount: /pen: Illegal seek
and yet i think that /pen is correctly mounted as you can see
Code:
# lsmod
Module                  Size  Used by    Not tainted
usb-storage            84704   1
Code:
# mount
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
/dev/hda4 on /home type ext3 (rw)
/dev/sda1 on /pen type vfat (rw,noexec,nosuid,nodev,user=catanuto)
and also i am sure not running any instances of /pen directories.

Any hint?

Thanks.
 
Old 02-10-2005, 05:40 AM   #4
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
Are you sure that the USB stick is assigned to sda1.
Try unplugging it and back in again. then type 'dmesg'
and see to which /dev it was assigned. May be it is now
sda2 or something.
Make sure as well that you have "hotplug" and/or "discover"
installed.
Hope this helps.
 
Old 02-10-2005, 06:00 AM   #5
rohr
Member
 
Registered: Jan 2005
Distribution: debian
Posts: 44

Original Poster
Rep: Reputation: 15
Well, i unplugged and then back it again and i get this from
Code:
#dmesg
....
usb-storage: *** thread sleeping.
usb.c: USB disconnect on device 02:00.0-2 address 23
usb-storage: storage_disconnect() called
usb-storage: -- releasing main URB
usb-storage: -- usb_unlink_urb() returned -19
hub.c: new USB device 02:00.0-1, assigned address 24
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 90
usb-storage: Array length appears to be: 92
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xd7c716c0 Out: 0xd7c716d4 Int: 0x00000000 (Period 0)
usb-storage: Found existing GUID 05dc0080000b417571313110
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 24
probably it has been assigned to another /dev; how to check it?

also i looked for 'hotplug' and 'discover' but nothing matched.

Can you tell me something?
Thank you!
 
Old 02-10-2005, 07:06 AM   #6
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
What do you mean that you tried 'discover' and 'hotplug' and nothing matched?
Anyway, if you don't have them installed, install them using 'apt-get install hotplug discover'.

I have one more question. why are you running woody? are you planning to run a server or
something?. Cause if you are just going to use it as a desktop, then upgrading to testing (Sarge)
or unstable (sid) is a must. By the way unstable in Debain is rock solid and as stable as many other
distros releases.
If you don't know how to upgrade to sarge or sid let me know. It is as easy as installing a new program
Hope this helps.
 
  


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
how to mount and umount USB on redhat 9 pak_abdul Linux - Hardware 3 08-04-2005 06:02 AM
Unable to mount new USB pen erraticassassin Linux - Hardware 10 02-16-2005 02:36 AM
cannot mount usb pen uizzy76 Linux - Hardware 3 12-27-2004 01:11 AM
Can't mount USB FLASH (Pen driver) vador Linux - Software 5 10-09-2004 01:49 PM
Difficulty to mount USB Pen Drive fatra2 Linux - Hardware 5 09-10-2004 01:58 AM


All times are GMT -5. The time now is 06:28 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