Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* aboot question for the gurus
@ 1998-11-23 11:15 Mike Larkin
  1998-11-23 11:45 ` UDB memory update Carles Perello
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mike Larkin @ 1998-11-23 11:15 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 2525 bytes --]

Way back when, when I first installed RH 5.1 on my Avanti, I was forced to boot from floppy since the SRM doesn't allow booting from my BusLogic PCI scsi controller (Fast/Wide/Differential). I had no drives to connect to the internal NCR 53c810 bus, so I have been autobooting from diskette for several months now.  This method worked fine, as Linux recognizes the BusLogic controller once booted up.
 
This weekend, I found an el-cheapo 200MB drive at a surplus shop for $5, so I picked it up and installed it just so that I could boot from the HD. I decided to partition the thing with a 30mb "boot" partition, offsetting it about 5-10mb into the drive as the docs said (who cares about waste), and the rest is just set up as an extra swap partition. (My machine hardly ever gets into swap anyway, so I'm not concerned about speed problems on this narrow drive).
 
Here's where I ran into a snag. I remembered that the SRM/aboot expects a BSD-style disklabel, so I enabled BSD disklabel support and UFS support in my current kernel. I partitioned the drive using fdisk and selecting the BSD drivelabel option. Everything went smoothly, I mke2fs'ed the 30MB "boot" partition and all went without problems. Then, I used swriteboot and copied the kernel to the boot partition. No problems. 
 
... But... Booting gives a "UFS mount -- bad magic" message at the aboot stage. Is this to mean that the "boot" partition I created has to be formatted UFS? 
 
I read in the docs that aboot-0.5 (newest version) supports reading the vmlinux.gz file from an ext2 partition. How does one enable this functionality?
Otherwise, I'm stuck, as I was unable to find any way to CREATE a UFS filesystem from inside Linux. I even went the extra 9 yards and booted a NetBSD floppy and made a UFS filesystem  on that partition, but was unable to copy anything into it from inside Linux. (bunch of errors when it went to write into it.. Mounted OK, but wouldn't write)
 
I'm back to booting from floppy for now until some kind soul can shed some light on how to set it up.  (PS - I have  the newest aboot from the main site, I believe it's aboot-0.5-7 that I have.) It's not so bad booting from floppy, but it's tremendously slow, taking about 5 minutes to boot. Since Linux 2.1.129 is a little flaky, the machine tends to reboot itself a lot, and I would like faster turnaround time when it does, since it is an ipmasq firewall for my main machines.
 
Thanks in advance to whomever can help.
 
-ml
tinomen@usa.net
brapp@jps.net

[-- Attachment #2: Type: text/html, Size: 3693 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* UDB memory update
  1998-11-23 11:15 aboot question for the gurus Mike Larkin
@ 1998-11-23 11:45 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: Carles Perello @ 1998-11-23 11:45 UTC (permalink / raw)
  To: axp-list


Hi,

Just received 2 SIMMS of 32M from www.conrad.de. They do work although
price was slightly high finally (around $100)

hope this helps

carles



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: aboot question for the gurus
  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 ` B. James Phillippe
  1998-11-27 19:16 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
  2 siblings, 0 replies; 4+ messages in thread
From: B. James Phillippe @ 1998-11-24 15:53 UTC (permalink / raw)
  To: axp-list

On Mon, 23 Nov 1998, Mike Larkin wrote:

> I decided to partition the thing with a 30mb "boot" partition, offsetting
> it about 5-10mb into the drive as the docs said (who cares about waste),
> and the rest is just set up as an extra swap partition. (My machine
...
> I partitioned the drive using fdisk and selecting the BSD drivelabel
> option. Everything went smoothly, I mke2fs'ed the 30MB "boot" partition
> and all went without problems. Then, I used swriteboot and copied the
> kernel to the boot partition. No problems. 
>  
> ... But... Booting gives a "UFS mount -- bad magic" message at the aboot
> stage. Is this to mean that the "boot" partition I created has to be
> formatted UFS? 

No, UFS filesystems do not need to be involved unless you're dual-booting
an operating system other than Linux (which requires them).

A possible problem.. the 30MB partition; does it start on the beginning of
the disk?  And did you put the kernel on that partition and run swriteboot?
I believe that will corrupt your filesystem.  I think you would have needed
to use e2writeboot for that case.  But there is a more preferred method,
and that is to donate an entire partition (or void space, before a
partition) to aboot.  If you want to "donate" your 30MB partition, you
would just blast it, put the kernel on some other partition (you'd need to
split your 30MB in two) and then run swriteboot on the disk.

Good luck,
-bp
--
B. James Phillippe	. bryan@terran.org
UNIX Software Engineer	. http://www.terran.org/~bryan
Member since 1.1.59	. finger:bryan@earth.terran.org
MOTM: US West is the worst telco company I have ever known


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: aboot question for the gurus
  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
  2 siblings, 0 replies; 4+ messages in thread
From: His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated @ 1998-11-27 19:16 UTC (permalink / raw)
  To: axp-list

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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-11-27 19:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox