this post was submitted on 23 Nov 2023
6 points (68.8% liked)

Linux

48067 readers
775 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
6
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 

Fixed by using grub.

Error when trying to boot into new install. ERROR: device ' ' not found. Skipping fsck. :: mounting ' ' on real root mount : /new_root: no valid filesystem type specified. ERROR: Failed to mount ' ' on real root And I'm getting dropped in emergency shell. I used official wiki, used refind as bootloader. Second time I tried installing and got same error.
Edit1: fstab
`#/dev/nvme0n1p2
UUID=4dae009f-c08f-4636-b1b5-85a4713a6f40 / ext4 rw,relatime 0 1

#/dev/nvme0n1p1
UUID=0019-78B6 /boot vfat rw,relatime, fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2 `
p2 is root partition
p1 is efi partition.

Edit2: running timedatectl in chroot returns System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 11 months ago* (last edited 11 months ago) (1 children)

Ok, if I understood correctly your fstab what you should do is:

  1. Boot the live iso
  2. Run mount /dev/nvme0n1p1 /mnt
  3. run nano /mnt/refind_linux.conf
  4. Alter the file so it says this:
"Boot with standard options"  "rw root=/dev/nvme0n1p2"
"Boot to single-user mode"    "rw root=/dev/nvme0n1p2 single"
"Boot with minimal options"   "ro root=/dev/nvme0n1p2"
  1. Save and close
  2. Unmount the drive umount /mnt
  3. Reboot

That should work

Edit: noticed my disk was 1 while yours is 0, didn't remembered I had two ssds on that machine hahahah

Edit2: check that the file exists in /mnt, it should if you ran refind-install the first time.

[–] [email protected] 1 points 11 months ago (1 children)

I get the same error. Should I install grub?

[–] [email protected] 1 points 11 months ago

Did you confirm that the file existed before editing? And that you were mounting the correct boot and not root partition?

I don't know what else it can be if that doesn't solve it.