Skip to contentSkip to conversation

Some comments on grub2 on gutsy

DISCUSSION shirish 4 participants 5 messages Jun 10, 2007 – Jun 12, 2007

lore
Share & tools
lore

shirish

author
#0 lore raw

Hi there,
I just installed Grub2 yesterday which installed 2 other
packages like :-

aptitude show grub2
Package: grub2
State: installed
Automatically installed: no
Version: 1.95+20070604-1ubuntu1
Priority: extra
Section: universe/admin
Maintainer: Ubuntu MOTU Developers <[email protected]> Uncompressed Size: 156k
Depends: debconf, grub-pc
Description: GRand Unified Bootloader, version 2 (dummy package) This is a dummy transitional package to handle GRUB 2 upgrades. It can be safely removed.

aptitude show grub-pc
Package: grub-pc
State: installed
Automatically installed: yes
Version: 1.95+20070604-1ubuntu1
Priority: extra
Section: universe/admin
Maintainer: Ubuntu MOTU Developers <[email protected]> Uncompressed Size: 2400k
Depends: libc6 (>= 2.5-5), liblzo2-2
Conflicts: pupa, grub
Replaces: pupa, grub, grub2 (< 1.95+20070604-1ubuntu1)
Provides: grub
Description: GRand Unified Bootloader, version 2 (PC/BIOS version) GRUB 2 (also known as PUPA) is the Preliminary Universal Programming Architecture for GRUB. It is a research project for the next generation of GNU GRUB. The most important goal is to make GNU GRUB cleaner, safer, more robust, more powerful, and more portable.

GRUB 2 targets at the following goals:

* Scripting support, such as conditionals, loops, variables and functions.
* Graphical interface.
* Dynamic loading of modules in order to extend itself at the run time rather than at the build time.
* Portability for various architectures.
* Internationalization. This includes support for non-ASCII character code, message catalogs like gettext, fonts, graphics console, and so on.
* Real memory management, to make GNU GRUB more extensible.
* Modular, hierarchical, object-oriented framework for file systems, files, devices, drives, terminals, commands, partition tables and OS loaders.
* Cross-platform installation which allows for installing GRUB from a different architecture.
* Rescue mode saves unbootable cases. Stage 1.5 was eliminated.
* Fix design mistakes in GRUB Legacy, which could not be solved for backward-compatibility, such as the way of numbering partitions.

This package contains a version of GRUB that has been built for use with traditional PC/BIOS architecture.

Content of /boot/grub

ls -la
total 656

drwxr-xr-x 2 root root   4096 2007-06-10 22:30 .
drwxr-xr-x 3 root root   4096 2007-06-09 04:55 ..
-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
-rw-r--r-- 1 root root   1360 2007-06-09 14:19 boot.mod
-rw-r--r-- 1 root root   1880 2007-06-09 14:19 cat.mod
-rw-r--r-- 1 root root   2320 2007-06-09 14:19 _chain.mod
-rw-r--r-- 1 root root   1724 2007-06-09 14:19 chain.mod
-rw-r--r-- 1 root root   2212 2007-06-09 14:19 cmp.mod

-rw-r--r-- 1 root root 528 2007-06-09 14:19 command.lst
-rw-r--r-- 1 root root 1908 2007-06-09 14:19 configfile.mod
-rw-r--r-- 1 root root 27297 2007-06-09 14:19 core.img
-rw-r--r-- 1 root root 1592 2007-06-09 14:19 cpuid.mod
-rw-r--r-- 1 root root 197 2007-06-09 08:03 default
-rw-r--r-- 1 root root 45 2007-06-09 14:19 device.map
-rw-r--r-- 1 root root 512 2007-06-09 14:19 diskboot.img

