You are not logged in.

#1 2023-01-02 04:29:21

nonsense
Member
Registered: 2023-01-02
Posts: 5

[Solved]drop into emergency shell afer installation

Hi you guys.
I run into a problem these days.
I have two disks,the one is sda(windows),another is nvmen1(nixos which is f2fs).Now I get tried of nixos and want to install arch back.
But f2fs does not seem to support shrink,so I create a ext4 partition on sda.
Here is my disk layout currently:

❯ lsblk -f
NAME        FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
├─sda2      ntfs               6ABC7BD3BC7B97F1
├─sda3      ntfs               76D2774AD2770D9D
└─sda4      ext4   1.0         017cbdbf-972e-4aa0-b0ae-ab18810dbd8c
nvme0n1
├─nvme0n1p1 vfat   FAT32 boot  0FE6-129A                             281.2M    45% /boot
├─nvme0n1p2 f2fs   1.15  nixos 176a4237-d2d6-4bac-b84d-c3f087f0b994  727.9G    22% /nix/store
│                                                                                  /
└─nvme0n1p3 swap   1     swap  03ceef33-1219-45c0-abc5-1e7d0cadaa96                [SWAP]

Then I run bootctl install and created /boot/loader/entries/arch.conf on ESP:

title Arch(kde)
linux /vmlinuz-linux 
initrd /intel-ucode.img
initrd /initramfs-linux.img
options "root=UUID=017cbdbf-972e-4aa0-b0ae-ab18810dbd8c" rw

But now when I select Arch(kde) in boot menu,I were dropped into emergency shell.

ERROR:device '' not found.Skipping fsck.
:: mounting '' on real root
mount : /new_root: no filesystem type specified.
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off.

After doing some google,I found that manually mount /dev/sda4 will boot successfully.

$:mount /dev/sda4 /new_root
$:exit

But mounting every time when I boot seems annoying.So what's the problem here?
Feel free to ask me if I missed something.

Last edited by nonsense (2023-01-02 08:24:52)

Offline

#2 2023-01-02 04:55:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved]drop into emergency shell afer installation

Please post the /etc/fstab from sda4.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2023-01-02 07:24:19

nonsense
Member
Registered: 2023-01-02
Posts: 5

Re: [Solved]drop into emergency shell afer installation

Thanks for your quick reply.This is my fstab:

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

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda4
UUID=017cbdbf-972e-4aa0-b0ae-ab18810dbd8c    /             ext4          rw,relatime    0 1

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

# /dev/nvme0n1p3 LABEL=swap
UUID=03ceef33-1219-45c0-abc5-1e7d0cadaa96    none          swap          defaults      0 0

Offline

#4 2023-01-02 07:59:43

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,933
Website

Re: [Solved]drop into emergency shell afer installation

Try removing the quotation marks around the root parameter.

Offline

#5 2023-01-02 08:23:37

nonsense
Member
Registered: 2023-01-02
Posts: 5

Re: [Solved]drop into emergency shell afer installation

Wow,I tried several hours to debug it....
Thank you all very much.
Hope you guys have a nice day!

Offline

Board footer

Powered by FluxBB