You are not logged in.
Pages: 1
Hello,
I want to update from grub-legacy to grub2 and have some troubles to setup
up my grub2 enviroment with dmraid and parttool.
I have installed linux, win xp and win vista on fake a raid device.
On grub legacy I followed the instructions on the wiki as described her https://wiki.archlinux.org/index.php/In … stall_GRUB
To boot windows xp or vista a hide the windows partitions among each other. With grub-legacy it works. Now the point is how to get this work with grub2.
Currently my grub.cfg for windows looks like following:
menuentry "Windows XP" --class "windows" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
parttool (hd3,1) hidden-
parttool (hd3,2) hidden+
parttool (hd3,1) boot+
search --no-floppy --fs-uuid --set root 9084516E84515834
ntldr /ntldr
}
menuentry "Windows Vista" --class "windows" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
parttool (dm) hidden+
parttool (hd3,2) hidden-
parttool (hd3,1) boot+
search --no-floppy --fs-uuid --set root 5AFC3ABCFC3A91ED e o
ntldr /bootmgr
}
Currently my device.map looks like this:
(hd0) /dev/disk/by-id/ata-ST3250620AS_9QE254ZH
(hd1) /dev/disk/by-id/ata-ST3250620AS_5QF5210T
(hd2) /dev/disk/by-id/ata-ST3500410AS_5VM0FTBY
(hd3) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0
(hd3,1) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0p1
(hd3,2) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0p2
When try to start windows it complains with
Error: hd3 cannot get C/H/S values
So parttool seems not to work with this configuration.
Windows just starts - but not correct, so my dmraid just works with grub (linux just starting fine, too).
The only point is how must I configure my device.map file that parttool ist working?
A grub console like in grub-legacy to setup the c/h/s values for the fake raid seems not to exist, or I haven't found it currently...
Cheers framas
Last edited by framas (2012-04-28 09:06:51)
Offline
I solved it now by hiding the first disk of my fake raid array. Don't know if this is the "right" solution but it works for me...
device.map:
(fd0) /dev/fd0
(hd0) /dev/disk/by-id/ata-ST3250620AS_9QE254ZH
(hd1) /dev/disk/by-id/ata-ST3250620AS_5QF5210T
grub.cfg:
menuentry "Windows XP" --class "windows" {
insmod ntfs
insmod search_fs_uuid
insmod ntldr
parttool (hd0,1) hidden-
#parttool (hd1,1) hidden-
parttool (hd0,2) hidden+
#parttool (hd1,2) hidden+
search --no-floppy --fs-uuid --set root 9084516E84515834
ntldr /ntldr
}
menuentry "Windows Vista" --class "windows" {
insmod ntfs
insmod search_fs_uuid
insmod ntldr
parttool (hd0,1) hidden+
#parttool (hd1,1) hidden+
parttool (hd0,2) hidden-
#parttool (hd1,2) hidden-
search --no-floppy --fs-uuid --set root 5AFC3ABCFC3A91ED
ntldr /bootmgr
}
Last edited by framas (2012-04-28 09:07:24)
Offline
Pages: 1