| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 56724 | 2005-04-13 10:31:00 | User cant write to sda1. Fstab options? | Sam I Am (1679) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 344539 | 2005-04-13 10:31:00 | Hey Hey, I have just installed a new (bigger) archive drive on my FC3 box. As its a sata drive it uses /dev/sda1. I have formatted it using xfs. The problem is that I can get fstab set up so that the i (user) can mount the drive but cannot get it so that I can write to it. As root it works fine. I have tried umask=000 but when I try to mount the drive I get: [root@roxbox ~]# mount /new/ mount: wrong fs type, bad option, bad superblock on /dev/sda1, or too many mounted file systems Here is my fstab: # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 LABEL=/home /home ext3 defaults 1 2 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 LABEL=SWAP-hdc2 swap swap defaults 0 0 /dev/hdb3 /archive vfat auto,users,exec,umask=000 0 0 /dev/hda1 /mnt/windows ntfs ro,uid=sam,umask=555 0 0 /dev/hdd /media/cdrecorder auto /dev/sda1 /new xfs auto,users,exec,umask=000 0 0 pamconsole,exec,noauto,fscontext=system_u:object_r :removable_t,managed 0 0 I've reached the end of my teather. Thought I would try someone elses :) |
Sam I Am (1679) | ||
| 344540 | 2005-04-13 11:07:00 | try (at bash) mount /dev/sda1 /new theres a space between sda1 and /new then ls -al /new just to see syntax is mount <what to mount> <where to mount> or mount device dir more info here www.rt.com |
beama (111) | ||
| 344541 | 2005-04-13 11:28:00 | I cant mount it as root just fine using either auto in fstab or manually. I can even mount it as a user. I just cant get the permissions right for the user to write to it. Thanks anyway :) |
Sam I Am (1679) | ||
| 344542 | 2005-04-13 11:38:00 | have you tried as root and with the drive mounted chmod 777 /new (I know its basicly the same as umask 000) then try writing to /new as nonroot user |
beama (111) | ||
| 344543 | 2005-04-13 11:49:00 | Not quite, try: chmod -R 777 /new |
Chilling_Silence (9) | ||
| 344544 | 2005-04-13 11:55:00 | never had to use -R in the past Chill but Im sure the day will come :) | beama (111) | ||
| 344545 | 2005-04-14 00:36:00 | -R = Recursive Otherwise it'll only set permissions for the directory in which you specify. Unless your distro uses -R by default with chmod. Chill. |
Chilling_Silence (9) | ||
| 344546 | 2005-04-14 02:31:00 | It's a Bad Idea to change things like umask settings. The default 022 worksand is chosen for very good reasons. When you make a mount point, you will usually be root, so it will get the default permissions for root. So you might need to change the mount point's permissions to allow ordinary users access. The umask will automatically give the 755 typical permissions to any subdirectories created in it. You don't need to have the new disk user mountable ... when you use the "auto" option in its fdisk entry, it will be loaded at boot time. Then all users have read/execute rights to its directories unless you chmod them. |
Graham L (2) | ||
| 344547 | 2005-04-14 08:44:00 | You know I could have sworn I at the very least considered chmod at some stage. :D Anyways it worked and thankyou very much. :thumbs: You don't need to have the new disk user mountable ... when you use the "auto" option in its fdisk entry, it will be loaded at boot time. Then all users have read/execute rights to its directories unless you chmod them. Hmmm, perhaps you could come and convince my fedora install this. The way I read man fstab you are correct. The default settings include rw which means useres can read and write. But I couldnt. No way, no how. In my experience once root creates a dir you have to chmod it to let users read/write. YMMV Then again if I was so damned clever I would have worked it out myself :p |
Sam I Am (1679) | ||
| 344548 | 2005-04-15 03:58:00 | That error message (in response to your mount command) in your first posting probably indicated that the disk had automatically been mounted at boot time . ;) (The mount command with no options will show what disks are mounted . ) The "RW" mount option means that users with the appropriate permissions for a directory can read and write on the disk . If it's mounted RO, no-one can write to it . " . . . once root creates a directory, you have to chmod it . . . " I thought that's what I said? ;) |
Graham L (2) | ||
| 1 | |||||