View Full Version : how to mount my allready mounted hda1 and hda5 to rw permis.
Capoeira
09-25-2003, 07:31 PM
Please help me i cant' do nothing i allready read all simulatenous topics ih this forum but i didn't find anything...
I am from Bulgaria I am a novice in LINUX so can you explain me like an how to for dummy step by step...
I try to edit fstab this is the only way i know by red hat but the file wont save so tell me another way...
stonent
09-25-2003, 11:48 PM
mount -o remount,rw /dev/hda1
:)
paradocs
09-26-2003, 09:09 AM
Hi all,
Thanks stonet & Capoeira.
I have been putting up with the same problem.
I usualy work for CD and do not use the hard dirve
but when I do it is not rw.
Keep two things in mind. First the script must run
as root so I add sudo to the front of the line.
If the device in not mounted, asking to remount
will not work. So the following lines in a startup
script will do the job:
sudo mount -o wr /dev/hda1
sudo mount -o remount,rw /dev/hda1
If you have a lot of partitions and hard drives
then you could update the file /etc/fstab
You could also use the sed command to look
at each line in /etc/fstab that has hd in it.
Then use s/exec 0/exec,rw 0/ to substitute the
second expression in place of the first.
sudo sed '/hd/s/noauto,users,exec 0/auto,users,exec,rw 0/' /etc/fstab >/home/knoppix/fstab
sudo mv -f /home/knoppix/fstab /etc/fstab
sudo umount -a
sudo mount -a
mkdesktophdicons
Best Wishes
paradocs
warning: hope I typed it correctly. Line one of the code is long
and must be kept as one line. The code is 5 lines long.
I am a beginner -- only I have been at it longer.
The stars -- I stole from the German forum. ;-)
Also, the desktop has hd icons of all hard drives and right clicking them pops up a menu where you can choose something like "change r/w permissions".
No need to be root, no shell magic, just simple click and run..
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.