LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-27-2004, 10:24 AM   #1
nakedpretzel
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
when I mount my usb hard drive, I have to be root to access it?


I have gone through everything I can think of. I have edited fstab to add a uid to my user. I have tried 'chmod /mnt/usb' and 'chmod 755 /mnt/usb'

But nothing seems to work. I can't access it via 'sudo' either. I MUST be 'su'ed in as root.

Anyone have any idea?

fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda2 / ext3 errors=remount-ro 0 1
/dev/hda3 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/cdrom /cdrom iso9660 unhide,ro,user,noauto 0 0
/dev/hda4 /storage ext3 defaults 0 0
/dev/sda1 /mnt/usb vfat unhide,user,noauto 0 0

mtab when mounted:

/dev/hda2 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
/dev/hda4 /storage ext3 rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/sda1 /mnt/usb vfat rw 0 0


Anyone have any info?

Thanks

Luke
 
Old 02-27-2004, 10:36 AM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Change
Code:
/dev/sda1 /mnt/usb vfat unhide,user,noauto 0 0
to
Code:
/dev/sda1 /mnt/usb vfat unhide,user,noauto,umask=000 0 0
 
Old 02-27-2004, 09:47 PM   #3
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If you haven't spotted the dfferenece in Nis post. Nis added umask=000. This setting make sure that when you write a file or directory to the medium it will have a permission of 777. I suggest not putting an entry in the fstab for USB devices because every time you connect and disconnent a USB device it changes where the device is assign to. Its best to use hotplug to mount the device by detecting the device ID and manufacture then mount to the directory that you desire.
 
  


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 mount hard drive rpetrenko Suse/Novell 2 10-07-2005 12:49 AM
External Hard Drive --No Access as USER only ROOT (10.1) 1kyle Mandriva 1 10-31-2004 09:09 AM
USB hard drive, how do I mount it? Oxyacetylene Debian 11 10-24-2004 06:00 PM
Troubles with mounting hard-drive. Cannot even mount or access in root. eBopBob Linux - Hardware 4 08-19-2004 06:09 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM


All times are GMT -5. The time now is 04:47 PM.

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