You are not logged in.

#1 2022-03-30 23:05:01

explanation_please
Member
Registered: 2021-10-29
Posts: 1

I'm trying to speed up my boot times and I've noticed that the boot an

Hi,

I'm trying to speed up my boot times and I've noticed that the boot and efi partitions are automounted at boot. According to systemd-analyze critical-chain, the mount and disk check add about 8 seconds to the boot time. Is there any way to delay these partitions from being mounted and checked until actually needed? I'm booting via efistub, so I don't think that these partitions are required at boot. My fstab already has "noauto" and "x-systemd.automount" but they get automounted still. My laptop is a Gateway NV570P10u.

The logs show that the automount request for those paritions were triggered by bluetoothd, I think. The process with pid 782 after booting is bluetoothd. On other boots, "systemd-logind" triggers the automount request.

"sudo journalctl -b -u efi.automount -u efi.mount -u boot.automount -u boot.mount":

Mar 30 15:21:51 Gateway-Arch systemd[1]: boot.automount: Got automount request for /boot, triggered by 782 ((uetoothd))
Mar 30 15:21:54 Gateway-Arch systemd[1]: efi.automount: Got automount request for /efi, triggered by 782 ((uetoothd))

"sudo journalctl -b -3 -u efi.automount -u efi.mount -u boot.automount -u boot.mount":

Mar 29 10:49:48 Gateway-Arch systemd[1]: Set up automount boot.automount.
Mar 29 10:49:48 Gateway-Arch systemd[1]: Set up automount efi.automount.
Mar 29 10:50:05 Gateway-Arch systemd[1]: efi.automount: Got automount request for /efi, triggered by 856 (systemd-logind)
Mar 29 10:50:09 Gateway-Arch systemd[1]: Mounting /efi...
Mar 29 10:50:09 Gateway-Arch systemd[1]: Mounted /efi.
Mar 29 10:50:09 Gateway-Arch systemd[1]: boot.automount: Got automount request for /boot, triggered by 856 (systemd-logind)
Mar 29 10:50:10 Gateway-Arch systemd[1]: Mounting /boot...
Mar 29 10:50:10 Gateway-Arch systemd[1]: Mounted /boot.
Mar 29 11:26:28 Gateway-Arch systemd[1]: Unmounting /boot...
Mar 29 11:26:28 Gateway-Arch systemd[1]: Unmounting /efi...

Here's my disk layout
"fdisk -l":

NAME          FSTYPE      FSVER LABEL             UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                                   
├─sda1        ntfs              Recovery          A806ED1406ECE472                                    
├─sda2        vfat        FAT32 ESP               A6EF-848D                              30.1M    73% /efi
├─sda3                                                                                                
├─sda4        ntfs              Windows           3AA4F2A1A4F25F37                                    
├─sda5        ntfs                                3062396362392ECA                                    
├─sda6        ntfs              Push Button Reset BE00F54600F505E5                                    
├─sda7        swap        1                       ad6581f0-03b6-41be-86b8-9904e65340f3                
├─sda8        vfat        FAT32 Linux-boot        8BF9-4ECE                             217.2M    27% /boot
└─sda9        crypto_LUKS 2                       70eabc36-f711-43f3-bbe2-170e88c4b6c2                
  └─cryptroot btrfs             Arch-root         203b2f9e-ffb1-4799-8002-a7161b575e4a    8.1G    86% /home
                                                                                                      /.snapshots
                                                                                                      /var/log
                                                                                                      /var/tmp
                                                                                                      /var/cache
                                                                                                      /swap
                                                                                                      /

My "/etc/fstab":

# /dev/mapper/cryptroot LABEL=Arch-root
UUID=203b2f9e-ffb1-4799-8002-a7161b575e4a	/         	btrfs     	rw,relatime,compress-force=zstd:9,space_cache,subvolid=256,subvol=/@	0 0

# /dev/sda2 LABEL=ESP
UUID=A6EF-848D      	/efi      	vfat      	noauto,x-systemd.automount,rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sda8 LABEL=Linux-boot
UUID=8BF9-4ECE      	/boot     	vfat      	noauto,x-systemd.automount,rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/mapper/cryptroot LABEL=Arch-root
UUID=203b2f9e-ffb1-4799-8002-a7161b575e4a	/home     	btrfs     	rw,relatime,compress-force=zstd:9,space_cache,subvolid=260,subvol=/@home,commit=120	0 0

# /dev/mapper/cryptroot LABEL=Arch-root
UUID=203b2f9e-ffb1-4799-8002-a7161b575e4a	/var/log  	btrfs     	rw,relatime,compress-force=zstd:9,space_cache,subvolid=258,subvol=/@var_log,commit=120	0 0

# /dev/mapper/cryptroot LABEL=Arch-root
UUID=203b2f9e-ffb1-4799-8002-a7161b575e4a	/var/cache	btrfs     	rw,relatime,compress-force=zstd:9,space_cache,subvolid=259,subvol=/@var_cache,commit=120	0 0

# /dev/mapper/cryptroot LABEL=Arch-root
UUID=203b2f9e-ffb1-4799-8002-a7161b575e4a	/var/tmp  	btrfs     	rw,relatime,compress-force=zstd:9,space_cache,subvolid=262,subvol=/@var_tmp,commit=120	0 0

# /dev/mapper/cryptroot LABEL=Arch-root
UUID=203b2f9e-ffb1-4799-8002-a7161b575e4a	/.snapshots	btrfs     	rw,relatime,compress-force=zstd:9,space_cache,subvolid=261,subvol=/@snapshots,commit=120	0 0

# /dev/mapper/cryptroot LABEL=Arch-root
UUID=203b2f9e-ffb1-4799-8002-a7161b575e4a	/swap     	btrfs     	rw,relatime,compress-force=zstd:9,space_cache,subvolid=263,subvol=/@swap,commit=120	0 0

/swap/swapfile	none	swap	nofail,sw	0	0

Here's the full output of "journalctl -b 0": http://0x0.st/oqtI.txt

Thanks for any help

Last edited by explanation_please (2022-03-30 23:06:15)

Offline

#2 2022-03-31 07:39:00

seth
Member
Registered: 2012-09-03
Posts: 28,836

Re: I'm trying to speed up my boot times and I've noticed that the boot an

Remove/comment the fstab entry and have a https://man.archlinux.org/man/systemd.automount.5.en unit that you start later™?

Offline

Board footer

Powered by FluxBB