Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-25-2007, 10:37 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
Automounting a USB Harddrive

Hi there,

I am currently in the midst of sorting out my knoppmyth system and have a question regarding the automounting of a usb harddrive at boot time.

I have an external USB2 harddrive on which is a lot of music. As a superuser I have editted my fstab file by adding the following line

/dev/sda1 /myth/music vfat defaults,user,auto,showexec,umask=022 0 0

Now when i boot up my system if i use a shell to browse to the mount point my files/folder are not shown. However if i either

1) use a shell as superuser to run the command 'mount -a'
2) using konqueror right click on the drive icon and select 'mount'

then the system can see all of the files and directories on my external harddrive.

This is quite annoying as at the moment before i can listen to my music i have to drop out of knoppmyth and then restart it. Is there a way of adding a command somewhere to be run during the boot sequence to ensure that i dont have to manually mount my drive before i can listen to my music.

Many thanks

Old 02-26-2007, 06:40 AM   #2
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
You could edit the file
And add vfat to the list of filesystems that should be automatically mounted.

mount_all_local() {
mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs \
-O no_netdev

mount_all_local() {
mount -a -t vfat,nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs \
-O no_netdev


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
Fedora Core 6 won't recognize second internal harddrive or usb harddrive Rockgod1969 Linux - Hardware 14 01-26-2007 01:03 AM
automounting usb drive with -noexec off Rohan_mk1 Linux - Software 0 12-13-2006 09:53 AM
automounting external usb sata hd sycamorex Slackware 1 09-17-2006 08:04 PM
how does usb automounting work? m_yates Ubuntu 1 12-24-2005 09:35 PM
usb automounting wi_slacker Slackware 6 05-05-2004 12:30 AM > Forums > Linux Forums > Linux - Distributions > Debian

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