-
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

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

SK Hynix 32GB 2RX4 PC4-2666V DDR4 RDIMM Server Memory RAM, HMA84GR7AFR4N-VK
$169.95

SMART(Micron)SafeStor 32GB(1X32GB) 1RX4 NN4-3200AA(DDR4) HPE Server Memory
$159.98

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98

Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB
$124.95

16GB Total of SK hynix PC3L-12800S 2 sticks of 8GB each = 16GB Laptop Memory
$27.95

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

MTA36ASF4G72PZ-2G9E2 MICRON 32GB (1X32GB) 2RX4 PC4-2933Y MEMORY
$229.00

Windows 11 Pro Install/Recovery/Repair USB Flash Drive
$35.00

Micro SD Adapter To SD HC SDHC Memory Card Adapter Reader NEW
$1.39