All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB 2 does not show new kernel :(
@ 2007-06-26 19:48 shirish
  2007-06-27  1:58 ` Bean
  2007-06-27  2:18 ` Bean
  0 siblings, 2 replies; 10+ messages in thread
From: shirish @ 2007-06-26 19:48 UTC (permalink / raw)
  To: grub-devel

Hi all,
         I thought long & hard before making this post. I tried all
the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
136 views at this point in time but no answers :( ) . hence made long
posts about the issue at
http://ubuntuforums.org/showthread.php?t=484856

If anybody knows what I need to do or look for , please lemme know.

Cheers !
-- 
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/

065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
  2007-06-26 19:48 shirish
@ 2007-06-27  1:58 ` Bean
  2007-06-27  3:07   ` Bean
  2007-06-27  2:18 ` Bean
  1 sibling, 1 reply; 10+ messages in thread
From: Bean @ 2007-06-27  1:58 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> Hi all,
>         I thought long & hard before making this post. I tried all
> the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> 136 views at this point in time but no answers :( ) . hence made long
> posts about the issue at
> http://ubuntuforums.org/showthread.php?t=484856
> 
> If anybody knows what I need to do or look for , please lemme know.
> 
> Cheers !

Currently, the script engine of grub2 doesn't support comment line ! Just
remove any line that starts with #, and you should be fine.

-- 
Bean




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
  2007-06-26 19:48 shirish
  2007-06-27  1:58 ` Bean
@ 2007-06-27  2:18 ` Bean
  1 sibling, 0 replies; 10+ messages in thread
From: Bean @ 2007-06-27  2:18 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> Hi all,
>         I thought long & hard before making this post. I tried all
> the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> 136 views at this point in time but no answers :( ) . hence made long
> posts about the issue at
> http://ubuntuforums.org/showthread.php?t=484856
> 
> If anybody knows what I need to do or look for , please lemme know.
> 
> Cheers !

Another possible cause is that your font file is missing. In that case,
remove the following lines:

font (hd1,1)/usr/share/grub/unifont.pff
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal gfxterm

-- 
Bean




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
  2007-06-27  1:58 ` Bean
@ 2007-06-27  3:07   ` Bean
  0 siblings, 0 replies; 10+ messages in thread
From: Bean @ 2007-06-27  3:07 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jun 27, 2007 at 09:58:38AM +0800, Bean wrote:
> On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> > Hi all,
> >         I thought long & hard before making this post. I tried all
> > the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> > 136 views at this point in time but no answers :( ) . hence made long
> > posts about the issue at
> > http://ubuntuforums.org/showthread.php?t=484856
> > 
> > If anybody knows what I need to do or look for , please lemme know.
> > 
> > Cheers !
> 
> Currently, the script engine of grub2 doesn't support comment line ! Just
> remove any line that starts with #, and you should be fine.

My mistake. Although the script engine doesn't handle comment, lines start
with # are dropped when read from config file, so it wouldn't cause problem.

I suspect the device name is wrong. If you are booting with the hard disk,
the device name should be (hd0,1). The wrong device name causes the font 
command to fail, and it in turn causes other problem. Change (hd1,1) to
(hd0,1), see if it fixes the problem.

-- 
Bean




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
@ 2007-06-27  6:25 shirish
  2007-06-27  6:39 ` Bean
  0 siblings, 1 reply; 10+ messages in thread
From: shirish @ 2007-06-27  6:25 UTC (permalink / raw)
  To: grub-devel

> Message: 7
> Date: Wed, 27 Jun 2007 09:58:38 +0800
> From: Bean <bean123@126.com>
> Subject: Re: GRUB 2 does not show new kernel :(
> To: The development of GRUB 2 <grub-devel@gnu.org>
> Message-ID: <20070627015838.GA2686@ws3.vdp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> > Hi all,
> >         I thought long & hard before making this post. I tried all
> > the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> > 136 views at this point in time but no answers :( ) . hence made long
> > posts about the issue at
> > http://ubuntuforums.org/showthread.php?t=484856
> >
> > If anybody knows what I need to do or look for , please lemme know.
> >
> > Cheers !
>
> Currently, the script engine of grub2 doesn't support comment line ! Just
> remove any line that starts with #, and you should be fine.
>
> --
> Bean
>
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 27 Jun 2007 10:18:09 +0800
> From: Bean <bean123@126.com>
> Subject: Re: GRUB 2 does not show new kernel :(
> To: The development of GRUB 2 <grub-devel@gnu.org>
> Message-ID: <20070627021809.GA2701@ws3.vdp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> > Hi all,
> >         I thought long & hard before making this post. I tried all
> > the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> > 136 views at this point in time but no answers :( ) . hence made long
> > posts about the issue at
> > http://ubuntuforums.org/showthread.php?t=484856
> >
> > If anybody knows what I need to do or look for , please lemme know.
> >
> > Cheers !
>
> Another possible cause is that your font file is missing. In that case,
> remove the following lines:
>
> font (hd1,1)/usr/share/grub/unifont.pff
> set gfxmode=640x480
> insmod gfxterm
> insmod vbe
> terminal gfxterm
>
> --
> Bean
>
>
>
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 27 Jun 2007 11:07:00 +0800
> From: Bean <bean123@126.com>
> Subject: Re: GRUB 2 does not show new kernel :(
> To: The development of GRUB 2 <grub-devel@gnu.org>
> Message-ID: <20070627030700.GA2806@ws3.vdp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Jun 27, 2007 at 09:58:38AM +0800, Bean wrote:
> > On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> > > Hi all,
> > >         I thought long & hard before making this post. I tried all
> > > the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> > > 136 views at this point in time but no answers :( ) . hence made long
> > > posts about the issue at
> > > http://ubuntuforums.org/showthread.php?t=484856
> > >
> > > If anybody knows what I need to do or look for , please lemme know.
> > >
> > > Cheers !
> >
> > Currently, the script engine of grub2 doesn't support comment line ! Just
> > remove any line that starts with #, and you should be fine.
>
> My mistake. Although the script engine doesn't handle comment, lines start
> with # are dropped when read from config file, so it wouldn't cause problem.
>
> I suspect the device name is wrong. If you are booting with the hard disk,
> the device name should be (hd0,1). The wrong device name causes the font
> command to fail, and it in turn causes other problem. Change (hd1,1) to
> (hd0,1), see if it fixes the problem.
>
> --
> Bean
>

Hi all,
       Mr. Bean (chuckles knowing a different bean :) ) , first of all
thank you for your time. You are right as far as unifont.pff is
concerned.  I just did a search and saw that unifont is not installed.
Have installed it now. But still the same issue is there.

btw I have two hard disks :-

shirish@ubuntu:~$ sudo fdisk -l
[sudo] password for shirish:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1912    15358108+   7  HPFS/NTFS
/dev/sda2            1913       19457   140930212+   f  W95 Ext'd (LBA)
/dev/sda5            1913        6083    33503526    7  HPFS/NTFS
/dev/sda6            6084       10254    33503526    7  HPFS/NTFS
/dev/sda7           10255       14425    33503526    7  HPFS/NTFS
/dev/sda8           14426       18596    33503526    7  HPFS/NTFS
/dev/sda9           18597       19457     6915951    7  HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1216     9767488+  83  Linux
/dev/sdb2            1217        9483    66404677+  83  Linux
/dev/sdb3            9484        9733     2008125   82  Linux swap / Solaris

Another thing, is not written in /boot/grub/grub.cfg not to alter stuff ?

#
# DO NOT EDIT THIS FILE
#
# It is automaticaly generated by /usr/sbin/update-grub using
templates from /etc/grub.d
# and settings from /etc/default/grub
#

Please lemme know what is to be done & will try accordingly.

-- 
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/

065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
  2007-06-27  6:25 GRUB 2 does not show new kernel :( shirish
@ 2007-06-27  6:39 ` Bean
  0 siblings, 0 replies; 10+ messages in thread
From: Bean @ 2007-06-27  6:39 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jun 27, 2007 at 11:55:07AM +0530, shirish wrote:
> Hi all,
>       Mr. Bean (chuckles knowing a different bean :) ) , first of all
> thank you for your time. You are right as far as unifont.pff is
> concerned.  I just did a search and saw that unifont is not installed.
> Have installed it now. But still the same issue is there.
> 
> btw I have two hard disks :-
> 
> shirish@ubuntu:~$ sudo fdisk -l
> [sudo] password for shirish:
> 
> Disk /dev/sda: 160.0 GB, 160041885696 bytes
> 255 heads, 63 sectors/track, 19457 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>   Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1        1912    15358108+   7  HPFS/NTFS
> /dev/sda2            1913       19457   140930212+   f  W95 Ext'd (LBA)
> /dev/sda5            1913        6083    33503526    7  HPFS/NTFS
> /dev/sda6            6084       10254    33503526    7  HPFS/NTFS
> /dev/sda7           10255       14425    33503526    7  HPFS/NTFS
> /dev/sda8           14426       18596    33503526    7  HPFS/NTFS
> /dev/sda9           18597       19457     6915951    7  HPFS/NTFS
> 
> Disk /dev/sdb: 80.0 GB, 80060424192 bytes
> 255 heads, 63 sectors/track, 9733 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>   Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1   *           1        1216     9767488+  83  Linux
> /dev/sdb2            1217        9483    66404677+  83  Linux
> /dev/sdb3            9484        9733     2008125   82  Linux swap / Solaris
> 
> Another thing, is not written in /boot/grub/grub.cfg not to alter stuff ?
> 
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automaticaly generated by /usr/sbin/update-grub using
> templates from /etc/grub.d
> # and settings from /etc/default/grub
> #
> 
> Please lemme know what is to be done & will try accordingly.
> 

I recommend that you remove these lines:

font (hd1,1)/usr/share/grub/unifont.pff
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal gfxterm

You will enter text mode, but this is not an issue since you're not using
any non ascii characters.

-- 
Bean




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
@ 2007-06-27 14:05 shirish
  2007-06-27 16:17 ` Bean
  0 siblings, 1 reply; 10+ messages in thread
From: shirish @ 2007-06-27 14:05 UTC (permalink / raw)
  To: grub-devel

> >
> > --
> > Bean
> >
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 8
> > Date: Wed, 27 Jun 2007 10:18:09 +0800
> > From: Bean <bean123@126.com>
> > Subject: Re: GRUB 2 does not show new kernel :(
> > To: The development of GRUB 2 <grub-devel@gnu.org>
> > Message-ID: <20070627021809.GA2701@ws3.vdp.com>
> > Content-Type: text/plain; charset=us-ascii
> >
> > On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> > > Hi all,
> > >         I thought long & hard before making this post. I tried all
> > > the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> > > 136 views at this point in time but no answers :( ) . hence made long
> > > posts about the issue at
> > > http://ubuntuforums.org/showthread.php?t=484856
> > >
> > > If anybody knows what I need to do or look for , please lemme know.





> Message: 3
> Date: Wed, 27 Jun 2007 14:39:35 +0800
> From: Bean <bean123@126.com>
> Subject: Re: GRUB 2 does not show new kernel :(
> To: The development of GRUB 2 <grub-devel@gnu.org>
> Message-ID: <20070627063935.GA2440@ws3.vdp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Jun 27, 2007 at 11:55:07AM +0530, shirish wrote:
> > Hi all,
> >       Mr. Bean (chuckles knowing a different bean :) ) , first of all
> > thank you for your time. You are right as far as unifont.pff is
> > concerned.  I just did a search and saw that unifont is not installed.
> > Have installed it now. But still the same issue is there.
> >
> > btw I have two hard disks :-
> >
> > shirish@ubuntu:~$ sudo fdisk -l
> > [sudo] password for shirish:
> >
> > Disk /dev/sda: 160.0 GB, 160041885696 bytes
> > 255 heads, 63 sectors/track, 19457 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> >
> >   Device Boot      Start         End      Blocks   Id  System
> > /dev/sda1   *           1        1912    15358108+   7  HPFS/NTFS
> > /dev/sda2            1913       19457   140930212+   f  W95 Ext'd (LBA)
> > /dev/sda5            1913        6083    33503526    7  HPFS/NTFS
> > /dev/sda6            6084       10254    33503526    7  HPFS/NTFS
> > /dev/sda7           10255       14425    33503526    7  HPFS/NTFS
> > /dev/sda8           14426       18596    33503526    7  HPFS/NTFS
> > /dev/sda9           18597       19457     6915951    7  HPFS/NTFS
> >
> > Disk /dev/sdb: 80.0 GB, 80060424192 bytes
> > 255 heads, 63 sectors/track, 9733 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> >
> >   Device Boot      Start         End      Blocks   Id  System
> > /dev/sdb1   *           1        1216     9767488+  83  Linux
> > /dev/sdb2            1217        9483    66404677+  83  Linux
> > /dev/sdb3            9484        9733     2008125   82  Linux swap / Solaris
> >
> > Another thing, is not written in /boot/grub/grub.cfg not to alter stuff ?
> >
> > #
> > # DO NOT EDIT THIS FILE
> > #
> > # It is automaticaly generated by /usr/sbin/update-grub using
> > templates from /etc/grub.d
> > # and settings from /etc/default/grub
> > #
> >
> > Please lemme know what is to be done & will try accordingly.
> >
>
> I recommend that you remove these lines:
>
> font (hd1,1)/usr/share/grub/unifont.pff
> set gfxmode=640x480
> insmod gfxterm
> insmod vbe
> terminal gfxterm
>
> You will enter text mode, but this is not an issue since you're not using
> any non ascii characters.
>
> --
> Bean

Hi Mr. Bean,
 I tried your way but ran into another problem straightaway. When I
tried to save the resulting file it gives me this error :-

Could not save the file /boot/grub/grub.cfg.

You are trying to save the file on a read-only disk. Please check that
you typed the location correctly and try again.

Lemme say at the outset, this was with sudo

sudo gedit /boot/grub/grub.cfg

To check if its something to do with my hdd partitioning or something
I tried to make a file a .txt file in / using sudo & that was
successful.

The only conclusion I can come to  is there seems to be some kind of
write-protection put in place (like in floppy disks) or something
which needs to be unprotected otherwise the change cannot happen. Of
course I do have the option of doing the same from windows but unsure
if the text encoding might change or something. Preferably within
linux.

Another dirty solution which somebody recommended was :-

1) open and edit the Grub menu list with "sudo gedit /boot/grub/menu.list",
2) comment out four lines pertaining to Grub2,
3) copy the ten lines referring to 2.6.22-6 kernel and paste this just
below the Grub2 lines,
4) you will now have two entries that will boot that kernel so you
must edit the lines you just pasted and change the 2.6.22-6 to read
2.6.22-7,
5) save the file and reboot.

