10
amirbig
5y

i deleted my swap partition

F**k

Comments
  • 8
    Recreating it is easy. Are you having trouble with it?
  • 0
    @bahua
    yeah, i tried several approaches.
    it's not working
    i'm going to reinstall linux
  • 2
    Should be easy
  • 11
    @amirbig that's... not the way you solve a problem like that
  • 4
    @amirbig Don't solve it as you would in Windows. All you have to do is create a deap partition and put it into fstab from another OS (live USB?) lol
  • 7
    Just create the partition in fdisk, mark it as swap for posterity, do a mkswap and swapon on the device.
  • 12
    “I lost the keys to my car. Oh well, I’ll just buy another car.”
  • 3
    Recreat flag it like swap
  • 2
    Woow...
    thank you guys for your help ☺️
  • 0
    @theKarlisK if you plan to use hibernation, swap size should be larger than ram size. If no hibernation, a couple gigs should be fine.
  • 2
    all distros i tried force hibernated on poweroff (on an SSD, which it saw as an SSD) so i had to manually break the hibernation feature by giving my swap a new UID after install so initramtools didn't see it anymore.

    I want my shit to actually SHUT DOWN when i tell it to shut down. This is shit Windows pulls, why is Linux doing it now...

    anyways i usually use LARGE partitions for everything (1GB for /boot, 32GB for root, /usr, /usr/bin, /lib, /opt, /etc, etc. /home gets everything that's left, split 50/50 with another partition if I need one) so swap gets 1x to 2x the physical RAM size (better safe than SIGSEGV!)
Add Comment