Bug#284482: Bad mapping in menu.lst

Wiesiek "Wiesiek" <roxik@op.pl>, 284482@bugs.debian.org
Mon, 6 Dec 2004 18:27:15 +0100


Package: grub
Version: 0.95+cvs20040624-12
Severity: important


Hi.

I've installed sarge a lot time ago. And I had grub.
For last 2 upgrade of grub somting fuck up.

All works ok, but when I call "update-grub" then It provide:

Searching for GRUB installation directory ... found: /boot/grub .
Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
Searching for splash image... none found, skipping...
Found kernel: /boot/vmlinuz-2.4.28-grsec
Found kernel: /boot/vmlinuz-2.4.26-grsec
Found kernel: /boot/vmlinuz-2.4.22-grsec
Found kernel: /boot/vmlinuz-2.4.21-grsec
Updating /boot/grub/menu.lst ... done

Yes..  I use my own kernel compilation...

But problem is with menu.lst:

Agata:/boot/grub#  cat menu.lst |grep hda

kernel          /boot/vmlinuz-2.4.28-grsec root=/dev/hda1 ro
kernel          /boot/vmlinuz-2.4.28-grsec root=/dev/hda1 ro single
kernel          /boot/vmlinuz-2.4.26-grsec root=/dev/hda1 ro
kernel          /boot/vmlinuz-2.4.26-grsec root=/dev/hda1 ro single
kernel          /boot/vmlinuz-2.4.22-grsec root=/dev/hda1 ro
kernel          /boot/vmlinuz-2.4.22-grsec root=/dev/hda1 ro single
kernel          /boot/vmlinuz-2.4.21-grsec root=/dev/hda1 ro
kernel          /boot/vmlinuz-2.4.21-grsec root=/dev/hda1 ro single

Its NOT TRUE!!!
I had I2C SCSI adapter with hardware RAID and bind device as /dev/sda*

Agata:/boot/grub# cat device.map
(fd0)   /dev/fd0
(hd0)   /dev/sda

I don't know why update-grub changed it to hda*. I have'nt IDE adapters. Its 
only SCSI.
Mount show this:
/dev/sda1 on / type ext3 (rw,errors=remount-ro)

SCSI:
SCSI subsystem driver Revision: 1.00
Loading Adaptec I2O RAID: Version 2.4 Build 5
Detecting Adaptec I2O RAID controllers...
Adaptec I2O RAID controller 0 at e0800000 size=100000 irq=17
dpti: If you have a lot of devices this could take a few minutes.
dpti0: Reading the hardware resource table.
TID 008  Vendor: ADAPTEC      Device: AIC-7899     Rev: 00000001
TID 516  Vendor: ESG-SHV      Device: SCA HSBP M15 Rev: 0.08
TID 520  Vendor: ADAPTEC      Device: RAID-5       Rev: 320R
scsi0 : Vendor: Adaptec  Model: 2100S            FW:320R
  Vendor: ADAPTEC   Model: RAID-5            Rev: 320R
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: ESG-SHV   Model: SCA HSBP M15      Rev: 0.08
  Type:   Processor                          ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 143372288 512-byte hdwr sectors (73407 MB)
Partition check:
 /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 p7 >

I spend a lot of time to restore my system :(

-- 
I greet
Wieslaw