Ubuntu 22.04无法启动进入initramfs shell,内置磁盘无法被识别求助
Ubuntu 22.04无法启动进入initramfs shell,内置磁盘无法被识别求助
各位大佬好,我遇到了一个头疼的问题,想请大家帮忙排查一下:
我有一台Dell XPS 13,之前一直正常运行Ubuntu 22.04,结果今天早上开机后直接卡壳,没法正常启动,直接进入了BusyBox的shell环境,终端输出如下:
BusyBox v.1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) built-in shell (ash) Enter 'help' for list of built-in commands. (initramfs)
我先试了fsck和fsck -A这两个命令,结果完全没反应。后来输入exit退出,得到了更详细的错误提示:
Gave up waiting for root file system device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Missing modules (cat /proc/modules; ls /dev) ALERT! UUID=441239f8-bb37-456e-806f-8b505a8e6e2e does not exist. Dropping to a shell! BusyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)
我接着查看了启动参数,运行cat /proc/cmdline得到的结果是:
BOOT_IMAGE=/boot/vmlinuz-5.15.0-91-generic root=UUID=441239f8-bb37-456e-806f-8b505a8e6e2e ro quiet splash
看起来启动镜像指定的UUID确实找不到,但更奇怪的是,我运行blkid命令想查看磁盘UUID,居然没有任何输出:
(initramfs) blkid (initramfs)
尝试查看磁盘相关的目录也找不到:
(initramfs) ls /dev/disk ls: /dev/disk: No such file or directory (initramfs) ls /dev/disks ls: /dev/disks: No such file or directory
没办法,我用U盘启动了Ubuntu Live Session,结果系统自带的“Disks”图形工具里只显示了我用来启动的U盘,完全看不到内置硬盘。运行lsblk的输出如下:
ubuntu@ubuntu:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 3G 1 loop /rofs loop1 7:1 0 4K 1 loop /snap/bare/5 loop2 7:2 0 63.4M 1 loop /snap/core20/1974 loop3 7:3 0 73.9M 1 loop /snap/core22/858 loop4 7:4 0 237.2M 1 loop /snap/firefox/2987 loop5 7:5 0 91.7M 1 loop /snap/gtk-common-themes/1535 loop6 7:6 0 349.7M 1 loop /snap/gnome-3-38-2004/143 loop7 7:7 0 53.3M 1 loop /snap/snapd/19457 loop8 7:8 0 485.5M 1 loop /snap/gnome-42-2204/120 loop9 7:9 0 12.3M 1 loop /snap/snap-store/959 loop10 7:10 0 452K 1 loop /snap/snapd-desktop-integration/83 sda 8:0 1 7.5G 0 disk ├─sda1 8:1 1 4.7G 0 part /cdrom ├─sda2 8:2 1 4.9M 0 part ├─sda3 8:3 1 300K 0 part └─sda4 8:4 1 2.8G 0 part /var/crash /var/log
我记不太清上次关机前做了什么操作,但大概率是更新了内核或者启动镜像(当时没太在意)。现在的情况是整个内置硬盘都没被系统识别到,有没有大佬能给我指条路?
备注:内容来源于stack exchange,提问作者scnlf




