Tiny Core Base > TCB Talk
Why don't usb flash devices auto mount?
bigpcman:
Just curious as to why when plugging in a USB flash device it is recognized as a "device" and added to /mnt but it is not mounted. What would I have to change to get this to happen automatically?
Also, I have noticed a super trivial carriage return is required after plugging a USB device in to get terminal control back.
curaga:
Because that would be rude, and for many would not be wanted. Think the autorun on Windows systems.
To get it to happen automatically, you could add "mount -a" to the end of rebuildfstab
bigpcman:
--- Quote from: curaga on June 09, 2009, 11:19:27 AM ---Because that would be rude, and for many would not be wanted. Think the autorun on Windows systems.
To get it to happen automatically, you could add "mount -a" to the end of rebuildfstab
--- End quote ---
Thanks. Sometimes I just can't help myself and will be rude. I assume this will auto mount all devices "plugged in" to any device port. Let's say I wanted to limit this behavior to just USB devices. I don't want to auto mount CDs.
curaga:
If your drives are fat32, "mount -a -t vfat" only mounts those.
If you wish to restrict things better, just parse /etc/fstab or the directories in /mnt for desired devices.
bigpcman:
--- Quote from: curaga on June 09, 2009, 11:19:27 AM ---To get it to happen automatically, you could add "mount -a" to the end of rebuildfstab
--- End quote ---
I just tried this and it didn't mount sdb1 after I plugged the device in.
The device is present and I can manually mount and unmount it.
I'm using microcore 2.0 with core extensions.
Navigation
[0] Message Index
[#] Next page
Go to full version