#Computer will reboot itself, new behaviour

169 messages · Page 1 of 1 (latest)

fresh sable
#

I have been on Linux for 5 days now. It was fine until yesterday evening.

Behaviour:

  1. Computer is on

  2. Menu>shutdown

  3. Computer turns off

  4. After 2-3 seconds, it will power back on

  5. It will boot to a blank terminal instead of grub

  6. This terminal can be typed in freely, no commands return anything. Not even gibbierish will return an error.

  7. After some time, it will return "Timed out for waiting the udev queue being empty."

  8. It will then boot to mint.

Only changes I am aware of was stuff related to inputremapper and Solaar.

Other things:

Today, linux warned me it was running out of space. var/log was using over 100GB and filled with the attached screenshot.

supple robin
#

df -h ; free -h

fresh sable
#
tmpfs           3.2G  1.9M  3.2G   1% /run
efivarfs        128K  101K   23K  82% /sys/firmware/efi/efivars
/dev/nvme0n1p2  140G   30G  103G  23% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           5.0M   16K  5.0M   1% /run/lock
/dev/nvme0n1p3  1.7T   89G  1.5T   6% /mnt/hyperdrive
/dev/nvme0n1p1  487M  6.2M  480M   2% /boot/efi
/dev/sda1       234G  136K  222G   1% /mnt/scratch
/dev/sdb1       5.5T  1.2T  4.1T  23% /mnt/primary
/dev/sdc1       1.8T   28K  1.7T   1% /mnt/auxiliary
tmpfs           3.2G  192K  3.2G   1% /run/user/1000
               total        used        free      shared  buff/cache   available
Mem:            31Gi       3.9Gi        23Gi       306Mi       4.2Gi        27Gi
Swap:             0B          0B          0B
supple robin
#

no swap.

fresh sable
#

Should not, I cleaned the logs as any longer and it would have cuased issues

#

No swap?

fresh sable
#

I have 32GB ram, I was under the impression that was not needed?

#

Was I wrong?

supple robin
#

should have a gig or 2

fresh sable
#

Ok, I will go sort that. Would that cause the other issues? They only turned up last night.

supple robin
#

show result of inxi -S ; lsblk -o name,model,size,fstype,fssize,fsused,fsavail,mountpoint

fresh sable
#
  Host: Stargate Kernel: 6.17.0-23-generic arch: x86_64 bits: 64
  Desktop: Cinnamon v: 6.6.7 Distro: Linux Mint 22.3 Zena
NAME      MODEL                   SIZE FSTYPE FSSIZE FSUSED FSAVAIL MOUNTPOINT
sda       Samsung SSD 850 PRO 2 238.5G                              
└─sda1                          238.5G ext4   233.7G   136K  221.7G /mnt/scratch
sdb       ST6000VN0041-2EL11C     5.5T                              
└─sdb1                            5.5T ext4     5.4T   1.1T      4T /mnt/primary
sdc       Hitachi HDS5C3020ALA6   1.8T                              
└─sdc1                            1.8T ext4     1.8T    28K    1.7T /mnt/auxilia
nvme0n1   Samsung SSD 970 EVO P   1.8T                              
├─nvme0n1p1
│                                 487M vfat     486M   6.1M  479.9M /boot/efi
├─nvme0n1p2
│                               143.1G ext4   139.7G  30.2G  102.4G /
└─nvme0n1p3
                                  1.7T ext4     1.7T  88.8G    1.5T /mnt/hyperdr
supple robin
#

ok 102 gigs free

#

apt list -i linux-image*

fresh sable
#
linux-image-6.14.0-37-generic/noble-updates,noble-security,now 6.14.0-37.37~24.04.1 amd64 [installed]
linux-image-6.17.0-23-generic/noble-updates,noble-security,now 6.17.0-23.23~24.04.1 amd64 [installed]
linux-image-generic-hwe-24.04/noble-updates,noble-security,now 6.17.0-23.23~24.04.1 amd64 [installed]
supple robin
#

hard to see without colour

#

can u show a screenshot of the stuff in terminal?

fresh sable
supple robin
#

last thing

#

ok

#

do a fresh reboot, then make the swap

#

if still has issues, roll back to 6.14 kernel

fresh sable
#

Part of me is concerned I am unable to do a fresh boot. From what reasearch I have done, suggests that the PC is not actually fully shutting down.

#

The fans turn off and the lights turn off, but apparently things can still be awake inside

#

The OS was installed 4 days ago-ish

supple robin
#

open system administration tool

fresh sable
#

The boot param was my attempt at supressing the logspam. It did not work.

supple robin
#

yes

#

turn the top switch on, and put timeout to 5

#

then save

#

then close sys admin app, and press ctrl-alt-backspace

#

from login mgr, choose the shutdown icon

#

see #1297240853206532136 message if need to roll back and use 6.14

supple robin
# supple robin <https://www.youtube.com/watch?v=I8u5CabMz1I> << by BTNHD, 5 minute video on ho...

The following will create a 2 gig swapfile (1 MiB x 2048)
Adjust to suit your size accordingly.

sudo dd if=/dev/zero of=/swapfile bs=1024k count=2048 (make big empty file)
sudo chmod 600 /swapfile (set linux read/write permissions on file)
sudo e4defrag /swapfile (defragment the file)
sudo mkswap /swapfile (transform the big file into usable swap)
sudo swapon /swapfile (turn on swap (virtual memory) on in the system)
free -h (test to view that swap memory is now in play)

sudo xed /etc/fstab (edit the fstab file to make swap automatically available on each boot)

(put this into the fstab file on new line near bottom) :
/swapfile none swap sw 0 0

(save the fstab file and exit the editor)

sudo reboot
free -h (once booted back to desktop, to check memory and virtual memory (swap) )

#

summary ^

#

u can use count=1024 for 1 GiB swapfile

fresh sable
#

Ok. So good news and bad news.

Boot correctly booted to grub, like it did before.

Bad news

It still booted by itself, it still waited for ages on the blank terminal

#

'scuse the grubby screen. I hope that this helps.... I recorded the process and am uploading it now

supple robin
#

reboot, from grub> mint advanced

#

choose old kernel and boot

fresh sable
#

Ok, that booted perfectly. No hanging. But I did a quick test and it still rebooted by itself.

#

Weird that this only started yesterday

supple robin
#

ok boot old kernel

#

dont do any other 'tests'

fresh sable
#

Ok

supple robin
#

once back at desktop, run inxi -S ; free -h and show result

fresh sable
#
  Desktop: Cinnamon v: 6.6.7 Distro: Linux Mint 22.3 Zena
               total        used        free      shared  buff/cache   available
Mem:            31Gi       4.1Gi        23Gi       342Mi       4.1Gi        27Gi
Swap:             0B          0B          0B

I have not done the swap yet, was not sure if that was needed for this or just suggestion to do once this issue is resolved

supple robin
#

i say make it now. at least 1 GB

fresh sable
#

Ok

supple robin
#

follow the summary

#

dont do anything else while it's working

#

to defrag n all

#

when rebooting, still choose the 6.14 kernel from Advanced

fresh sable
#

It only took a moment to defreg.

It is rebooting now.

All of the drives are recently formatted. When I moved from windows, I sorted all data and reformatted the drives to ext4 before moving stuff back. I wanted to abandon windows entirely

supple robin
#

yes u have

#

booted back?

fresh sable
#

Yup

#

Just logged back into discord, it keeps signing me out when I boot to this kernel

supple robin
#

inxi -S ; free -h

fresh sable
supple robin
#

ok open update manager

#

click view> linux kernels

#

go to the 6.17 series

#

highlight any installed one and click 'remove'

#

then go to the 6.8 series, choose a latest version of them, and click install

fresh sable
#

Installing now

supple robin
#

incase 6.14 proves unstable, boot from 6,8 and run it a day or 1000, if it's stable

#

6,8xx is the long-term-support one anyway

#

also decline any further linux image 6.17 offerings in the updates list

fresh sable
#

Ok. 6.8 installed.

supple robin
#

hopefully u dont gdet more logs

#

u can use disk usage analyzer to monitor things for space, and what is taking it

#

would also reco. a timeshift save

fresh sable
#

Will this resolve the auto booting?

I did do timeshift, I set one up on my first day on the OS

#

It is set weekly

#

I assume I should go boot to the new kernel now too?

supple robin
#

is it saving to the other drives or to the EVO?

#

Not that it matters that much, but, u do have 5 drives

fresh sable
#

I am not sure. My boot partition was intended to keep as clean as possible. I have been installing flatpacks to my 6TB drive

#

/home is redirected to said drive

supple robin
#

*4 drives

#

u can easily review timeshift settings.

#

hit the settings button on its toolbar

#

it will show snapshot save location

fresh sable
#

Yeah, it is storing to the 970. But it will only keep 3 so not too fussed

supple robin
#

ok

