Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@gortel.phys.ualberta.ca>
Subject: Re: Getting aboot to boot without panic mounting root
Date: Tue, 18 Jan 2005 19:24:53 +0000 (UTC)	[thread overview]
Message-ID: <csjnq5$gbr$1@tabloid.srv.ualberta.ca> (raw)
In-Reply-To: +LMmTVNqoU7BFwhK@wookie.demon.co.uk

John Beardmore <wookie@wookie.demon.co.uk> wrote:
> 
> Maybe a dd too far...

Or maybe not enough.  One would have to dig through various
sources to check what is really tried and where.

> It looks as if that dd splats over the disk 
> label.

Well, yes.  That is why I wrote "before you install anything".
Disklabel sits on a sector zero, after that you have some gap
followed by a bootstrap loader you add there with swriteboot.
Partitioned part of a disk with file systems comes further down.
You may skip sector zero in dd if you are doing such things
on a "live" system but here we are coming into "don't do that
at home" area.

It goes without saying that for booting of that sort your boot
disk needs "BSD type" partitioning or your firmware, i.e. SRM,
will have no idea where to look for various bits and pieces
on that device.

> No matter -  that was trivially fixed.  None the less, the 
> original problem remains.  Curious !

Now you are trying to mount your root file system based on what
is found in what _looks like_ a superblock of your root file
system.  Quite far beyond what you zeroed out.  Either there is
something funny there or your partition table information is not
really correct.  At least some variants of fdisk, IIRC, and
maybe mkdisklabel too, were spooked and confused by old
leftovers and that is why I suggested to clobber a disklabel
location too.  With "recycled" disks a prudent course of action
is to "dd if=/dev/zero ..." all over before trying to install
and reuse as a boot device.  Not that this would necessarily
solve your trouble but at least would eliminate some
possibilities.

If you insist on trying to recover your current installation
than possibly booting into initrd and mounting a root file
system from there could turn out easier as you have a better
control over what you are executing from there.  If you have a
bootable CD which gives you a ramdisk with some workable system
you can try to mount your intended root file system from there.
Does it work?  Do you have to pass something like '-t ext3' to
mount before that is possible?  If you managed to mount then
does a file system structure looks healthy?  This is just a
"sanity check".

   Michal



  reply	other threads:[~2005-01-18 19:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-31 20:46 Getting aboot to boot without panic mounting root John Beardmore
2004-12-31 22:48 ` Måns Rullgård
2005-01-01  8:20   ` John Beardmore
2005-01-01 17:51     ` Antti Järvinen
2005-01-05 21:58       ` John Beardmore
2005-01-05 22:16         ` Måns Rullgård
2005-01-06  9:05           ` John Beardmore
2005-01-16 22:51           ` John Beardmore
2005-01-17 20:30             ` Michal Jaegermann
2005-01-17 21:35               ` John Beardmore
2005-01-18 17:40                 ` John Beardmore
2005-01-18 19:24                   ` Michal Jaegermann [this message]
2005-01-19  1:19                     ` John Beardmore
2005-01-19 17:58                       ` Michal Jaegermann
2005-01-19 18:30                         ` Måns Rullgård
2005-01-19 21:29                         ` John Beardmore
2005-01-02 16:07 ` un1xl0ser
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox