LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2007, 02:10 PM   #1
raghuveerbabu
LQ Newbie
 
Registered: Aug 2007
Posts: 20

Rep: Reputation: 0
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..
 
Old 08-17-2007, 04:40 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
That's what the hotplug component does.

Bye.
 
Old 08-17-2007, 06:24 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Just type at a terminal
Code:
sudo fdisk -l
and you will see it shown.
 
Old 08-17-2007, 11:21 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
THis thread might help you.

http://www.linuxquestions.org/questi...d.php?t=565536
 
Old 08-18-2007, 05:16 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
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.

Last edited by saikee; 08-18-2007 at 05:55 AM.
 
Old 08-19-2007, 05:19 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
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.
 
Old 08-19-2007, 07:38 PM   #7
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
When I had ubuntu it automounted mine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pen drive not detecting ramakant_it_student Ubuntu 1 10-07-2006 02:38 AM
Pen Drives not being recognized minm Linux - Hardware 13 07-24-2004 02:11 AM
External Drives (iPod and Pen Drives) dhbiker Slackware 13 04-08-2004 07:36 AM
pen drives JROCK1980 Linux - Hardware 3 02-23-2004 01:17 PM
need an idea on detecting USB pen present in user program captainstorm Programming 4 11-26-2003 08:40 AM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration