From: Michal Jaegermann <michal@gortel.phys.ualberta.ca>
Subject: Re: Problem booting Linux on a AS200
Date: 22 Jan 2002 19:53:32 GMT [thread overview]
Message-ID: <a2kfvs$9ji$1@pulp.srv.ualberta.ca> (raw)
In-Reply-To: 1ram4u8mhvjk1a3s68cgbd6gjiflglh2vs@4ax.com
Axel Kuester <A.Kuester@ostalb.netsurf.de> wrote:
> I installed RH 7.1 from CDrom and anything seems to be ok until the
> system tries to reboot.
> I only get the message:
> block 0 if disk dka0... is not a valid boot block.
> What did I make wrong?
Probably nothing. There are assorted bugs in an installer (and
one kind of a semi-valid reason) which may cause that.
In short - make a boot floopy from a 'images/generic.img' file on your
CD. You can make it on any machine which can read CDs and write "raw"
floppies and resulting floppy if of an ext2 type. Assuming that your
root partition was put on /dev/sda2 (I do not know but you were told
that and if you failed to notice you can experiment a bit) boot for
the first time from SRM prompt with
dva0 -fi vmlinux.gz -fl "root=/dev/sda2"
> Do I have to run some special Tools for
> wrinting a boot block to disk?
Yes, you have them once you booted. It is called 'swriteboot' and
it is a part of an 'aboot' package.
> Activate the disk (like at PCs)?
No, this is simpler. :-)
Now for possible problems. Linux can use disks with a FAT partitioning
or with "BSD disklabel" partitioning - even mixed in the same
installation. But a disk which is bootable from SRM has to be of the
second type and it has to leave some space (1 cylinder is ample) not
covered by partitions of "unused" type ("unused" are not really used
by Linux, but if there then no harm done, and are "compatibility"
stuff). There is a number of circumstances when an installer writes,
incorrectly, a FAT partition table. For example when there was an old
table of that kind from previous uses of that disk. Or it may screw
up and forget to leave space for a boot block. Or it will notice
that a bootblock space overlaps with a partition but does not pay
attention that it was really "unused". In the later case you may
tell swriteboot with '-f' flag to go ahead and write a boot block
anyway. Otherwise this disk cannot be made bootable without
repartioning. If that means re-installation or not it is hard to
tell without knowing details of a disk layout and what kind of
a partition table was written on a disk. Possible rescue is
a bit on a "wizzardy" side and you better know what you are doing.
The only really sure way, at least for now, to write a correct partition
table is first to erase a beginning of a disk writing over it a few
megabytes from /dev/zero and later to create a correct disklabel using
fdisk. Other methods may work but can also screw up without warning.
Yes, bug reports were filed. :-) That is about it.
Michal
next prev parent reply other threads:[~2002-01-22 19:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-20 20:44 Problem booting Linux on a AS200 Axel Kuester
2002-01-21 10:48 ` Måns Rullgård
2002-01-21 18:38 ` watman
2002-01-22 10:58 ` Måns Rullgård
2002-01-22 20:17 ` Axel Kuester
2002-01-22 19:53 ` Michal Jaegermann [this message]
2002-01-22 21:03 ` Axel Kuester
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