Editing fstab correctly
I am trying to change my hda from read-only to read-write, but I can't seem to correclly establish this in fstab. I've tried a few things like putting "rw" behind users and also at the end of the hd line. If anyone could help, here is what my fstab looks like currently:
/proc /proc proc defaults 0 0 /sys /sys sysfs noauto 0 0 /dev/pts /dev/pts devpts mode=0622 0 0 /dev/fd0 /mnt/auto/floppy auto user,noauto,exec,umask=000 0 0 /dev/cdrom /mnt/auto/cdrom auto user,noauto,exec,ro 0 0 /dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0 # Added by KNOPPIX /dev/hda1 /mnt/hda1 ext2 noauto,users,exec 0 0 Thanks in advance. bernie |
What do you want the (exact) permissions to be for hda1 ? Do you have another root partition, or is this just for a knoppix-only system ? Anyway, just replacing the options with "defaults,errors=remount-ro" should do the trick.
Code:
/dev/hda1 /mnt/hda1 ext2 defaults,errors=remount-ro 0 0 mj |
Is the mountpoint writeable?
|
when you are 'mounting' a drive, is this all you have to do, just edit the file? so removing it from teh file would unmount it?
mine appears as: Code:
/dev/sda1 /drives/windows ntfs ro,defaults,user,umask=0222 0 0 |
No !!!!!!!!!!!! :)
To mount or unmount a partition, you either need to issue the (un)mount command directly into a terminal (man mount), or have the partition mounted automatically at boot, or use some hotplug-like daemon to do it all for you. All of these look, to some extent or other, to the file /etc/fstab for instructions on which options/permissions to give which partition. Cheers, mj |
Oops. I meant to say I need user read-write permissions on hda3, which is just for multimedia files and such. What I did was I installed DSL on hda1, created a swap, then left hda3 for files. I've tried logging in as root and changing the perms through emelfm, but as soon as I login as user the ro perms are back. I'm quite lost here. I thought originally I could just login as root whenever I wanted to install progs (on hda1 where I installed dsl) and leave hda3 with user rw abilities. But if I implemented this strategy, would I have to mount hda1 just to use a program? Ok, all this is a little much for the original question, I really would just like to get my perms straight and I can figure the rest out on my own.
thanks for your time and thought. bernie |
Hey mikshaw,
How would I effectively make the mount point writeable, I think that is the problem. |
Oh yea:
My fstab looks like this now (installed to hd): /dev/hda1 / ext2 defaults,errors=remount-ro 0 1 proc /proc proc defaults 0 0 /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0 /dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0 # partitions found by dsl #/dev/hda1 /mnt/hda1 ext2 noauto,users,exec 0 0 #/dev/hda3 /mnt/hda3 ext2 noauto,users,exec 0 0 /dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0 # Added by KNOPPIX /dev/hda2 none swap defaults 0 0 # Added by KNOPPIX /dev/hda3 /mnt/hda3 ext2 noauto,users,exec 0 0 Ok, shew, done posting rapidly continuous threads. |
Code:
chmod g+rw /mnt/hda* mj |
All times are GMT -5. The time now is 08:47 PM. |