[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[debian-knoppix] SOLUTION: Dual booting knoppix/win2k from HD without floppy/cdrom and without touching W2K MBR.



I would like to publicaly thank you Christian Perle.
The folowing solution he gave me work like a charm.
All the command work without problem.

> 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:

The command on the next line just amaze me, I use to do this in 5 commands.
>   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

I had already an ext2 partition that I use for putting my development tools.
So I just had to reuse it and add a few file in it.
However I did try exacly what you said and it is working.

> * 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
The above command was not working for me so I used
cp -a /dev/hda /dev/hda? /mnt/test/dev
>   cp -a /boot/*.b /home/vmlinuz /home/miniroot.gz /mnt/test/boot
I am not sure if it change anything, but one file was a link to another
file.
So I choose to unlink and make a real copy.
>
> * 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
I was a bit lazy so I made
cp /etc/lilo.conf /mnt/test/etc
Then I edited the file to match what I wanted.

> * 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:

I did replace the above by copying to the vfat partition that host the
knoppix/knoppix file.
I just had to remount the partition to have rw access:
mount /dev/hda3 /cdrom -o remount
But the floppy solution is maybe easyer and safer.

> * Boot NT/2k, copy linboot.img from floppy to c:\ and make the
>   appropriate entry in c:\boot.ini
>
> Beware, all untested! :)
IT WORK... and there is little risk since you do not touch the MBR.

Here are the things I complain about ;-)
1) Every time you upgrade to a new version of knoppix (and the floppy
change)
you have to redo the "lilo -r /mnt/test", copy the 512byte block, ...
And you need to make sure your ext partion is not mounted in "nodev".
2) You have to write your own kernel argument in lilo.conf,
so if you want the same behaviour as the official knoppix floppy image,
you will have to copy those parameter manualy.
3) The upgrade procedure require a few reboot.

I am still going to investigate a solution based on dualbooting Win2k and
DOS.
Then from within the DOS partition boot linux (loadlin or other).
This would permit to "upgrade" my knoppix from within win2k without to many
reboot.

Also GURP seems to be a good potential solution too.
I need to investigate.

"upgrade" knoppix mean:
Downloading a new knoppix.iso file.
Extracting the boot.img and other file from the iso using isobuster (or
other)
Extracting the miniroot.gz and vmlinuz by rawriting boot.img to a floppy.
(or maybe using winimage)
Reinstall whatever dual/boot you found to be working.

> 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
>

_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: