On Tue, May 23, 2017 at 02:40:03PM -0600, Alan Feuerbacher wrote: [ snipping most of the parts I can't reply about ] > > However, I'm getting conceptually stuck at how to boot with my EFI > motherboard (Asus TUF Mark 1), using the lfs-uefi.txt hint mentioned in the > LFS > book, ch. 8.4.1. > > Note that my host Fedora is on /dev/sda, and I'm putting LFS on /dev/sdd. > Other hard disks contain incomplete experiments, with /dev/sdc containing > an incomplete systemd. > > >From the lfs-uefi.txt hint in LFS book, ch. 8.4.1 at > # http://www.linuxfromscratch.org/hints/downloads/files/lfs-uefi.txt > > #### > MOUNT EFI PARTITION > Determine which device is the EFI partition using gdisk or > parted, > enter the chroot environment, create /boot/efi if needed, and > > mount -vt vfat /dev/sda(x) /boot/efi > > where sda(x) is the device containing the EFI partition. > #### > > Two sticking points: > > 1. I assume that with my present setup, I should use /dev/sdd rather than > /dev/sda, because I DON'T want to change the Fedora boot stuff. Rather, I > want to be able to boot directly from the LFS disk. Ultimately, I want to > use a boot manage like RodsBooks' rEFTnd (which I successfully installed > on /dev/sdb). And if I remove all disks, but /dev/sdd, I want to boot > directly from that.
I think you are correct. The hint probably assumes one drive. > > 2. Do I use the LFS book's instructions on partitioning a strictly MBR boot > setup, or make GPT partitions? See the information and discussion below. > I think you have to use GPT partitions for UEFI. > filesystem > 6 908072960 1953525134 498.5 GiB 8300 Linux > filesystem > ###### > > Here is my first cut at /etc/fstab for systemd on /dev/sdc: > ###### > [root@localhost rootlfs1]# cat etc/fstab > # Begin /etc/fstab > > # file system mount-point type options dump fsck > # order > > /dev/sdc4 / ext4 defaults 1 1 > /dev/sdc3 /boot ext4 defaults 1 2 > /dev/sdc1 /boot/efi vfat defaults 0 2 > /dev/sdc5 /opt ext4 defaults 1 2 > /dev/sdc6 /home ext4 defaults 1 2 > /dev/sdc2 swap swap pri=1 0 0 > ###### > I think that looks reasonable. If you ever want to use that to build a newer / second-attempt LFS on the same disk, you will also need a spare partition for the new system. Personally, I long-ago stopped giving /opt its own filesystem: if '/' is big enough, I can rename directories in /opt for testing a newer version. > ###### > > Given the above and the discussion of having a /boot/efi vfat partition > in the > hints, I'm thinking that the /dev/sdd fstab should be this: > > ###### > ... > /dev/sdd5 / ext4 defaults 1 1 > /dev/sdd3 /boot ext4 defaults 1 2 > /dev/sdd1 /boot/efi vfat defaults 0 2 > /dev/sdd6 /opt ext4 defaults 1 2 > /dev/sdd7 /home ext4 defaults 1 2 > /dev/sdd2 swap swap pri=1 0 0 > ... > ###### > Note that /dev/sdd4 would be the MBR extended partition. No, forget about MBR. GPT is the way to go on recent machines, it allows many partitions. > > While I wait for some advice, I'll be installing the extra software required > by the hints. > > Question: has anyone on the LFS staff besides the authors (Dan McGhee, Kevin > M. Buckley) gone through all this? I'm happy to be a guinea pig, > because I'm learning a lot. > > Alan > LOL. The phrase "staff" used to be used in BLFS - but who is paying us ? I don't know for certain, but I suspect most of the editors have been able to disable UEFI on new machines. My personal opinion of UEFI is still "There be dragons." I suspect I might have to learn more about it for my next machine. No timescale for that, I started using gimp-2.9 on my photo-editing machine and discovered it was underpowered (2.9 seemed to only use 1 core, and the xcf files are a lot bigger) - but meanwhile I'm using 2.8 on my development machine and that is ok. So for me there is no rush to get my first ryzen. I don't think Dan or Kevin have posted on the lists recently, so you are probably somewhat on your own. Being a guinea pig can be fun, but less so if hardware gets damaged. So please think carefully about what you are doing at each step (but I imagine the worst thing is likely to be a trashed partition, which you can recreate from a working system such as fedora). ĸen -- I live in a city. I know sparrows from starlings. After that everything is a duck as far as I'm concerned. -- Monstrous Regiment -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
