You are not logged in.

#1 2024-09-17 05:46:49

Ghx5t
Member
Registered: 2024-09-14
Posts: 3

[solved] broke my boot trying to switch to systemd and I can't seem t

Before yesterday I wouldn't consider myself a noob but I guess Arch will find a way.

fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
#               <file system>             <mount point>  <type>  <options>  <dump>  <pass>

# /dev/nvme0n1p5
/dev/nvme0n1p5      	/         	ext4      	rw,relatime	0 1


/etc/resolv.conf    	/etc/resolv.conf	none      	rw,bind   	0 0

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

arch.conf

title   Arch Linux
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options root=PARTUUID=0d44ccfc-4af8-ba47-afc6-9dcd50ccb3f7 rootfstype=ext4

loader.conf

default  arch.conf
timeout  4
console-mode max
editor   no

also when I chroot in it loses the /boot mount and I have to mount it a second time

Last edited by Ghx5t (2024-09-17 07:04:49)

Offline

#2 2024-09-17 05:59:27

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved] broke my boot trying to switch to systemd and I can't seem t

In what way is your boot "broken"? Please describe the actual problem in full.

I would ask why you've bind mounted /etc/resolv.conf to itself but I think I'll just live with the mystery, it doesn't seem relevant here.

I think these outputs would be useful, they can be run from any live ISO image:

efibootmgr -u
parted --list
blkid

Sharing method: https://wiki.archlinux.org/title/List_o … ted_client

Thanks!


Jin, Jîyan, Azadî

Offline

#3 2024-09-17 06:47:25

Ghx5t
Member
Registered: 2024-09-14
Posts: 3

Re: [solved] broke my boot trying to switch to systemd and I can't seem t

Okay that has something to do with it. I just successfully booted arch but it wouldn't connect to the Internet. so thinking the resolv.conf had something to do with that I erased the bind part. Now it says on boot

Failed to mount /etc/resolv.conf

Offline

#4 2024-09-17 06:57:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: [solved] broke my boot trying to switch to systemd and I can't seem t

fstab errors are fatal and you cannot not bind-mount a file.
Delete that line and focus on whatever you're actually trying to achieve with this nonsense - preferably in a new thread tongue

Then please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Ftr.

also when I chroot in it loses the /boot mount and I have to mount it a second time

No, it's more that the target fstab is completely irrelevant when chrooting and the source /boot gets replaced by the target /boot (ie. eg. /mnt/boot) through the chroot.

Offline

#5 2024-09-17 07:00:45

Ghx5t
Member
Registered: 2024-09-14
Posts: 3

Re: [solved] broke my boot trying to switch to systemd and I can't seem t

yeah, I got it figured out. I was just panicing somehow /etc/resolv.conf got put on fstab by genfstab
Thanks for your help. smile

Offline

#6 2024-09-17 07:02:28

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved] broke my boot trying to switch to systemd and I can't seem t

seth wrote:

you cannot not bind-mount a file

I thought that but:

$ findmnt -n /etc/resolv.conf
/etc/resolv.conf /dev/nvme0n1p2[/@rootfs/etc/resolv.conf] btrfs  rw,relatime,ssd,space_cache=v2,subvolid=256,subvol=/@rootfs
$

I think it would actually "work" if the filesystem was correctly listed in fstab (it says "none", which I should have noticed, sorry OP).

Gh5xt wrote:

also when I chroot in it loses the /boot mount and I have to mount it a second time

Use this command after chrooting:

mount -a

^ That will mount everything listed in /etc/fstab.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB