View previous topic :: View next topic |
Author |
Message |
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Tue Mar 20, 2018 3:20 pm Post subject: Custom grub multiboot installation. |
|
|
Hello,
I have a couple of questions and a specific situation concerning uefi(nvram on motherboard) efi-file(i.e /EFI/BOOT/BOOTx64.EFI) and grub that i would like to understand.
The questions:
question #1
What is the actual boot sequence?
A. The efivars on the uefi-motherboard(nvram) are set to know which partition on which harddrive to boot.
With for example the command:
Code: | efibootmgr -c -d /dev/nvme0n1 -p 1 -L "Linux Mint Work (Samsung 850)" -l "\EFI\Boot\bootx64.efi" |
This is only possible with the efi-file on a fat32 partition or other suited simple partitioning.
B. The efi file starts up the OS. If on the OS grub is installed, you get the grub menu. Is this correct?
C. From the grub menu other OS's are bootable as well.
D. The final OS boots. Boot sequance complete.
I think it's just: ABCD ?
question #2
On internet I only read about copying EFI files (/EFI/BOOT/BOOTx64.EFI).
How can i create them?
What if I want to point to another OS with and EFI file?
How is the file itself generated? How does it work? Why are there different kinds of *.EFI files?
Ubuntu Windows and other distro's have different files.
Are they configurable?
I had a efi file on one drive that booted a grub menu on another drive. How?
question #3
Can i have a seperated fat32 partition with one efi file and grub? So that i can manage the complete boot proces from this partition?
I think so as it happens with a bootable usb?
I do not want the automatic Ubuntu, mint, or RHEL installer anymore.
I want one reusable and configurable boot partition, with only manual changes.
6So if i would like to install one of these distros i can ignore the default "install next to .." part.
I use and re-configure my own boot partition, overriding the default "install next to.." part.
The specific situation I want.
I have a workstation suitable for compiling. The uefi only points at the main boot partition
On this machine are 3 permanent drives and one just to (cross-)compile gentoo on, the swapable drive.
This swapable drive must be bootable and (boot)ready to fit into another computer.
So there is one permanent boot partition on the workstation with which i can boot any partition also on the swapable drive if connected.
And there is one temporarily boot partition on the swappable drive that only boots the OS on that drive.
My uefi does not have to point here as i can boot this partition if not cross-compiled from my permanent boot partition if i added this entry in it's grub.
DRIVE A /dev/sda "linux work"
partitions
#1 fat32 "the complete boot partition",uefi only points at this.
/boot/efi/*.EFI
/boot/grub/
/etc/default/grub <- grubs conf files are in here? What more do i need to run grub??
#2 ext4
/ <--root
DRIVE B /dev/sdb "windows 10"
partitions
#1 ntfs
DRIVE C /dev/sdc "linux play"
partitions
#1 ext4
/ <--root
DRIVE D /dev/sdd "the swapable drive" (cross-)compiled gentoo
partitions
#1 fat32 "also a complete boot partition, not used from workstation"
#2 ext4
/ <--root
The recepy to achieve and maintain the boot goals,above question #3.
** 1 the efivars on mobo
Add the permanent partition to uefivars:
Code: | efibootmgr -c -d /dev/sda -p 1 -L "Linux Mint Work (Samsung 850)" -l "\EFI\Boot\bootx64.efi" |
** 2 creating the fat32 boot partition (if not existing)
Does it have to be at the beginning of a drive? It's not mbr?
parted command or with Gparted.
** 3 removing existing automatic installed grub (if existing)
remove partition or grub files.
** 4 installing moving efi files
mount the partition
Code: | mount /mnt/sda /dev/sda |
move the files.
unmount the partition
** 5 install grub
chroot into the drive:
Code: |
chroot /dev/sda1 /usr/sbin/grub-install |
the grub installation command?
Does this install all the reguired files for grub i.e. /etc/default/grub ?
In this example, other resources are mounted. I did see no connection with grub:
example adress
https://sites.google.com/site/easylinuxtipsproject/6
example resources
Code: | for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; |
/dev/pts ?
/proc ?
** auto configure grub or see configure grub
Code: |
apt-get install --reinstall grub-efi-amd64 |
** manual configure grub
Code: |
vim /etc/default/grub |
** Done!
exit chroot
I have tried to achieve this already,spending lots of time with rebooting.
I would like to have this sorted and understood before i realy dive into Gentoo.
So I would be really glad if this is sorted. Also for reusability in the future. Some guidance requested. How do Gentoo veterans do this?
I kinda got stuck inside the theorem, see references.
I'm missing the paractical key i think.
Some help or corrections on my boot recepy are verry welcome.
Hopefully i can eventually make a bash script. So I can easily make proper multibooted installations in the future.
Then i know i know and can apply it automatically.
The been reading and trying quite a lot.
For a reference:
[url]
http://www.rodsbooks.com/efi-bootloaders/index.html [/url]
[url]https://www.happyassasins.net/2014/01/25/uefi-boot-how-does-that-actually-work-then/ [/url]
http://www.rodsbooks.com/efi-bootloaders/installation.html#alternative-naming
https://wiki.gentoo.org/wiki/Efibootmgr#Creating_a_boot_entry
https://wiki.gentoo.org/wiki/EFI_stub_kernel
https://wiki.archlinux.org/index.php/Systemd-boot
https://www.happyassassin.net/2014/01/25/uefi-boot-how-does-that-actually-work-then/
https://www.eightforums.com/tutorials/15458-uefi-bootable-usb-flash-drive-create-windows.html
https://superuser.com/questions/1008125/when-uefi-motherboard-firmware-is-set-to-uefinot-legacy-usb-is-not-detecte
https://en.wikipedia.org/wiki/EFI_system_partition
making partitions and resizing existing fat32 partitions.
https://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/
more grub
https://www.ibm.com/developerworks/library/l-GRUB2-features/index.html
https://www.ibm.com/developerworks/library/l-GRUB2-features/index.html
http://www.rodsbooks.com/efi-bootloaders/installation.html#register
http://www.rodsbooks.com/efi-bootloaders/refind.html
http://www.rodsbooks.com/efi-bootloaders/index.html
https://en.wikipedia.org/wiki/GUID_Partition_Table
http://www.rodsbooks.com/
https://help.ubuntu.com/community/PartitioningSchemes#Partitioning_Scheme_for_Multiple_systems
all the files i need for grub?
https://help.ubuntu.com/community/Grub2/Setup#File_Structure
I can't wait (really) starting with Gentoo!
Thanks a lot, |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Mar 20, 2018 11:57 pm Post subject: |
|
|
Have you tried rEFInd? Put it on a flash drive in about 10 minutes and see what minimum work maximum flexibility looks like. If you have a spare usb flash drive that contains nothing of value, suggest download a rEFInd flash drive image from http://sourceforge.net/projects/refind/files/0.11.2/refind-flashdrive-0.11.2.zip/download, unzip it, cd to the unzip directory (contains file refind-flashdrive-0.11.2.img), run fdisk -l noting what disks are listed, let's assume /dev/sda and /dev/sdb, install the spare usb flash drive, run fdisk -l again, this second list should list a new disk, let's assume /dev/sdc, assuming /dev/sdc is correct, run Code: | dd if=refind-flashdrive-0.11.2.img of=/dev/sdf bs=4MB |
dd can be destructive be sure of= is pointing to the correct "spare" usb. You can then reboot using F2 or delete to enter the UEFI to select the spare USB in UEFI mode as first boot choice. _________________ Defund the FCC. |
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Thu Mar 22, 2018 3:18 pm Post subject: |
|
|
Thank you DONAHUE,
I considered rEFInd and looked for more information about it.
But I do like to finish what i've started.
I tried to install grub on my fat32 partition. sda as the main boot partition.
sda= nvme0on1
fat32 partition on sda= nvme0n1p1
I tried:
Code: |
sudo grub-install /dev/sda
Installing for x86_64-efi platform
Installation finished.No error reported
|
So this should work?
And in uefi selected the drive.
Then rebooted and got a grub shell. Not the menu
Resetting uefi to linux-work. after grub-menu started. Something broken and unable to boot linux-work.
Broken unalocated
no such device ...
invalid sector size ...
alloc magic isbroken at ...
Aborted...
Trying the linux play entry in grub2 booted now my linux-work..
Then i tried:
Code: |
sudo grub-install /dev/sda
# or for efi i should have {
sudo grub-install --target=x86_64-efi --efi-directory=/mnt/nvme0n1p1/boot
#}
Installing for x86_64-efi platform
Installation finished.No error reported
|
mount
Code: |
sudo mount /dev/nvme0n1p1 /mnt/nvme0n1p1
|
grub config.
Code: |
su
mkdir /mnt/nvme0n1p1/EFI/Boot/grub/
exit
|
Code: |
grub-mkconfig -o /mnt/nvme0n1p1/EFI/Boot/grub/grub.cfg
Generating grub configuration file..
Found linux image: /boot/vmlinuz
Found initrd image: /boot/initrd.img
Found Windows Boot Manager
Found LInux Mint
Found Windows Boot MAnager
Adding boot menu entry for EFI firmware configuration
done
|
According to
https://wiki.archlinux.org/index.php/GRUB
This should already be it.
IN uefi selected the drive known as nvme0n1p1 (sumsung 960)
Grub commandline. NOt grub menu..
But if i select Ubuntu (samsung 960 evo) in uefi
I get a grub menu.
This grub menu is different then what i used to have.
My originat linux work does not boot.
But selecting my linux play boots now linux work...
How to verify??
The partition boot partition fat32 only contains
the folder:
Code: |
EFI/Boot/grub/grub/grub.cfg
EFI/Microsoft
EFI/Ubuntu
|
To verify installation location:
After trying the boot info script.
The grub install is still on /dev/sdb !!!
And not on /dev/nvme0n1p1
So it's still the old situation.
https://sourceforge.net/projects/bootinfoscript
The result from bootscript:
Code: |
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> No boot loader is installed in the MBR of /dev/sda.
=> Grub Legacy0.97 is installed in the MBR of /dev/sdb and looks at sector
981762096 of the same hard drive for the stage2 file. A stage2 file is at
this location on /dev/sdb. Stage2 looks on partition #1 for
/boot/grub/menu.lst..
=> Windows is installed in the MBR of /dev/sdc.
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of sda1 and looks at sector 217830912 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sda. Stage2 looks on partition #1
for /boot/grub/menu.lst.
Operating System: Linux Mint 18.3 Sylvia
Boot files: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
sda2: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 18.3 Sylvia
Boot files: /boot/grub/grub.cfg /etc/fstab
sdc1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdc2: __________________________________________________________________________
File system: vfat
Boot sector type: Unknown
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/ubuntu/fwupx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi
sdc3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
sdc4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /Windows/System32/winload.exe
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 976,773,167 976,773,167 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 7,815,168 976,773,134 968,957,967 Data partition (Linux)
/dev/sda2 2,048 7,815,167 7,813,120 Swap partition (Linux)
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 1 3,907,029,167 3,907,029,167 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sdb1 2,048 3,907,029,134 3,907,027,087 Data partition (Linux)
Drive: sdc _____________________________________________________________________
Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdc1 1 4,294,967,295 4,294,967,295 ee GPT
/dev/sdc1 ends after the last sector of /dev/sdc
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sdc1 2,048 1,023,999 1,021,952 Windows Recovery Environment (Windows)
/dev/sdc2 1,024,000 1,226,751 202,752 EFI System partition
/dev/sdc3 1,226,752 1,259,519 32,768 Microsoft Reserved Partition (Windows)
/dev/sdc4 1,259,520 3,907,028,991 3,905,769,472 Data partition (Windows/Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/nvme0n1
/dev/nvme0n1p1 DDF5-5C4A vfat
/dev/sda1 f8aed4d5-d404-436b-b211-386aa62e2640 ext4
/dev/sda2 7f1d7970-015b-426c-ac2f-0116add1288c swap
/dev/sdb1 9d7d45d4-43cd-4477-b35c-774b5dae60ec ext4
/dev/sdc1 36A48134A480F81F ntfs Herstel
/dev/sdc2 5682-E5A5 vfat
/dev/sdc3
/dev/sdc4 02F89488F8947B9B ntfs
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/nvme0n1p1 /boot/efi vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p1 /mnt/nvme0n1p1 vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda1 / ext4 (rw,relatime,errors=remount-ro,data=ordered)
=========================== sda1/boot/grub/menu.lst: ===========================
--------------------------------------------------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=f8aed4d5-d404-436b-b211-386aa62e2640
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Linux Mint 18.3 Sylvia, kernel 4.10.0-38-generic
uuid f8aed4d5-d404-436b-b211-386aa62e2640
kernel /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash
initrd /boot/initrd.img-4.10.0-38-generic
title Linux Mint 18.3 Sylvia, kernel 4.10.0-38-generic (recovery mode)
uuid f8aed4d5-d404-436b-b211-386aa62e2640
kernel /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro single
initrd /boot/initrd.img-4.10.0-38-generic
title Linux Mint 18.3 Sylvia, memtest86+
uuid f8aed4d5-d404-436b-b211-386aa62e2640
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------
=========================== sda1/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1' f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux Mint 18.3 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f8aed4d5-d404-436b-b211-386aa62e2640' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1' f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
submenu 'Advanced options for Linux Mint 18.3 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-f8aed4d5-d404-436b-b211-386aa62e2640' {
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-advanced-f8aed4d5-d404-436b-b211-386aa62e2640' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1' f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-init-upstart-f8aed4d5-d404-436b-b211-386aa62e2640' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1' f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-recovery-f8aed4d5-d404-436b-b211-386aa62e2640' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1' f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-DDF5-5C4A' {
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root DDF5-5C4A
else
search --no-floppy --fs-uuid --set=root DDF5-5C4A
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Linux Mint 18.3 Sylvia (18.3) (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-730181ff-88da-418d-b3a7-75030205d6c5' {
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 --hint='hd1,gpt1' 730181ff-88da-418d-b3a7-75030205d6c5
else
search --no-floppy --fs-uuid --set=root 730181ff-88da-418d-b3a7-75030205d6c5
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=730181ff-88da-418d-b3a7-75030205d6c5 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
submenu 'Advanced options for Linux Mint 18.3 Sylvia (18.3) (on /dev/sdb1)' $menuentry_id_option 'osprober-gnulinux-advanced-730181ff-88da-418d-b3a7-75030205d6c5' {
menuentry 'Linux Mint 18.3 Cinnamon 64-bit (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic--730181ff-88da-418d-b3a7-75030205d6c5' {
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 --hint='hd1,gpt1' 730181ff-88da-418d-b3a7-75030205d6c5
else
search --no-floppy --fs-uuid --set=root 730181ff-88da-418d-b3a7-75030205d6c5
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=730181ff-88da-418d-b3a7-75030205d6c5 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic--730181ff-88da-418d-b3a7-75030205d6c5' {
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 --hint='hd1,gpt1' 730181ff-88da-418d-b3a7-75030205d6c5
else
search --no-floppy --fs-uuid --set=root 730181ff-88da-418d-b3a7-75030205d6c5
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=730181ff-88da-418d-b3a7-75030205d6c5 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (upstart) (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic--730181ff-88da-418d-b3a7-75030205d6c5' {
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 --hint='hd1,gpt1' 730181ff-88da-418d-b3a7-75030205d6c5
else
search --no-floppy --fs-uuid --set=root 730181ff-88da-418d-b3a7-75030205d6c5
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=730181ff-88da-418d-b3a7-75030205d6c5 ro quiet splash $vt_handoff init=/sbin/upstart
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (recovery mode) (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic-root=UUID=730181ff-88da-418d-b3a7-75030205d6c5 ro recovery nomodeset-730181ff-88da-418d-b3a7-75030205d6c5' {
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 --hint='hd1,gpt1' 730181ff-88da-418d-b3a7-75030205d6c5
else
search --no-floppy --fs-uuid --set=root 730181ff-88da-418d-b3a7-75030205d6c5
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=730181ff-88da-418d-b3a7-75030205d6c5 ro recovery nomodeset
initrd /boot/initrd.img-4.10.0-38-generic
}
}
menuentry 'Windows Boot Manager (on /dev/sdc2)' --class windows --class os $menuentry_id_option 'osprober-efi-5682-E5A5' {
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 --hint='hd2,gpt2' 5682-E5A5
else
search --no-floppy --fs-uuid --set=root 5682-E5A5
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sda1/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=f8aed4d5-d404-436b-b211-386aa62e2640 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdb2 during installation
#UUID=5682-E5A5 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda2 during installation
UUID=7f1d7970-015b-426c-ac2f-0116add1288c none swap sw 0 0
#nvme ssd
UUID=DDF5-5C4A /boot/efi vfat umask=0077 0 1
//192.168.178.123/SharedFolderT7400 /media/SharedFolderT7400 cifs user,dom=192.168.178.123,username=peter,password=pnoordzij87 0 0
--------------------------------------------------------------------------------
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
=========================== sdb1/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 9d7d45d4-43cd-4477-b35c-774b5dae60ec
else
search --no-floppy --fs-uuid --set=root 9d7d45d4-43cd-4477-b35c-774b5dae60ec
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux Mint 18.3 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9d7d45d4-43cd-4477-b35c-774b5dae60ec' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 9d7d45d4-43cd-4477-b35c-774b5dae60ec
else
search --no-floppy --fs-uuid --set=root 9d7d45d4-43cd-4477-b35c-774b5dae60ec
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=9d7d45d4-43cd-4477-b35c-774b5dae60ec ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
submenu 'Advanced options for Linux Mint 18.3 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-9d7d45d4-43cd-4477-b35c-774b5dae60ec' {
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-advanced-9d7d45d4-43cd-4477-b35c-774b5dae60ec' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 9d7d45d4-43cd-4477-b35c-774b5dae60ec
else
search --no-floppy --fs-uuid --set=root 9d7d45d4-43cd-4477-b35c-774b5dae60ec
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=9d7d45d4-43cd-4477-b35c-774b5dae60ec ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-init-upstart-9d7d45d4-43cd-4477-b35c-774b5dae60ec' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 9d7d45d4-43cd-4477-b35c-774b5dae60ec
else
search --no-floppy --fs-uuid --set=root 9d7d45d4-43cd-4477-b35c-774b5dae60ec
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=9d7d45d4-43cd-4477-b35c-774b5dae60ec ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-recovery-9d7d45d4-43cd-4477-b35c-774b5dae60ec' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 9d7d45d4-43cd-4477-b35c-774b5dae60ec
else
search --no-floppy --fs-uuid --set=root 9d7d45d4-43cd-4477-b35c-774b5dae60ec
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=9d7d45d4-43cd-4477-b35c-774b5dae60ec ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-DDF5-5C4A' {
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root DDF5-5C4A
else
search --no-floppy --fs-uuid --set=root DDF5-5C4A
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Linux Mint 18.3 Sylvia (18.3) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-f8aed4d5-d404-436b-b211-386aa62e2640' {
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
submenu 'Advanced options for Linux Mint 18.3 Sylvia (18.3) (on /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-f8aed4d5-d404-436b-b211-386aa62e2640' {
menuentry 'Linux Mint 18.3 Cinnamon 64-bit (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic--f8aed4d5-d404-436b-b211-386aa62e2640' {
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic--f8aed4d5-d404-436b-b211-386aa62e2640' {
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (upstart) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic--f8aed4d5-d404-436b-b211-386aa62e2640' {
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro quiet splash $vt_handoff init=/sbin/upstart
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.0-38-generic-root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro recovery nomodeset-f8aed4d5-d404-436b-b211-386aa62e2640' {
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 f8aed4d5-d404-436b-b211-386aa62e2640
else
search --no-floppy --fs-uuid --set=root f8aed4d5-d404-436b-b211-386aa62e2640
fi
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=f8aed4d5-d404-436b-b211-386aa62e2640 ro recovery nomodeset
initrd /boot/initrd.img-4.10.0-38-generic
}
}
menuentry 'Windows Boot Manager (on /dev/sdc2)' --class windows --class os $menuentry_id_option 'osprober-efi-5682-E5A5' {
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 5682-E5A5
else
search --no-floppy --fs-uuid --set=root 5682-E5A5
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sdb1/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=9d7d45d4-43cd-4477-b35c-774b5dae60ec / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=DDF5-5C4A /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda2 during installation
UUID=7f1d7970-015b-426c-ac2f-0116add1288c none swap sw 0 0
--------------------------------------------------------------------------------
=================== sdb1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sdc2
00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 02 0e 1a |.X.MSDOS5.0.....|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 a0 0f 00 |........?.......|
00000020 00 18 03 00 f9 02 00 00 00 00 00 00 02 00 00 00 |................|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 00 29 a5 e5 82 56 4e 4f 20 4e 41 4d 45 20 20 |..)...VNO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 | FAT32 3.....|
00000060 7b 8e c1 8e d9 bd 00 7c 88 56 40 88 4e 02 8a 56 |{......|.V@.N..V|
00000070 40 b4 41 bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a |@.A..U..r...U.u.|
00000080 f6 c1 01 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd |...t..F..-.V@...|
00000090 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 |.s......f...@f..|
000000a0 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 |...?.......Af...|
000000b0 66 f7 e1 66 89 46 f8 83 7e 16 00 75 39 83 7e 2a |f..f.F..~..u9.~*|
000000c0 00 77 33 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 |.w3f.F.f........|
000000d0 00 e8 2c 00 e9 a8 03 a1 f8 7d 80 c4 7c 8b f0 ac |..,......}..|...|
000000e0 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb |..t.<.t.........|
000000f0 ee a1 fa 7d eb e4 a1 7d 80 eb df 98 cd 16 cd 19 |...}...}........|
00000100 66 60 80 7e 02 00 0f 84 20 00 66 6a 00 66 50 06 |f`.~.... .fj.fP.|
00000110 53 66 68 10 00 01 00 b4 42 8a 56 40 8b f4 cd 13 |Sfh.....B.V@....|
00000120 66 58 66 58 66 58 66 58 eb 33 66 3b 46 f8 72 03 |fXfXfXfX.3f;F.r.|
00000130 f9 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2 |..*f3.f..N.f....|
00000140 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56 |..f..f....v....V|
00000150 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61 0f |@............fa.|
00000160 82 74 ff 81 c3 00 02 66 40 49 75 94 c3 42 4f 4f |.t.....f@Iu..BOO|
00000170 54 4d 47 52 20 20 20 20 00 00 00 00 00 00 00 00 |TMGR ........|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a 44 69 |..............Di|
000001b0 73 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 65 73 73 |sk error...Press|
000001c0 20 61 6e 79 20 6b 65 79 20 74 6f 20 72 65 73 74 | any key to rest|
000001d0 61 72 74 0d 0a 00 00 00 00 00 00 00 00 00 00 00 |art.............|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 ac 01 b9 01 00 00 55 aa |..............U.|
00000200
========= Devices which don't seem to have a corresponding hard drive: =========
sdd sde sdf sdg sdh
=============================== StdErr Messages: ===============================
cat: /tmp/BootInfo-obavwXU3/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-obavwXU3/Tmp_Log: No such file or directory
|
Conclusion the grub location is still the same as the original situation:
Grub Legacy0.97 is installed in the MBR of /dev/sdb and looks at sector
981762096 of the same hard drive for the stage2 file. A stage2 file is at
this location on /dev/sdb.
Stage2 looks on partition #1 for
/boot/grub/menu.lst..
The point is that i think after reading the org grub manual that the solution must be very simple..
https://www.gnu.org/software/grub/manual/grub/grub.html#Installing-GRUB-using-grub_002dinstall
So once it's working it's just a matter of manually changing the grub conf. file.
In this link it also seems very simple.
http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
I have not tried this one yet(im not at workstation now,laptop):
?? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Mar 22, 2018 7:03 pm Post subject: |
|
|
Code: | sudo grub-install /dev/sda
Installing for x86_64-efi platform
Installation finished.No error reported | is appropriate for BIOS mode, not for UEFI mode. Presumably GRUB_PLATFORMS="x86_64" is in /etc/portage/make.conf. The EFI Systems Partition (ESP) needs to be mounted (handbook default is at /boot) and grub needs to be told where that mount point is. run as root Code: | grub-install --target=x86_64.efi --efi_directory=/boot |
I don't understand Code: | sda= nvme0n1
fat32 partition on sda= nvme0n1p1 |
/dev/sda is a sata hard drive
/dev/nvme0n1 is the first M2-PCIE drive on the first M2-PCIE interface, consistent with (Samsung 960 evo)
My disk setup: Code: | fdisk -l
Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: AD194627-0FE3-46A6-A7E1-C0C77F675A84
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 923647 921600 450M Windows recovery environment
/dev/nvme0n1p2 923648 1128447 204800 100M EFI System
/dev/nvme0n1p3 1128448 1161215 32768 16M Microsoft reserved
/dev/nvme0n1p4 1161216 498364842 497203627 237.1G Microsoft basic data
/dev/nvme0n1p5 498366464 500115455 1748992 854M Windows recovery environment
Disk /dev/nvme1n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8EBF5F30-C342-4F4F-8F0D-9848B1E4793B
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 934678527 934676480 445.7G Linux filesystem
/dev/nvme1n1p2 934678528 1000214527 65536000 31.3G Linux swap | My sequence: Boot sysresccd, enter chroot or boot gentoo, then run: Code: | # I don't use a separate boot partition,
# I made /boot/efi as a mount point for my ESP
# I have emerged grub and os-prober
mount /dev/nvme0n1p2 /boot/efi
grub-install --target=x86_64.efi --efi_directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg | ls /boot shows config-... efi grub system.map-... vmlinuz-...
ls /boot/efi shows EFI 'System Volume Information'
ls /boot/efi/EFI shows Boot gentoo Microsoft refind
I use rEFInd, just keep grub around for times like this
ls /boot/efi/EFI/gentoo shows grubx64.efi
in multi operating system environment I think it best to have only one grub and one ESP.
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu] _________________ Defund the FCC. |
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Thu Mar 29, 2018 3:09 pm Post subject: |
|
|
Sorry for my late response
Quote: |
I don't understand
Quote:
sda= nvme0n1
fat32 partition on sda= nvme0n1p1
|
This is correct. At the first topic i made pseudo names for not making my question to complicated. So there i named nvme0n1, sda. Therefore sda=nvme0n1. Sorry for the confusement.
I am about to use only one ESP. Which I want completely at nvme0 for boot speeds.
And I have one temporarily on my swapable drive.
For example I have a Mac G5 (Powerpc architecture) I do not want to compile Gentoo on it.
However I am crosscompiling on this workstation I want to create a ready to boot harddrive. So then I would technically have 2 ESP's. But the drive will be in the G5 asap.
So then:
Code: |
#For removable installs you have to use --removable and specify both --boot-directory and --efi-directory:
grub-install --efi-directory=/mnt/usb --boot-directory=/mnt/usb/boot --removable
|
What I did on my workstation was:
Code: |
sudo mount /dev/nvme0n1p1 /mnt/nvme0n1p1/
#on uefi must be this command:
sudo grub-install --target=x86_64-efi --efi-directory=/mnt/nvme0n1p1/EFI/ --boot-directory=/mnt/nvme0p1/EFI
sudo grub-mkconfig -o /mnt/nvme0n1p1/EFI/Boot/grub/grub.cfg
|
Hopefully I can boot completely from nvme0n1 now.
I reboot now and see. Getting there . |
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Thu Mar 29, 2018 3:56 pm Post subject: |
|
|
The grub menu still resides on sda.
After editing:
Code: |
sudo vim /boot/grub/grub.cfg
|
I could tell the changes from the grub menu.
So after:
Code: |
sudo grub-install --target=x86_64-efi --efi-directory=/mnt/nvme0n1p1/EFI/ --boot-directory=/mnt/nvme0p1/EFI
sudo grub-mkconfig -o /mnt/nvme0n1p1/EFI/Boot/grub/grub.cfg
|
The working grub menu is still on sda, not on the nvme0n1. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Thu Mar 29, 2018 5:33 pm Post subject: |
|
|
It would be absolutely great to edit the grub.cfg with grub2 syntax. Actually I will do that.
the only problem now is that grub currently uses:
Code: |
sda: /boot/grub/grub.cfg
|
and not:
Code: |
nvme0n1p1: /EFI/boot/grub/grub.cfg
|
If this latter is the case, I think i'm almost ready. Then I can finetune, save the proces in a script and use over and over again
depending on how I want to configure my system.
It's just that i want to isolate the complete boot process to one partition,the one on nvme drive, completely independent.
In case I pull all my sata-harddrives out i can still boot grub on nvme. The grub menu would be meaningless, but still there,except the Gentoo os option, this will be also on the nvme. Once i put my harddrives back in i can boot them.
So no grub installation stuff, just running my script that will be based on this topics knowledge .
Or just a ready to go partition which i can mount and copy on any harddrive for external use. So once this works i store the partition. Or the script to generate this boot partition.
Therefore I wanted to use grub for multi platform usage.
Thanks! |
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 975 Location: The Village, Portmeirion
|
Posted: Thu Mar 29, 2018 6:25 pm Post subject: |
|
|
PeterNL wrote: | But im not with MBR I have an ESP partition. So my search continues. |
What is UEFI trying to boot? Let's make sure it is trying to boot what you want and not from the MBR.
|
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Thu Mar 29, 2018 6:48 pm Post subject: |
|
|
Code: |
efibootmgr -v
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0006,0001,0004,0007,0008,0000,0002,0003,0005
Boot0000 Hard Drive BBS(HD,,0x0)..GO..NO..........S.a.m.s.u.n.g. .S.S.D. .9.6.0. .E.V.O. .5.0.0.G.B....................A...........................%8Sq........H..Gd-.;.A.
.MQ..L.S.a.m.s.u.n.g. .S.S.D. .9.6.0. .E.V.O. .5.0.0.G.B........BO..NO........o.S.T.2.0.0.0.D.M.0.0.6.-.2.D.M.1.6.4............
........A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .4.Z.9.Z.E.J.Q.3........BO..NO........o.S.T.2.0.0.0.D.M.0.0.6.-.2.D.M.1.6.4......
..............A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .4.Z.9.Z.5.M.8.D........BO..NO........o.S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .5.0.0.G.B....................A...........................>..Gd-.;.A..MQ..L.3.S.3.
R.F.N.J.0.2.9.5.8.6.1. .A. . . . ........BO..NO........f.G.e.n.e.r.i.c.-.U.S.B.3...0. .C.R.W.-.S.D./.M.S.1...0.0....................A..................................
...Gd-.;.A..MQ..L.2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........f.G.e.n.e.r.i.c.-.
U.S.B.3...0. .C.R.W.-.S.M./.x.D.1...0.0....................A..................................
...Gd-.;.A..MQ..L.2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........f.G.e.n.e.r.i.c.-.
U.S.B.3...0. .C.R.W.-.S.D. .1...0.0....................A.....................................Gd-.;.A..MQ..L.
2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........f.G.e.n.e.r.i.c.-.U.S.B.3...0. .C.R.W.-.M.S. .1...0.0....................A.....................................Gd-.;.A..MQ..L.
2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........a.G.e.n.e.r.i.c.-.U.S.B.3...0. .C.R.W.-.C.F./.M.D.1...0.0....................A................................Gd-.
;.A..MQ..L.2.0.1.6.0.1.0.6.0.9.2.4........BO
Boot0001 Windows Boot Manager HD(2,GPT,738e2c09-49c9-48cf-a3d7-504a04e25c05,0xfa000,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.
EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.
-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...M................
Boot0002* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0003* UEFI:Removable Device BBS(130,,0x0)
Boot0004 Windows Boot Manager HD(1,GPT,f1feb360-a7c4-4561-9898-6b072cbb6dd6,0x800,0x400000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.
EFI)..BO
Boot0005* UEFI:Network Device BBS(131,,0x0)
Boot0006* ubuntu HD(1,GPT,f1feb360-a7c4-4561-9898-6b072cbb6dd6,0x800,0x400000)/File(\EFI\UBUNTU\GRUBX64.
EFI)
Boot0007 ubuntu HD(2,GPT,738e2c09-49c9-48cf-a3d7-504a04e25c05,0xfa000,0x31800)/File(\EFI\UBUNTU\SHIMX64.
EFI)..BO
Boot0008 ubuntu HD(1,GPT,f1feb360-a7c4-4561-9898-6b072cbb6dd6,0x800,0x400000)/File(\EFI\UBUNTU\SHIMX64.
EFI)..BO
|
In uefi only the boot option "960 evo Ubuntu" is selected, no other.
[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu] |
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 975 Location: The Village, Portmeirion
|
Posted: Thu Mar 29, 2018 7:56 pm Post subject: |
|
|
PeterNL wrote: | Code: |
efibootmgr -v
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0006,0001,0004,0007,0008,0000,0002,0003,0005
Boot0000 Hard Drive BBS(HD,,0x0)..GO..NO..........S.a.m.s.u.n.g. .S.S.D. .9.6.0. .E.V.O. .5.0.0.G.B....................A...........................%8Sq........H..Gd-.;.A.
.MQ..L.S.a.m.s.u.n.g. .S.S.D. .9.6.0. .E.V.O. .5.0.0.G.B........BO..NO........o.S.T.2.0.0.0.D.M.0.0.6.-.2.D.M.1.6.4............
........A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .4.Z.9.Z.E.J.Q.3........BO..NO........o.S.T.2.0.0.0.D.M.0.0.6.-.2.D.M.1.6.4......
..............A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .4.Z.9.Z.5.M.8.D........BO..NO........o.S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .5.0.0.G.B....................A...........................>..Gd-.;.A..MQ..L.3.S.3.
R.F.N.J.0.2.9.5.8.6.1. .A. . . . ........BO..NO........f.G.e.n.e.r.i.c.-.U.S.B.3...0. .C.R.W.-.S.D./.M.S.1...0.0....................A..................................
...Gd-.;.A..MQ..L.2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........f.G.e.n.e.r.i.c.-.
U.S.B.3...0. .C.R.W.-.S.M./.x.D.1...0.0....................A..................................
...Gd-.;.A..MQ..L.2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........f.G.e.n.e.r.i.c.-.
U.S.B.3...0. .C.R.W.-.S.D. .1...0.0....................A.....................................Gd-.;.A..MQ..L.
2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........f.G.e.n.e.r.i.c.-.U.S.B.3...0. .C.R.W.-.M.S. .1...0.0....................A.....................................Gd-.;.A..MQ..L.
2.0.1.6.0.1.0.6.0.9.2.4........BO..NO........a.G.e.n.e.r.i.c.-.U.S.B.3...0. .C.R.W.-.C.F./.M.D.1...0.0....................A................................Gd-.
;.A..MQ..L.2.0.1.6.0.1.0.6.0.9.2.4........BO
Boot0001 Windows Boot Manager HD(2,GPT,738e2c09-49c9-48cf-a3d7-504a04e25c05,0xfa000,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.
EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.
-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...M................
Boot0002* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0003* UEFI:Removable Device BBS(130,,0x0)
Boot0004 Windows Boot Manager HD(1,GPT,f1feb360-a7c4-4561-9898-6b072cbb6dd6,0x800,0x400000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.
EFI)..BO
Boot0005* UEFI:Network Device BBS(131,,0x0)
Boot0006* ubuntu HD(1,GPT,f1feb360-a7c4-4561-9898-6b072cbb6dd6,0x800,0x400000)/File(\EFI\UBUNTU\GRUBX64.
EFI)
Boot0007 ubuntu HD(2,GPT,738e2c09-49c9-48cf-a3d7-504a04e25c05,0xfa000,0x31800)/File(\EFI\UBUNTU\SHIMX64.
EFI)..BO
Boot0008 ubuntu HD(1,GPT,f1feb360-a7c4-4561-9898-6b072cbb6dd6,0x800,0x400000)/File(\EFI\UBUNTU\SHIMX64.
EFI)..BO
|
In uefi only the boot option "960 evo Ubuntu" is selected, no other. |
I'm surprised grub didn't add a UEFI boot entry when you tried to install it from Gentoo. It must have failed somewhere. It just uses efibootmgr to add another entry that points to a different grub efi stub.
[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu] |
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Tue Apr 03, 2018 2:50 pm Post subject: |
|
|
I have not installed Gentoo yet.
This is system preperation pre-Gentoo.
I have got a bit further.
Succes: adding the entry in uefi
Code: |
efibootmgr -c -d /dev/nvme0n1 -p 1 -L "MyGrub Samsung 960" -l "/EFI/Boot/bootx64.efi"
|
Succes: installing and configuring grub
Code: |
sudo mount /dev/nvme0n1p1 /mnt/nvme0n1p1/
sudo grub-install --target=x86_64-efi --efi-directory=/mnt/nvme0n1p1/EFI/
sudo grub-mkconfig -o /mnt/nvme0n1p1/EFI/Boot/grub/grub.cfg
|
After adding the drive name in the boot entries inside the /boot/grub/grub.cfg files on nvme and sda i could monitor which grub was actually booted.
It kept booting the grub on sda while in uefi the "MyGrub Samsung 960" was selected. Conclusion the efi file pointed at the wrong grub installation on the sda drive.
After renaming and copying the *.efi files the result remained the same.
I discovered the problem I had was that i was unable to configure the (encrypted or so) /EFI/Boot/bootx86.efi file.
Now i hope i got it:
Code: |
bootctl --path /boot/efi install
|
Hopefully i can (finally) configure and install the efi file to boot the grub on nvme! Then i'm finished.
How does bootctl work? The *.efi files are crypted so install and configure would need an "bootctl update" which is not in:
https://wiki.gentoo.org/wiki/Systemd-boot
Would this do the trick?
1. bootctl --path mnt/nvme0n1p1/efi/boot/grubx64.efi install
2. configure files to boot nvme.. i.e.
/mnt/nvme0n1p1/boot/efi/loader/loader.conf
Code: |
default mygrub
timeout 0
|
/mnt/nvme0n1p1/boot/efi/loader/entries/mygrub.conf
Code: |
title MyGrub
linux /vmlinuz # Do i need a kernel to boot grub?? 8-s
options root=/dev/nvme0n1p1
|
3. "bootctl update" or "bootctl --path=esp update"
This so that finally the correct grubx64.efi file is created and configured so that it will boot grub on my /dev/nvme0n1p1
I haven't tried. I think this is the solution.
So how do i point
"/mnt/nvme0n1p1/EFI/Boot/bootx64.efi"
to boot "/dev/nvme0n1p1"? |
|
Back to top |
|
|
PeterNL n00b
Joined: 20 Feb 2018 Posts: 10
|
Posted: Tue Apr 03, 2018 3:44 pm Post subject: |
|
|
What about?
Code: |
sudo grub-install --removable --target=x86_64-efi --efi-directory=/boot/efi/
|
The remobable flag makes the command generate an .efi file according to on of the answers on:
https://ubuntuforums.org/showthread.php?t=2342019 |
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Wed Apr 04, 2018 10:25 am Post subject: |
|
|
It should work without --removable, EFI system partition need to be mounted at /boot/efi. No need for sudo if you use SystemRescueCD. |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|