LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-05-2008, 03:14 AM   #1
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Problems mounting usb external hard drive...


I'm having an issue while trying to mount my external hard drive. I keep getting the error "only root can mount /dev/sdb1 on /mnt/external" when I try to mount as a user.

This is my fstab...

Code:
/dev/sdb1 /mnt/external ext3 noauto,owner,group,rw  1   2
/dev/sdb1

Code:
brw-r----- 1 root disk 8, 17 2008-06-04 02:11 /dev/sdb1
/mnt/external

Code:
drwxrwxr-x 2 root cdrom 4096 2002-03-16 01:34 external
I also added GROUP="cdrom" to my /etc/udev/rules.d/50-udev-default.rules

Is there something I'm missing or doing wrong?
 
Old 06-05-2008, 03:19 AM   #2
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Quote:
Originally Posted by Linux~Powered View Post
This is my fstab...

Code:
/dev/sdb1 /mnt/external ext3 noauto,owner,group,rw  1   2
/dev/sdb1

Code:
brw-r----- 1 root disk 8, 17 2008-06-04 02:11 /dev/sdb1
/mnt/external
Change "owner" to "user" and everything should be ok. See man mount and man fstab.
 
Old 06-05-2008, 03:22 AM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
That worked.. thanks. I thought if I added a group that I'm in to the fstab that it would have worked.
 
Old 06-05-2008, 10:55 AM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
I think you would be interested in pmount.

Quote:
Originally Posted by SlackBuild README
pmount is a wrapper around the standard mount program which permits
normal users to mount removable devices without a matching
/etc/fstab entry.

The program also includes "pmount-hal" which reads information from
hal (device labels, mount options) and passes them to pmount.
Putting entries in /etc/fstab is fine and dandy, but you will see the limitations of doing so for removable devices the first time you pop in a device that uses a different file system or has multiple partitions (with varying file systems) that you need to access. Do note that you can also use pmount with non-removable devices if you whitelist them in /etc/pmount.allow.
 
  


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
Auto-mounting external NTFS USB hard drive. Cotobear Slackware 5 02-07-2010 02:46 AM
mounting external hard drive through usb lackita Linux - Hardware 6 02-25-2008 11:10 PM
USB External Hard Drive not mounting bkone Linux - Hardware 1 10-19-2007 10:45 AM
Trouble mounting external usb hard drive in openSuSe 10.2 birdofprey Linux - Hardware 3 04-19-2007 12:02 AM
Mounting root filesystem from an external USB hard drive? ChrisHart Linux - Laptop and Netbook 6 04-02-2005 10:49 PM

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

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