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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-17-2004, 02:20 AM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 12
Rep:
|
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
|
|
|
06-17-2004, 06:52 PM
|
#2
|
Member
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223
Rep:
|
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.
|
|
|
06-17-2004, 09:09 PM
|
#3
|
Member
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276
Rep:
|
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.
|
|
|
06-18-2004, 11:47 PM
|
#4
|
Member
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323
Rep:
|
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
|
|
|
06-19-2004, 03:20 AM
|
#5
|
Member
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223
Rep:
|
Will that work if the usb-device is inserted after booting ?
|
|
|
06-19-2004, 01:49 PM
|
#6
|
Member
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323
Rep:
|
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"
|
|
|
08-05-2004, 01:42 PM
|
#7
|
Member
Registered: Jun 2004
Location: Wheaton, IL
Distribution: trying to get FC4 to work
Posts: 46
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 08:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|