19.03.2024, 10:20 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
Tejas
Titel: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)  BeitragVerfasst am: 17.05.2011, 19:41 Uhr



Anmeldung: 09. Mai 2011
Beiträge: 74

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.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kano
Titel: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)  BeitragVerfasst am: 17.05.2011, 20:57 Uhr



Anmeldung: 17. Dez 2003
Beiträge: 16783

You can of course only extract the kernel+initrd and then use fromiso=/dev/part/path/to/image.iso option.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Tejas
Titel: Re: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)  BeitragVerfasst am: 17.05.2011, 22:00 Uhr



Anmeldung: 09. Mai 2011
Beiträge: 74

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 ...
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kano
Titel: Re: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)  BeitragVerfasst am: 17.05.2011, 22:28 Uhr



Anmeldung: 17. Dez 2003
Beiträge: 16783

Maybe you used fat, try ext2/3/4.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Tejas
Titel: Re: Grub 1 Boot of Hellfire Image from HD (Saving 1Gb of HD)  BeitragVerfasst am: 18.05.2011, 00:34 Uhr



Anmeldung: 09. Mai 2011
Beiträge: 74

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 )
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Tejas
Titel:   BeitragVerfasst am: 19.05.2011, 13:51 Uhr



Anmeldung: 09. Mai 2011
Beiträge: 74

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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.