* Getting aboot to boot without panic mounting root
@ 2004-12-31 20:46 John Beardmore
2004-12-31 22:48 ` Måns Rullgård
2005-01-02 16:07 ` un1xl0ser
0 siblings, 2 replies; 17+ messages in thread
From: John Beardmore @ 2004-12-31 20:46 UTC (permalink / raw)
I've done a gentoo install which seems to be complete, and as far as I
know the system should be bootable. The kernel has built OK, and
/etc/aboot.conf contains the line
0:1/boot/kernel-2.4.28 root=/dev/sda1
/dev/sda1 is there. Fdisk can see it. It has a BSD label. It is ext3.
From a LiveCd boot, I can fsck it, mount it to /mnt/gentoo, chroot into
it etc, and the kernel is there in /boot.
However, when I boot from SRM and hard disk, the kernel loads
(uncompressed), but I get these messages just after some IP
initialisation.
VFS: cannot open root device "sda1" or 08:01
Please append a correct "root=" boot option.
Kernel panic: VFS: Unable to mount root fs on 08:01
I've probably missed something really stupid and obvious, but after 20
minutes head scratching couldn't work it out.
If the error report comes from the kernel, I guess the aboot.conf file
must be found correctly, and the kernel is getting loaded from the
correct disk and partition. Why then, the problem mounting sda1, which
is after all the same partition as the kernel is already loading from ?
May thanks for any thought !
J/. (Frustrated and confused !)
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
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-02 16:07 ` un1xl0ser
1 sibling, 1 reply; 17+ messages in thread
From: Måns Rullgård @ 2004-12-31 22:48 UTC (permalink / raw)
John Beardmore <wookie@wookie.demon.co.uk> writes:
> I've done a gentoo install which seems to be complete, and as far as I
> know the system should be bootable. The kernel has built OK, and
> /etc/aboot.conf contains the line
>
> 0:1/boot/kernel-2.4.28 root=/dev/sda1
>
> /dev/sda1 is there. Fdisk can see it. It has a BSD label. It is
> ext3. From a LiveCd boot, I can fsck it, mount it to /mnt/gentoo,
> chroot into it etc, and the kernel is there in /boot.
>
> However, when I boot from SRM and hard disk, the kernel loads
> (uncompressed), but I get these messages just after some IP
> initialisation.
>
> VFS: cannot open root device "sda1" or 08:01
> Please append a correct "root=" boot option.
> Kernel panic: VFS: Unable to mount root fs on 08:01
>
> I've probably missed something really stupid and obvious, but after 20
> minutes head scratching couldn't work it out.
>
> If the error report comes from the kernel, I guess the aboot.conf file
> must be found correctly, and the kernel is getting loaded from the
> correct disk and partition. Why then, the problem mounting sda1,
> which is after all the same partition as the kernel is already loading
> from ?
Your problem is most likely caused by a missing SCSI driver in the
kernel. Where the kernel is loaded from is irrelevant, since
obviously something else (aboot) must do the loading. Aboot uses SRM
calls to read the disk, and works with anything supported by SRM.
Boot the livecd again, and double-check your kernel configuration.
Many Alpha machines have a Qlogic ISP1020/1040 or Symbios/NCR SCSI
controller.
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2004-12-31 22:48 ` Måns Rullgård
@ 2005-01-01 8:20 ` John Beardmore
2005-01-01 17:51 ` Antti Järvinen
0 siblings, 1 reply; 17+ messages in thread
From: John Beardmore @ 2005-01-01 8:20 UTC (permalink / raw)
In message <yw1x7jmy2ien.fsf@inprovide.com>, M�ns Rullg�rd
<mru@inprovide.com> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:
>> I've done a gentoo install which seems to be complete, and as far as I
>> know the system should be bootable. The kernel has built OK, and
>> /etc/aboot.conf contains the line
>>
>> 0:1/boot/kernel-2.4.28 root=/dev/sda1
>>
>> /dev/sda1 is there. Fdisk can see it. It has a BSD label. It is
>> ext3. From a LiveCd boot, I can fsck it, mount it to /mnt/gentoo,
>> chroot into it etc, and the kernel is there in /boot.
>>
>> However, when I boot from SRM and hard disk, the kernel loads
>> (uncompressed), but I get these messages just after some IP
>> initialisation.
>>
>> VFS: cannot open root device "sda1" or 08:01
>> Please append a correct "root=" boot option.
>> Kernel panic: VFS: Unable to mount root fs on 08:01
>>
>> I've probably missed something really stupid and obvious, but after 20
>> minutes head scratching couldn't work it out.
>>
>> If the error report comes from the kernel, I guess the aboot.conf file
>> must be found correctly, and the kernel is getting loaded from the
>> correct disk and partition. Why then, the problem mounting sda1,
>> which is after all the same partition as the kernel is already loading
>> from ?
>
>Your problem is most likely caused by a missing SCSI driver in the
>kernel. Where the kernel is loaded from is irrelevant, since
>obviously something else (aboot) must do the loading. Aboot uses SRM
>calls to read the disk, and works with anything supported by SRM.
OK.
>Boot the livecd again, and double-check your kernel configuration.
>Many Alpha machines have a Qlogic ISP1020/1040 or Symbios/NCR SCSI
>controller.
Yes. Will try that ! This is NCR810 I think.
Many thanks ! J/.
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-01 8:20 ` John Beardmore
@ 2005-01-01 17:51 ` Antti Järvinen
2005-01-05 21:58 ` John Beardmore
0 siblings, 1 reply; 17+ messages in thread
From: Antti Järvinen @ 2005-01-01 17:51 UTC (permalink / raw)
John Beardmore <wookie@wookie.demon.co.uk> writes:
> >> 0:1/boot/kernel-2.4.28 root=/dev/sda1
Or, if gentoo uses initrd (that in turn would contain scsi and filesystem
drivers) then aboot needs to be made aware of that too .. there
seems to be some guidance at
http://logout.sh/computers/alpha/aboot.php
so easiest thing might be something like
0:1/boot/kernel-2.4.28 root=/dev/sda1 initrd=/boot/initrd.img
or whatever your initrd is named..?
--
Costello the Warrior St:18/09 Dx:14 Co:18 In:8 Wi:12 Ch:7 Neutral
Dlvl:16 $:0 HP:129(129) Pw:52(52) AC:-6 Xp:14/83896 T:19462 Satiated
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
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-02 16:07 ` un1xl0ser
1 sibling, 0 replies; 17+ messages in thread
From: un1xl0ser @ 2005-01-02 16:07 UTC (permalink / raw)
I am working on a DS-10 and am having similar issues. I worked this out
once a few months back, but I am not sure what it turned out to be.
I know for a fact that my kernel configuration includes support for my
Qlogic 1020 SCSI card. I used genkernel to make the kernel and used
"--menuconfig" to ensure that I had the proper modules included in the
kernel. I also can see the Qlogic driver load and detect my SCSI hard
drive. It still can't find the root device.
Did you use genkernel to compile your kernel? When genkernel quits it
talks about real_root and other options.
I am building 2.6.10 right now. If you learn anything, please post it.
- un1xl0ser
John Beardmore wrote:
> I've done a gentoo install which seems to be complete, and as far as
I
> know the system should be bootable. The kernel has built OK, and
> /etc/aboot.conf contains the line
>
> 0:1/boot/kernel-2.4.28 root=/dev/sda1
>
>
> /dev/sda1 is there. Fdisk can see it. It has a BSD label. It is
ext3.
> From a LiveCd boot, I can fsck it, mount it to /mnt/gentoo, chroot
into
> it etc, and the kernel is there in /boot.
>
> However, when I boot from SRM and hard disk, the kernel loads
> (uncompressed), but I get these messages just after some IP
> initialisation.
>
> VFS: cannot open root device "sda1" or 08:01
> Please append a correct "root=" boot option.
> Kernel panic: VFS: Unable to mount root fs on 08:01
>
>
> I've probably missed something really stupid and obvious, but after
20
> minutes head scratching couldn't work it out.
>
> If the error report comes from the kernel, I guess the aboot.conf
file
> must be found correctly, and the kernel is getting loaded from the
> correct disk and partition. Why then, the problem mounting sda1,
which
> is after all the same partition as the kernel is already loading from
?
>
> May thanks for any thought !
>
>
> J/. (Frustrated and confused !)
> --
> John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-01 17:51 ` Antti Järvinen
@ 2005-01-05 21:58 ` John Beardmore
2005-01-05 22:16 ` Måns Rullgård
0 siblings, 1 reply; 17+ messages in thread
From: John Beardmore @ 2005-01-05 21:58 UTC (permalink / raw)
Thanks for this ! The problem isn't solved yet, but at least there are
things to try.
In message <m3mzvt597x.fsf@fisuvaan.localdomain>, Antti J�rvinen
<costello@iki.fi> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:
>> >> 0:1/boot/kernel-2.4.28 root=/dev/sda1
>
>Or, if gentoo uses initrd
It does.
> (that in turn would contain scsi and filesystem
>drivers) then aboot needs to be made aware of that too ..
That isn't shown in the gentoo installation notes, nor did it solve the
problem with the fist kernel I made with the gentoo automatic kernel
build tool.
> there
>seems to be some guidance at
>
>http://logout.sh/computers/alpha/aboot.php
>
>so easiest thing might be something like
>
>0:1/boot/kernel-2.4.28 root=/dev/sda1 initrd=/boot/initrd.img
>
>or whatever your initrd is named..?
I've now built a kernel by hand which includes all the scsi and file
system drivers, installed a the aboot that came with gentoo (as opposed
to the one that came with Debian woody), but it still doesn't mount
root.
While it finds the new kernel, presumably having correctly found
aboot.conf, It now complains that it can't mount device "" at 08:02
which looks as if it's perhaps trying the default sda2 partition having
somehow failed to notice that 'root=/dev/sda1' is written there as bold
as brass.
Seems odd that now it's trying to mount the wrong thing, though it may
have the right drivers to mount what it needs.
I'll go on trying with initrd= despite the lack of that in the gentoo
docs, and may also experiment with booting from the aboot prompt when I
next get time to look at this.
No doubt I've done something stupid !
Your http://logout.sh/computers/alpha/aboot.php example is interesting.
All sorts of things with consoles etc that I've not seen documented by
gentoo, debian etc.
Many thanks, J/.
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
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
0 siblings, 2 replies; 17+ messages in thread
From: Måns Rullgård @ 2005-01-05 22:16 UTC (permalink / raw)
John Beardmore <wookie@wookie.demon.co.uk> writes:
> Thanks for this ! The problem isn't solved yet, but at least there
> are things to try.
>
> In message <m3mzvt597x.fsf@fisuvaan.localdomain>, Antti J�rvinen
> <costello@iki.fi> writes
>>John Beardmore <wookie@wookie.demon.co.uk> writes:
>
>>> >> 0:1/boot/kernel-2.4.28 root=/dev/sda1
> >
>>Or, if gentoo uses initrd
>
> It does.
Are you sure you need it? My gentoo installations (Alpha and PC) do
not. The only reason to use initrd is if, for some reason, a driver
required to access the root fs can't be compiled into the kernel. In
all other cases, initrd is only a hassle that buys you nothing.
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-05 22:16 ` Måns Rullgård
@ 2005-01-06 9:05 ` John Beardmore
2005-01-16 22:51 ` John Beardmore
1 sibling, 0 replies; 17+ messages in thread
From: John Beardmore @ 2005-01-06 9:05 UTC (permalink / raw)
In message <yw1xvfabr07c.fsf@ford.inprovide.com>, M�ns Rullg�rd
<mru@inprovide.com> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:
>> Thanks for this ! The problem isn't solved yet, but at least there
>> are things to try.
>>
>> In message <m3mzvt597x.fsf@fisuvaan.localdomain>, Antti J�rvinen
>> <costello@iki.fi> writes
>>>John Beardmore <wookie@wookie.demon.co.uk> writes:
>>
>>>> >> 0:1/boot/kernel-2.4.28 root=/dev/sda1
>> >
>>>Or, if gentoo uses initrd
>>
>> It does.
>
>Are you sure you need it?
Not at all, but building the kernel with the supplied tools has made one
both times I've tried it. I'm not quite sure why, but the gentoo docs
refer to installing it in /boot as though it was always necessary.
> My gentoo installations (Alpha and PC) do
>not. The only reason to use initrd is if, for some reason, a driver
>required to access the root fs can't be compiled into the kernel.
I've compiled in the SCSI card and file system drivers so I doubt initrd
is required, and as I said, it now looks as if the problem may be that
for some reason it's trying to mount 8:2 rather than 8:1. I'll have
another play with it when I get a moment.
> In
>all other cases, initrd is only a hassle that buys you nothing.
Yes. I've never used it before.
Thanks, J/.
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
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
1 sibling, 1 reply; 17+ messages in thread
From: John Beardmore @ 2005-01-16 22:51 UTC (permalink / raw)
In message <yw1xvfabr07c.fsf@ford.inprovide.com>, M�ns Rullg�rd
<mru@inprovide.com> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:
>
>> Thanks for this ! The problem isn't solved yet, but at least there
>> are things to try.
>>
>> In message <m3mzvt597x.fsf@fisuvaan.localdomain>, Antti J�rvinen
>> <costello@iki.fi> writes
>>>John Beardmore <wookie@wookie.demon.co.uk> writes:
>>
>>>> >> 0:1/boot/kernel-2.4.28 root=/dev/sda1
>> >
>>>Or, if gentoo uses initrd
>>
>> It does.
>
>Are you sure you need it? My gentoo installations (Alpha and PC) do
>not. The only reason to use initrd is if, for some reason, a driver
>required to access the root fs can't be compiled into the kernel. In
>all other cases, initrd is only a hassle that buys you nothing.
OK, finally got some more time to look at this again.
Found that my problem was that in the kernel I built I specified the
Symbios 810 SCSI driver and it needs the NCR 810 drivers.
Now I've got these built into the kernel, is sees the disks and gets
further, but now bombs with this message:
You didn't specify the type of your UFS file system.
Mount -t ufs -o ufs_type=sun|sunx86|44bsd|old|hp|nextstep|
nextstep_cd|openstep...
>>>Warning<<< Wrong UFS type may corrupt your file system,
default ufstype=old
ufs_read_super: bad magic number
sh_2021: reiserfs_read_super: cannot find reiserfs on sd(8,2)
Kernel panic: VFS: unable to mount root fs on 08:02.
There's a lot I don't understand here, starting with
what's a UFS file system, and where should I have specified
it's type ?
I included the reiserfs driver in the kernel thinking that I might try
reiserfs on a large new ATA drive that hasn't even been installed yet.
I don't understand why it's trying to use reiserfs when mounting root.
The partition table for sda1 and /etc/fstab both identify /dev/sda1 as
ext3, and /etc/aboot.conf identifies /dev/sda1 as the root file system.
What might be persuading the kernel to look on sd(8,2) ?
In /dev the device numbers go
8,0 /dev/sda
8,1 /dev/sda1
8,2 /dev/sda2.
As such it seems really odd for it to be accessing sd(8,2), or have I
missed something obvious ?
Many thanks, J/.
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-16 22:51 ` John Beardmore
@ 2005-01-17 20:30 ` Michal Jaegermann
2005-01-17 21:35 ` John Beardmore
0 siblings, 1 reply; 17+ messages in thread
From: Michal Jaegermann @ 2005-01-17 20:30 UTC (permalink / raw)
John Beardmore <wookie@wookie.demon.co.uk> wrote:
>
> Found that my problem was that in the kernel I built I specified the
> Symbios 810 SCSI driver and it needs the NCR 810 drivers.
If you are using "new" Symbios driver, a.k.a. "version 2", then,
obviously barring bugs, it is supposed to support all these chips that
ncr53c8xx was supporting and then some. An "old" sym53c8xx was not
working with 810 at all and was not supposed to. sym53c8xx_2 in theory
it should but I never had a chance to check that in practice. 810 is
a quite obsolete controller.
> Now I've got these built into the kernel, is sees the disks and gets
> further, but now bombs with this message:
>
> You didn't specify the type of your UFS file system.
How did you got there??? What are you trying to boot?
Is this, by any chance, a "recycled" disk with various lefovers
from old file systems? aboot can get confused.
>
> There's a lot I don't understand here, starting with
>
> what's a UFS file system, and where should I have specified
> it's type ?
In Configure.help you can read:
CONFIG_UFS_FS
BSD and derivate versions of Unix (such as SunOS, FreeBSD, NetBSD,
OpenBSD and NeXTstep) use a file system called UFS. Some System V
Unixes can create and mount hard disk partitions and diskettes using
this file system as well. .....
There is quite a bit more but you can find that yourself.
> I don't understand why it's trying to use reiserfs when mounting root.
Unless you will tell explicitely otherwise with -t, or in /etc/fstab
entries, then 'mount' is going through a list of possibilities and is
trying each in turn until something will fit. This usually works ok but
sometimes things are getting confused; especially in a presence of some
"random garbage" in initial disk sectors if a disk was used previously.
dd if=/dev/zero count=8 > "your_disk_device_here"
from a shell on an installation ramdisk and before you started to
install anything usually resolves the matter. This also helps to
clear "wrong type of a partition table" problems.
Michal
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-17 20:30 ` Michal Jaegermann
@ 2005-01-17 21:35 ` John Beardmore
2005-01-18 17:40 ` John Beardmore
0 siblings, 1 reply; 17+ messages in thread
From: John Beardmore @ 2005-01-17 21:35 UTC (permalink / raw)
In message <csh798$baf$1@tabloid.srv.ualberta.ca>, Michal Jaegermann
<michal@gortel.phys.ualberta.ca> writes
>John Beardmore <wookie@wookie.demon.co.uk> wrote:
>> Found that my problem was that in the kernel I built I specified the
>> Symbios 810 SCSI driver and it needs the NCR 810 drivers.
>
>If you are using "new" Symbios driver, a.k.a. "version 2", then,
>obviously barring bugs, it is supposed to support all these chips that
>ncr53c8xx was supporting and then some.
This is whatever came with recent gentoo 2.4.x vanilla kernel build.
> An "old" sym53c8xx was not
>working with 810 at all and was not supposed to. sym53c8xx_2 in theory
>it should but I never had a chance to check that in practice. 810 is
>a quite obsolete controller.
:) Yes, but it's the one which came with the box. If I rejected all
the obsolete components as some of my colleagues encourage me to do, the
whole EV4 Alpha would go ! This controller also has the advantage of
being known to SRM.
Given how long this is taking it might make sense to drop in an old
Intel box instead and load up Debian, but I'm reluctant to do that if I
can avoid it.
>> Now I've got these built into the kernel, is sees the disks and gets
>> further, but now bombs with this message:
>>
>> You didn't specify the type of your UFS file system.
>
>How did you got there???
Good question !
> What are you trying to boot?
/dev/sda1 which is ext3.
>Is this, by any chance, a "recycled" disk with various lefovers
>from old file systems? aboot can get confused.
Well, it is recycled, but has gentoos latest bootlx installed to gap
before the first partition of the disk.
>> There's a lot I don't understand here, starting with
>>
>> what's a UFS file system, and where should I have specified
>> it's type ?
>
>In Configure.help you can read:
>
>CONFIG_UFS_FS
> BSD and derivate versions of Unix (such as SunOS, FreeBSD, NetBSD,
> OpenBSD and NeXTstep) use a file system called UFS. Some System V
> Unixes can create and mount hard disk partitions and diskettes using
> this file system as well. .....
This drive probably has history running VMS and as part of a Redhat 6.2
RAID 5 array.
>There is quite a bit more but you can find that yourself.
OK.
>> I don't understand why it's trying to use reiserfs when mounting root.
>
>Unless you will tell explicitely otherwise with -t, or in /etc/fstab
>entries, then 'mount' is going through a list of possibilities and is
>trying each in turn until something will fit.
OK, that sounds sensible, but fstab is quite clear that root is ext3.
> This usually works ok but
>sometimes things are getting confused; especially in a presence of some
>"random garbage" in initial disk sectors if a disk was used previously.
OK, this sounds plausible !
> dd if=/dev/zero count=8 > "your_disk_device_here"
>
>from a shell on an installation ramdisk and before you started to
>install anything usually resolves the matter. This also helps to
>clear "wrong type of a partition table" problems.
Thanks.
So use
dd if=/dev/zero count=8 > /dev/sda
to splat the first 8 blocks, then reinstall bootlx with
swriteboot /dev/sda bootlx
just in case, and set the correct partition with
abootconf /dev/sda 1
just in case ?
I'll try that tomorrow !
Many thanks, J/.
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-17 21:35 ` John Beardmore
@ 2005-01-18 17:40 ` John Beardmore
2005-01-18 19:24 ` Michal Jaegermann
0 siblings, 1 reply; 17+ messages in thread
From: John Beardmore @ 2005-01-18 17:40 UTC (permalink / raw)
In message <2sKU6sIx+C7BFwCZ@wookie.demon.co.uk>, John Beardmore
<wookie@wookie.demon.co.uk> writes
>>from a shell on an installation ramdisk and before you started to
>>install anything usually resolves the matter. This also helps to
>>clear "wrong type of a partition table" problems.
>
>Thanks.
>
>So use
>
> dd if=/dev/zero count=8 > /dev/sda
>
>to splat the first 8 blocks, then reinstall bootlx with
>
> swriteboot /dev/sda bootlx
>
>just in case, and set the correct partition with
>
> abootconf /dev/sda 1
>
>just in case ?
>
>I'll try that tomorrow !
Maybe a dd too far... It looks as if that dd splats over the disk
label. No matter - that was trivially fixed. None the less, the
original problem remains. Curious !
Any more thoughts anyone ?
Cheers, J/.
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-18 17:40 ` John Beardmore
@ 2005-01-18 19:24 ` Michal Jaegermann
2005-01-19 1:19 ` John Beardmore
0 siblings, 1 reply; 17+ messages in thread
From: Michal Jaegermann @ 2005-01-18 19:24 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-18 19:24 ` Michal Jaegermann
@ 2005-01-19 1:19 ` John Beardmore
2005-01-19 17:58 ` Michal Jaegermann
0 siblings, 1 reply; 17+ messages in thread
From: John Beardmore @ 2005-01-19 1:19 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
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
0 siblings, 2 replies; 17+ messages in thread
From: Michal Jaegermann @ 2005-01-19 17:58 UTC (permalink / raw)
John Beardmore <wookie@wookie.demon.co.uk> wrote:
>
> 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.
I do not know how that kernel was configured so I can only guess
but unless a kernel configuration was thoroughly botched a possibility
that various Gentoo utilities are plain buggy seems quite a bit more
likely.
There is a kernel boot option 'rootfstype=...' which allows to specify
that if a guessing code got confused (or if a journal on an ext3
partition got sick and you want to mount that as ext2).
Michal
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-19 17:58 ` Michal Jaegermann
@ 2005-01-19 18:30 ` Måns Rullgård
2005-01-19 21:29 ` John Beardmore
1 sibling, 0 replies; 17+ messages in thread
From: Måns Rullgård @ 2005-01-19 18:30 UTC (permalink / raw)
Michal Jaegermann <michal@gortel.phys.ualberta.ca> writes:
> John Beardmore <wookie@wookie.demon.co.uk> wrote:
>>
>> 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.
>
> I do not know how that kernel was configured so I can only guess
> but unless a kernel configuration was thoroughly botched a possibility
> that various Gentoo utilities are plain buggy seems quite a bit more
> likely.
I'm running Gentoo on my SX164 with no troubles. Gentoo uses all the
same utilities everybody else does, so I doubt they would be broken.
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Getting aboot to boot without panic mounting root
2005-01-19 17:58 ` Michal Jaegermann
2005-01-19 18:30 ` Måns Rullgård
@ 2005-01-19 21:29 ` John Beardmore
1 sibling, 0 replies; 17+ messages in thread
From: John Beardmore @ 2005-01-19 21:29 UTC (permalink / raw)
In message <csm73u$mdm$1@tabloid.srv.ualberta.ca>, Michal Jaegermann
<michal@gortel.phys.ualberta.ca> writes
>John Beardmore <wookie@wookie.demon.co.uk> wrote:
>> 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.
>
>I do not know how that kernel was configured so I can only guess
>but unless a kernel configuration was thoroughly botched a possibility
>that various Gentoo utilities are plain buggy seems quite a bit more
>likely.
>
>There is a kernel boot option 'rootfstype=...' which allows to specify
>that if a guessing code got confused (or if a journal on an ext3
>partition got sick and you want to mount that as ext2).
OK, I'll see what it says in config.
Thanks, J/.
--
John Beardmore
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2005-01-19 21:29 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox