Trashed MBR

Thomas Mondoshawan Tate plug-discuss@lists.PLUG.phoenix.az.us
Sun, 12 Aug 2001 20:24:30 -0700


--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

AACK!
One _SERIOUS_ problem there: if you try to use LILO from within a chroot'ed
environment, you'll trash your MBR again. Instead, execute LILO from outside
of the chrooted environment and specify which configuration file to use like
so:
	lilo -C /foo/etc/lilo.conf
=09
-- Mondoshawan

On Sun, Aug 12, 2001 at 08:07:51PM -0700, Rusty Carruth wrote:
> > =20
> > Is there a way to reconstruct the MBR from this info?
>=20
> I'll have to look at that a bit, for now I want to just answer
> the other thing.
>=20
> > If so, would that person or persons please advise.
> > =20
> > I was lucky, in that SuSE Linux 7.1 is on hda5, hda6 hda7
> > and I had a boot disk so that it is possible access SuSE.
> > And that is what makes it possible to send this request
> > for help.
> > =20
> > The Mandrake 8.0 has been installed on hda3 and I have
> > looked at it with SuSE. Now if I can get a boot disk for
> > it then it will be usable. And still correct the MBR.
>=20
> If the partitions are right, then just boot from your
> install CD (either directly or via boot floppy, and
> as soon as it gives the splash screen, hit F1 and then
> enter 'rescue' (followed by carriage return, of course).
>=20
> After it boots, I usually do this kinda thing:
>=20
> mkdir /foo
> mount /dev/hda1 /foo # (or wherever / for the broken system is)
> chroot /foo          # act like /foo is / (i.e. broken / is NOW actually =
/)
> mount -a	     # mount all the stuff in the fstab.
> lilo		# or whatever.
> umount <everything mounted in the  mount -a step>
> exit		# leave the chroot shell, so that /foo is now /foo
> umount /foo     # just to be safe
> reboot		# bye-bye
>=20
>=20
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't p=
ost to the list quickly and you use Netscape to write mail.
>=20
> PLUG-discuss mailing list  -  PLUG-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

--EVF5PPMfhYS0aIcm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7d0huYp5mUsPGjjwRAuqkAJ9Fpi32A3TK3vDJNPrZEYefaXT8pACfWcvn
wiXZdUJKvWn8foN0pP6EZsE=
=X/64
-----END PGP SIGNATURE-----

--EVF5PPMfhYS0aIcm--