On 4/10/2023 5:27 PM, Ant wrote:
> Hello,
>
> Over Easter 2023 weekend, my friend and I replaced my 14 yrs. old Debian PC's mobo, CPU, RAM, drives, etc. for better setups like speeds. However, my May 2022's updated 64-bit Debian v11 (stable -- bullseye) installation has a long start up due to errors on the new hardwares especially in SSD.
>
> Last night, I Clonezillaed from the very old 320 GB HDD to a new Samsung 500 GB SSD. I used a bootable gparted (gparted-live-1.5.0-1-amd64.iso) CDRW to make my old Linux partition bigger, redid my partitions to remake a new bigger swap partition and add a NTFS partition for my future 64-bit Windows 7 HPE SP1 restore/install (just concentrating on my old Debian for now).
>
> I managed to make the 1.5 mins. pause go away for UUID=7f52c5a5-0a8f-478e-bbc6-fb22204a06ed job issue by adding # to my /etc/fstab's #UUID=7f52c5a5-0a8f-478e-bbc6-fb22204a06ed none swap sw 0 0 line.
> Its comment says "swap was on /dev/sdb5 during installation". That used to be my old 1 GB swap partition. How do I figure out what UUID to use to point to the newly made swap partition? Actually, do I even need it with 16 GB of RAM now? I did on the former PC with 2 GB of RAM.
>
>
http://zimage.com/~ant/temp/DebianSwappedHWs/ shows details like dmesg log, a photo, systemctl status systemd-modules-load.service, etc.
>
> How do I fix these issues? I hope I don't have to (clean/re)install! Thank you for reading and hopefully answering soon. :)
>
There's a couple of ways you can do swap.
Swap partition
Swap file "/swapfile"
The presumed advantage of /swapfile, is when multibooting and
an installer overwrites a swap partition (that all the Linux OSes
have been sharing), you don't have issues with the BLKID.
However, I recently ran into Ubuntu, started scanning for BTRFS
and then MDADM, and that (to me at least) is a sign of "swap anxiety".
It is trying to find a swap partition, even though I told it I was
using a /swapfile .
Using RESUME=none and rebuilding initramfs, fixed that for me.
RESUME=none presumably means hibernation would never work, but
I always make my swap 1GB in size (a token swap on a large RAM machine).
It was never going to work anyway.
When using a hard drive, the 1GB swap partition is there, so the
disk drive makes a noise if RAM consumption is going crazy, and
then I have to be pretty damn quick to kill the thing that is
doing it. That's how you decide, based on the timing margin you
want, how big to make a token swap. It's just there to delay
application of OOM.
When you do an install, if you do a Custom, and you don't create
a swap, it's possible a modern distro will use /swapfile . If
you don't do a Custom, and just let the distro mess around with
the disk drive, it'll probably make a swap partition for you.
Paul