Bug#412021: grub fails to cope with '/boot' on different partition to '/'

Jason Thomas jason at debian.org
Thu Feb 22 23:23:22 CET 2007


Your changing (hd0,?) in the wrong place.  Look a little higher up in
the menu.lst file.

The entries you are changing are regenerated every time update-grub is
run.

On Thu, Feb 22, 2007 at 09:28:13PM +0000, Bernard Boudet wrote:
> Package: grub
> Version: 0.97-23
> Severity: critical
> Justification: breaks the whole system
> 
> 
> My /boot partition is on /dev/hda11, so in menu.lst it says: root (hd0,11)
> 
> update-grub trashes that and resets each case to: root (hd0,0)
> 
> This happens whenever a new kernel is installed and it leaves the system unbootable.  My workaround is to manually edit
> menu.lst after each time a new kernel is installed and before rebooting.
> 
> 
> baron:/boot/grub# grep -v -e '^$' -e '^#' menu.lst
> default         0
> timeout         5
> color cyan/blue white/blue
> title           Debian GNU/Linux, kernel 2.6.18.baron.20070221.0915
> root            (hd0,11)
> kernel          /vmlinuz-2.6.18.baron.20070221.0915 root=/dev/hda1 ro
> initrd          /initrd.img-2.6.18.baron.20070221.0915
> savedefault
> title           Debian GNU/Linux, kernel 2.6.18.baron.20070221.0915 (single-user mode)
> root            (hd0,11)
> kernel          /vmlinuz-2.6.18.baron.20070221.0915 root=/dev/hda1 ro single
> initrd          /initrd.img-2.6.18.baron.20070221.0915
> savedefault
> title           Debian GNU/Linux, kernel 2.6.18-custom.01
> root            (hd0,11)
> kernel          /vmlinuz-2.6.18-custom.01 root=/dev/hda1 ro
> initrd          /initrd.img-2.6.18-custom.01
> savedefault
> title           Debian GNU/Linux, kernel 2.6.18-custom.01 (single-user mode)
> root            (hd0,11)
> kernel          /vmlinuz-2.6.18-custom.01 root=/dev/hda1 ro single
> initrd          /initrd.img-2.6.18-custom.01
> savedefault
> title           Debian GNU/Linux, kernel 2.6.18-3-686
> root            (hd0,11)
> kernel          /vmlinuz-2.6.18-3-686 root=/dev/hda1 ro
> initrd          /initrd.img-2.6.18-3-686
> savedefault
> title           Debian GNU/Linux, kernel 2.6.18-3-686 (single-user mode)
> root            (hd0,11)
> kernel          /vmlinuz-2.6.18-3-686 root=/dev/hda1 ro single
> initrd          /initrd.img-2.6.18-3-686
> savedefault
> title           Debian GNU/Linux, kernel 2.6.17-2-686
> root            (hd0,11)
> kernel          /vmlinuz-2.6.17-2-686 root=/dev/hda1 ro
> initrd          /initrd.img-2.6.17-2-686
> savedefault
> title           Debian GNU/Linux, kernel 2.6.17-2-686 (single-user mode)
> root            (hd0,11)
> kernel          /vmlinuz-2.6.17-2-686 root=/dev/hda1 ro single
> initrd          /initrd.img-2.6.17-2-686
> savedefault
> baron:/boot/grub# cp menu.lst menu.lst.save
> baron:/boot/grub# update-grub
> Searching for GRUB installation directory ... found: /boot/grub
> Searching for default file ... found: /boot/grub/default
> Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
> Searching for splash image ... none found, skipping ...
> Found kernel: /vmlinuz-2.6.18.baron.20070221.0915
> Found kernel: /vmlinuz-2.6.18-custom.01
> Found kernel: /vmlinuz-2.6.18-3-686
> Found kernel: /vmlinuz-2.6.17-2-686
> Updating /boot/grub/menu.lst ... done
> 
> baron:/boot/grub# diff menu.lst.save menu.lst
> 119c119
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 125c125
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 131c131
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 137c137
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 143c143
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 149c149
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 155c155
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 161c161
> < root          (hd0,11)
> ---
> > root          (hd0,0)
> 
> 
> 
> -- System Information:
> Debian Release: 4.0
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.18.baron.20070221.0915
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> 
> Versions of packages grub depends on:
> ii  libc6                       2.3.6.ds1-11 GNU C Library: Shared libraries
> ii  libncurses5                 5.5-5        Shared libraries for terminal hand
> 
> grub recommends no packages.
> 
> -- no debconf information
> 
> 
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel




More information about the Pkg-grub-devel mailing list