Mike Spencer <m…@bogus.nodomain.nowhere> writes:
>> Then you need to figure out if the machine supports UEFI. In that case I
>> recommend to do an UEFI install.
Yes, go with UEFI and GPT unless it's an ancient machine that only
support MBR.
> How do I determine that? efibootmgr -v says "EFI variable are not
> supported on this system" but I don't know if that's hardware,
> firmware or the current kernel config running on top of an MBR HD
> partition.
Hardware:
When the machine starts, enter into the BIOS/firmware setup screens and
look around. "CSM" is the older MBR boot. If it mentions EFI you're
good. If the machine was from 15 years ago or more recent then almost
certainly it's EFI.
You need kernel support for EFI:
zgrep EFI /proc/config.gz
And the filesystems it uses (CONFIG_EFIVAR_FS=y) to be mounted, both the
actual filesystem and the efivars pseudo filesystem:
grep efi /etc/fstab
/dev/nvme0n1p1 /boot/efi vfat defaults 1 0
efivarfs /sys/firmware/efi/efivars efivarfs noauto 0 0
The EFI filesystem is just a FAT32 fs on top of the partition, type
"EF".
If you're setting up a new system, use modern methods. There's no reason
to hold on to baggage from the past when a better method exists. Here's
how I setup my systems. You might leave off /srv if you're not serving
files.
lsblk -o NAME,FSTYPE,PARTTYPENAME,LABEL,FSAVAIL,FSUSE%,MOUNTPOINTS
NAME FSTYPE PARTTYPENAME LABEL FSAVAIL FSUSE% MOUNTPOINTS
zram0 swap [SWAP]
nvme0n1
├─nvme0n1p1 vfat EFI System 932.6M 4% /boot/efi
├─nvme0n1p2 swap Linux swap lxswap [SWAP]
├─nvme0n1p3 ext4 Linux root (x86-64) 177.2G 59% /
├─nvme0n1p4 xfs Linux server data 40G 20% /srv
└─nvme0n1p5 xfs Linux home 285.6G 18% /home
New Slackware Current installs should handle the explicit PARTTYPENAME
partition types. Older installs only took type 83. I mentioned this on
LQ during my last install. You can still use the older type name if you
want. 'fdisk' is my favorite tool for partitions because it seems to "do
the right thing" most of the time and has a helpful menu if you forget
the commands. It automatically figures how where the next partition goes
when you're adding them; you don't have to do math with the sectors.
Lastly, my EFI partition is a little big but that's what the machine
came with so I left it. 512m is probably more than enough. Use grub with
EFI. elilo has issues, depending on how new things are. It worked for me
years ago then stopped around kernel version 6.1.x . You might as well
learn grub because I think it's going to be the default in the next
versioned Slackware.
--
PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
"The Internet should always be the Wild West!"