Restore Swap Petition?
by johnywhy from LinuxQuestions.org on (#6EE52)
I'm running arch, installed with archinstall[1].
I read that arch uses zram[2] for swapping, not disk. Also read somewhere that zram doesn't use disk for swap, so i don't need a swap partition. (I don't get why archinstall creates a swap partition if it's not needed)
Believing it wasn't needed, i deleted the swap partition (using cfdisk from the Live ISO).
Now arch won't boot. I'm getting a message about waiting 10 seconds for a partition, and then i get dropped into emergency shell.
Code:Loading keymap.... Done.
Waiting 10 seconds for device /dev/disk/by-partuuid/ecec0......[long number]
Error: Device /dev/disk/by-partuuid/ecec0......[long number] not found.
I attempted to recreate a swap partition in the same location on disk, using cfdisk, of "Linux Swap" type. Then i did mkswap on the reformatted swap partition.
Code:# mkswap /dev/sdb2But still not booting.
Do i need to change a partition ID in a grub config file?
I also attempted to mount the boot partition from the live ISO, and chroot into it, but that fails.
Code:# mount /dev/sdb1 /mnt
# arch-chroot /mnt
chroot: failed to run command /bin/bash No such file or directory.
# chroot /mnt
chroot: failed to run command /usr/bin/zsh No such file or directory. [1]: https://wiki.archlinux.org/title/archinstall
[2]: https://wiki.archlinux.org/title/Zram
I read that arch uses zram[2] for swapping, not disk. Also read somewhere that zram doesn't use disk for swap, so i don't need a swap partition. (I don't get why archinstall creates a swap partition if it's not needed)
Believing it wasn't needed, i deleted the swap partition (using cfdisk from the Live ISO).
Now arch won't boot. I'm getting a message about waiting 10 seconds for a partition, and then i get dropped into emergency shell.
Code:Loading keymap.... Done.
Waiting 10 seconds for device /dev/disk/by-partuuid/ecec0......[long number]
Error: Device /dev/disk/by-partuuid/ecec0......[long number] not found.
I attempted to recreate a swap partition in the same location on disk, using cfdisk, of "Linux Swap" type. Then i did mkswap on the reformatted swap partition.
Code:# mkswap /dev/sdb2But still not booting.
Do i need to change a partition ID in a grub config file?
I also attempted to mount the boot partition from the live ISO, and chroot into it, but that fails.
Code:# mount /dev/sdb1 /mnt
# arch-chroot /mnt
chroot: failed to run command /bin/bash No such file or directory.
# chroot /mnt
chroot: failed to run command /usr/bin/zsh No such file or directory. [1]: https://wiki.archlinux.org/title/archinstall
[2]: https://wiki.archlinux.org/title/Zram