LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Detecting Pen Drives (https://www.linuxquestions.org/questions/linux-newbie-8/detecting-pen-drives-577837/)

raghuveerbabu 08-17-2007 01:10 PM

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..

stress_junkie 08-17-2007 03:40 PM

That's what the hotplug component does.

Bye.

saikee 08-17-2007 05:24 PM

Just type at a terminal
Code:

sudo fdisk -l
and you will see it shown.

jiml8 08-17-2007 10:21 PM

THis thread might help you.

http://www.linuxquestions.org/questi...d.php?t=565536

saikee 08-18-2007 04:16 AM

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
and it will disappear in front of my eyes.

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.

jiml8 08-19-2007 04:19 PM

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.

Boow 08-19-2007 06:38 PM

When I had ubuntu it automounted mine.


All times are GMT -5. The time now is 02:08 AM.