Bug#541145: solved changing hard disk order in bios

Alan BRASLAU braslau at free.fr
Mon Nov 23 14:15:19 UTC 2009


Package: grub-pc
Version: 1.97+20091115-1
Severity: normal


May I suggest changing

 ┌──────────────────────────┤ Configuring grub-pc ├──────────────────────────┐
 │ The grub-pc package is being upgraded.  This menu allows you to select    │
 │ which devices you'd like grub-install to be automatically run for, if     │
 │ any.                                                                      │
 │                                                                           │
 │ It is recommended that you do this in most situations, to prevent the     │
 │ installed GRUB from getting out of sync with other components such as     │
 │ grub.cfg or with newer Linux images it will have to load.                 │
 │                                                                           │
 │ If you're unsure which drive is designated as boot drive by your BIOS,    │
 │ it is often a good idea to install GRUB to all of them.                   │
 │                                                                           │
 │ Note: It is possible to install GRUB to partition boot records as well.   │
 │ However, this forces GRUB to use the blocklist mechanism, which makes it  │
 │ less reliable, and therefore is not recommended.                          │
 │                                                                           │
 │ GRUB install devices:                                                     │
 │                                                                           │
 │    [*] /dev/sda                                                           │
 │    [*] /dev/sdb                                                           │
 │    [*] /dev/sdc                                                           │
 │                                  <Ok>                                     │
 │                                                                           │
 └───────────────────────────────────────────────────────────────────────────┘

to something more explicit:

 ┌──────────────────────────┤ Configuring grub-pc ├──────────────────────────┐
 │ The grub-pc package is being upgraded.  This menu allows you to select    │
 │ which devices you'd like grub-install to be automatically run for, if     │
 │ any.                                                                      │
 │                                                                           │
 │ It is recommended that you do this in most situations, to prevent the     │
 │ installed GRUB from getting out of sync with other components such as     │
 │ grub.cfg or with newer Linux images it will have to load.                 │
 │                                                                           │
 │ If you're unsure which drive is designated as boot drive by your BIOS,    │
 │ it can be a good idea to install GRUB to all of them. However, the boot   │
 │ process will be faster if GRUB is installed on the boot record of the     │
 │ disk containing the directory /boot/grub and your BIOS is set to boot     │
 │ from this disk.                                                           │
 │                                                                           │
 │ Note: It is possible to install GRUB to partition boot records as well.   │
 │ However, this forces GRUB to use the blocklist mechanism, which makes it  │
 │ less reliable, and therefore is not recommended.                          │
 │                                                                           │
 │ GRUB install devices:                                                     │
 │                                                                           │
 │    [*] /dev/sda                                                           │
 │    [*] /dev/sdb                                                           │
 │    [*] /dev/sdc                                                           │
 │                                  <Ok>                                     │
 │                                                                           │
 └───────────────────────────────────────────────────────────────────────────┘

It is good practice to install grub on the MBR of the disk containing
/boot/grub.  On a dual-boot machine containing several disks, each one
dedicated to a single operating system, each other disk can maintain its MBR
untouched, as this would be more reliable and flexible. Something to this
effect could be documented.

Alan

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/dffacea2-ec10-4b17-bdf7-d71806390ac6 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/hdc1 /home/dell ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
(hd1)	/dev/hdb
(hd2)	/dev/hdc
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=2
if terminal_input console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal console
fi
if terminal_output console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal console
fi
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.31-1-686" {
	insmod ext2
	set root=(hd1,1)
	search --no-floppy --fs-uuid --set dffacea2-ec10-4b17-bdf7-d71806390ac6
	linux	/boot/vmlinuz-2.6.31-1-686 root=UUID=dffacea2-ec10-4b17-bdf7-d71806390ac6 ro  quiet
	initrd	/boot/initrd.img-2.6.31-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.31-1-686 (recovery mode)" {
	insmod ext2
	set root=(hd1,1)
	search --no-floppy --fs-uuid --set dffacea2-ec10-4b17-bdf7-d71806390ac6
	linux	/boot/vmlinuz-2.6.31-1-686 root=UUID=dffacea2-ec10-4b17-bdf7-d71806390ac6 ro single 
	initrd	/boot/initrd.img-2.6.31-1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/hda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set b644ca4644ca08d7
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.28          Debian configuration management sy
ii  grub-common              1.97+20091115-1 GRand Unified Bootloader, version 
ii  libc6                    2.10.1-7        GNU C Library: Shared libraries
ii  ucf                      3.0025          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/linux_cmdline:
  grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/hda, /dev/hdb, /dev/hdc
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet





More information about the Pkg-grub-devel mailing list