| Author |
Message |
|
|
Post subject: Loading Hellfire image from HD
Posted: May 11, 2011 - 05:58 PM
|
|
Joined: May 09, 2011
Posts: 74
|
|
There are two versions maybe both dated?
1. http://www.kanotix.com/index.php?module=pnWikka&tag=BootFromIso
Quote:
Now what if you don't want to just copy it to KNOPPIX/KNOPPIX.ISO, well then you have choices in how to build up the path it will look for:
fromiso=path/to/KANO*.iso
Makes Kanotix look for path/to/KANO*.iso
then
Quote:
knoppix_iso_dir=path/to/
Makes Kanotix look for path/to/KNOPPIX.ISO
knoppix_iso_name=KANO*.iso
Makes Kanotix look for KNOPPIX/KANO*.iso
which is confusing. And then
Quote:
fromhd=/dev/hdXN?
Makes Kanotix only check the specified device. Unless you use this Kanotix will check your drives as it would when looking for the cd.
2. http://www.kanotix.com/FAQ-id_cat-62.html#q297
& http://kanotix.com/FAQ-id_cat-63.html#q298
Quote:
With this cheatcode you can start from an iso out of a partition
Requirements:
- a functioning grub (on a floppy, a HD-Installation or from the Live-CD)
- a KANOTIX ISO Image e.g.: KANOTIX-2005-04.iso
First we choose a place for the iso and 2 files we need, so we get shorter names.
# mkdir /media/hda5/kanotix
# mv KANOTIX-2005-04.iso /media/hda5/kanotix
mount the iso image:
# mkdir -p /mnt/test
# mount -t iso9660 -o loop,ro /media/hda5/kanotix/KANOTIX-2005-04.iso /mnt/test
copy the files miniroot.gz and vmlinuz
# cp /mnt/test/boot/vmlinuz /media/hda5/kanotix/
# cp /mnt/test/boot/miniroot.gz /media/hda5/kanotix/
customize grub
### ISO boot
title Kanotix 32bit from ISO
kernel (hd0,4)/kanotix/vmlinuz ramdisk_size=100000 init=/etc/init fromiso=/kanotix/K*.iso noprompt noeject lang=en apm=power-off nomce quiet
initrd (hd0,4)/kanotix/miniroot.gz
Assume the second to be more appropriate. So, on my existing system I have created a top level directory '/Hellfire'
Code:
# mkdir /Hellfire
$ mv /kix/kanotix-2.6.38rc6.iso /Hellfire
$ ls -l /Hellfire
-rw-r--r-- 1 ik ik 1131413504 May 8 01:58 kanotix-2.6.38rc6.iso
# mkdir -p /mnt/test
# mount -t iso9660 -o loop,ro /Hellfire/kanotix-2.6.38rc6.iso /mnt/test
# ls -l /mnt/test/live
-r--r--r-- 1 root root 26399 Mar 2 04:47 filesystem.packages
-r--r--r-- 1 root root 1103929344 Mar 2 04:46 filesystem.squashfs
-r--r--r-- 1 root root 19970691 Mar 2 04:47 initrd.img
-r--r--r-- 1 root root 165084 Mar 2 04:47 memtest
-r--r--r-- 1 root root 4533424 Mar 2 04:47 vmlinuz
No 'miniroot.gz', so assume changed to be 'initrd.img'
Code:
# cp /mnt/test/live/vmlinuz /Hellfire
# cp /mnt/test/live/initrd.img /Hellfire
# ls -l /Hellfire
-r--r--r-- 1 root root 19970691 May 8 13:25 initrd.img
-rw-r--r-- 1 ik ik 1131413504 May 8 01:58 kanotix-2.6.38rc6.iso
-r--r--r-- 1 root root 4533424 May 8 13:24 vmlinuz
GRUB (Version 0.96) booting crashes!
Code:
# ISO boot
title Kanotix 32bit from ISO
kernel (hd0,0)/kanotix/vmlinuz ramdisk_size=100000 init=/etc/init fromiso=/Hellfire/k*.iso apm=power-off nomce quiet noprompt noeject
initrd (hd0,0)/kanotix/initrd.img
OR
Code:
# ISO boot
title Kanotix 32bit from ISO
kernel (hd0,0)/Hellfire/vmlinuz ramdisk_size=100000 init=/etc/init fromiso=/Hellfire/kanotix-2.6.38rc6.iso apm=power-off nomce quiet noprompt noeject
initrd (hd0,0)/Hellfire/initrd.img
OR Shorter Image Name
Code:
# mv /Hellfire/kanotix-2.6.38rc6.iso /Hellfire/hf.iso
# ISO boot
title Kanotix 32bit from ISO
kernel (hd0,0)/kanotix/vmlinuz ramdisk_size=100000 init=/etc/init fromiso=/Hellfire/hf.iso apm=power-off nomce quiet noprompt noeject
initrd (hd0,0)/kanotix/initrd.img
All give rise to the following output:
Code:
kernel (hd0,0)/kanotix/vmlinuz ramdisk_size=100000 init=/etc/init fromiso=/Hellfire/hf.iso apm=power-off nomce quiet noprompt noeject
[Linux-bzImage, setup=0x3a00, size=0x44f0b0]
initrd /Hellfire/initrd.img
[Linux-initrd @ 0x36bc4000, 0x130ba83 bytes]
boot
mdadm: No arrays found in config file or automatically
mount: can't read '/etc/fstab': No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /etc/init.
No init found. Try parameter init=bootarg.
BusyBox
Enter 'help'
/bin/sh: can't access tty; job control turned off
(initramfs)
(initramfs) find / -name linuxrc
(initramfs)
'linuxrc' not present!
Kernel 2.6.11.7 mit einigen Patches
KANOTIX 2005-02
P.S. Don't let me stop anyone from responding in German. It's just easie and quickerr for me to write in English.. |
|
|
| |
|
|
|
 |
