Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it possible to have the /boot and grub external ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
IELeibowitz
n00b
n00b


Joined: 14 Mar 2020
Posts: 19

PostPosted: Fri Mar 20, 2020 12:22 pm    Post subject: Is it possible to have the /boot and grub external ? Reply with quote

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
View user's profile Send private message
Efo
Guru
Guru


Joined: 23 Jun 2005
Posts: 494

PostPosted: Sun May 31, 2020 11:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
389292
Guru
Guru


Joined: 26 Mar 2019
Posts: 504

PostPosted: Mon Jun 01, 2020 2:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Jun 01, 2020 3:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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