ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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/sdb2
But 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.
Since you didn't delete or comment out the line that pertains to swap in the /etc/fstab the system is not booting. Since reformatting creates a new UUID the swap partition is still not active. From the emergency shell try either commenting out or changing the UUID to match.
Does the message identify what partition it's waiting for?
Have you checked /etc/fstab to make sure it reflects the actual partition structure?
Thx for replies.
I mounted the system partition, and checked /etc/fstab. It doesn't contain incorrect mounting info for the swap directory, because it doesn't contain any mount info for the swap partition (or for any other partition).
Did you actually mount or change to the correct directory? You need to mount the root partition and then edit the mounted directory's /etc/fstab file. There isn't a need to use chroot. Is the root partition encrypted?
# Static information about the filesystems.
# See fstab(5) for details.
I was advised, instead of changing something in a config file, like fstab or grub, to match the new UUID of the new partition, to instead change the UUID of the new swap partition to match the old number. I'm going to try that now.
I would guess or assume that Arch uses systemd to mount the filesystems instead of /etc/fstab. Yes, you can change the current swap UUID to match the old.
I would guess or assume that Arch uses systemd to mount the filesystems instead of /etc/fstab. Yes, you can change the current swap UUID to match the old.
I used gdisk to change the GUID on the swap part. Now on boot i'm getting
Quote:
starting systemd
...hook...
...keymap...
performing fsk on [restored ID]
mounting [restored ID] on real root
VFS: Can't find ext4 filesystem
mount: /new_root: wrong fs type, bad option, or [etc]
failed to mount
Filesystem?
If you mean, correct partition, then yes, i believe so.
I think the boot wouldn't have gotten as far as it did if i had altered the system partition.
Depends on how you configured your install but for me with an efi default setup, archinstall created 2 partitions. /dev/sda1 for /boot and /dev/sda2 for the / partition. The boot partition was defined in /etc/fstab but / is a kernel command line parameter as well as zswap. Do you have a /boot/loader/entries directory? Check the conf files to see if the UUIDs match your /(root) filesystem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.