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: Andrey Borzenkov
Subject: Re: grup-pc and boot iso
Date: Tue, 6 Nov 2012 23:00:33 +0400

В 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.



reply via email to

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