Looks like I am having a trouble with grub. IMO, grub is a crappy design (poorly documented, mysterious commands parameters, ever changing syntax and interface) but I have to deal with it unfortunately.
I have configured linux based pre-boot execution server in UEFI mode and configured semi-auto installation ks script. By semi-auto I meant, everything will go automatic except disk partitioning stage. So once the installation kicks off only manual intervention is user to choose the target installation disk.
It works except when linux is installed onto second harddrive when multiple hard drive present.
Due to my need, I have Windows server instaled in UEFI mode on 1st drive so it is not to be touched during installation of linux onto 2nd HDD for dual UEFI boot.
Using kick start configurator i set as following:
Code:
- install new boot loader (instead of do not install new bootloader)
- install boot loader onto MBR (instead of 1st sector of boot partition)
- do not clear MBR
- preserve existing partitions.
During installation, it shows one option dialog:
Code:
"Installation requires partitioning of your hdd...."
- use entire drive
- replace existing linux system
- use free space
which drives do you want to use
[*] sda (1st hdd)
[*] sdb (2nd hdd)
Since the requirement is to not touch Windows installation on 1st hdd, I unselect sda and select sdb and chose "use entire drive" and move on. The installer creates /efi /boot/ root swap whatever everything onto /sdb.
The only problem is after installation completed and boots:
Code:
It fails to boot with error: "Error 17: Can not mount selected partition. "
Code:
Grub menu shows
root(1,0)
kernel line (usual stuff)
initrd line (usual stuff)
Trying to figure out why. My understanding is root(1,0) signifies 2nd drive (sdb) and 1st partition of second drive which is where I exactly installed.