Re: [debian-knoppix] Problem: Dual booting from HD without using floppy/cdrom drive.
Hi Klaus,
On Thu, May 16, 2002 at 00:32:00 +0200, Klaus Knopper wrote:
> What you CAN do is install a LILO bootrecord on the partition that
> contains Kernel and miniroot.gz, and create a boot redirector for that
> partition (dd if=/dev/hda2 of=hd2.mbr count=1 bs=512 should do the
> trick), and tell your Windows boot.ini that this hd2.mbr file is an
> operating system.
IHMO this would be the best solution.
Step-by-step setup would be:
* Boot Knoppix from CD
* loop-mount the boot floopy image from CD and copy kernel and
miniroot.gz to /home:
mount -t vfat -o loop,ro /cdrom/KNOPPIX/boot.img /mnt/test
cp /mnt/test/vmlinuz /mnt/test/miniroot.gz /home
umount /mnt/test
* Create a small ext2 partition for kernel, miniroot.gz, /dev and
/etc (for EXAMPLE /dev/hda5, size 8MB):
[use parted, cfdisk or whatever to create the partition]
mke2fs -i 1024 -m 0 /dev/hda5
* Mount the partition and copy the necessary file to it:
mount /dev/hda5 /mnt/test
mkdir /mnt/test/dev /mnt/test/etc /mnt/test/boot
cp -a /dev/hd[a-h]* /mnt/test/dev
cp -a /boot/*.b /home/vmlinuz /home/miniroot.gz /mnt/test/boot
* Create lilo.conf:
cat <<EOF >/mnt/test/etc/lilo.conf
boot=/dev/hda5
prompt
timeout=50
image=/boot/vmlinuz
initrd=/boot/miniroot.gz
append="ramdisk_size=100000 init=/etc/init noapic apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 quiet"
EOF
* Run LILO in a chroot environment:
lilo -r /mnt/test
* Unmount small LILO partition:
umount /mnt/test
* Create linboot.img file for including into NT/2k boot loader and copy
it to floppy disc:
dd if=/dev/hda5 of=/tmp/linboot.img bs=512 count=1
mcopy /tmp/linboot.img a:
* Boot NT/2k, copy linboot.img from floppy to c:\ and make the
appropriate entry in c:\boot.ini
Beware, all untested! :)
bye,
Chris
--
Christian Perle perle@itm.tu-clausthal.de
Grunaer Str. 31 http://www.itm.tu-clausthal.de/~perle/
01069 Dresden LinuxGuitarKitesBicyclesBeerPizzaRaytracing
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix
Reply to: