Bug#697592: grub-update does not update device.map when hdd was replaced
Claudio Kuenzler
ck at claudiokuenzler.com
Mon Jan 7 11:46:24 UTC 2013
Package: grub
Version: 0.97-64
Severity: important
Tags: squeeze
The command "update-grub" should update /boot/grub/device.map if there was a change of hdd (e.g. replacement).
I had two servers where I recently replaced a defect hdd but even after running update-grub the device.map was not updated with the new path to the new disk.
This has caused a big problem during the last boot cycle as the machine could not boot anymore (was stuck at grub boot screen).
IMO update-grub should check for validity of /boot/grub/device.map and replace a non-existant entry with the new hdd name.
A workaround is to remove /boot/grub/device.map and then run update-grub. The file will then be created with the correct hdd paths/names.
-- System Information:
Debian Release: 6.0.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub depends on:
ii debconf [debco 1.5.36.1 Debian configuration management sy
ii grub-pc 1.98+20100804-14+squeeze1 GRand Unified Bootloader, version
grub recommends no packages.
grub suggests no packages.
-- debconf information:
* grub/migrate_from_legacy:
More information about the Pkg-grub-devel
mailing list