LinuxQuestions.org
Help answer threads with 0 replies.
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 06-17-2004, 02:20 AM   #1
leecming
LQ Newbie
 
Registered: Jun 2004
Posts: 12

Rep: Reputation: 0
Auto mounting of USB devices


Hi,

I'm using a Knoppix->Debian HDD installation with kernel 2.4.26... I can't seem to get the system to automount USB devices such as a USB 2.0 flash memory or external hard drive? How do I do so?

Does it have something to do with hot plug and if so, how do I configure it?

Thanks in advance...
CM
 
Old 06-17-2004, 06:52 PM   #2
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
Maybe you could make a script watch for changes in:
cat /proc/scsi/scsi
and act according to the findings. Perl should do the job nicely for you.

Sorry for not describing a specific solution.
 
Old 06-17-2004, 09:09 PM   #3
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 31
This is what I did to get my FC2 box to recognize USB drives (It should be pretty close in Debian but I'm not sure).

1. Make a directory in which you will mount the filesystem. Something like /mnt/USB will work just fine.
2. Add this line to your /etc/fstab file:

/dev/sda1 /mnt/USB vfat noauto,users,rw 0 0

3. Plugin and enjoy.

With this setup (If I've remembered all the steps correctly) I can get my Jumpdrive, Digital Camera, and Archos MP3 player to mount when I plug them in.

After that if you wish you can make a link on your desktop. Using KDE just right click and Create New --> Device --> Hard Drive Device. Then configure the options to point to your /mnt/USB file.

Hope this helps.
 
Old 06-18-2004, 11:47 PM   #4
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 36
all you need to do is:
(1) cd /mnt
(2) mkdir usbdrive
(3) add to /etc/fstab
/dev/sdc1 /mnt/usbdrive vfat noauto,users,rw 0 0
(4) reboot (best)

Under Redhat 8.0, the USB Flash device is automatically installed
vi /var/log/messages and look for "flash" and :USB" (:set ignorecase first)

this message from Redhat Linux 8.0 Netscape 7.1 over cable modem

90% of the work done by Redhat, 5% by linuxquestions.org

thanks to my vendor Steve who sold me the USB 2.0 PCI card

Got help from linuxquestions.org
 
Old 06-19-2004, 03:20 AM   #5
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
Will that work if the usb-device is inserted after booting ?
 
Old 06-19-2004, 01:49 PM   #6
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 36
I'll have to try that.... today!

There is also a question : Should one dismount the device before unplugging?

I may have left out a step in my previous post.

Lower left arrow System Tools->Disk Managment->select the flas usb line and select "mount"
 
Old 08-05-2004, 01:42 PM   #7
Slyder42
Member
 
Registered: Jun 2004
Location: Wheaton, IL
Distribution: trying to get FC4 to work
Posts: 46

Rep: Reputation: 15
This was EXACTLY what I was looking to do. FC2 is running, I just need to transport data back and forth!!!!! You guys are awesome!
 
  


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
Mounting USB storage devices COKE CAN Debian 18 08-02-2005 02:14 AM
how to make mounting of USB devices flexible gunncyclopedia Linux - Hardware 2 04-21-2005 09:13 PM
mounting usb storage devices blues patitoconejita Linux - Hardware 7 03-29-2005 07:24 AM
Mounting USB Devices in MDK 10 smartfüd Linux - Newbie 5 04-13-2004 01:50 AM
mounting usb devices (red hat 9) ahilliar Linux - General 1 12-27-2003 06:51 PM


All times are GMT -5. The time now is 05:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration