From: John Beardmore <wookie@wookie.demon.co.uk>
Subject: Re: Getting aboot to boot without panic mounting root
Date: Wed, 19 Jan 2005 01:19:58 +0000 [thread overview]
Message-ID: <rEZTA4P+Wb7BFwTa@wookie.demon.co.uk> (raw)
In-Reply-To: csjnq5$gbr$1@tabloid.srv.ualberta.ca
In message <csjnq5$gbr$1@tabloid.srv.ualberta.ca>, Michal Jaegermann
<michal@gortel.phys.ualberta.ca> writes
>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's not live - only being built...
>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.
Yes.
>> 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.
Partition tables and Disklabel were both written by fdisk from current
Gentoo.
> 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.
OK.
> 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.
Yes.
>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.
That would be a largely academic exercise. I've kept the disk 'just in
case', but have now put in a spare, zapped the first gig to zeros and
installed Debian off the net.
That seems to be going OK with a few reservations about video drivers
which may take some sorting.
> 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.
mount /dev/sda1 /mnt/gentoo
has always worked fine oddly enough. It only seems to be a problem when
booting off the HD.
>Does it work? Do you have to pass something like '-t ext3' to
>mount before that is possible?
No, it sorts it automatically and perfectly.
> If you managed to mount then
>does a file system structure looks healthy? This is just a
>"sanity check".
Perfect. Fsck of the unmounted /dev/sda1 is happy too.
Many thanks for all your help with this. Now that Deb has installed, it
is as I say all a bit academic, but I'm still curious to identify the
problem, especially if it's related to the kernel config. If it is, I
don't want to repeat it when messing with Debian as I'll no doubt be
building it a kernel to bring all the CPUs on line.
Cheers, J/.
--
John Beardmore
next prev parent reply other threads:[~2005-01-19 1:19 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
2005-01-19 1:19 ` John Beardmore [this message]
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