You are not logged in.

#1 2024-08-30 16:00:38

arash28134
Member
Registered: 2024-03-19
Posts: 30

[SOLVED] Arch boots into emergency mode

When I boot arch using grub, I'm greeted by this message.

Output of journalctl -xb

I've reinstalled grub, regenerated initramfs, regenerated /etc/fstab, reinstalled linux and yet no luck.

Last edited by arash28134 (2024-08-30 20:17:29)


All men's miseries derive from not being able to sit in a quiet room alone. - Blaise Pascal

Offline

#2 2024-08-30 16:43:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] Arch boots into emergency mode

Post your fstab as well as the output of blkid.

Offline

#3 2024-08-30 18:02:19

arash28134
Member
Registered: 2024-03-19
Posts: 30

Re: [SOLVED] Arch boots into emergency mode

Scimmia wrote:

Post your fstab as well as the output of blkid.

blkid

/dev/sdd2: BLOCK_SIZE="512" UUID="01DAFAB09F407280" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="4d6cba9a-a499-4e55-9fee-c3398d204dac"
/dev/sdd3: BLOCK_SIZE="512" UUID="3022504D22501A64" TYPE="ntfs" PARTUUID="bb97a227-0062-4915-9282-8ffad2746d7e"
/dev/sdd1: UUID="8450-7900" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="eb350143-497f-4caf-b95a-ad503c5bdab4"
/dev/sdb1: UUID="a21d11d1-fcd3-4695-8703-e194391a0dc0" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d004986a-01"
/dev/sde1: LABEL="ARCH_202408" UUID="94AA-62B4" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="0007e637-01"
/dev/sdc2: UUID="87318ee2-bf9b-4be4-a245-68343e3431ae" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="9d532e34-0912-4b27-afc5-1695e6ba1c64"
/dev/sdc1: UUID="5B32-FF13" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="56cd0e14-8188-440a-b475-7eeb23aac86f"
/dev/sda1: BLOCK_SIZE="512" UUID="01DAFAACBB227F10" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="aaf7f51b-41ff-41f7-8c93-dd267d6d9aa6"

fstab

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sdc2
UUID=87318ee2-bf9b-4be4-a245-68343e3431ae	/         	ext4      	rw,relatime	0 1

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

# /dev/sdc2
UUID=87318ee2-bf9b-4be4-a245-68343e3431ae	/         	ext4      	rw,relatime	0 1

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

# /dev/sdc2
UUID=87318ee2-bf9b-4be4-a245-68343e3431ae	/         	ext4      	rw,relatime	0 1

# /dev/sdc1
UUID=5B32-FF13      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

(/dev/sdc1 contains grub and /dev/sdc2 is the rest of the operating system)

Last edited by arash28134 (2024-08-30 18:02:34)


All men's miseries derive from not being able to sit in a quiet room alone. - Blaise Pascal

Offline

#4 2024-08-30 18:10:34

cryptearth
Member
Registered: 2024-02-03
Posts: 2,026

Re: [SOLVED] Arch boots into emergency mode

you seem to have executed
genfstab
multiple times

Offline

#5 2024-08-30 19:11:43

arash28134
Member
Registered: 2024-03-19
Posts: 30

Re: [SOLVED] Arch boots into emergency mode

cryptearth wrote:

you seem to have executed
genfstab
multiple times

Yes because for some reason I thought fstab was getting removed. What should I do?


All men's miseries derive from not being able to sit in a quiet room alone. - Blaise Pascal

Offline

#6 2024-08-30 19:53:52

Sving1024
Member
Registered: 2024-06-16
Posts: 31
Website

Re: [SOLVED] Arch boots into emergency mode

Try just to keep the last 2 entry. Remove other entry and reboot.

Offline

#7 2024-08-30 20:17:10

arash28134
Member
Registered: 2024-03-19
Posts: 30

Re: [SOLVED] Arch boots into emergency mode

Sving1024 wrote:

Try just to keep the last 2 entry. Remove other entry and reboot.

removed /etc/fstab and ran genfstab again and it's fixed. Thanks! smile


All men's miseries derive from not being able to sit in a quiet room alone. - Blaise Pascal

Offline

#8 2024-08-31 00:15:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] Arch boots into emergency mode

For future reference, you might want to look up what >> does in bash.

Offline

#9 2024-08-31 08:53:33

cryptearth
Member
Registered: 2024-02-03
Posts: 2,026

Re: [SOLVED] Arch boots into emergency mode

arash28134 wrote:

Yes because for some reason I thought fstab was getting removed.

there's a difference between a single redirect > and a double redirect >>

the single redirect creates a new file or completely overwrites an existing one

the double redirect appends to an existing file

why the double redirect is used:

/etc/fstab is such an important file that an empty default one is already created during initial pacstrap
calling genfstab with the appending doubke redirect means to append the output of genfstab to the existing empty fstab template

doing so multiple times will append multiple double entries which can end up in a bad fstab like yours

as for why the guide does it this I'm not sure as it's written for a new install with an empty fstab anyway - so a simple overwriting single redirect would do the job just fine
maybe it's just to keep the few template lines atvtge top - maybe there's another more specific reason

tldr: you always want a fstab with each mountpoint only show up once

Offline

Board footer

Powered by FluxBB