kanotix.com

Installation - Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)

Tejas - 17.05.2011, 19:41 Uhr
Titel: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)
Kano hat folgendes geschrieben::
Grub 1 can not be used that way, there is no loopback support. In that case you extract the live dir -... - or extract just kernel + initrd and use fromiso.

Using 'fromiso' would save a GB of HD in duplication, when I can get it to work.
Code:
# mount /dev/sda1 /s
# ls -l /s/Hellfire
-r--r--r-- 1 root root 19970691 May 8 11:25 initrd.img
-r--r--r-- 1 root root 4533424 May 8 11:24 vmlinuz
# ls -l /s/kix
-rw-r--r-- 1 kanotix kanotix 1131413504 May 7 23:58 hf.iso
-rw-r--r-- 1 kanotix kanotix 1319108608 May 12 20:35 kanotix-2.6.38.iso
GRUB menu.lst Entry
Code:
title Kanotix Live - GFX - EN 'fromiso='
root (hd0,0)
kernel /Hellfire/vmlinuz fromiso=/dev/sda1/kix/hf.iso boot=live config utc=yes locales=us quiet gfx=on
initrd /Hellfire/initrd.img
Boot results in Loop:
Zitat:
mkdir: can't create directory '/isofrom': File exists
mount: mounting /dev/sda1 on /isofrom failed: Invalid argument
sh: bad number
losetup: /dev/loop0: No such file or directory
Ending in Failure Message

Different 'fromiso=' Value
Code:

# ls -l /s
-rw-r--r-- 1 kanotix kanotix 1131413504 May  7 23:58 hf.iso
GRUB menu.lst Entry
Code:
title           Kanotix Live - GFX - EN  'fromiso='
root      (hd0,0)
kernel      /Hellfire/vmlinuz fromiso=/dev/sda1 boot=live config utc=yes locales=us quiet gfx=on
initrd      /Hellfire/initrd.img
Boot results in Loop:
Zitat:
Warning: device for bootoption isofrom= (/dev/sda1) not found.
Ending in Failure Message

Failure Message
Zitat:
BOOT FAILED!

This Debian Live Image failed to boot.
...
Please file a bug against the 'live-boot' package or ...
...
live-boot will now start a shell. The error message was: Unable to find a medium containing a live file system.

Stopped trying different values once BIOS was overwritten. This was a bit of a blessing in disguise, because boot stopped at the screen: DEL for BIOS Setup or F9 to change boot dievice, as had not been able to enter Setup since lossing track of BIOS pw. First time this message has not whizzed by, and I could see this Bios offered change of boot device thru F9.
Kano - 17.05.2011, 20:57 Uhr
Titel: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)
You can of course only extract the kernel+initrd and then use fromiso=/dev/part/path/to/image.iso option.
Tejas - 17.05.2011, 22:00 Uhr
Titel: Re: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)
Kano hat folgendes geschrieben::
You can of course only extract the kernel+initrd and then use fromiso=/dev/part/path/to/image.iso option.


That"s just what I've done Böse, I believe, but with no joy ...
Kano - 17.05.2011, 22:28 Uhr
Titel: Re: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)
Maybe you used fat, try ext2/3/4.
Tejas - 18.05.2011, 00:34 Uhr
Titel: Re: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)
Kano hat folgendes geschrieben::
Maybe you used fat, try ext2/3/4.


Used reiserfs, but can also try ext2/3/4, which I wasn't sure would work Mit den Augen rollen (Will certainly save some extra space )
Tejas - 19.05.2011, 13:51 Uhr
Titel:
Kano hat folgendes geschrieben::
Maybe you used fat, try ext2/3/4.
Tejas hat folgendes geschrieben::
Used reiserfs, but can also try ext2/3/4,
Code:
grub> root (hd0,4)
ext2 fs
grub> kernel /kx
Bad file or directory
Entry 'menu.lst'
Code:
root (hd0,0)
reiserfs
kernel          /kx/vmlinuz fromiso=/dev/sda5/kx/kanotix-2.6.38.iso boot=live config utc=yes locales=us quiet gfx=on
initrd          /kx/initrd.img
Combination works Ausrufezeichen

So, in a nutshell: (Running from Live System)

1. Create Directory in ext2 Partiion
Code:
mkdir px2
sudo mount /dev/sda5 px2
mkdir px2/kx

2. Download ISO to Directory kx in ext2 Partition

3. Mount the Iso File
Code:
mkdir iso
sudo mount -t iso9660 -o loop,ro px2/kx/kanotix-2.6.38.iso iso

4. Create Directory in reiserfs Partiion
Code:
mkdir reiser
sudo mount /dev/sda1 reiser
sudo mkdir reiser/kx
sudo chmod a+rw reiser/kx

5. Copy from iso's 'live' directory the files: vmlinuz and initrd.img
Code:
cp -a iso/live/vmlinuz reiser/kx
cp -a iso/live/initrd.img reiser/kx
ls -l reiser/kx
-r--r--r-- 1 kanotix kanotix 20229456 May 11 15:17 initrd.img
-r--r--r-- 1 kanotix kanotix  4534736 May 11 15:17 vmlinuz

6. Grub 'menu.lst' Entry
Zitat:
# ISO boot

title Kanotix Live - GFX - EN 'fromiso=' kanotix-2.6.38
root (hd0,0) reiserfs partition
kernel /kx/vmlinuz fromiso=/dev/sda5/kx/kanotix-2.6.38.iso boot=live config utc=yes locales=us quiet gfx=on
initrd /kx/initrd.img

Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007