Keith Owens schrieb:
>
> On Tue, 22 May 2001 07:56:00 +0100 (BST),
> Keith Matthews <keith_m@xxxxxxxxxxxxxxxxxxx> wrote:
> >On Mon, 21 May 2001 20:22:30 -0700 (PDT) John <John <jsh_45@xxxxxxxxx>>
> >wrote:
> >
> >> This is starting to get to me. I "thought" that
> >> pulling the /dev/hdc drives cable and putting it on
> >> the first ide controller would be the easy thing to
> >> do, but that has been elusive. I've tried almost
> >
> >More out of curiosity than anything, why did you want to do things this
> >way, as opposed to using LILO on the original configuration to boot from
> >hdc ?
>
> He is building on hdc using an existing kernel then making hdc the boot
> disk, so it becomes hda in a new system. lilo records device numbers
> and gets confused by this process.
>
> The easiest method is to create the new system on hdc, do not run lilo,
> install the disk as hda, boot a kernel off an emergency floppy using
> root on the new hda then run lilo to install after the disk has been
> moved to hda. The problem with that approach is fitting the kernel on
> a floppy, XFS is too big. The only ways I can see of using an
> emergency floppy are by using an ext2 partition on hdc/hda or by
> building XFS as a module, but that requires fiddling with initrd,
> messy.
You can patch /sbin/mkbootdisk to write floppys with bigger size.
--- /sbin/mkbootdisk Thu Feb 8 23:48:15 2001
+++ mkbootdisk Wed May 9 11:34:16 2001
@@ -8,6 +8,7 @@
unset kernel
device=/dev/fd0
unset verbose
+unset fdformat
unset witheth
unset mkinitrdargs
unset compact
@@ -32,6 +33,7 @@
--device)
shift
device=$1
+ fdformat=true
;;
--mkinitrdargs)
shift
@@ -141,12 +143,14 @@
}
[ -n "$verbose" ] && echo -n "Formatting $device... "
+[ -n "$fdformat" ] && fdformat $device
mkdosfs -I $device > /dev/null || {
echo "Failed to format $device" >&2
exit 1
}
-syslinux $device
+[ -n "$fdformat" ] && syslinux -s $device
+[ -z "$fdformat" ] && syslinux $device
[ -n "$verbose" ] && echo "done."
rm -rf $MOUNTDIR
Greetings
Simon
|