From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18757 invoked from network); 27 Nov 1998 19:13:24 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 27 Nov 1998 19:13:24 -0000 Received: from nemesis.irtnog.org (xenophon@nemesis.irtnog.org [208.165.241.162]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA13314 for ; Fri, 27 Nov 1998 14:12:33 -0500 Received: (from xenophon@localhost) by nemesis.irtnog.org (8.8.7/8.8.7) id OAA01601; Fri, 27 Nov 1998 14:16:14 -0500 To: axp-list@redhat.com Subject: Re: aboot question for the gurus References: <001f01be16d2$8b747140$02c809c0@arkham.brapp.com> Date: 27 Nov 1998 14:16:14 -0500 In-Reply-To: "Mike Larkin"'s message of Mon, 23 Nov 1998 03:15:13 -0800 Message-ID: X-Mailer: Gnus v5.5/Emacs 20.2 From: "His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated" Organization: First Church of B1FF and BRAK! (Reformed) Errors-to: xenophon@irtnog.org Warnings-to: xenophon@irtnog.org X-Day: Sun, 05 Jul 1998 07:00:00 X-Face: meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow X-yow: Do I have a lifestyle yet? X-Disclaimer: My attitude is this. I'm full of it. If you listen to me, that's your problem. X-Linux: Proud user of Linux since August 1994! X-Attribution: XF X-Home-URL: X-PGP-Key-ID: Length=1024; ID=0x44C9F871; Fprint="0F EF 86 8F 6C AB 19 63 E8 D7 A6 98 86 34 C2 DD" X-PGP-Key-URL: Comments: Hyperble mail buttons accepted, v04.01. Not to flame you or anything, but your post was both in quoted-printable and HTML. Please, in the future, post in 7-bit ASCII (unless, of course, your home charset requires something exotic like KOI-8 or ISO-mumble-mumble). >>>>> "ML" == Mike Larkin writes: ML> I remembered that the SRM/aboot expects a BSD-style disklabel, ML> so I enabled BSD disklabel support and UFS support in my ML> current kernel. So far, so good, although I thought disklabel support was in the kernel by default. ML> I partitioned the drive using fdisk and selecting the BSD ML> drivelabel option. This is where I think you went wrong. ISTR people saying not to use the BSD disklabel editor in FDISK. You might try downloading the NetBSD installation boot floppy and use the disklabel editor from there to partition the disc. I used the OpenBSD disklabel editor to partition my disc, and I've heard that Linux's minlabel works good, too (although it isn't compatible with BSD or DEC UNIX for some reason). ML> Everything went smoothly, I mke2fs'ed the 30MB "boot" ML> partition and all went without problems. Then, I used ML> swriteboot and copied the kernel to the boot partition. No ML> problems. ... But... Booting gives a "UFS mount ML> -- bad magic" message at the aboot stage. What command options do you give? My disklabel looks like this from inside minlabel: 1: 4494 0 resrvd13 2247 2.1 # (Cyl. 0 - 1) 2: 262899 4494 swap 131449 128.3 # (Cyl. 2 - 118) 3: 8388315 0 unused 4194157 4095.8 # (Cyl. 0 - 3733*) 4: 103362 267393 ext2 51681 50.4 # (Cyl. 119 - 164) 5: 2096451 370755 ext2 1048225 1023.6 # (Cyl. 165 - 1097) 6: 5921109 2467206 ext2 2960554 2891.1 # (Cyl. 1098 - 3733*) (IIRC, under OpenBSD, 'resrvd13' is type 'boot'.) 1 is slack space for the boot loader and (possibly) a kernel. I decided to allocate it in my label so I wouldn't forget about it. 2 is swap. 3 is the entire disc (required). 4 is the 50-Mbyte root file system (& location of kernel). 5 and 6 are /usr and /var, respectively. 4, 5, and 6 are formatted ext2fs. 2 is formatted swap. 1 is unformatted. 3 is required for compatibility with BSD and DEC UNIX, although it probably isn't necessary if all you're running is Linux. When I install aboot, I execute the following commands: $ swriteboot -f1 -f3 /dev/sda /boot/bootlx $ abootconf /dev/sda 4 To boot Linux from SRM (kernel, "vmlinux.gz", on volume 4): >>> boot dka0 -file "4/vmlinux.gz" -flags "root=/dev/sda4" I am using "aboot-0.5-7". -- Rev. Dr. Xenophon Fenderson, the Carbon(d)ated, KSC, DEATH, SubGenius, mhm21x16 Pope, Patron Saint of All Things Plastic fnord, and Salted Litter of r.g.s.b "Abraham came not to sacrifice, but to know once and for all whether this God was a god to be trusted and obeyed. No other test would do." (Fall of Hyperion)