Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated" <xenophon@irtnog.org>
To: axp-list@redhat.com
Subject: Re: aboot question for the gurus
Date: 27 Nov 1998 14:16:14 -0500	[thread overview]
Message-ID: <w4o90gxt08x.fsf@nemesis.irtnog.org> (raw)
In-Reply-To: "Mike Larkin"'s message of Mon, 23 Nov 1998 03:15:13 -0800

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 <brapp@jps.net> 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)


      parent reply	other threads:[~1998-11-27 19:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-23 11:15 aboot question for the gurus Mike Larkin
1998-11-23 11:45 ` UDB memory update Carles Perello
1998-11-24 15:53 ` aboot question for the gurus B. James Phillippe
1998-11-27 19:16 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated [this message]
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