Skip to contentSkip to conversation

GRUB 2 does not show new kernel :(

DISCUSSION shirish 2 participants 2 messages Jun 27, 2007

lore
Share & tools
lore

shirish

author
#0 lore raw
Quoted 97 lines

Message: 7
Date: Wed, 27 Jun 2007 09:58:38 +0800
From: Bean <[email protected]>
Subject: Re: GRUB 2 does not show new kernel :(
To: The development of GRUB 2 <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Quoted 10 lines · shirish

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 <[email protected]>
Subject: Re: GRUB 2 does not show new kernel :(
To: The development of GRUB 2 <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Quoted 10 lines · shirish

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 <[email protected]>
Subject: Re: GRUB 2 does not show new kernel :(
To: The development of GRUB 2 <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Quoted 8 lines · Bean
Quoted 7 lines · shirish

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

Quoted 6 lines
Quoted 3 lines

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.

Quoted 8 lines

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.

Signature · 4 lines
         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
#1 lore raw
Quoted 40 lines · shirish

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

Quoted 5 lines
# 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.

Signature · 1 line
Bean