OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:21 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: pxe boot in uefi mode.
PostPosted: Fri Feb 03, 2017 5:59 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 396
Location: San Jose San Francisco Bay Area
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.

_________________
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails


Top
 Profile  
 
 Post subject: Re: pxe boot in uefi mode.
PostPosted: Fri Feb 03, 2017 7:17 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 396
Location: San Jose San Francisco Bay Area
Another experiment: Installed it manually from same server without using kickstart.
Then it boots. When inspected:
Code:
root(0,1)


from efi shell I can see
Code:
fs0:\efi\Microsoft
fs0:\efi\Boot\bootx64.efi
fs0:\efi\<Linux>\bootx64.efi

has boot Microsoft and Linux bootloader installed
Then there is another
Code:
fs1:\efi\<Linux>\bootx64.efi

folder which also had Linux bootloader.
Basically linux bootloader it is duplicated across two disks even though I told not to touch the first drive.
Creepy and strange design!!

_________________
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group