PDA

View Full Version : Writing to files from another Linux installation



thoroughfare
05-21-2004, 09:33 PM
Hi,

I've just installed RedHat9, but I'm having some problems with X config. I'm trying to use knoppix to edit the file (on /mnt/hdb1), but obviously I can't write to the file as I don't have the correct permissions since it's a different linux installation.

How can I gain permission to write to the file? Is there someway I can 'login' to the filesystem on hdb1?

Many thanks,
Matt :)

probono
05-24-2004, 05:51 PM
First, you must mount the filesystem writeable, for example:


sudo mount /mnt/hdb1 -o remount,rw

Second, you must edit the file as root, for example type this in konsole:

sudo mcedit /mnt/hdb1/etc/somefile

probono

thoroughfare
05-24-2004, 07:15 PM
Thank you! :)

Matt