View previous topic :: View next topic |
Author |
Message |
IELeibowitz n00b
Joined: 14 Mar 2020 Posts: 19
|
Posted: Fri Mar 20, 2020 12:22 pm Post subject: Is it possible to have the /boot and grub external ? |
|
|
I have spent the past few days trying to get my OS on /dev/sda to boot from an external drive, but for some reason libreboot doesn’t see it anywhere. I’ve made a grub_bios partition on the USB drive, edited the fstab, recompiled the kernel and initramfs, and installed GRUB on the external drive, but libreboot simply won’t see it. Is it impossible to do this on libreboot, or is something not correct ? |
|
Back to top |
|
|
Efo Guru
Joined: 23 Jun 2005 Posts: 494
|
Posted: Sun May 31, 2020 11:07 pm Post subject: |
|
|
Hi IELeibowitz,
are you trying to make your box dual boot? (i.e. one OS on the box hard drive and a different one on the USB drive)
What does your /etc/fstab look like?
Which OS do you want to boot?
Efo |
|
Back to top |
|
|
389292 Guru
Joined: 26 Mar 2019 Posts: 504
|
Posted: Mon Jun 01, 2020 2:42 am Post subject: |
|
|
Not sure about libreboot, your USB drive partitioning should look something like this:
Code: | parted -a optimal /dev/sdX
unit mib
mklabel gpt
mkpart primary 1 3 #<bootloader
mkpart primary ext2 3 1027 #</boot (can be encrypted, depends on your setup)
mkpart primary fat32 1027 -1 #<rest of the drive, if you need it.
set 1 bios_grub on
set 2 boot on
set 3 msftdata on
name 1 grub-partition
name 2 boot-partition
name 3 USB-ADATA
quit |
Install grub like: grub-install --modules="linux crypto search_fs_uuid luks" --recheck /dev/sdX, you may need other modules like lvm, depends on your setup. grub-mkconfig -o /boot/grub/grub.cfg
fstab comes much later, so you should at least see GRUB trying to load.
Try some premade liveUSB image, can you boot it at least? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Mon Jun 01, 2020 3:05 am Post subject: |
|
|
The BIOS only needs a bootloader it can access. The bootloader can boot any OS it can access. There's absolutely no requirement that those have to be on the same storage device, or even on the same computer.
Get one thing working at a time. |
|
Back to top |
|
|
|