You are not logged in.

#1 2021-05-09 10:04:24

Redselk
Member
Registered: 2021-05-09
Posts: 1

Boot issues with the fstab

I am trying to install arch with btrfs subvolumes and I am trying to boot into the system with this command:

systemd-nspawn -bD /mnt

However, when it boots I cannot log in with root. I think I should be able to log in with no password.

I am also getting this error on boot:

[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.

After looking into it, it I think that this is directly related to my settings on my fstab for my root partition, but any help would be appreciated. Here is my fstab:

# /dev/mapper/system UUID=59d69f6b-8370-44d9-908b-c57be7739b1f
LABEL=system            /               btrfs           rw,noatime,compress=lzo,ssd,space_cache,subvolid=256,subvol=/root,subvol=root   0 0

LABEL=EFI               /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/mapper/system UUID=59d69f6b-8370-44d9-908b-c57be7739b1f
LABEL=system            /home           btrfs           rw,noatime,compress=lzo,ssd,space_cache,subvolid=257,subvol=/home,subvol=home   0 0

# /dev/mapper/system UUID=59d69f6b-8370-44d9-908b-c57be7739b1f
LABEL=system            /.snapshots     btrfs           rw,noatime,compress=lzo,ssd,space_cache,subvolid=258,subvol=/snapshots,subvol=snapshots 0 0

# /dev/mapper/swap UUID=00472bd2-6c1b-44e6-b289-a8618684cd57
/dev/mapper/cryptswap           none            swap            sw      0 0

Last edited by Redselk (2021-05-09 21:30:29)

Offline

#2 2021-05-11 15:58:41

LucasBiazi
Member
Registered: 2020-11-11
Posts: 111

Re: Boot issues with the fstab

Good morning.

However, when it boots I cannot log in with root. I think I should be able to log in with no password.

While in chroot, during the installation process did you set a password for root? What boot loader are you using?
If you did, then you should be able to log-in like so:
user: root
password: ******

[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.

Post more info related to that command.

After looking into it, it I think that this is directly related to my settings on my fstab for my root partition, but any help would be appreciated. Here is my fstab:

Think about fstab as the guide that your system will use to mount your HDDS and/or SSDS every time it boots up. Just by looking at it I can see some things that are a little off, such as: the <fsck> should always be 1 when it comes to the root device (more info).

I'll post mine so you can have a better idea. keep in mind that I use ext4, I don't recognize the storage format chosen by you.

$ cat /etc/fstab 
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p3
UUID=9fd4f3a9-81c9-45b8-958e-7e46fa0978f2       /               ext4            rw,relatime     0 1

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

# /dev/nvme0n1p4
UUID=b9646833-08d3-421a-8a80-10105a7c1b18       /home           ext4            rw,relatime     0 2

# /dev/sda1
UUID=8dfbd5b1-eeaa-49f1-837d-ad831d78fede       /user_data      ext4            rw,relatime     0 2

# /dev/nvme0n1p2
UUID=24e1ab18-93ec-4e7b-b85b-be65b3b2949c       none            swap            defaults        0 0

Hope it helps.


Always backup important files when editing it.

Offline

Board footer

Powered by FluxBB