On Wed, 4 Dec 2024 13:00:21 +0100
poc...@homemail.com wrote:

> > Sent: Tuesday, December 03, 2024 at 11:18 PM
> > From: "Felix Miata" <mrma...@stanis.net>
> > To: debian-user@lists.debian.org, "Timothy M Butterworth"
> > <timothy.m.butterwo...@gmail.com> Subject: Re: From SSD to NVME
> >
> > Timothy M Butterworth composed on 2024-12-03 20:36 (UTC-0500):
> >   
> > >> pocket composed on 2024-12-03 12:01 (UTC+0100):  
> > >> > [alarm@alarm ~]$ ls -l /
> > >> > lrwxrwxrwx   1 root root      7 Nov 25 19:15 bin -> usr/bin
> > >> > drwxr-xr-x   3 root root   4096 Dec 31  1969 boot  
> > >> …  
> > 
> > The rest of what the above was clipped from is in:
> > https://lists.debian.org/debian-user/2024/12/msg00120.html
> >   
> > >> What Debian puts a FAT filesystem on /boot/? Is that a
> > >> systemd-boot configuration?  
> >   
> > > /boot/efi is a fat partition. It has to be fat so the UEFI can
> > > read the files. Usually /boot is an EXT partition.  
> > 
> > /boot/efi/ is where the ESP normally goes, not /boot/, at least,
> > not when using Grub2 EFI, as opposed to one of those newfangled
> > bootloaders (e.g. systemd-boot) that I have yet to see live in
> > person. That 'ls -l /' listing is pocket's root directory showing
> > Dec 31 1969. That means there's a FAT filesystem mounted on /boot/.
> > He hasn't shown us what if anything is mounted on on /boot/efi/.  
> 
> I don't have a partition to mount at /boot/efi
> nvme drive with a msdos mbr two partitions one vfat and one ext4
> 
> Disk /dev/nvme0n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
> Disk model: Corsair MP600 CORE MINI                 
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0xb2c58878
> 
> Device         Boot   Start        End    Sectors  Size Id Type
> /dev/nvme0n1p1         8192    1056767    1048576  512M  c W95 FAT32
> (LBA) /dev/nvme0n1p2      1056768 1953525167 1952468400  931G 83 Linux
> 
> > 
> > What I expect to see with Grub2 EFI is what I see here:
> > # ls -gGd /boot/
> > dr-xr-xr-x 4 10240 Dec  3 11:57 /boot/              # typical
> > mountpoint EXT4 mounted # ls -gGd /boot/efi/
> > drwxr-xr-x 4 4096 Dec 31  1969 /boot/efi/   # typical
> > mountpoint FAT mounted # mount | grep boot
> > /dev/sda1 on /boot/efi type vfat…
> > #  
> 
> mount
> /dev/nvme0n1p2 on / type ext4 (rw,noatime)
> /dev/nvme0n1p1 on /boot/ type vfat
> (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
> 
> That is all there is folks just two partitions on a nvme drive
> 

The EFI partition (i.e. partition mounted as /boot/efi or the partition
containing /boot, which contains /boot/efi) must have some variety of
FAT filesystem, according to the EFI spec. Windows will normally use
ntfs and Debian by default ext4, and a FAT partition has no other real
use now than for EFI. It may be convenient to put the whole of /boot on
FAT, but Debian will normally leave /boot in the main / partition, and
just use FAT for /boot/efi.

-- 
Joe

-- 
Joe

Reply via email to