Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-24-2003, 09:29 AM   #1
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
Question Automatically mounting a keyring usb flash device...

i want to automatically mount my keyring usb flash device when i plug it into a usb port.

At the moment hotplug finds the device and if i type:

mount /dev/sda1 /mnt/flash -tvfat

it'll work fine.

Except i want to elliminate the typing bit. I want to plug it in and then be able to "browse" the /mnt/flash directory.

Somone seems to have done it and i have followed his instructions but it doesnt seem to work.

In the hotplug docs it mentions certain env variables but they dont exist.

Anyone got any ideas on this?
Old 10-24-2003, 10:45 AM   #2
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Try adding a directory under mount eg flash (/mnt/flash) then add a line to your fstab ;
/dev/sda1 /mnt/flash vfat defaults,umask=000 00


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 a USB Flash Drive Garibaldi3489 Slackware 3 01-04-2005 09:09 PM
USB flash unmount: device busy mkivihar Linux - Hardware 4 11-20-2004 10:32 AM
Automatically Mounting USB Storage Devices??? nalmo Linux - General 6 08-13-2004 03:15 PM
mounting PCMCIA (compact flash) IDE device superbondbond Linux - Laptop and Netbook 1 02-02-2004 05:07 PM
Problems with USB Flash device Paul_assheton Linux - Hardware 13 04-17-2003 06:02 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration