You are not logged in.

#1 2022-11-01 10:32:23

Biggie
Member
Registered: 2022-09-19
Posts: 2

Swapon hangs

I have an mbr disk with a formatted swap partition. During boot the system hangs on: Adding 15625212k swap on /dev/sda2. Priority: -2 extents: 1 across: 15625212k SS. Booting without the swap in fstab running mkswap and then swapon - still makes it hang. Dmesg reveals no errors, segfaults, warnings...

I have a custom kernel and CONFIG_SWAP is on, is there any other setting I should look for?

If I format the partition as ext4, I can mount it without any issues.

The disk is a sata m2 if that affects anything.

Offline

#2 2022-11-02 10:18:59

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: Swapon hangs

Did yoiu check maybe some swap-related missing CONFIG_?
If you're having doubts, you can compare and have a look at the options inside the Default Arch Config: https://github.com/archlinux/svntogit-p … unk/config


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-11-02 13:48:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,801

Re: Swapon hangs

Does it work w/ a swap file?
Does it work w/ the stock kernel?
Do you use https://aur.archlinux.org/packages/rasdaemon ( https://bugs.archlinux.org/task/76354 )

zgrep -i swap /proc/config.gz

Offline

Board footer

Powered by FluxBB