LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-21-2007, 10:09 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
USB drive won't automount


I am running Slackware 12 with kernel 2.6.23.8 and using an external hard drive as an extra ext3 partition. I setup /etc/fstab to automount this drive automatically at boot with the following command:

/dev/sda1 /mnt/mp3 ext3 defaults 0 0

This computer moves too fast to read the boot messages, but I examined dmesg and /var/log/messages and found nothing that indicates an error. The problem is that sda1 is not getting mounted on boot. I can manually mount this drive with:

mount /dev/sda1 /mnt/mp3

Why won't this drive automount?
 
Old 11-21-2007, 10:41 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Just want to make sure on some things. With the newer kernels many IDE controlers are using pata to sata mode drivers which in older kernels IDE were seen as /dev/hdXX and new kernels use /dev/sdXX. So I am curious as to what the system sees with the USB drive plugged in. Post ouptu of this command as root.
/sbin/fdisk -l

Brian
 
Old 11-22-2007, 07:19 AM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
root@LinuxHippy:~# fdisk -l

Disk /dev/hda: 20.0 GB, 20020396032 bytes
16 heads, 63 sectors/track, 38792 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 19146 9649552+ 83 Linux
/dev/hda2 19147 38292 9649584 83 Linux
/dev/hda3 38293 38792 252000 82 Linux swap

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9729 78148161 83 Linux
/dev/sda2 9730 19457 78140160 83 Linux

I have 2 partitions on each drive and 1 swap on the hard drive.

Last edited by linuxhippy; 11-22-2007 at 07:20 AM.
 
Old 11-22-2007, 07:48 AM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
You could also try the command #blkid, that may help to see what is going on. I'm assuming you've made your user a member of plugdev in /etc/group.
 
Old 11-22-2007, 08:08 AM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by hitest View Post
You could also try the command #blkid, that may help to see what is going on. I'm assuming you've made your user a member of plugdev in /etc/group.
I only want my user to have read and execute access to this drive. Do I have to add to plugdev for this?
 
Old 11-22-2007, 08:13 AM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by linuxhippy View Post
I only want my user to have read and execute access to this drive. Do I have to add to plugdev for this?
I'm fairly certain that for automount to happen your user needs to be a member of plugdev.
Not sure if you need plugdev for just read and execute.
I'll let someone else answer that one:-)
 
Old 11-22-2007, 11:30 AM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Maybe placing the auto option on the fstab line for the mount might do it.
Other than that leave the fstab alone and add the mont command you use to mount in /etc/rc.local.

Brian
 
Old 11-22-2007, 11:58 AM   #8
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by Brian1 View Post
Maybe placing the auto option on the fstab line for the mount might do it.
Other than that leave the fstab alone and add the mont command you use to mount in /etc/rc.local.

Brian
I was thinking I could just add the mount command to /etc/rc.local...but will it be file checked?
 
Old 11-22-2007, 11:59 AM   #9
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
I bet this is a problem with the "mount" command happening before "udev" is launched and the corresponding USB mass storage modules loaded. The error would appear in the virtual terminal but not in /var/log/messages or "dmesg". Try to put the "noauto" keyword in the fstab line and add the mount command to rc.local and report results.
 
Old 11-22-2007, 03:40 PM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Anyway, it's bit off topic but I always wondered how to check those virtual terminal messages.
 
Old 11-22-2007, 06:15 PM   #11
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by rg3 View Post
I bet this is a problem with the "mount" command happening before "udev" is launched and the corresponding USB mass storage modules loaded. The error would appear in the virtual terminal but not in /var/log/messages or "dmesg". Try to put the "noauto" keyword in the fstab line and add the mount command to rc.local and report results.
ok-how do I know if it would get checked by fsck?
 
Old 11-22-2007, 06:42 PM   #12
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
it automounts good now...I just want the drive to be checked/repaired on boot if there is a power failure. I put this in /etc/fstab:

/dev/sda1 /mnt/mp3 ext3 noauto,defaults 0 0


And then I put this in /etc/rc.d/rc.local

mount /dev/sda1 /mnt/sda1
 
Old 11-22-2007, 10:36 PM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Linuxhippy, do you have usb support compiled as modules or directly into the kernel?
 
Old 11-23-2007, 05:16 AM   #14
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by Alien_Hominid View Post
Linuxhippy, do you have usb support compiled as modules or directly into the kernel?
compiled as modules.
 
Old 11-23-2007, 09:59 AM   #15
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
glad to see you have it working. I forgot you were using Slackware and just thought Redhat type when I seen your sig to the left. At any point you have it working. There seems to be some odd stuff with the 2.6.23 kernels and the way some items are started up in the runlevels be seeing weird stuff like this everywhere and on many distros.

Brian
 
  


Reply



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 Does Not Automount (GNOME) carlosinfl Debian 12 02-12-2009 09:21 PM
automount external USB drive unknownmosquito Linux - Hardware 5 06-08-2007 05:39 PM
USB Flash Drive will not automount drlinux VectorLinux 6 04-19-2007 04:47 PM
automount of usb drive konramesh Linux - Hardware 1 12-02-2006 10:16 PM
USB Pen Drive no automount in Suse 10.0 litlmary SUSE / openSUSE 1 05-25-2006 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration