linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FWD: [slackware] Boot kernel from CD & root fs on ext disc
@ 2004-10-04 13:17 markus reichelt
  2004-10-07 13:55 ` markus reichelt
  0 siblings, 1 reply; 2+ messages in thread
From: markus reichelt @ 2004-10-04 13:17 UTC (permalink / raw)
  To: linux-admin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,


I'm trying to boot a recent kernel (2.4.27 or 2.6.7) from CD with the
root fs on external disc (usb). Can't boot off of external devices
because of old bios. All needed drivers are compiled in and working,
only thing I can't get to work is my prob with initrd described
below.

Looking desperately for help on this one.

- ----- Forwarded message from markus reichelt <ml@bitfalle.org> -----

Date: Mon, 4 Oct 2004 12:25:12 +0000
From: markus reichelt <ml@bitfalle.org>
To: slackware@mailman.lug.org.uk
Subject: Re: [slackware] Boot kernel from CD & root fs on ext disc

John Briggs <john@johneb47.id.au> wrote:
> I would first check and see if the scsi module you are using belongs in the
> second group and if so do an internet search for anyone who may have solved
> a similar problem.

I managed to create an initrd from scratch, this is what I use as
init-script:

#!/bin/bash
mount -t proc /proc /proc
mount -t sysfs none /sys
mount -r -n -t reiserfs /dev/sda10 /mnt
while [ $? -ne 0 ]
do
    /bin/mount -r -n -t reiserfs /dev/sda10 /mnt
done
cd /mnt
sleep 1
pivot_root /mnt /loader
umount -f /loader
exec chroot . /sbin/init


This works to some extend;  after some seconds /dev/sda10 is
available and can be mounted without any further errors. But now I'm
stuck again because pivot_root complains about "device or resource
busy". Next the kernel panics again ("attempted to kill init!"). I'm
lost here, an intensive google search went not as expected, not at
all.


Then I tried a different approach and patched a 2.6.7 vanilla kernel
with a blkdev_wakeup.patch, that basically repeats the mounting
operation after the kernel booted until the provided root=/dev is
available. I used the /sbin/makebootdisk script to create a bootdisk
with that kernel but unfortunately the code is immature and produces
a segfault late in the boot process.

This is killing me...

- -- 
Bastard Administrator in $hell


- ----- End forwarded message -----

- -- 
Bastard Administrator in $hell

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBYU18LMyTO8Kj/uQRAjt7AJ9GyrISp8efkcaqhY4OiewEWsy9lwCffqD3
FTUNrt/vTENi0Qk86ldlJZM=
=6WXU
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2004-10-07 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 13:17 FWD: [slackware] Boot kernel from CD & root fs on ext disc markus reichelt
2004-10-07 13:55 ` markus reichelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).