LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 09-18-2005, 11:54 AM   #1
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Rep: Reputation: 15
Exclamation usb stick automount


Hi ..
I can mount a USB memory stick as a super user (su) in /etc/fstab :

{mkdir /mnt/USB}
{vim fstab }
and i add :
{/dev/sda1 /mnt/USB vfat rw,user,noauto 0 0}

Having done this i can restart the computer ,connect the USB and it works without the need to mount it again.( Before i was mounting all the time using {mount -t vfat /dev/sda1 /mnt/USB} ...)

However when i disconnect the USB without {umount /mnt/USB} i cannot mount it again unless i restart the PC again. (i tried mount as before and that was not working either)

So my question : Is there a way to plug and unplug the USB without having to {umount} every time?

Thanks in advance
 
Old 09-18-2005, 12:03 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
If you're using the latest version of any major distro out there, every USB device should automount. What distro are you using? What version?
 
Old 09-18-2005, 12:42 PM   #3
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
i forgot to give this info..
I am using Debian which i downloaded from http://www.debian.org/CD/netinst/ with kernel 2.6.8..and the automount is not set by default...what do i do now?

Last edited by mfrangos79; 09-18-2005 at 02:24 PM.
 
Old 09-18-2005, 03:19 PM   #4
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
Have you installed the hotplug package?
 
Old 09-18-2005, 05:01 PM   #5
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Exclamation

Yes i tried to install it again now with apt-get ...and it says that i already have the newest version....

Last edited by mfrangos79; 09-18-2005 at 05:02 PM.
 
Old 09-18-2005, 05:14 PM   #6
MikeGS
LQ Newbie
 
Registered: May 2005
Location: New Zealand
Posts: 8

Rep: Reputation: 0
I had problems with automounting a USB stick with FC3, kernel 2.6.9 - sometimes it worked and sometimes (mostly) it didn't.

I recently upgraded to kernel 2.6.12 and since that time the USB stick has had no problems - not a single failure to automount.

Mike.
 
Old 09-18-2005, 05:34 PM   #7
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
I dont know how to update the kernel..is there a way to upgrade it using apt-get easily?

Last edited by mfrangos79; 09-19-2005 at 09:56 AM.
 
Old 09-19-2005, 12:02 AM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
Quote:
Originally posted by mfrangos79
I dont know how to update the kernel..is there a way to upgrade it using apt-get eaily?
I've never tried recompiling a kernel myself, but here are some instructions.
 
Old 09-19-2005, 05:23 AM   #9
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
thanks i will try that later on today and i will let you know.. thanks again
 
Old 09-19-2005, 09:55 AM   #10
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
i have now Kernel 2.6.8-16 and again ... it seems that before unpluging the USB I have to unmount it always.. And of cource it has to be mounted in fstab ...


Last edited by mfrangos79; 09-25-2005 at 02:00 PM.
 
  


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
USB automount options JetJock Debian 1 06-15-2005 11:14 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
USB automount delta_simon Linux - Software 2 04-09-2005 04:36 AM
USB automount script longnam Slackware 1 03-29-2005 10:53 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM


All times are GMT -5. The time now is 08:50 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