|
|
Post subject: Loading Hellfire image from HD
Posted: May 11, 2011 - 07:17 PM
|
|
Joined: Dec 17, 2003
Posts: 16817
|
|
|
|
|
 |
|
|
Post subject: Loading Hellfire image from HD
Posted: May 12, 2011 - 12:57 AM
|
|
Joined: Mar 15, 2008
Posts: 610
|
|
Well you see not every part on the Wiki is up-to-date. There is a lack of men power to hold the Wiki in a good shape. Feel free to help and fix it. I like to see that the people take a lot at it, most people know that it is not in the best shape and ignore it completely. That's the wrong attitude to change the situation. So you are really welcome to help.
Thanks, TheOne |
_________________ Lenovo ThinkPad X220 | Core i7-2640M 16GB | Hellfire 3.6
FSC Tablet T4220 | Core2 Duo T7250 2GHz 3GB | Intel GMA X3100 | Hellfire 3.6
Clevo M570U | Core2 T7200 2GHz 2GB | Geforce Go 7950gtx | Hellfire 3.2
|
| |
|
|
|
 |
|
|
Post subject: Re: Loading Hellfire image from HD
Posted: May 12, 2011 - 12:57 PM
|
|
Joined: May 09, 2011
Posts: 74
|
|
|
Kano wrote:
The Hellfire 2011-05 way
which doesn't work cos I need to get Grub2
btw couldn't help noticing that the '666..' script
Code:
set isopart=/dev/sda1
set isopath=/Hellfire
set isoname=hf.iso
...
menuentry "Kanotix Live - EN" {
search -sf /${isopath}/${isoname}
loopback iso /${isopath}/${isoname}
linux (iso)/live/vmlinuz fromiso=${isopart}/${isopath}/${isoname} boot=live config utc=yes locales=us quiet
initrd (iso)/live/initrd.img
}
...
woud give rise to double // slashes,
Code:
search -sf //Hellfire/${isoname}
loopback iso //Hellfire/${isoname}
linux (iso)/live/vmlinuz fromiso=${isopart}//Hellfire/${isoname} boot=live config
and would it matter? |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: Loading Hellfire image from HD
Posted: May 13, 2011 - 02:42 AM
|
|
Joined: Dec 17, 2003
Posts: 16817
|
|
| i see no reason for //, can you tell me which bootloader you use? grub2 is really common. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: Loading Hellfire image from HD
Posted: May 13, 2011 - 08:39 PM
|
|
Joined: May 09, 2011
Posts: 74
|
|
|
|
|
 |
|
|
Post subject: Re: Loading Hellfire image from HD
Posted: May 14, 2011 - 01:10 AM
|
|
Joined: Dec 17, 2003
Posts: 16817
|
|
| Grub 1 can not be used that way, there is no loopback support. In that case you extract the live dir - best rename it to kanotix and use live-media-path=kanotix as extra option to the default options - but WITHOUT fromiso option - or extract just kernel + initrd and use fromiso. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: Loading Hellfire image from HD using GRUB (Version 0.96)
Posted: May 15, 2011 - 01:19 AM
|
|
Joined: May 09, 2011
Posts: 74
|
|
|
Kano wrote:
Grub 1 can not be used that way, there is no loopback support. In that case you extract the live dir - best rename it to kanotix and use live-media-path=kanotix as extra option to the default options - but WITHOUT fromiso option
Thanx.
TheOne wrote:
Well you see not every part on the Wiki is up-to-date. There is a lack of men power to hold the Wiki in a good shape. Feel free to help and fix it. ... So you are really welcome to help.
Thanks, TheOne
For the Record:
Code:
# mkdir /mnt/kix
# mkdir /kanotix
# mount -t iso9660 -o loop,ro /Hellfire/hf.iso /mnt/kix
# cp -a /mnt/kix/live/* /kanotix
# ls -l /kanotix
-r--r--r-- 1 root root 26399 Mar 2 04:47 filesystem.packages
-r--r--r-- 1 root root 1103929344 Mar 2 04:46 filesystem.squashfs
-r--r--r-- 1 root root 19970691 Mar 2 04:47 initrd.img
-r--r--r-- 1 root root 165084 Mar 2 04:47 memtest
-r--r--r-- 1 root root 4533424 Mar 2 04:47 vmlinuz
Edit: menu.lst
Code:
title Hellfire Live - GFX - EN
root (hd0,0)
kernel /kanotix/vmlinuz live-media-path=kanotix boot=live config utc=yes locales=us quiet gfx=on
initrd /kanotix/initrd.img
|
|
|
| |
|
|
|
 |
