LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-16-2005, 01:59 PM   #1
bcalder01
Member
 
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, 02:12 PM   #2
eternity2002
LQ Newbie
 
Registered: Jun 2004
Distribution: Debian Sarge 3.1
Posts: 3

Rep: Reputation: 0
Hi!

I post you my configuration of my windows-partition:
Code:
/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, 02:15 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Code:
/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
Tux,
 
Old 11-16-2005, 07:15 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Quote:
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, 05:48 AM   #5
p41elvis
Member
 
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: subdomain.company.ltd/sharename. 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,
Jethro

PS. I'm using Mandriva 2006
 
  


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


All times are GMT -5. The time now is 04:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration