PC takes too long to boot after restart

Hello Everybody I istalled Zorin OS yesterday, but I've encountered to major problems right now:

  1. Ethernet connection doesnt work at my first boot
  2. Restarting my system (no shutdown just restart) takes too long

I usually get my ethernet connection working after a "reboot". reboot is in qutoation marks because (that's where my other problem is) when I try to reboot my system, and get to the bootloader where I select ZorinOS, it just takes too long to boot up the system. It only happenes after I try to restart it. After a force shutdown it just normally boots up within 30 seconds.
I just tried to restart my system, then I got again into those loong booting times. Meanwhile I had my breakfast and brew coffee. AFter I sat back at my desk I was finally at the login screen :sweat_smile:
I am currently dualbooting windows 10 too now.
If there are any infos I need to also provide, please let me know and tell me which command to use, I'll edit my post afterwards then.

Do you have disabled Secure Boot in the BIOS and Fast Boot in Windows?

Yes both disabled

Do You use a HDD, SSD or m.2?

I use ssd for Windows and m2 for zorin

2 different Drives ... When You choose the Zorin Entry on the Grub Menu, then it takes so long, yes? Did You ever pressed the Esc-Key to look if there come some Error Messages?

The Esc key doesn't do anything sadly

Hmm ... You could try it with Boot Repair. Create a bootable USB Stick with zorin and start it. Then choose the Try Mode for Zorin. Then choose Boot Repair and run it.

But if this brings anything, I don't know.

Tried that but I got an error message in the end. Something about how a locked NVRAM was detected. Here from pastebin

boot-repair-4ppa2056-zorin1                                              [20240916_1444]

============================= Boot Repair Summary ==============================





sdb may have broken partition table.
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.5.0-35-generic
ls: Zugriff auf '/sys/firmware/efi/vars' nicht möglich: Datei oder Verzeichnis nicht gefunden

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub-efi of
nvme0n1p2,
using the following options:  nvme0n1p1/boot/efi
Additional repair will be performed:  unhide-bootmenu-10s use-standard-efi-file


Mount nvme0n1p1 on /mnt/boot-sav/nvme0n1p2/boot/efi

Unhide GRUB boot menu in nvme0n1p2/etc/default/grub

===================== Reinstall the grub-efi of nvme0n1p2 ======================

chroot /mnt/boot-sav/nvme0n1p2 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2+zorin1
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.5.0-35-generic
chroot /mnt/boot-sav/nvme0n1p2 modprobe efivars

chroot /mnt/boot-sav/nvme0n1p2 efibootmgr -v before grub install
EFI variables are not supported on this system.


chroot /mnt/boot-sav/nvme0n1p2 uname -r
6.5.0-35-generic

chroot /mnt/boot-sav/nvme0n1p2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
Error: no grub*.efi generated for Zorin OS 17.1 (17). Bitte melden Sie diese Nachricht an boot.repair@gmail.com

chroot /mnt/boot-sav/nvme0n1p2 efibootmgr -v after grub install
EFI variables are not supported on this system.

Error: NVram is locked (Zorin not found in efibootmgr). Bitte melden Sie diese Nachricht an boot.repair@gmail.com

chroot /mnt/boot-sav/nvme0n1p2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Found linux image: /boot/vmlinuz-6.8.0-40-generic
Found initrd image: /boot/initrd.img-6.8.0-40-generic
Found linux image: /boot/vmlinuz-6.5.0-35-generic
Found initrd image: /boot/initrd.img-6.5.0-35-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi

Unhide GRUB boot menu in nvme0n1p2/boot/grub/grub.cfg

Während der Reparatur ist ein Fehler aufgetreten.
Error: NVram is locked (Zorin not found in efibootmgr). Bitte melden Sie diese Nachricht an boot.repair@gmail.com

Locked-NVram entdeckt.


============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/nvme0n1.
 => No boot loader is installed in the MBR of /dev/sda.
 => libparted MBR boot code is installed in the MBR of /dev/sdb.

nvme0n1p1: _____________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi

nvme0n1p2: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Zorin OS 17.1
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /Windows/System32/winload.exe

sdc: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/FD/sdc: /dev/sdc ist bereits eingehängt oder wird gerade benutzt.


================================ 2 OS detected =================================

OS#1:   Zorin OS 17.1 (17) on nvme0n1p2
OS#2:   Windows 10 or 11 on sda1

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Advanced Micro Devices, Inc. [AMD/ATI] Advanced Micro Devices, Inc. [AMD/ATI] from Advanced Micro Devices, Inc. [AMD/ATI] Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Zorin 64-bit (Zorin OS 17.1, jammy, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 1.20(5.32) from American Megatrends International, LLC.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0002,0000,0003
Boot0000* Windows Boot Manager	HD(1,GPT,f7023c24-98a1-446d-8e03-fbc2ebed4e0a,0x800,0x100000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...f................
Boot0002* ubuntu	HD(1,GPT,f7023c24-98a1-446d-8e03-fbc2ebed4e0a,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0003* UEFI: KingstonDataTraveler 2.0PMAP	PciRoot(0x0)/Pci(0x2,0x1)/Pci(0x0,0x0)/Pci(0xc,0x0)/Pci(0x0,0x0)/USB(9,0)/CDROM(1,0x238,0x9e00)..BO

1d43d986c265d8c455d020e4a1f28c52   nvme0n1p1/BOOT/fbx64.efi
1d260ff1255f189ab621209796ee2fed   nvme0n1p1/BOOT/mmx64.efi
a1da253696a304dce6b4668b70151c0e   nvme0n1p1/ubuntu/grubx64.efi
1d260ff1255f189ab621209796ee2fed   nvme0n1p1/ubuntu/mmx64.efi
07e25dcaf57c776875f78fa36827c58e   nvme0n1p1/ubuntu/shimx64.efi
75348ac78723c93af400084cd96e6469   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
32bcd3665cc5fb36e7e77961b819c4f3   nvme0n1p1/Microsoft/Boot/bootmgr.efi
07e25dcaf57c776875f78fa36827c58e   nvme0n1p1/BOOT/BOOTX64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

nvme0n1	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sda	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	nvme0n1
sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 34848BBE-7807-4838-ACE6-7D3BDB70857E
            Start        End    Sectors  Size Type
nvme0n1p1    2048    1050623    1048576  512M EFI System
nvme0n1p2 1050624 1953523711 1952473088  931G Linux filesystem
Disk sda: 223.58 GiB, 240065183744 bytes, 468877312 sectors
Disk identifier: B1573205-CBD0-449F-BBAA-4D5B4F407A1C
      Start       End   Sectors   Size Type
sda1   2048 468875263 468873216 223.6G Microsoft basic data
Disk sdb: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: 0x5a58031b
Disk sdc: 14.54 GiB, 15610576896 bytes, 30489408 sectors
Disk identifier: 0x5d8ad037
      Boot   Start      End  Sectors  Size Id Type
sdc1  *          0  6638911  6638912  3.2G  0 Empty
sdc2           568    10679    10112  4.9M ef EFI (FAT-12/16/32)
sdc3       6639616 30489407 23849792 11.4G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:512:gpt:ATA SanDisk SSD PLUS:;
1:1049kB:240GB:240GB:ntfs:Basic data partition:msftdata;
sdb:120GB:scsi:512:512:msdos:ATA KINGSTON SA400S3:;
sdc:15.6GB:scsi:512:512:msdos:Kingston DataTraveler 2.0:;
2:291kB:5468kB:5177kB:::esp;
3:3399MB:15.6GB:12.2GB:ext4::;
nvme0n1:1000GB:nvme:512:512:gpt:CT1000P3PSSD8:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:1000GB:1000GB:ext4::;

Free space >10MiB: ______________________________________________________________

sdb: 0.00MiB:114473MiB:114473MiB
sdc: 5.21MiB:3242MiB:3237MiB

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                     
└─sda1      ntfs     3668374968370761                     0b3e2462-109c-420e-86c0-067ef58b978f                          Basic data partition
sdb                                                                                                                     
sdc         iso9660  2024-06-14-17-36-07-00                                                    Zorin OS 17.1 Core 64bit 
├─sdc1      iso9660  2024-06-14-17-36-07-00               5d8ad037-01                          Zorin OS 17.1 Core 64bit 
├─sdc2      vfat     F7F3-2925                            5d8ad037-02                                                   
└─sdc3      ext4     9721aea4-328c-4d85-b1dc-70946b9d971c 5d8ad037-03                          writable                 
nvme0n1                                                                                                                 
├─nvme0n1p1 vfat     CE1E-751E                            f7023c24-98a1-446d-8e03-fbc2ebed4e0a                          EFI System Partition
└─nvme0n1p2 ext4     c0a5ab0c-65ad-4e14-8102-4f32d797d12e 59eebd47-9cdc-4b72-b7bb-9c9478daec5d                          

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2024-09-16.0/crash]  10.5G   0% /var/crash
/dev/disk/by-label/writable[/install-logs-2024-09-16.0/log]    10.5G   0% /var/log
/dev/nvme0n1p1                                                479.6M   6% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p2                                                766.4G  11% /mnt/boot-sav/nvme0n1p2
/dev/sda1                                                     122.4G  45% /mnt/boot-sav/sda1
/dev/sdc1                                                          0 100% /cdrom
efivarfs                                                       64.3K  46% /sys/firmware/efi/efivars

Mount options (filtered): ______________________________________________________


=================== nvme0n1p1/efi/ubuntu/grub.cfg (filtered) ===================

search.fs_uuid c0a5ab0c-65ad-4e14-8102-4f32d797d12e root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

=================== nvme0n1p2/boot/grub/grub.cfg (filtered) ====================

Zorin   c0a5ab0c-65ad-4e14-8102-4f32d797d12e
Zorin, with Linux 6.8.0-40-generic   c0a5ab0c-65ad-4e14-8102-4f32d797d12e
Zorin, with Linux 6.5.0-35-generic   c0a5ab0c-65ad-4e14-8102-4f32d797d12e
Windows Boot Manager (on nvme0n1p1)   osprober-efi-CE1E-751E
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p2/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=c0a5ab0c-65ad-4e14-8102-4f32d797d12e /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=CE1E-751E  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

==================== nvme0n1p2/etc/default/grub (filtered) =====================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_THEME=/usr/share/grub/themes/zorin/theme.txt
GRUB_DISABLE_OS_PROBER=false

================= nvme0n1p2: Location of files loaded by Grub ==================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
 862,139877319 = 925,715644416  boot/vmlinuz                                   1
  10,389244080 = 11,155365888   boot/vmlinuz-6.5.0-35-generic                  1
 862,139877319 = 925,715644416  boot/vmlinuz-6.8.0-40-generic                  1
  10,389244080 = 11,155365888   boot/vmlinuz.old                               1
 861,250972748 = 924,761190400  boot/initrd.img                                2
   2,250972748 = 2,416963584    boot/initrd.img-6.5.0-35-generic               2
 861,250972748 = 924,761190400  boot/initrd.img-6.8.0-40-generic               2
   2,250972748 = 2,416963584    boot/initrd.img.old                            2

=================== nvme0n1p2: ls -l /etc/grub.d/ (filtered) ===================

-rwxr-xr-x 1 root root 18673 May 10  2023 10_linux
-rwxr-xr-x 1 root root 43021 May 10  2023 10_linux_zfs
-rwxr-xr-x 1 root root 14387 May 10  2023 20_linux_xen
-rwxr-xr-x 1 root root 13369 May 10  2023 30_os-prober
-rwxr-xr-x 1 root root  1372 May 10  2023 30_uefi-firmware
-rwxr-xr-x 1 root root   700 May 17  2023 35_fwupd
-rwxr-xr-x 1 root root   214 May 10  2023 40_custom
-rwxr-xr-x 1 root root   215 May 10  2023 41_custom
sprunge.us ko ()

Here are some Trobleshootings with this NVRam Locked Issue:

I completely reinstalled zorinOS and also deleted my Windows partition yet still the restart doesn't work without such long loading times. Since I uninstalled everything even Windows, there is no more dual booting either so I guess the problem wasn't windows then or the dualboot itself

Try uninstall snap (snapd), if you don't use snap. It's notorious on bootup.

Removed snap but still rebooting doesn't work properly.
I made sure that i haven't installed anything with snap before I completely uninstalled snap
(my ethernet connection problem is at least solved with the reinstall)

Okay, big Step. So, in Your BIOS in UEFI Mode or Legacy? That could be maybe a Point. And there would be important: What tool have You choose for creating the bootalbe USB Stick? On Windows Rufus is a good Tool. Especially because of one Function: You can actively choose the Partition Sheme. GPT is for UEFI better and MBR for Legacy.

So, that would be a Point, where You could look at it. More Ideas I wouldn't have at this Point to be honest ... What Hardware Specs do you have? I mean CPU, RAM, Graphics ...

I would not think initramfs, at this time, due to the lack of Windows, now.
Have you checked /var/log/syslog or journalctl -b -1
or journalctl -xe?
Usually, very slow boot is caused by init failures, sometimes kernel, sometimes hardware.

Have you checked what Graphics are in use?
You can check if it is ACPI error related by testing the grub parameter acpi=off.

1 Like

EDIT (Solution in my case): To Solve the ethernet problem when dualbooting windows, go to device manager, select your network ethernet adapter and enable wake-on-Lan OR on newer drivers you need to disable wake-on-Lan-shutdown. This helped in my case :slight_smile:

Hello everybody sorry for not answering. I switched to endeavor os recently to check if it's because of Debian based systems or not that I have those problems. But after using EOS for a while I found out what the problem was (since those problems also existed on my arch system now)

The problem is: Windows dual boot
Ethernet problem: After dual booting into windows, restarting then to my Linux system, I get no Ethernet connection. Turns out it's windows meddling with the ethernet settings. Other users also reported that issue while dual booting with windows. Many said you can easily solve this by enabling an option in your bios setting where the ethernet connections stays on (roughly explained) but yet still didn't work for me (guess I gotta keep looking). When I had zorin installed I always had windows installed first because it was easier for me setting up dual boot etc.
Bluetooth issue: Every time I use my Bluetooth headset or bt speaker and shutdown my pc while they're still connected, my system desperately tries to kill the daemon process involved with Bluetooth. I only saw this info while trying to reboot my system where it tried to kill that daemon process for roughly 10 minutes and it still couldn't kill it. Only when I disconnect my Bluetooth headset or speaker beforehand it reboots normally.
Thank you all for your help regardless

2 Likes

Did You disabled in Windows Fast Boot, too?

Not sure. It was a fresh new install I think windows fast boot was and still is enabled right now.

Edit: yes it's activated

Then You should disable it. It could maybe help with Your Ethernet Issue.

I was able to fix it :slight_smile: the one post marked as solution (had to edit it)

1 Like