Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-06-2003, 07:49 PM   #1
Registered: Aug 2003
Location: P'boro, UK
Distribution: Fedora Core 1 (Yarrow)
Posts: 87

Rep: Reputation: 15

OK, I have a few friends who use USB keys (and hope to join them soonish). This is really quite trivial. I know how to mount the keys (thanks to Google ) using::
mount -t vfat -oumask=0000 /dev/sda1 /mnt/usbkey

However, I would like to automount them when they are plugged in (ala CD-ROMs and floppy drives) and I was wondering if anyone could give me some advice.

Old 09-06-2003, 10:31 PM   #2
Registered: Aug 2003
Location: Texas
Distribution: Fedora Core 2
Posts: 71

Rep: Reputation: 15
I'm not sure if you can make the keyring automount in Red Hat 9 simply. Since these devices are USB, it requires some hot plug scripting to work properly, and I'm not sure that can be done automatically without writing some custom scripts. What you can do however is add a line like this to your /etc/fstab file:
/dev/sda1 /mnt/usbkey vfat noauto,user 0 0

next create a link to /dev/sda1 on your desktop (ie KDE). Then you can mount/unmount the drive with your mouse.

BTW I like the poem at the end of your signature. Who's the author?
Old 09-06-2003, 11:56 PM   #3
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
I havn't figured out how to do it yet. I'm using Slack8.1, not sure whether it's worth me upgrading or no, seeing that my Linuxbox is a 200mhz POS. Hopefully I'll be able to put Linux on a newer box when we get one.

Hey, do you know how to get the two modprobes (usb-storage & usb-uhci(?)) to autoload? Right now I have to type both in the console before I can mount my usb keys.... Or did RH9 just make it easier for you?
Old 09-07-2003, 11:39 AM   #4
Registered: Aug 2003
Location: Texas
Distribution: Fedora Core 2
Posts: 71

Rep: Reputation: 15
I have the line I listed above in my fstab file for a usb 2.0 hard drive and it works fine. The modules were loaded automatically for me, buy you should be able to make them load automatically. Check the conf.modules/modules.conf file in your /etc directory to see if you have an alias for it. If not, you may want to add one. Also make sure the dependencies are set up in the /lib/modules/<kernel-specific>/modules.dep file.
Old 09-08-2003, 02:44 AM   #5
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30

I might be wrong, but can't you edit your /etc/auto.misc file to mount your USB drive when you access it? You could have it mount when you try and access your key drive, and then unmount itself after however long you want?

Old 09-09-2003, 01:16 PM   #6
LQ Newbie
Registered: Aug 2003
Location: Marshall, TX
Distribution: RedHat 9
Posts: 7

Rep: Reputation: 0
USB key drive

I'm a newbie myself, but I found this link that helped me get my USB key working with Redhat9. Sorry if this is no help, I'm just trying to give back to the community that has helped me so kindly. Try this article if you're having problems with USB thumb drives.,00.asp
Old 09-09-2003, 02:08 PM   #7
LQ Newbie
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: SuSe 8.2 Personal Ed
Posts: 21

Rep: Reputation: 15
Not much to add, in SuSe 8.2, the USB key loaded onto KDE fairly easily as sda1 and a desktop icon is listed. The same can not be said for Gnome.

In KDE, the key seems to load automatically, I have left it in the USB port at home and have turned the machine off several times since leaving it, and it always comes up the same in kde. Its always absent in Gnome.


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
USB Key Darkness-Inc Linux - Hardware 3 06-16-2005 11:58 PM
USB LexarMedia 32MB Data-Key + KDE 3.2=USB/HD Access problems that_guy Slackware 0 02-03-2005 09:27 AM
USB key jackfigus Linux - Hardware 1 01-13-2005 02:47 PM
USB Key PhuckFonix Linux - Hardware 3 06-02-2004 08:10 PM > Forums > Linux Forums > Linux - Newbie

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

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