-rw-r--r-- 1 root root   8660 2007-06-09 08:03 e2fs_stage1_5
-rw-r--r-- 1 root root   4492 2007-06-09 14:19 elf.mod
-rw-r--r-- 1 root root   4268 2007-06-09 14:19 ext2.mod
-rw-r--r-- 1 root root   4900 2007-06-09 14:19 fat.mod
-rw-r--r-- 1 root root   8452 2007-06-09 08:03 fat_stage1_5
-rw-r--r-- 1 root root   2576 2007-06-09 14:19 font.mod
-rw-r--r-- 1 root root   2592 2007-06-09 14:19 fshelp.mod
-rw-r--r-- 1 root root     56 2007-06-09 14:19 fs.lst
-rw-r--r-- 1 root root   6716 2007-06-09 14:19 gfxterm.mod
-rw-r--r-- 1 root root   2796 2007-06-09 14:19 gpt.mod
-r--r--r-- 1 root root   1034 2007-06-10 22:30 grub.cfg
-rw-r--r-- 1 root root   8232 2007-06-09 14:19 gzio.mod
-rw-r--r-- 1 root root   1536 2007-06-09 14:19 halt.mod
-rw-r--r-- 1 root root   1288 2007-06-09 14:19 hello.mod
-rw-r--r-- 1 root root   1988 2007-06-09 14:19 help.mod
-rw-r--r-- 1 root root   6500 2007-06-09 14:19 hfs.mod
-rw-r--r-- 1 root root   6400 2007-06-09 14:19 hfsplus.mod
-rw-r--r-- 1 root root     15 2007-06-09 08:04 installed-version
-rw-r--r-- 1 root root   5196 2007-06-09 14:19 iso9660.mod
-rw-r--r-- 1 root root   5140 2007-06-09 14:19 jfs.mod
-rw-r--r-- 1 root root   9152 2007-06-09 08:03 jfs_stage1_5
-rw-r--r-- 1 root root  31128 2007-06-09 14:19 kernel.img
-rw-r--r-- 1 root root   4876 2007-06-09 14:19 _linux.mod
-rw-r--r-- 1 root root   1576 2007-06-09 14:19 linux.mod
-rw-r--r-- 1 root root   3212 2007-06-09 14:19 loopback.mod
-rw-r--r-- 1 root root   3864 2007-06-09 14:19 ls.mod
-rw-r--r-- 1 root root   5128 2007-06-09 14:19 lvm.mod
-rw-r--r-- 1 root root   4221 2007-06-10 22:30 menu.lst
-rw-r--r-- 1 root root   4220 2007-06-09 14:20 menu.lst~
-rw-r--r-- 1 root root   4328 2007-06-09 14:19 minix.mod
-rw-r--r-- 1 root root   7860 2007-06-09 08:03 minix_stage1_5

-rw-r--r-- 1 root root 687 2007-06-09 14:19 moddep.lst
-rw-r--r-- 1 root root 5180 2007-06-09 14:19 _multiboot.mod
-rw-r--r-- 1 root root 1632 2007-06-09 14:19 multiboot.mod
-rw-r--r-- 1 root root 39400 2007-06-09 14:19 normal.mod

-rw-r--r-- 1 root root   3340 2007-06-09 14:19 pc.mod
-rw-r--r-- 1 root root   2204 2007-06-09 14:19 play.mod
-rw-r--r-- 1 root root   1024 2007-06-09 14:19 pxeboot.img
-rw-r--r-- 1 root root   4296 2007-06-09 14:19 raid.mod
-rw-r--r-- 1 root root   1272 2007-06-09 14:19 reboot.mod

-rw-r--r-- 1 root root 10132 2007-06-09 08:03 reiserfs_stage1_5
-rw-r--r-- 1 root root 3168 2007-06-09 14:19 search.mod
-rw-r--r-- 1 root root 4360 2007-06-09 14:19 sfs.mod
-rw-r--r-- 1 root root 512 2007-06-09 08:03 stage1
-rw-r--r-- 1 root root 110260 2007-06-09 08:04 stage2

-rw-r--r-- 1 root root   2552 2007-06-09 14:19 sun.mod
-rw-r--r-- 1 root root   1880 2007-06-09 14:19 terminal.mod
-rw-r--r-- 1 root root   7040 2007-06-09 14:19 terminfo.mod
-rw-r--r-- 1 root root   1664 2007-06-09 14:19 test.mod
-rw-r--r-- 1 root root   2952 2007-06-09 14:19 tga.mod
-rw-r--r-- 1 root root   4724 2007-06-09 14:19 ufs.mod
-rw-r--r-- 1 root root   2200 2007-06-09 14:19 vbeinfo.mod
-rw-r--r-- 1 root root  13944 2007-06-09 14:19 vbe.mod
-rw-r--r-- 1 root root   3076 2007-06-09 14:19 vbetest.mod
-rw-r--r-- 1 root root   3824 2007-06-09 14:19 video.mod
-rw-r--r-- 1 root root   2788 2007-06-09 14:19 videotest.mod
-rw-r--r-- 1 root root   6912 2007-06-09 14:19 xfs.mod
-rw-r--r-- 1 root root   9980 2007-06-09 08:03 xfs_stage1_5

