Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Debian Etch and WinXP installed, I also wanted to be able to boot a livecd from the HD without creating a new partition or actually installing the live cd.
You find that a "root" statement is always needed to tell Grub where to find the Linux.
As far as I am aware the Linux boot loader Grub and Lilo do not support booting from the CD rom.
The correct thing to do is to tell the Bios to boot up the CD first and the hard disk second.
If you place a DSL CD then it will boot. No CD then the hard disk boots.
There is a file available in Grub4Dos that boot a CD drive after Grub has been loaded but that must be put into a floppy. It doesn't work on a hard disk when I tried.
From the above you can see that my Slax live CD contents are kept on the 5th partition of my second hard drive.
You may or may not need to include the "ide=nodma" option.
If it is to boot an iso image previously copied onto a hard disk then the mechanism should be as follow
(1) The expanded distro and not just the iso image is needed in a devoted partition. The former has /boot, /isolinux, /home, /usr...etc whereas the latter is just one file with .iso extension. The latter cannot be booted but can be mounted on a loopback device to expand into the former.
(2) The boot loader from an iso is invariably booted by isolinux. To boot from a hard disk Grub must be used in its place. Thus a new addition to the existing menu.lst has to be created using the same parameters as in isolinux from the iso. isolinux keeps a configuration file called isolinux.conf. Usually it is just a job of copy and paste of the relevantt parameters into the "kernel" and "initrd" after providing
(a) "title" to call the Linux iso
(b) "root" statement to identify the root partition of the Linux
From experience more than half of the iso files, if copied into the hard disk, can be booted this way without the need to burning a bootable CD first. However you will find some installers have been compiled to only go back to the CD rom to fetch files and these distros will fail.
I have knoppix, I haven't tried getting knoppix itself to boot up like this, but since DSL is based on knoppix it should work the same.
I'm just trying to get DSL to find the 50M knoppix image it uses to finish booting up. Like I said it scans for it from the CD rom first then the hard drives and still can't find it.
Here's my notes that I used to boot the way you are trying. It should work for dsl or other knoppix based systems.
Just make changes for partition location and the name of the vmlinuz and initrd. That seems to be linux24 / minirt24.gz in your case.
Code:
Configure your existing linux system to allow Knoppix hard drive boot
without creating a new install or burning to cdrom.
# Mount the iso image.
mkdir /mnt/iso
mount -o loop knoppix.iso /mnt/iso
# Copy the KNOPPIX directory to a root directory.
mkfs.ext3 /dev/sda2
mkdir /mnt/sda2
mount /dev/sda2 /mnt/sda2
(cd /mnt/iso ; tar cf - KNOPPIX) | ( cd /mnt/sda2 ; tar xf - )
# Copy the boot directory to a root directory.
(cd /mnt/iso ; tar cf - boot) | ( cd /mnt/sda2 ; tar xf - )
# Unmount the iso image and clean up.
cd && umount /mnt/iso && rm -rf /mnt/iso
cd && umount /mnt/sda2 && rm -rf /mnt/sda2
# Make an entry in the grub.conf using data from /boot/isolinux/isolinux.cfg .
title KNOPPIX
root (hd0,1)
kernel /boot/isolinux/linux apm=power-off ramdisk_size=100000 init=/etc/init vga=791 nomce quiet bootfrom=/dev/sda2 lang=us
initrd /boot/isolinux/minirt.gz
# Here is another type of grub entry.
title KNOPPIX
root (hd0,1)
kernel /boot/isolinux/linux apm=power-off vga=791 nomce quiet fromhd=/dev/sda2 lang=us
initrd /boot/isolinux/minirt.gz
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.