hearts2
July 30th, 2015, 03:22 AM
Hi all,
I use a Lenovo laptop, and duel installed Windows 8.1 & Ubuntu. Everything works fine.
My questions are as follows, I just need some brief answers to grasp the concept, in case it's too troublesome to answer them in details.
1) My /boot/efi structure:
/boot/efi/BOOT/boot.sdi <-- what is this for?
/boot/efi/EFI/Boot/bkpbootx64.efi <-- what is this for?
/boot/efi/EFI/Boot/LenovoBT.efi <-- what is this for?
/boot/efi/EFI/Boot/bootx64.efi
<-- After some comparison, I found that this one is the same as /boot/efi/EFI/ubuntu/shinmx64.efi, this file should run by default? So how does this file invokes /boot/efi/EFI/ubuntu/grub.cfg, which in turn invokes /boot/grub/grub.cfg?
/boot/efi/EFI/Lenovo/Boot/memtest.efi bootmgfw.efi bootmgr.efi <-- what are these for?
/boot/efi/EFI/Microsoft/Boot/memtest.efi bootmgfw.efi bootmgr.efi <-- what are these for?
/boot/efi/EFI/ubuntu/Boot/grub.cfg grubx64.efi MokManager.efi shimx64.efi <-- I know the basic difference between grubx64.efi and shimx64.efi, just don't know too much about MokManager.efi
2) /boot/efi/EFI/ubuntu/Boot/grub.cfg
search.fs_uuid 4ee4f119-b0da-4f43-b3ae-814d7b54a257 root hd0,gpt7
May I assume that gpt7 is the same as /dev/sda7, and gtpn is the same as /dev/sdan?
3) /boot/grub/grub.cfg
The top 2 are linux entries and not fancy to me
I can see all these following options on grub menu (very messy one isn't it?), but I dare not to select any of them because I don't know what they do (will they reinstall /recover the whole disk ?)
menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}
menuentry "EFI/ubuntu/MokManager.efi" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/ubuntu/MokManager.efi
}
menuentry "EFI/Lenovo/Boot/bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/Lenovo/Boot/bootmgfw.efi
}
The following is good, I know it will boot into Windows, I am not sure how to make it boot to windows by default (the grub.conf says do not modify it directly...)
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-D206-F1B4' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 D206-F1B4
else
search --no-floppy --fs-uuid --set=root D206-F1B4
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10at
fi
And the last one, what is it?
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
4) And lastly, since I just upgraded Windows 8.1 to Windows 10 which will activate the reinstallation of Windows by motherboard, it seems that there's no need to leave Lenovo recovery partition (14.4GB) and Lenovo OEM partition (7GB). I would like to delete them using gparted. I will then resize the linux partition and the swap partition to make them larger. See the picture.
I am not sure whether this will affect the current boot. And I need to knowledge myself on the above basic questions so that I can fix any problems if there will be.
Thanks.
263481
I use a Lenovo laptop, and duel installed Windows 8.1 & Ubuntu. Everything works fine.
My questions are as follows, I just need some brief answers to grasp the concept, in case it's too troublesome to answer them in details.
1) My /boot/efi structure:
/boot/efi/BOOT/boot.sdi <-- what is this for?
/boot/efi/EFI/Boot/bkpbootx64.efi <-- what is this for?
/boot/efi/EFI/Boot/LenovoBT.efi <-- what is this for?
/boot/efi/EFI/Boot/bootx64.efi
<-- After some comparison, I found that this one is the same as /boot/efi/EFI/ubuntu/shinmx64.efi, this file should run by default? So how does this file invokes /boot/efi/EFI/ubuntu/grub.cfg, which in turn invokes /boot/grub/grub.cfg?
/boot/efi/EFI/Lenovo/Boot/memtest.efi bootmgfw.efi bootmgr.efi <-- what are these for?
/boot/efi/EFI/Microsoft/Boot/memtest.efi bootmgfw.efi bootmgr.efi <-- what are these for?
/boot/efi/EFI/ubuntu/Boot/grub.cfg grubx64.efi MokManager.efi shimx64.efi <-- I know the basic difference between grubx64.efi and shimx64.efi, just don't know too much about MokManager.efi
2) /boot/efi/EFI/ubuntu/Boot/grub.cfg
search.fs_uuid 4ee4f119-b0da-4f43-b3ae-814d7b54a257 root hd0,gpt7
May I assume that gpt7 is the same as /dev/sda7, and gtpn is the same as /dev/sdan?
3) /boot/grub/grub.cfg
The top 2 are linux entries and not fancy to me
I can see all these following options on grub menu (very messy one isn't it?), but I dare not to select any of them because I don't know what they do (will they reinstall /recover the whole disk ?)
menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}
menuentry "EFI/ubuntu/MokManager.efi" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/ubuntu/MokManager.efi
}
menuentry "EFI/Lenovo/Boot/bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root D206-F1B4
chainloader (${root})/EFI/Lenovo/Boot/bootmgfw.efi
}
The following is good, I know it will boot into Windows, I am not sure how to make it boot to windows by default (the grub.conf says do not modify it directly...)
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-D206-F1B4' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 D206-F1B4
else
search --no-floppy --fs-uuid --set=root D206-F1B4
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10at
fi
And the last one, what is it?
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
4) And lastly, since I just upgraded Windows 8.1 to Windows 10 which will activate the reinstallation of Windows by motherboard, it seems that there's no need to leave Lenovo recovery partition (14.4GB) and Lenovo OEM partition (7GB). I would like to delete them using gparted. I will then resize the linux partition and the swap partition to make them larger. See the picture.
I am not sure whether this will affect the current boot. And I need to knowledge myself on the above basic questions so that I can fix any problems if there will be.
Thanks.
263481