-
Plugging and unplugging USB drives
I'm having a USB device problem on my machine - Knoppix 3.8.2 installed on HD of a Pentium 600.
After the helpful advice of folks on here, the Linux box will now happily recognise my pen drive and my digital camera (which it sees as another USB drive, but that's OK). They become /mnt/uba1 and /mnt/ubb1- first to arrive is uba1, the second is ubb1.
I can plug them in when the machine's already running, and it will mount them and open them. No problem so far.
However, if I unplug them again, things start to go wrong. First, I cannot replug and reconnect to them - konqueror crashes if I try to do so. Second, the whole /mnt/ directory becomes inaccessible once I've unplugged one.
I'm sure the answer lies in how they are defined in /etc/fstab. Googling has come up with many different "fixes"; I've not yet found one that works.
I've tried the following in /etc/fstab:
/dev/uba1 /mnt/uba1 vfat loop,noauto 0 0
/dev/ubb1 /mnt/ubb1 vfat loop,noauto 0 0
directly under the hard drive definitions. That would not work unless they were connected at boot-up.
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
/dev/uba1 /mnt/uba1 vfat noauto,users,exec,umask=022 0 0
directly under the hard drive definitions. That didn't work at all.
devfs /devfs devfs defaults 0 0
/devfs/ub/a/part1 /mnt/uba1 auto rw,user,noauto 0 0
Didn't work at all.
And then, towards the top of fstab, directly below the floppy drive set:
usbfs /proc/bus/usb usbfs devmode=0666 0 0
/dev/uba1 /mnt/uba1 vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/ubb1 /mnt/ubb1 vfat defaults,user,noauto,showexec,umask=022 0 0
and then instead of the second and third lines above,
/dev/uba1 /mnt/uba1 vfat loop,noauto 0 0
/dev/ubb1 /mnt/ubb1 vfat loop,noauto 0 0
I'm presently using the last one above, and I get one go at plugging in and accessing the device. Thereafter, it has to stay plugged in till shutdown, or the machine gets very stroppy.
Where am I going wrong?
-
Some more experimentation: DMESG is my friend...
If I unplug uba1 after I've opened it in konqueror (and closed konqueror), then plug it back in, its going and coming are seen, and it is renamed ubc1 (ubb1 still being present).
So the problem seems to be that the resources aren't being released when a USB device is removed.
I tried to "unmount" before unplugging, both via Konqueror and a root terminal; the answer both times was "device is busy".
Similar Threads
-
By turbine in forum Hardware & Booting
Replies: 0
Last Post: 03-29-2010, 12:11 PM
-
By Markus in forum Tips and Tricks
Replies: 20
Last Post: 04-14-2006, 12:18 AM
-
By Israel in forum General Support
Replies: 5
Last Post: 12-25-2005, 12:44 PM
-
By giant_toaster in forum Hdd Install / Debian / Apt
Replies: 7
Last Post: 11-21-2005, 08:30 PM
-
By Chris in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 02-17-2003, 08:27 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$49.99

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

TP-Link TL-SG1048 48-Port Gigabit Rackmount Switch New Factory Sealed
$199.99

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99

TP-Link TL-SG2210P 10-Port Gigabit Smart Switch w/ 8-Port PoE+ NO AC SKU 25597
$36.98

Arista DCS-7050SX-64-R 48P 10GbE SFP+ 4P 40GbE QSFP+ RA Switch
$115.00

Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts
$69.00

Linksys LGS328MPC 24-Port Managed Gigabit PoE+ Switch with 4 10G SFP+ Uplinks
$224.95

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch
$46.99