LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-03-2005, 10:04 PM   #1
bernstein
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Rep: Reputation: 0
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
 
Old 04-03-2005, 10:18 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
Cheers,

mj

Last edited by mjrich; 04-03-2005 at 10:20 PM.
 
Old 04-03-2005, 10:19 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Is the mountpoint writeable?
 
Old 04-03-2005, 11:11 PM   #4
AndrewZorn
Member
 
Registered: Apr 2005
Posts: 108

Rep: Reputation: 15
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
what is all that extra stuff?
 
Old 04-03-2005, 11:37 PM   #5
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 04-04-2005, 12:37 AM   #6
bernstein
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 04-04-2005, 12:40 AM   #7
bernstein
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Hey mikshaw,

How would I effectively make the mount point writeable, I think that is the problem.
 
Old 04-04-2005, 12:47 AM   #8
bernstein
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 04-04-2005, 01:44 PM   #9
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Code:
chmod g+rw /mnt/hda*
Cheers,

mj
 
  


Reply



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
editing /etc/fstab Mad Malc Linux - Newbie 6 09-19-2005 01:25 AM
Editing etc/fstab- yet again:-) hitest Slackware 7 04-21-2005 12:50 PM
Editing fstab jodef Yoper 4 11-27-2004 09:06 AM
editing the etc/fstab firefightin4fun Linux - Newbie 8 09-20-2003 10:53 PM
Fstab editing Ando Linux - General 4 06-29-2003 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:28 PM.

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
Open Source Consulting | Domain Registration