Can't boot lfs-8.3 from my new 4 terabyte drive
I've been compiling lfs 8.3 on a new 4 terabyte usb drive I just purchased.
I compiled the kernel and put it in /boot as per the instructions. grub2 is run from my host system which is Ubuntu. I ran update-grub from there and it saw lfs 8.3 on the new drive and put it into the grub boot menu. When I attempt to boot grub responds with a "no such partition" message and give a long identifier. I don't know if it is a guid or uuid. Here's the relevant portion from grub.cfg after I did update-grub: Code:
menuentry 'unknown Linux distribution (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-f129096a-da2e-4946-ac60-765e5bad31cb' { I'm pretty sure the problem is because the new drive is partitioned gpt. I've not had a drive this big before. I partitioned it into 4 equal partitions using gparted and am using /dev/sdb1, the first partition, to compile lfs 8.3 on. I consider myself fairly knowledgeable but this one has me stumped. Anybody got any ideas on this? Here's the error message from grub: Code:
error: no such device f129069a-da2e-4946-ac60-765e5bad31cb |
Hi
A gpt drive needs a boot partition, not the normal mbr type I,m not at my machine but I had to have a small partion at the begining. I think its called a GPT partition So basically I have sdb1 is GPT Partition sdb2 boot sdb3,4>>15 are primary. Is the machine uefi boot or legacy? |
here's the book sysvinit MBR (not UEFI)grub.cfg :
Code:
cat > /boot/grub/grub.cfg << "EOF" "grub2 is run from my host system which is Ubuntu. I ran update-grub from there and it saw lfs 8.3 on the new drive and put it into the grub boot menu." If one chooses to boot the host in uefi mode to build lfs then you are committed to using uefi and gpt together for LFS. That requires more skill and work than a old style MBR LFS install. For one you need a efi boot partiton of at least 512 MB which is what spiky mentioned. Also you would need to study up on ubu dual boot uefi grub. I would read up on using os-prober and grub-mkconfig from the Ubu Wiki to solve this. here's some info from my LFS that boots from a refind usb stick. I move drives around so I dont use efibootmgr to create a uefi bios entry for LFS. Code:
sudo fdisk -l Here's the LFS part of my arch uefi /boot/grub/grub.cfg: Code:
# BEGIN /etc/grub.d/30_os-prober ### |
Quote:
uefi and legacy boot. My Ubuntu host system is on an internal drive and that's where the grub files are and I guess it's using legacy boot as I've never dome anything special to get it to work. I know the new gpt drive has space right at the beginning of the drive for boot stuff but I don't know what to put there or how. I guess I should have studied this big capacity hard-drive stuff before I bought one. The 4 terabyte reads and writes just fine as I have been compiling software on it. It mounts like any other drive. I've been using /dev/sdb1 (partition1) for the linuxfromscratch work. Thanks for the reply. |
The UEFI or Legacy is in the bios as to how the machine boots, have a look through the bios to help, or google checking for uefi. Thats something you need to know. I dont use uefi boot.
|
Well, I'm going to mark this solved even though it isn't.
I've wasted enough hours on it. I give up. I've copied all the lfs 8.3 work I've done over to another drive with a lot of space on it so I can continue to work at compiling it. Now the first kernel I built does not work but that's a different story. At least now I can work on it again. Thanks to all who responded. |
All times are GMT -5. The time now is 03:22 PM. |