Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-16-2005, 12:59 PM   #1
Registered: Nov 2003
Location: Mexico
Distribution: Debian sarge (x86 & PPC), Ubuntu Breezy
Posts: 42

Rep: Reputation: 15
Really easy fstab question

... that I can't seem to find the answer to anywhere.

I am finding in Ubuntu Breezy that my Windows partitions are mounting such that the regular user can't access any files, only root can. I then unmount them and issue this command to remount them:

sudo mount -t <filesystem> /dev/<device> -o uid=bcalder /media/<mountpoint>

for instance:

sudo mount -t vfat /dev/hda5 -o uid=bcalder /media/hda5

... and all is well.

My question is: How do I specify this in /etc/fstab? Can anyone recommend an 'fstab for Dummies'? The manpage made my eyes cross.

Thanks in advance!!
Old 11-16-2005, 01:12 PM   #2
LQ Newbie
Registered: Jun 2004
Distribution: Debian Sarge 3.1
Posts: 3

Rep: Reputation: 0

I post you my configuration of my windows-partition:
/dev/hda1       /media/xp       ntfs    ro,user,auto    0       2
Adding this to your /etc/fstab will mount this partition with booting (option "auto"), normal users will be able to (u-)mount it (option "user") and here my windows-partition is formated with xp, so it is mounted "ro"= read-only. I think you will be able to simply copy this and it will fit. Good luck!
Was is what you wanted?

cu eternity2002
Old 11-16-2005, 01:15 PM   #3
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 61
/dev/hda5 /media/hda5 <fs-type> auto,users,rw,umask=002 0 0
This should do it for you. The above entry has options (auto,users,rw,umask=002) which will mount the drive automatically, will be accessible by all users, users would be able to read write and directories would have 755 permissions.

Depending upon the fs-type you would have tweak rw option. For NTFS, I would almost always be ro
Old 11-16-2005, 06:15 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
sudo mount -t <filesystem> /dev/<device> -o uid=bcalder /media/<mountpoint>
You could add the uid=bcalder option in the /etc/fstab entry. This will allow you access. This can also allow you to have exclusive access to the drive. If this is a FAT32 partition, then you can have rw access. Also consider using the fmask and dmask options so that you can mask out the x bit for files but not directories.
The man page for mount will give you details on the options. Also, looking in the info manual for coreutils may have infomation on permissions.
Old 11-22-2005, 04:48 AM   #5
Registered: Apr 2004
Location: Rotterdam
Distribution: Mandriva 2006 Community Edition
Posts: 62

Rep: Reputation: 15
Hi there,

I'm kind of new to this kind of thing, but I have a similar problem: at startup I want to automaticly mount a share which I can reach using the following adres: The server which hosts this share runs on FreeBSD and is sharing it using Samba. How can I modify fstab (or anything else) so that the share automaticly gets mounted as ~/share.

Thanks in advance for any help.

Best regards,

PS. I'm using Mandriva 2006


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
Easy Question aeuzent Linux - Newbie 2 05-21-2005 08:06 AM
easy question Scruff Mandriva 3 08-28-2003 07:34 PM
easy question 5amYan *BSD 4 04-25-2002 04:09 AM
Easy Question marlaina1 Linux - General 1 12-28-2001 07:02 AM
An Easy Question southernman Linux - General 1 12-12-2001 06:41 PM > Forums > Linux Forums > Linux - Newbie

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