From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,f9472f7e5897b03c X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2002-01-22 12:00:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!cyclone.bc.net!rover.ucs.ualberta.ca!not-for-mail From: Michal Jaegermann Newsgroups: comp.os.linux.alpha Subject: Re: Problem booting Linux on a AS200 Date: 22 Jan 2002 19:53:32 GMT Organization: Disorganized Bits Message-ID: References: <1ram4u8mhvjk1a3s68cgbd6gjiflglh2vs@4ax.com> NNTP-Posting-Host: gortel.phys.ualberta.ca User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.4.9-12 (i686)) Xref: archiver1.google.com comp.os.linux.alpha:4733 Axel Kuester 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