update-grub doesn't work correctly with raid partitions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Hi,
this is my /etc/fstab
/dev/md0 / ext3 defaults,
/dev/md2 /home reiserfs defaults 0 2
and this is fdisk -l
Disk /dev/sda: 163.9 GB, 163927522816 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 4863 39062016 7 HPFS/NTFS
/dev/sda2 4864 19929 121017645 5 Esteso
/dev/sda5 * 4864 7295 19535008+ fd Autorilevamento raid di Linux
/dev/sda6 7296 7441 1172713+ fd Autorilevamento raid di Linux
/dev/sda7 7442 19929 100309828+ fd Autorilevamento raid di Linux
Disk /dev/sdb: 163.9 GB, 163927522816 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Dispositivo Boot Start End Blocks Id System
/dev/sdb1 * 1 4863 39062016 7 HPFS/NTFS
/dev/sdb2 4864 19929 121017645 5 Esteso
/dev/sdb5 * 4864 7295 19535008+ fd Autorilevamento raid di Linux
/dev/sdb6 7296 7441 1172713+ fd Autorilevamento raid di Linux
/dev/sdb7 7442 19929 100309828+ fd Autorilevamento raid di Linux
This is my cat /proc/mdstat
Personalities : [raid0] [raid1]
md2 : active raid1 sda7[0] sdb7[1]
100309760 blocks [2/2] [UU]
md1 : active raid0 sda6[0] sdb6[1]
2345216 blocks 64k chunks
md0 : active raid1 sda5[0] sdb5[1]
19534912 blocks [2/2] [UU]
On sda1 I' ve windows, so the Ubuntu root / is md0, raid1 with sda5 and sdb5.
When I do an update-grub. I have in /boot/grub/
title Ubuntu, kernel 2.6.15-23-686
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
So update-grub writes root (hd0,0), but the correct value should be (hd0,4), because sda1 is a NTFS partition with windows... Why does it write (hd0,0) ?
Regards
Changed in grub: | |
status: | Unconfirmed → Confirmed |
summary: |
- [DAPPER] update-grub doesn't work correctly with raid partitions + update-grub doesn't work correctly with raid partitions |
Changed in grub (Ubuntu): | |
status: | Confirmed → Incomplete |
I confirm this (the bug exists at least in 6.06.1 and 6.10).
I just installed a new machine with two disks and with the following partitions:
sda1 NTFS sdb1 ext3 ==> used as /data
sda2 RAID sdb2 RAID ==> md0 used as /
sda3 RAID sdb3 RAID ==> md1 used as swap
sda4 RAID sdb4 RAID ==> md2 used as /home
After installation menu.lst has this invalid entry, i.e. (hd0,0) should be (hd0,1):
title Ubuntu, kernel 2.6.17-10-generic 2.6.17- 10-generic root=/dev/md0 ro quiet splash locale=fi_FI img-2.6. 17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
quiet
savedefault
boot
I had to edit the root entry before first successfull boot. Then I modified menu.lst to use the correct entry and now everything is okay. This might, however, be VERY confusing for newbies...