FS#15776 - [grub] grub 0.97-16 fails to write to MBR on a RAID drive with dmraid 1.0.0rc15-8
Attached to Project:
Arch Linux
Opened by Narthana Epa (Blissful_Choreography) - Tuesday, 04 August 2009, 01:45 GMT
Last edited by Allan McRae (Allan) - Monday, 01 March 2010, 00:59 GMT
Opened by Narthana Epa (Blissful_Choreography) - Tuesday, 04 August 2009, 01:45 GMT
Last edited by Allan McRae (Allan) - Monday, 01 March 2010, 00:59 GMT
|
Details
Description:
I tried to re-install grub to the MBR by following the guide on ArchWiki (http://wiki.archlinux.org/index.php/Installing_with_Fake-RAID). However I persistently encountered to following error: Error 22: No such partition I suspected that this has something to do the new naming format that dmraid 1.0.0rc15 introduced and sure enough a downgrade to dmraid 1.0.0rc14 and a dmraid -ay resolved the issue. However, people installing afresh with the current packages may not have this option. Additional info: * package version(s) * config and/or log files etc. grub 0.97-16 dmraid 1.0.0rc15-8 kernel26 2.6.30.4-1 Output: grub> device (hd0) /dev/mapper/isw_cahdbgfecg_Volume0 grub> geometry (hd0) 10443 255 63 drive 0x80: C/H/S = 10443/255/63, The number of sectors = 167766795, /dev/mapper/isw_cahdbgfecg_Volume0 Partition num: 0, Filesystem type is ext2fs, partition type 0x83 Partition num: 1, Filesystem type unknown, partition type 0x82 Partition num: 2, Filesystem type unknown, partition type 0x7 Partition num: 4, Filesystem type is reiserfs, partition type 0x83 Partition num: 5, Filesystem type is ext2fs, partition type 0x83 grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 25 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+25 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed Error 22: No such partition Steps to reproduce: On a system with fakeRAID, attempt to install grub to a dmraid set: # grub --device-map=/dev/null grub> device (hd0) /dev/mapper/raid_set grub> geometry (hd0) C H S #(use # fdisk -l /dev/mapper/raid_set) grub> root (hd0,0) grub> setup (hd0) |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 01 March 2010, 00:59 GMT
Reason for closing: Fixed
Additional comments about closing: See final comment
Monday, 01 March 2010, 00:59 GMT
Reason for closing: Fixed
Additional comments about closing: See final comment
FS#15756not grub at all, no matter if is grub -15 or -16. So this task is a duplicate ofFS#15756, or I am missing something?Reverting to the old naming scheme in the dmraid package is a solution, but not a desirable one in my opinion.
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 25 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+25 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed
Error 22: No such partition
using ext4 with no separate boot partition. How do I create these symlinks?
My boot partition is /dev/mapper/isw_cahdbgfecg_Volume0p1 . Under the old scheme it was /dev/mapper/isw_cahdbgfecg_Volume01 . So I want a to create a symlink to /dev/mapper/isw_cahdbgfecg_Volume0p1 called /dev/mapper/isw_cahdbgfecg_Volume01. This is accomplished by the command:
ln -s /dev/mapper/isw_cahdbgfecg_Volume0p1 /dev/mapper/isw_cahdbgfecg_Volume01
run under root privileges. Just replace isw_cahdbgfecg_Volume0 with the name of your raid set and the 1 with the number of your root (and boot) partition (use ls /dev/mapper to find out, but given that you formatted it you would already know the path to it).
You may delete the symlink after grub is set up.
Regards
Andre
Regards
André
ftp://ftp.archlinux.org/iso/archboot/
My boot partition is /dev/mapper/isw_cahdbgfecg_Volume0p1 . Under the old scheme it was /dev/mapper/isw_cahdbgfecg_Volume01 . So I want a to create a symlink to /dev/mapper/isw_cahdbgfecg_Volume0p1 called /dev/mapper/isw_cahdbgfecg_Volume01. This is accomplished by the command:
ln -s /dev/mapper/isw_cahdbgfecg_Volume0p1 /dev/mapper/isw_cahdbgfecg_Volume01