LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-17-2007, 11:32 PM   #1
replica9000
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Debian, FreeBSD, Android
Posts: 1,053
Blog Entries: 2

Rep: Reputation: 227Reputation: 227Reputation: 227
booting a livecd from Grub


I've copied the contents of the DSL livecd to my hard drive under /dsl

I edited the menu.lst in grub to look like this:

Code:
title Damn Small Linux 3.3
kernel /dsl/linux24 ramdisk_size=100000 init=/etc/init BOOT_IMAGE=knoppix
initrd=/dsl/minirt24.gz
I've also tried:
Code:
title Damn Small Linux 3.3
kernel /dsl/linux24 fromhd=/dev/hda6
initrd /dsl/minirt24.gz
Both give me the same result, DSL does boot but after searching for USB devices tells me image knoppix not found, dropping to a (very limited) shell.

Anyone know how I can make it find the knoppix image?
 
Old 05-17-2007, 11:37 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
May I ask, what's the purpose/end goal here? Are you wanting to install Knoppix?
 
Old 05-17-2007, 11:41 PM   #3
replica9000
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Debian, FreeBSD, Android
Posts: 1,053
Blog Entries: 2

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
Old 05-18-2007, 03:31 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
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.
 
Old 05-18-2007, 06:32 AM   #5
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Lubuntu 14.04 LTS, Kali
Posts: 297

Rep: Reputation: 30
I done something something very similar with my Slax distro. Here is the section from my menu.lst file.

Code:
title Slax 5.1.8

root (hd1,4)
kernel /boot/vmlinuz from=/dev/hdb5 root=/dev/ram0 ramdisk_size=1048576
max_loop=255 ide=nodma rw init=linuxrc

initrd /boot/initrd.gz
savedefault
boot
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.

Hope this helps,

Uncle.
 
Old 05-18-2007, 10:32 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
May be I misunderstood the question of the OP.

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.

Last edited by saikee; 05-18-2007 at 10:36 AM.
 
Old 05-18-2007, 08:21 PM   #7
replica9000
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Debian, FreeBSD, Android
Posts: 1,053
Blog Entries: 2

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
Ok so I have DSL booting from the hard drive just as it would from the CD, but still after it scans for USB devices it scans for the knoppix image.

It starts at /dev/scd0, then /dev/sda1 /dev/hda1 /dev/hda2 etc....

My menu.list currently looks like this:
Code:
title		Debian Etch GNU/Linux, kernel 2.6.18-4-k7
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.18-4-k7 vga=791 root=/dev/hda6 ro 
initrd		/boot/initrd.img-2.6.18-4-k7
savedefault

# on /dev/hda1
title		Windows XP Media Center Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1

#DSL
title		Damn Small Linux 3.3
root (hd0,5)
kernel 		/boot/boot.dsl/isolinux/linux24 fromhd=/dev/hda6 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce noapic quiet frugal   BOOT_IMAGE=knoppix 
initrd 		/boot/boot.dsl/isolinux/minirt24.gz
I have the contents of the CD under /boot/boot.dsl/isolinux and I copied /knoppix/knoppix to the root partition that Debian is on (/dev/hda6)

So right now it seems that it can't find the knoppix image it needs to continue even though it scans other areas than the cdrom.
 
Old 05-18-2007, 08:47 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
DSL is a knoppix variant.

If you want Mr. Knoppix itself repeat the same process for Knoopix's iso file.
 
Old 05-19-2007, 05:59 PM   #9
replica9000
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Debian, FreeBSD, Android
Posts: 1,053
Blog Entries: 2

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
Old 05-19-2007, 08:31 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
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
 
Old 05-23-2007, 07:41 PM   #11
replica9000
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Debian, FreeBSD, Android
Posts: 1,053
Blog Entries: 2

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
Ok still no luck. I even tried Knoppix itself and still can't find KNOPPIX image.

I setup the file locations like they are on the CD for both Knoppix and DSL

http://replica9000.bizland.com/bootknoppix01.png
http://replica9000.bizland.com/bootknoppix02.png

And here is my current Grub menu.lst
Code:
title		Debian Etch GNU/Linux, kernel 2.6.18-4-k7
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.18-4-k7 vga=791 root=/dev/hda6 ro 
initrd		/boot/initrd.img-2.6.18-4-k7
savedefault

title		Windows XP Media Center Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1

title		Knoppix 3.8.1 (CD Version)
root (hd0,5)
kernel 		/boot/isolinux/linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce noapic quiet bootfrom=/dev/hda6
initrd          /boot/isolinux/minirt.gz
savedefault

title		Damn Small Linux 3.3
root (hd0,5)
kernel 		/boot/isolinux/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce noapic quiet bootfrom=/dev/hda6
initrd		/boot/isolinux/minirt24.gz
savedefault
Is there anything else I gotta do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting LFS LiveCD in Old World Mac tuxdev Linux From Scratch 4 06-12-2007 04:24 PM
Problem with GParted LiveCD 0.3.4-6 while booting up manhinli Linux - Hardware 3 04-22-2007 04:44 AM
Booting a livecd on an intel mac EagleXL Linux - Software 3 02-19-2007 02:20 PM
Booting LiveCD Safe-Mode What does it do Mickey1 SUSE / openSUSE 1 01-23-2006 08:24 PM
Problem on booting LFS LiveCD satimis Linux From Scratch 4 10-29-2005 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration