On Tuesday 23 October 2007 19:14:31 Hans Linux wrote:
> if fdisk -l, i get the info :
> /dev/sda1 => Linux Swap / Solaris
> /dev/sda2 => Linux
>
> then i give it a command :
> mount -t reiserfs -o remount,rw /dev/sda2 /mnt
>
> i get this error :
> mount: /mnt not mounted already, or bad option

I assume that /dev/sda2 is your root partition (the one that 
contains /etc/passwd and /etc/shadow). Are you sure that it is not already 
mounted read-write? Just type

  mount

and it will show the current state of /dev/sda2. If it says something like

  /dev/sda2 on / type reiserfs (rw)

then it is already writable (notice the "rw"). In this case you should be 
able to reset the root password using the "passwd" command.

If /dev/sda2 is mounted read-only, then you have to remount it read-write. 
In this case the command should be

  mount -t reiserfs -o remount,rw /dev/sda2 /

(note that the mountpoint is /, not /mnt).

If this doesn't work, could you please post the output of the "mount" 
command?

Hope this helps,

  Lutz

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to