You are not logged in.

#1 2025-01-15 17:51:21

leig3
Member
Registered: 2025-01-15
Posts: 2

Failed to mount boot and swap partition.

Hi there, i've been using arch linux for a year on my 4 year old Asus vivobook laptop. I had it installed on my main 512GB nvme ssd and i installed another 512GB nvme ssd for extra space. after installing, mounting and updating fstab. I rebooted it. After that I started having boot errors mainly failed to boot the boot and swap partition from the main ssd where i had arch installed. BUT after rebooting again, it booted perfectly normal. It boots and doesn't boot frequently.

here's lsblk -f output:

NAME        FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                 
├─sda1      vfat   FAT32 BOOT   6E89-F99C                                           
└─sda2      exfat  1.0   KIOXIA 109F-5934                              40.7G    18% /run/media/elit3rjmg/KIOXIA
zram0       swap   1     zram0  e4d104b8-8c5c-4e0d-85e8-e6fa883fb06c                [SWAP]
nvme1n1     ext4   1.0          9defc253-c86f-4197-9066-c930de6f3c0b  337.2G    23% /mnt/userdata
nvme0n1                                                                             
├─nvme0n1p1 vfat   FAT32        6910-25AA                              98.3M     0% /boot/efi
├─nvme0n1p2 swap   1            5335d22a-35f0-4d01-b797-e77e69de9b9d                [SWAP]
└─nvme0n1p3 ext4   1.0          7458fe8f-e90c-4b55-a12b-1e01d73684f1    283G    33% /

Here's fstab:

# UUID=7458fe8f-e90c-4b55-a12b-1e01d73684f1
/dev/nvme0n1p3          /               ext4            rw,relatime     0 1

# UUID=6910-25AA
/dev/nvme0n1p1          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# UUID=5335d22a-35f0-4d01-b797-e77e69de9b9d
/dev/nvme0n1p2          none            swap            defaults        0 0

UUID=9defc253-c86f-4197-9066-c930de6f3c0b               /mnt/userdata   ext4            defaults,nofail         0 2

Offline

#2 2025-01-15 17:56:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,182

Re: Failed to mount boot and swap partition.

You should not use device names in your fstab but the UUIDs instead. Device names aren't stable and in your case they will swap between nvme1 and nvme0.

https://wiki.archlinux.org/title/Persis … ice_naming

Make sure to regenerate your mkinitcpio images with

sudo mkinitcpio -P

so the updated fstab gets included.

Offline

#3 2025-01-15 19:25:23

leig3
Member
Registered: 2025-01-15
Posts: 2

Re: Failed to mount boot and swap partition.

Thank you so much!! The problem was exactly as you stated and it's fixed now.

Offline

Board footer

Powered by FluxBB