Re: [lfs-support] Kernel file not found

2013-12-22 Thread Bruce Dubbs
Igor Živković wrote:
> On 12/22/2013 09:02 AM, Cliff McDiarmid wrote:
>>
 set root=(hd0,7)

 menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
 linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
 }

 menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
 linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
 }

 How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
>>>
>>> You're missing set root=(hd0,6) for in the LFS7 menu entry.
>>
>> Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e 
>> no file found.  There must be some kind of syntax error here somewher.
>
> Instead of global set root statement, define it in each menu entry like
> this:
>
> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
>   set root=(hd0,7)
>   linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
> }
>
> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
>   set root=(hd0,6)
>   linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
> }

This type of problem is generally solved by having /boot on a separate 
partition.  It also gives the advantage of being able to access boot.cfg 
from any booted system without a separate mount.

   -- Bruce



-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Cliff McDiarmid


> - Original Message -
> From: cont...@igor-zivkovic.from.hr
> Sent: 12/22/13 08:50 AM
> To: lfs-support@linuxfromscratch.org
> Subject: Re: [lfs-support] Kernel file not found
> 
> On 12/22/2013 09:02 AM, Cliff McDiarmid wrote:
> >
> >>> set root=(hd0,7)
> >>>
> >>> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
> >>> linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
> >>> }
> >>>
> >>> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
> >>> linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
> >>> }
> >>>
> >>> How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
> >>
> >> You're missing set root=(hd0,6) for in the LFS7 menu entry.
> >
> > Yes thanks that boots the new system okay but leaves lfs6unbootable . I.e 
> > no file found. There must be some kind of syntax error here somewher.
> 
> Instead of global set root statement, define it in each menu entry like 
> this:
> 
> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
>  set root=(hd0,7)
>  linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
> }
> 
> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
>  set root=(hd0,6)
>  linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro

Yes had researched that but many thanks now working.

regards

Cliff

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Pierre Labastie
Le 22/12/2013 09:02, Cliff McDiarmid a écrit :
> 
> 
>> - Original Message -
>> From: cont...@igor-zivkovic.from.hr
>> Sent: 12/21/13 09:05 PM
>> To: lfs-support@linuxfromscratch.org
>> Subject: Re: [lfs-support] Kernel file not found
>>
>> On 12/21/2013 09:35 PM, Cliff McDiarmid wrote:
>>> Hi
>>>
>>> I've built LFS six times and never had this issue. After rebooting I'm 
>>> getting an error saying 'file /boot/lfskernel-3.12.5 not found'
>>>
>>> My 'grub.cfg' file from the host system(also LFS)reads:
>>>
>>> # Begin /boot/grub/grub.cfg
>>> set default=0
>>> set timeout=20
>>>
>>> set root=(hd0,7)
>>>
>>> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
>>> linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
>>> }
>>>
>>>
>>>
>>> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
>>> linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
>>> }
>>>
>>> How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
>>
>> You're missing set root=(hd0,6) for in the LFS7 menu entry.
>>
>> -- 
>> Igor Živković
>> http://www.slashtime.net/
>> -- 
>> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> Unsubscribe: See the above information page
> 
> Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e no 
> file found.  There must be some kind of syntax error here somewher.
> 
> Cliff
> 
The "set root" instructions should be inside the brace:
menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
set root=(hd0,7)
linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
}

and same for the second one, replacing 7 with 6. Note that the root set by
"set root" does not need to be the same as the "root=" kernel parameter.

For example, you could have all the kernel files on the first partition and
have something like:
set root=(hd0,1)
linux /lfskernel-3.12.1 root=/dev/sda7 ro

(notice that /boot is suppressed in the last line). Then you could mount
/dev/sda1 on /boot with /etc/fstab.

Pierre
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Igor Živković
On 12/22/2013 09:02 AM, Cliff McDiarmid wrote:
>
>>> set root=(hd0,7)
>>>
>>> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
>>> linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
>>> }
>>>
>>> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
>>> linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
>>> }
>>>
>>> How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
>>
>> You're missing set root=(hd0,6) for in the LFS7 menu entry.
>
> Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e no 
> file found.  There must be some kind of syntax error here somewher.

Instead of global set root statement, define it in each menu entry like 
this:

menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
 set root=(hd0,7)
 linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
}

menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
 set root=(hd0,6)
 linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
}

-- 
Igor Živković
http://www.slashtime.net/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Cliff McDiarmid


> - Original Message -
> From: cont...@igor-zivkovic.from.hr
> Sent: 12/21/13 09:05 PM
> To: lfs-support@linuxfromscratch.org
> Subject: Re: [lfs-support] Kernel file not found
> 
> On 12/21/2013 09:35 PM, Cliff McDiarmid wrote:
> > Hi
> >
> > I've built LFS six times and never had this issue. After rebooting I'm 
> > getting an error saying 'file /boot/lfskernel-3.12.5 not found'
> >
> > My 'grub.cfg' file from the host system(also LFS)reads:
> >
> > # Begin /boot/grub/grub.cfg
> > set default=0
> > set timeout=20
> >
> > set root=(hd0,7)
> >
> > menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
> > linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
> > }
> >
> >
> >
> > menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
> > linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
> > }
> >
> > How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
> 
> You're missing set root=(hd0,6) for in the LFS7 menu entry.
> 
> -- 
> Igor Živković
> http://www.slashtime.net/
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page

Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e no 
file found.  There must be some kind of syntax error here somewher.

Cliff
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Kernel file not found

2013-12-21 Thread Igor Živković
On 12/21/2013 09:35 PM, Cliff McDiarmid wrote:
> Hi
>
> I've built LFS six times and never had this issue.  After rebooting I'm 
> getting an error saying 'file /boot/lfskernel-3.12.5 not found'
>
> My 'grub.cfg' file from the host system(also LFS)reads:
>
> # Begin /boot/grub/grub.cfg
> set default=0
> set timeout=20
>
> set root=(hd0,7)
>
> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
>   linux  /boot/lfskernel-3.12.1 root=/dev/sda7 ro
> }
>
>
>
> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
>   linux  /boot/lfskernel-3.12.5 root=/dev/sda6 ro
> }
>
> How is this?  Spelling is all correct in /boot.  The host 'LFS6' boots fine.

You're missing set root=(hd0,6) for in the LFS7 menu entry.

-- 
Igor Živković
http://www.slashtime.net/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] Kernel file not found

2013-12-21 Thread Cliff McDiarmid
Hi

I've built LFS six times and never had this issue.  After rebooting I'm getting 
an error saying 'file /boot/lfskernel-3.12.5 not found'

My 'grub.cfg' file from the host system(also LFS)reads:

# Begin /boot/grub/grub.cfg
set default=0
set timeout=20

set root=(hd0,7)

menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
     linux  /boot/lfskernel-3.12.1 root=/dev/sda7 ro
}



menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
     linux  /boot/lfskernel-3.12.5 root=/dev/sda6 ro
}

How is this?  Spelling is all correct in /boot.  The host 'LFS6' boots fine.

thanks

Cliff
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page