As always all comments, suggestions,  flames welcome :)

-- 
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/

065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
  2007-06-27 14:05 shirish
@ 2007-06-27 16:17 ` Bean
  0 siblings, 0 replies; 10+ messages in thread
From: Bean @ 2007-06-27 16:17 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jun 27, 2007 at 07:35:02PM +0530, shirish wrote:
> >>
> >> --
> >> Bean
> >>
> >>
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 8
> >> Date: Wed, 27 Jun 2007 10:18:09 +0800
> >> From: Bean <bean123@126.com>
> >> Subject: Re: GRUB 2 does not show new kernel :(
> >> To: The development of GRUB 2 <grub-devel@gnu.org>
> >> Message-ID: <20070627021809.GA2701@ws3.vdp.com>
> >> Content-Type: text/plain; charset=us-ascii
> >>
> >> On Wed, Jun 27, 2007 at 01:18:41AM +0530, shirish wrote:
> >> > Hi all,
> >> >         I thought long & hard before making this post. I tried all
> >> > the avenues , the #GRUB channel on IRC, the forums at ubuntuforums (
> >> > 136 views at this point in time but no answers :( ) . hence made long
> >> > posts about the issue at
> >> > http://ubuntuforums.org/showthread.php?t=484856
> >> >
> >> > If anybody knows what I need to do or look for , please lemme know.
> 
> 
> 
> 
> 
> >Message: 3
> >Date: Wed, 27 Jun 2007 14:39:35 +0800
> >From: Bean <bean123@126.com>
> >Subject: Re: GRUB 2 does not show new kernel :(
> >To: The development of GRUB 2 <grub-devel@gnu.org>
> >Message-ID: <20070627063935.GA2440@ws3.vdp.com>
> >Content-Type: text/plain; charset=us-ascii
> >
> >On Wed, Jun 27, 2007 at 11:55:07AM +0530, shirish wrote:
> >> Hi all,
> >>       Mr. Bean (chuckles knowing a different bean :) ) , first of all
> >> thank you for your time. You are right as far as unifont.pff is
> >> concerned.  I just did a search and saw that unifont is not installed.
> >> Have installed it now. But still the same issue is there.
> >>
> >> btw I have two hard disks :-
> >>
> >> shirish@ubuntu:~$ sudo fdisk -l
> >> [sudo] password for shirish:
> >>
> >> Disk /dev/sda: 160.0 GB, 160041885696 bytes
> >> 255 heads, 63 sectors/track, 19457 cylinders
> >> Units = cylinders of 16065 * 512 = 8225280 bytes
> >>
> >>   Device Boot      Start         End      Blocks   Id  System
> >> /dev/sda1   *           1        1912    15358108+   7  HPFS/NTFS
> >> /dev/sda2            1913       19457   140930212+   f  W95 Ext'd (LBA)
> >> /dev/sda5            1913        6083    33503526    7  HPFS/NTFS
> >> /dev/sda6            6084       10254    33503526    7  HPFS/NTFS
> >> /dev/sda7           10255       14425    33503526    7  HPFS/NTFS
> >> /dev/sda8           14426       18596    33503526    7  HPFS/NTFS
> >> /dev/sda9           18597       19457     6915951    7  HPFS/NTFS
> >>
> >> Disk /dev/sdb: 80.0 GB, 80060424192 bytes
> >> 255 heads, 63 sectors/track, 9733 cylinders
> >> Units = cylinders of 16065 * 512 = 8225280 bytes
> >>
> >>   Device Boot      Start         End      Blocks   Id  System
> >> /dev/sdb1   *           1        1216     9767488+  83  Linux
> >> /dev/sdb2            1217        9483    66404677+  83  Linux
> >> /dev/sdb3            9484        9733     2008125   82  Linux swap / 
> >Solaris
> >>
> >> Another thing, is not written in /boot/grub/grub.cfg not to alter stuff ?
> >>
> >> #
> >> # DO NOT EDIT THIS FILE
> >> #
> >> # It is automaticaly generated by /usr/sbin/update-grub using
> >> templates from /etc/grub.d
> >> # and settings from /etc/default/grub
> >> #
> >>
> >> Please lemme know what is to be done & will try accordingly.
> >>
> >
> >I recommend that you remove these lines:
> >
> >font (hd1,1)/usr/share/grub/unifont.pff
> >set gfxmode=640x480
> >insmod gfxterm
> >insmod vbe
> >terminal gfxterm
> >
> >You will enter text mode, but this is not an issue since you're not using
> >any non ascii characters.
> >
> >--
> >Bean
> 
> Hi Mr. Bean,
> I tried your way but ran into another problem straightaway. When I
> tried to save the resulting file it gives me this error :-
> 
> Could not save the file /boot/grub/grub.cfg.
> 
> You are trying to save the file on a read-only disk. Please check that
> you typed the location correctly and try again.
> 
> Lemme say at the outset, this was with sudo
> 
> sudo gedit /boot/grub/grub.cfg
> 
> To check if its something to do with my hdd partitioning or something
> I tried to make a file a .txt file in / using sudo & that was
> successful.
> 
> The only conclusion I can come to  is there seems to be some kind of
> write-protection put in place (like in floppy disks) or something
> which needs to be unprotected otherwise the change cannot happen. Of
> course I do have the option of doing the same from windows but unsure
> if the text encoding might change or something. Preferably within
> linux.
> 
> Another dirty solution which somebody recommended was :-
> 
> 1) open and edit the Grub menu list with "sudo gedit /boot/grub/menu.list",
> 2) comment out four lines pertaining to Grub2,
> 3) copy the ten lines referring to 2.6.22-6 kernel and paste this just
> below the Grub2 lines,
> 4) you will now have two entries that will boot that kernel so you
> must edit the lines you just pasted and change the 2.6.22-6 to read
> 2.6.22-7,
> 5) save the file and reboot.
> 
> As always all comments, suggestions,  flames welcome :)
> 

Have you checked the file permisson ? Try this:

sudo chmod 666 /boot/grub/grub.cfg

This will mark the file as read-write by all user.

If the device is read-only, try to remount it as read-write.

-- 
Bean




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
@ 2007-06-27 20:06 shirish
  0 siblings, 0 replies; 10+ messages in thread
From: shirish @ 2007-06-27 20:06 UTC (permalink / raw)
  To: grub-devel

Hi Ben,
      First some observations. I have been trying to see your mail at
http://lists.gnu.org/archive/html/grub-devel/ as it takes some time
before it comes in the digest mode. I came to understand that I have
been approaching/barking up the wrong tree. But I'm getting ahead of
myself.

First of all, thanks to you, I saw again and indeed grub.cfg was
write-protected .

-rw-r--r-- 1 root root   2256 2007-06-09 14:19 acorn.mod
-rw-r--r-- 1 root root   4840 2007-06-09 14:19 affs.mod
-rw-r--r-- 1 root root   2600 2007-06-09 14:19 amiga.mod
-rw-r--r-- 1 root root   2704 2007-06-09 14:19 apple.mod
-rw-r--r-- 1 root root   2600 2007-06-09 14:19 bitmap.mod
-rw-r--r-- 1 root root   2132 2007-06-09 14:19 blocklist.mod
-rw-r--r-- 1 root root    512 2007-06-09 14:19 boot.img

a small sample tells that its the only one, the rest have write access by root.
 A quick chmod 644 was all it required to change to the editable mode.
Hence  edited it.

What I was mistaking all along was the grub one to the grub 2 which is
the topmost link (Chainload to Grub 2) which now shows me the error
that I need to load the kernel first.

Another thing what that removal of code actually did was show me the
menu, before this the Grub 2 menu used to be empty (nothing there) so
used to think its some kind of placeholder or something. Now I know
its a work in progress.

Sorry for leading you up the wrong path. I will need to boot up couple
of times before I can fully say what the errors are so you could guide
me what to do next.
-- 
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/

065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GRUB 2 does not show new kernel :(
@ 2007-06-27 20:44 shirish
  0 siblings, 0 replies; 10+ messages in thread
From: shirish @ 2007-06-27 20:44 UTC (permalink / raw)
  To: grub-devel

Hi all,
        Mr. Bean I shutdown the comp. Cold-booted the comp. & waited
for GRUB to kick in. I chainloaded to GRUB 2 ( it shows up as GRUB
version 1.95) and while the entries are there they are not working.
Some things which might give pointer are :-

title		Chainload into GRUB 2
root		(hd0,0)
kernel		/boot/grub/core.img
savedefault

title		Debian GNU/Linux, kernel 2.6.22-6-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-6-generic
root=UUID=7eedd8c9-0471-4a63-af65-939402ec5b4e ro quiet splash
initrd		/boot/initrd.img-2.6.22-6-generic
savedefault

title		Debian GNU/Linux, kernel 2.6.22-6-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-6-generic
root=UUID=7eedd8c9-0471-4a63-af65-939402ec5b4e ro single
initrd		/boot/initrd.img-2.6.22-6-generic
savedefault

title		Debian GNU/Linux, kernel memtest86+
root		(hd0,0)
kernel		/boot/memtest86+.bin

Grub legacy

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=100
set root=(hd1,1)

### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.22-7-generic" {
	linux	(hd1,1)/boot/vmlinuz-2.6.22-7-generic root=/dev/sdb1 ro
	initrd	(hd1,1)/boot/initrd.img-2.6.22-7-generic
}
menuentry "Debian GNU/Linux, linux 2.6.22-7-generic (single-user mode)" {
	linux	(hd1,1)/boot/vmlinuz-2.6.22-7-generic root=/dev/sdb1 ro single
	initrd	(hd1,1)/boot/initrd.img-2.6.22-7-generic
}
menuentry "Debian GNU/Linux, linux 2.6.22-6-generic" {
	linux	(hd1,1)/boot/vmlinuz-2.6.22-6-generic root=/dev/sdb1 ro
	initrd	(hd1,1)/boot/initrd.img-2.6.22-6-generic
}
menuentry "Debian GNU/Linux, linux 2.6.22-6-generic (single-user mode)" {
	linux	(hd1,1)/boot/vmlinuz-2.6.22-6-generic root=/dev/sdb1 ro single
	initrd	(hd1,1)/boot/initrd.img-2.6.22-6-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	(hd1,1)/boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###

Grub 1.95 version

Ok the first thing is GRUB legacy starts at the MBR. from where I
guess it finds which place to jump to the hdd to start booting &
reading stuff . ( IIRC this is called bootstrapping) while the newer
one shows location of the hdd.  The simplest way would be perhaps to
just change something like :-

linux	(hd1,1)/boot/vmlinuz-2.6.22-7-generic root=/dev/sdb1 ro

to

linux	(hd0,0)/boot/vmlinuz-2.6.22-7-generic root=/dev/sdb1 ro

although should root=/dev/sdb1 is good enough or  should it have the
full UUID as given in grub legacy above ?

linux (hd0,0)/boot/vmlinuz-2.6.22-7-generic
root=UUID=7eedd8c9-0471-4a63-af65-939402ec5b4e ro

Would that be the correct way? I ask because ubuntu now uses  UUID labels
https://help.ubuntu.com/community/UsingUUID

I'm sure quite a few of the things which I have asked would be
standard FAQs for the new GRUB. Hopefully Khaled Hosny is also
listening and can add to his list of things if he feels like doing
documentation :)

Another thing I found out is a simple grub-update is able to change
the grub.cfg to its previous state of 444 .  With a simple sudo chmod
was able to change that :)

Lemme know how to proceed & would do accordingly.
-- 
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/

065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-27 20:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-27  6:25 GRUB 2 does not show new kernel :( shirish
2007-06-27  6:39 ` Bean
  -- strict thread matches above, loose matches on Subject: below --
2007-06-27 20:44 shirish
2007-06-27 20:06 shirish
2007-06-27 14:05 shirish
2007-06-27 16:17 ` Bean
2007-06-26 19:48 shirish
2007-06-27  1:58 ` Bean
2007-06-27  3:07   ` Bean
2007-06-27  2:18 ` Bean

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.