LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-17-2004, 10:39 PM   #1
asdfjkl
Member
 
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60

Rep: Reputation: 15
making drives mountable and writable by non-root users in fstab


Hi, as the subject states, I'm having problems mounting and writing to some of my drives, namely my windows hd, zip drive, and cdrom. I can mount the zip drive (the windows hd is mounted at bootup) and I can read them all as root. I would like to be able to mount and umount both the cdrom and zip, and to read and write to the windows drive (mounted at /windows). I'm pretty sure this has something to do with /etc/fstab. here's my file:

Code:
/dev/hdb5        swap             swap        defaults         0   0
/dev/hdb1        /                reiserfs    defaults         1   1
/dev/hdb6        /home            ext3        defaults         1   2
/dev/hda1        /windows         vfat        defaults         1   1 
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
/dev/hde4        /mnt/zip         auto        noauto,owner     1   1
do the numbers on the right dictate the read/write capabilites of the user?
 
Old 10-17-2004, 11:23 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
The numbers on the right are something else entirely (check the man page for fstab if you want to know the details - they're for fscking and backing up). For your cdrom and zip drive, try adding ",user" to the options section. This will allow regular users to mount and unmount that filesystem.
 
Old 10-17-2004, 11:31 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,310

Rep: Reputation: 139Reputation: 139
Changes:

/dev/hda1 /windows vfat defaults,umask=0 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/hde4 /mnt/zip vfat user,noauto,umask=0,defaults 0 0

You may also have to change the permissions on /dev/cdrom but try the above and see if it works and allows you to mount the cd drive. Is that an ide zip drive? Usb zip drives are usually designated /dev/sda4. The trailling digits designate the type of filesystem checks that are performed on boot and have nothing to do with permissions. Vfat(FAT32) should have a trailing "0 0". "User" is normally used to give ordinary users the right to mount, a right which is normally reserved for root. "Umask=0" is used to give ordinary users write permission to a FAT32 file system.
 
Old 10-18-2004, 10:05 PM   #4
asdfjkl
Member
 
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
Yes, hde4 is indeed an IDE zip drive. sorry I didn't specify that, i have tried changing the permissions in, say, konqueror as root(rightclick, properties, permissions), but that doesn't work.

Anyway, thank you both very much for the detailed replies. kilgoretrout, i will try your recommendations and reboot to test.
 
Old 10-19-2004, 07:59 PM   #5
asdfjkl
Member
 
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
works! thank you very much.
 
Old 10-19-2004, 10:10 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
asdfjkl; - congrats on solving the problem and thanks for posting back with the solution. That will be a huge help to any future readers with the same issue.

Also big thanks to CroMagnon and kilgoretrout for taking the time to respond. Thanks both of you -- J.W.
 
  


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 fat32 --> writable by all users jasone Linux - Newbie 3 12-14-2010 02:16 AM
Making a hard drive only writable to certain users, ro to everyone else. jon_k Linux - Software 3 05-23-2005 05:42 AM
Allowing other users than root to mount drives DarkPhoenix Linux - Newbie 6 06-25-2004 06:28 AM
raid modules loaded but no drives mountable KevinClarke Linux - Hardware 0 02-12-2004 06:33 AM
users other than root mounting drives general4172 Linux - Hardware 2 09-23-2003 08:02 PM


All times are GMT -5. The time now is 05:06 AM.

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