RE: Disaster strikes
Just to clear up, in my earlier email I meant I could mount the drive rw
using your original advice (mount -o remount,rw /) but couldn't get the
changes to checkroot.sh to work.
I have since discovered I was making one of the changes in the wrong place,
you pointed this out as below.
Using the -t $roottype doesn't work, so I removed the $rootdev and
$fstabroot entries and this has resolved the issue.
My only concern now is if I do another apt-get dist-upgrade will this
re-occur? This is how the problem arose.
Thanks for your sage advice.
From: Joel Soete [mailto:firstname.lastname@example.org]
Sent: 28 July 2004 15:21
To: James Morris; email@example.com
Subject: RE: Disaster strikes
> -- Original Message --
> From: "James Morris" <firstname.lastname@example.org>
> To: <email@example.com>
> Date: Wed, 28 Jul 2004 10:04:34 +0100
> Subject: RE: Disaster strikes
> I have been trying a few things, can't get this to reboot with the root
> as rw.
Did you try to reboot in single -user mode (append option -s to your boot
cmd line at palo prompt;
at the prompt "enter root passwd or CTRL-D..." you enter your root passwd
and try the Thibaut tips:
"mount -o remount,rw /"
If you have some error message, can you send it?
> I have attached my original checkroot.fs which you sugested be edited
> following your instructions below (Attached email).
> I have provided the unedited version.
> if [ "$rootcheck" = yes ]
> # Ensure that root is quiescent and read-only before fsck'ing.
> if ! mount -n -o remount,ro $rootdev /
here either you add "-t $roottype" or you remove "$rootdev"
> echo -n "*** ERROR! Cannot fsck root fs because it is "
> echo "not mounted read-only!"
> # Remount root to final mode (rw or ro).
> mount -n -o remount,$rootopts,$rootmode $fstabroot /
and here either you add "-t $roottype" or you remove "$fstabroot"
> # We only create/modify /etc/mtab if the location where it is
> # stored is writable. If /etc/mtab is a symlink into /proc/
> # then it is not writable.
(just to be sure, I suppose that you reach to mount your root fs (/) in
rw mode starting from your cd or from another system to save your modified
If that's right and it failed again, can you put a "set -x" at the begining
of checkroot.sh (that put the script in trace mode) and if you have the
new opportunity to grabe the console output during your next try to boot,
it would nice that you post those new results.)
Tell us what?
Tiscali ADSL LIGHT, 19,95 EUR/mois pendant 6 mois, c'est le moment de faire