LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2005, 01:36 PM   #1
haldara
LQ Newbie
 
Registered: Jul 2003
Posts: 19

Rep: Reputation: 0
/etc/fstab issues


I have a USB external hard drive that I'm trying to get working with Linux.

First, I modified my /etc/fstab file:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults 0 2
/dev/hda5 none swap sw 0 0
/dev/hdb /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

# external usb hard drive
/dev/sdb1 /mnt/usbdrive ntfs defaults,user 0 0

I included the "user" option specifically so that I would be able to access the device without the root account. When I mount it as root, it works great and I am able to access all the files.

However, my problem is that although it lets me mount as a normal user, the owner and group of the /mnt/usbdrive both remain root. Now I'm not quite sure how this works, but I figured that these would automatically be set depending on who was mounting the device. What's worst, even if I do change the ownership and group while the device is unmounted, it is automatically set back to root as soon as I mount again! What's going on?

Thanks.
 
Old 02-08-2005, 01:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
ntfs is going on ... and that's another question that's
very commonly asked and answered. In brief:


Code:
man mount
/Mount options for ntfs
Have a close look at UID and GID ...


Cheers,
Tink
 
Old 02-08-2005, 01:53 PM   #3
haldara
LQ Newbie
 
Registered: Jul 2003
Posts: 19

Original Poster
Rep: Reputation: 0
sweet, works perfectly.

thanks!
 
  


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
fstab issues after installation Fjord Fedora - Installation 6 11-04-2005 07:21 AM
Whacky FSTAB issues?!?1 raid517 Linux - Software 2 10-05-2005 10:32 AM
fstab issues djljjm Linux - Newbie 2 04-11-2005 05:18 PM
kernel 2.6.0 issues with fstab? danielw Linux - General 3 12-31-2003 04:51 PM
Mandrake 9.1 fstab Issues Celeron463 Linux - General 3 08-25-2003 10:37 AM


All times are GMT -5. The time now is 10:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration