help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grup-pc and boot iso


From: Gorden
Subject: Re: grup-pc and boot iso
Date: Tue, 06 Nov 2012 11:26:16 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121027 Icedove/3.0.11

On 11/06/2012 11:00 AM, Andrey Borzenkov wrote:
В Tue, 06 Nov 2012 10:17:07 -0800
Gorden<address@hidden>  пишет:

On 11/06/2012 07:51 AM, Andrey Borzenkov wrote:
В Mon, 05 Nov 2012 20:00:41 -0800
Gorden<address@hidden>   пишет:


set root='(hd0,msdos10)/ISO'

...

Do I have a syntax error? Or have I left something out?

Yes. Assuming file "ISO" is the image

loopback loop0 (hd0,msdos10)/ISO
set root=loop0


Thanks Andrey for the reply.
The ISO is a directory which contains the nst-2.16.0.img file. I also
mounted the iso to /mnt and
extracted the 'vmlinuz0' and initrd.0.img files to the directory.
This had been suggested by some of
the tutorials on how to do this.

The full "path name" would be /data/ISO/nst-2.16.0.iso for the iso.
And /data/ISO/vmlinuz0 and /data/ISO/initrd0.img for those two files.

Also the /data path name is /dev/sda10, or in grub speak '(hd0,10)'.

If you want to load files from filesystem and not from ISO image you
can simply do

linux (hd0,10)/data/ISO/vmlinuz0 ... other options ...
initrd (hd0,10)/data/ISO/initrd0.img

There is no need to set root variable.


Andrey,
I am not in IT, and I see I am not supplying enough information.
I am trying to install the '.img' file in grub speak to '(hd0,msdos14)'. The old 'let's save $0.20 US, by not burning to a cdrom.
Here is the relevant part of my stock grub.cfg.

menuentry 'Windows Vista'{
insmod ntfs
set root='(hd0,1)'
search --no-floppy
chainloader +1
}
menuentry 'nst-v2.16.0_install'{
insmod part_msdos
insmod ext2
insmod iso9660
set root='(hd0,msdos10)/ISO'
###search --no-floppy--fs-uuid --set=root4886ac1b-e128-4e72-b826-375e0c47a75e
linux  /vmlinuz0 root=UUID=4886ac1b-e128-4e72-b826-375e0c47a75e ro quiet
initrd /initrd0.img
}
#menuentry "nst-2.16.0-ISO" {
#set isofile="/nst/nst.iso"
#loopback loop (hd0,6)$isofile
#linux (loop)/vmlinuz0 boot=/nst/nst.iso iso-scan/filename=$isofile noprompt noeject
#initrd (loop)/initrd.img
#}
In the 'loop' stanza above, I had the nst image file in another directory. And have since moved it
to the /data partition because of space constraints.

For added information, I am running Debian-6.0.5, and the nst image is based on Fedora16. I don't think (?) this should make a difference as Fedora is still using grub-legacy.

Gorden

--
Gorden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]