fresh sable
#

Time to boot to the new kernel?

supple robin
#

ST6000VN0041-2EL11C 5.5T
└─sdb1 5.5T ext4 5.4T 1.1T 4T /mnt/primary

#

that's not really ur home

#

otherwise it would say mounted at /home/joe

#

sample name

#

unless u did some other weird stuff

fresh sable
#

...Symbolic link...

supple robin
#

ok that's fine

#

aight.

#

u can test drive 6,8 if u want.

fresh sable
#

Ok, booting now. Fingers crossed for a speedy boot

supple robin
#
Computer turns off

After 2-3 seconds, it will power back on

It will boot to a blank terminal instead of grub

This terminal can be typed in freely, no commands return anything. Not even gibbierish will return an error.
#

is this solved?

fresh sable
#

Ok, it booted wonderfully.

And that issue, partially. It no longer boots to the blank terminal.

It is still powering itself on. I cannot get it to stay powered off short of disconnecting it from the mains

supple robin
#

try disable TPM/PTT in security section of UEFI

fresh sable
#

Going there now. Bare with...

supple robin
fresh sable
#

Struggling to find it...

supple robin
#

that GPE error code. note it.

supple robin
fresh sable
#

I am in my uefi bios now

supple robin
#

or TPM

fresh sable
#

Can't find it anywhere

#

The only thing I found for security is to lockdown the uefi bios with a password

supple robin
#

wrong section

#

show SECURITY

#

in landscape mode

fresh sable
#

There isn't one that I can see

supple robin
#

press F7

#

do u see security section?

#

gotta be

fresh sable
#

Starting to think I don't have it

#

This mobo doesn't come with it built in. And I never did anything with it really since day one config and the occasional boot order change

#

I guess I could not have 'upgraded' to win11 even if I wanted to

supple robin
#

im sure u have it

fresh sable
supple robin
#

and it's messing with the power states

#

try enabling the pci express native power management

fresh sable
#

Ok. Exit and reboot?

supple robin
#

no

#

go to boot section

#

anything for secure boot and TPM?

#

Look GOOD

#

Even in MAIN

fresh sable
#

There is secure boot under boot.

supple robin
#

show it plz

fresh sable
#

Oh! This might be connected?

#

I will switch os type to other os

supple robin
#

os type: put to other

#

check main now

#

get the bios version and date

#

and motherboard number

fresh sable
supple robin
#

u can crosscheck it later for existtence of TPM (any version of)

fresh sable
#

I did do a quick Google and it suggests that while there is a slot for one, it doesn't come with

supple robin
#

press enter on security

#

highlit in first pic

fresh sable
#

Already did, second screenshot

supple robin
#

ok save/exit

fresh sable
#

Booting. To test, I assume the first thing I should do is tell it to shutdown?

#

Still turned itself on. God this issue. What is making it keep booting?!

fresh sable
supple robin
#

u mean a pci card with extra usb ports?

fresh sable
#

The change now I realise is I disconnected my usb harddrive dock. Apparently it got salty it was alone.

And yeah

supple robin
#

check cat /etc/fstab

#

if something dont belong there

#

should only be active, linux root, efi, and swap

fresh sable
#

Sweet quiet.

Thank you for the help. My system has improved thanks to you.

I am booting now, myself for the first time in 2 days. I will report back in a mo

#

I did do some things there... My own stupidity might be the cause

#
UUID=cae2777b-efea-4169-af31-f9d1a1369f63 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=D895-C850  /boot/efi       vfat    umask=0077      0       1
UUID=5cd81253-33fe-4f6c-ab6e-bb238b70b4ed /mnt/primary ext4 defaults,nofail    02
UUID=28e31493-b269-41c2-997a-266878596a3b /mnt/hyperdrive ext4 defaults,nofail    02
UUID=6be649e4-3343-4ce0-b242-9b6bc65fc878 /mnt/auxiliary ext4 defaults,nofail    02
UUID=e7e7df20-cf90-4987-9da5-c0041103ca24 /mnt/scratch ext4 defaults,nofail    02
/mnt/primary/home/reece /home/reece none bind    0    0
/mnt/scratch/tmp /tmp none bind,nofail    0    0
/swapfile none swap sw  0   0
supple robin
#

yeah idk if that bind stuff is screwing u

#

anyway see how it goes a while

#

if it was me,

#

i'd just blank out nvme0n1p3 ... reformat it to ext4, and do a proper userhome export to it

fresh sable
#

Fair. I may do this. Thank you again for the help!