On the GRUB menu apart from the regular entries there is also a chainload to GRUB 2. When I enter that I get a menu similar to GRUB menu but without any entries. Dunno why it is there, can anybody explain ?

This is just a comment on how it looks on gutsy, nothing else, sorry if its out of line of context of the mailing list.

Carry on the good work. Cheers !

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 7 lines

On the GRUB menu apart from the regular entries there is also a chainload to GRUB 2. When I enter that I get a menu similar to GRUB menu but without any entries. Dunno why it is there, can anybody explain ?

This is just a comment on how it looks on gutsy, nothing else, sorry if its out of line of context of the mailing list.

If you mean to use the Debian package, please get the official one from debian sid (rebuilding if necessary). This looks like an update-grub issue, but I can't really tell since I don't know if the package has been modified (or how).

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#2 lore raw
Quoted 5 lines · Robert Millan
Quoted 5 lines

On the GRUB menu apart from the regular entries there is also a chainload to GRUB 2. When I enter that I get a menu similar to GRUB menu but without any entries. Dunno why it is there, can anybody explain ?

Quoted 8 lines
Quoted 2 lines

This is just a comment on how it looks on gutsy, nothing else, sorry if its out of line of context of the mailing list.

If you mean to use the Debian package, please get the official one from debian sid (rebuilding if necessary). This looks like an update-grub issue, but I can't really tell since I don't know if the package has been modified (or how).

Apparently if grub2 is installed on a debian system which has grub-legacy installed as the default bootloader, if you do and update grub, it automagically adds the chainload to grub2.

Signature · 4 lines
Daniel Reurich

Centurion Computer Technology (2005) Limited.
Ph: 021 797 722
#3 lore raw

Centurion Computer Technology (2005) Ltd wrote, on 2007-06-12 20:44:

Quoted 8 lines · Robert Millan
Quoted 7 lines
Quoted 7 lines

On the GRUB menu apart from the regular entries there is also a chainload to GRUB 2. When I enter that I get a menu similar to GRUB menu but without any entries. Dunno why it is there, can anybody explain ?

This is just a comment on how it looks on gutsy, nothing else, sorry if its out of line of context of the mailing list.

Quoted 8 lines
Quoted 5 lines

If you mean to use the Debian package, please get the official one from debian sid (rebuilding if necessary). This looks like an update-grub issue, but I can't really tell since I don't know if the package has been modified (or how).

Apparently if grub2 is installed on a debian system which has grub-legacy installed as the default bootloader, if you do and update grub, it automagically adds the chainload to grub2.

Yes, this is the case, and one can run

sh /usr/lib/grub-legacy/update-grub

if one removes some of the kernels installed and want the changes reflected in the original menu.

Arthur.

#4 lore raw
In reply to Centurion Computer Technology (2005) Ltd
Quoted 9 lines · On Tue, Jun 12, 2007 at 11:14:33PM +1200, Centurion Computer Technology (2005)…
Quoted 8 lines · Robert Millan
Quoted 7 lines

On the GRUB menu apart from the regular entries there is also a chainload to GRUB 2. When I enter that I get a menu similar to GRUB menu but without any entries. Dunno why it is there, can anybody explain ?

This is just a comment on how it looks on gutsy, nothing else, sorry if its out of line of context of the mailing list.

Quoted 8 lines
Quoted 5 lines

If you mean to use the Debian package, please get the official one from debian sid (rebuilding if necessary). This looks like an update-grub issue, but I can't really tell since I don't know if the package has been modified (or how).

Apparently if grub2 is installed on a debian system which has grub-legacy installed as the default bootloader, if you do and update grub, it automagically adds the chainload to grub2.

Yes, and update-grub is also run for grub2, generating a (hopefuly) sane grub.cfg. This is the normal behaviour and works for most users of the Debian package.

As for the Ubuntu forked version, I don't really know. Sometimes they add their own changes, but never tell me about them. Occasionaly they pick a version of the package that is broken and put that in release (IIRC this happened in edgy).

No offence intended but, overall, this is why I ask him to test the official debian package first.

--
Robert Millan

My spam trap is [email protected]. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.