Detecting Pen Drives
Hi all,
I'm using Ubunty Feisty Fawn. Can any one tell me how to detect pen drives automatically in my system? Bye.. |
That's what the hotplug component does.
Bye. |
Just type at a terminal
Code:
sudo fdisk -l |
|
jiml8's way could be the proper way to get a USB pen drive detected and mounted but in Ubuntu that is what would happen if you
drop everything temporarily leaving the screen showing nothing but just the desktop, plug a USB pen drive in and in less than 15 second you should see it mounted automatically and show up in the desktop. Mine did just that in 10 seconds. Equally if I want to remove it (Ubuntu mounts as /media/1GB BACKUP) I type Code:
sudo umount /media/1GB BACKUP My experience is modern kerenls will repeatedly scan the USB ports and detect any attached device "automatically". Whether the USB device would be mounted automatically depends on the distro and also on a previous device names exist in /mnt or /media directories. The "fdisk -l" of my post #3 is a confirmation that it has been detected as a piece of hardware and given a device name. Say if the USB device is a raw hard disk it will "always" be reported in "fdisk -l" but cannot be mounted because it has not been formatted and has no filing system for mounting. |
I think there is some brand name dependence or some such on which pen drives get mounted. I think it depends on how they report themselves. My pen drive didn't get reported in a fashion that the system understood, so I wrote a rule for udev to tell the system how to do it. Before the rule, the pen drive was detected on the USB bus, but I had to manually mount it.
|
When I had ubuntu it automounted mine.
|
All times are GMT -5. The time now is 02:08 AM. |