LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Really easy fstab question (https://www.linuxquestions.org/questions/linux-newbie-8/really-easy-fstab-question-383731/)

bcalder01 11-16-2005 12:59 PM

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!!

eternity2002 11-16-2005 01:12 PM

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

tuxrules 11-16-2005 01:15 PM

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,

jschiwal 11-16-2005 06:15 PM

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.

p41elvis 11-22-2005 04:48 AM

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


All times are GMT -5. The time now is 07:17 AM.