|
|
Post subject: Loading Hellfire image from HD using GRUB (Version 0.96)
Posted: May 16, 2011 - 10:47 PM
|
|
Joined: May 09, 2011
Posts: 74
|
|
There is a rider to be appended here.
If there is a top level directory of the same name, as that given in 'live-media-pathh=' , in another partiition as well, then that directory could be used resulting in a crash thru picking up the wrong version. |
|
|
| |
|
|
|
 |
|
|
Post subject: Loading Hellfire image from HD using GRUB (Version 0.96)
Posted: May 17, 2011 - 08:35 AM
|
|
Joined: Dec 17, 2003
Posts: 16817
|
|
Thats correct, you can specify
live-media=/dev/sdx |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 18, 2011 - 07:05 AM
|
|

Joined: May 02, 2004
Posts: 471
Location: Portland, OR, USA
|
|
This would be a good time to link to the Debian Live wiki on how to add a "persistent home" to your "poor man's installation".
The short version:
- Create and format a loopback file named "live-rw"
- Put it at the root of a formatted partition (I'd guess it has to be a different partition than the one you have the kernel, initrd, and sqashfs images saved to)
- Put the cheatcode "persistent" in your kernel line
So your GRUB1 (not GRUB2) entry might look like this. (In this example the kernel, initrd.img, and squashfs image are saved at /dev/sda3/mnt/kanotix and the loopback image is at the root of another partition, both ext3-formatted.)
Code:
title Kanotix PMI
root (hd0,2)
kernel /mnt/kanotix/vmlinuz \
live-media-path=mnt/kanotix \
boot=live \
config \
utc=no \
locales=en_US \
timezone=America/Los_Angeles \
quiet \
persistent
initrd /mnt/kanotix/initrd.img
boot
|
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 18, 2011 - 07:58 AM
|
|
Joined: Jan 06, 2005
Posts: 638
|
|
for persistence I use a separate partition rather than a loopback file. I give a label to this (ext3-formated) partition: live-rw.
The entry "persistent" in Grub will then cause all changes made to the live system to be put into this live-rw-partition. Upon reboot these changes are loaded into the live system. They also can easily be inspected there....... |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 18, 2011 - 11:53 AM
|
|
Joined: Dec 17, 2003
Posts: 16817
|
|
@eco2geek
The "/mnt" looks weird in your example. Also the last "boot" is not needed. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 19, 2011 - 02:39 AM
|
|

Joined: May 02, 2004
Posts: 471
Location: Portland, OR, USA
|
|
You're right, it works equally well without "boot" at the end and with "live-media-path=/mnt/kanotix".
Is there a replacement for the "noeject" cheatcode, which no longer works? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 19, 2011 - 05:26 PM
|
|
Joined: May 09, 2011
Posts: 74
|
|
|
eco2geek wrote:
This would be a good time to link to the Debian Live wiki on how to add a "persistent home" to your "poor man's installation".
The short version:
- Create and format a loopback file named "live-rw"
- Put it at the root of a formatted partition (I'd guess it has to be a different partition than the one you have the kernel, initrd, and sqashfs images saved to)
Do you mean
Code:
# Create an empty ramdisk image
$ dd if=/dev/null of=live-rw bs=1G seek=1 # for a 1GB sized image file
# Make it an ext2 mountable file system
$ /sbin/mkfs.ext2 -F live-rw
Seems to me to be more flexible to have a file which one can move around, rather than to be bound to a particular partition. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 20, 2011 - 09:52 AM
|
|

Joined: May 02, 2004
Posts: 471
Location: Portland, OR, USA
|
|
|
Tejas wrote:
Seems to me to be more flexible to have a file which one can move around, rather than to be bound to a particular partition.
Why? Are you planning on moving around the 1.1 GB squashfs file between partitions, too?
Seriously, those instructions say the "live-rw" file just has to be at the root of a partition that can be found and read. It's not tied to any particular partition. |
|
|
| |
|
|
|
 |
|
|