插入的 USB 驱动器阻止 Ubuntu 启动

插入的 USB 驱动器阻止 Ubuntu 启动

我在联想 L13 Yoga 上运行 Ubuntu 22.04.03 LTS。在启动前插入 USB 驱动器时,它在启动序列结束后卡住了。当我此时移除 USB 驱动器时,它会显示以下错误消息(我从启动日志中复制的),然后继续正常启动。

除此之外,USB 驱动器运行良好。

我尝试了不同的 USB 驱动器,插入该驱动器后系统即可启动。

我尝试将 USB 格式化为 FAT32 和 NTFS,但没有任何变化。

我知道启动顺序已经完成,因为我使用 Grub Customizer 和“echo”命令在每次启动命令后显示一条消息来查看问题发生的位置。

我很难找到相关问题,因为我得到的只是人们在从 USB 启动时遇到了麻烦,而这不是我想要做的。

请告诉我是否可以提供任何其他信息,这可能有助于弄清楚为什么会发生这种情况

 device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: ldm_validate_partition_table(): Disk read failed.
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: Dev sda: unable to read RDB block 0
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >

更新:来自 grub.cfg 的启动顺序


        recordfail
    savedefault
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        search --no-floppy --fs-uuid --set=root 5147e4a0-81c2-440a-ba09-ae762f4304fb
        echo    'Loading Linux 6.2.0-39-generic ...'
        linux   /boot/vmlinuz-6.2.0-39-generic root=UUID=5147e4a0-81c2-440a-ba09-ae762f4304fb ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.2.0-39-generic

更新2:BIOS 启动顺序:

  1. Ubuntu
  2. Windows 启动管理器
  3. 内置 SSD
  4. Linux 固件更新程序
  5. 联想云

其他一切都被排除

BIOS 启动顺序

更新3:直接比较插入和不插入 USB 驱动器时启动日志的相关部分。带有 USB 的启动日志:

EXT4-fs (nvme0n1p5): mounted filesystem 5147e4a0-81c2-440a-ba09->
-Gen-2 kernel: scsi 0:0:0:0: Direct-Access     GENERIC  USB FLASH  DISK  7.76 P>
-Gen-2 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
-Gen-2 kernel: sd 0:0:0:0: [sda] 62259200 512-byte logical blocks: (31.9 GB/29.>
-Gen-2 kernel: sd 0:0:0:0: [sda] Write Protect is off
-Gen-2 kernel: sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
-Gen-2 kernel: sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, do>
-Gen-2 kernel: usb 4-2: USB disconnect, device number 2
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: ldm_validate_partition_table(): Disk read failed.
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
-Gen-2 kernel: device offline error, dev sda, sector 0 op 0x0:(READ) flags 0x0 >
-Gen-2 kernel: Buffer I/O error on dev sda, logical block 0, async page read
lines 901-923/3158 26%

无 USB 的启动日志

EXT4-fs (nvme0n1p5): mounted filesystem 5147e4a0-81c2-440a-ba09->
-Gen-2 systemd[1]: Inserted module 'autofs4'
-Gen-2 systemd[1]: systemd 249.11-0ubuntu3.11 running in system mode (+PAM +AUD>
-Gen-2 systemd[1]: Detected architecture x86-64.
-Gen-2 systemd[1]: Hostname set to <sabaca-ThinkPad-L13-Yoga-Gen-2>.
-Gen-2 kernel: Lockdown: systemd: /dev/mem,kmem,port is restricted; see man ker>
-Gen-2 systemd-crontab-generator[245]: ignoring /etc/cron.d/anacron because it >
-Gen-2 systemd-crontab-generator[245]: ignoring /etc/cron.d/e2scrub_all because>
-Gen-2 systemd[1]: Queued start job for default target Graphical Interface.
-Gen-2 systemd[1]: Created slice Slice /system/modprobe.
-Gen-2 systemd[1]: Created slice Slice /system/postfix.
-Gen-2 systemd[1]: Created slice Slice /system/systemd-fsck.
-Gen-2 systemd[1]: Created slice User and Session Slice.
-Gen-2 systemd[1]: Started Forward Password Requests to Wall Directory Watch.
-Gen-2 systemd[1]: Set up automount Arbitrary Executable File Formats File Syst>
-Gen-2 systemd[1]: Reached target User and Group Name Lookups.
-Gen-2 systemd[1]: Reached target Remote File Systems.
-Gen-2 systemd[1]: Reached target Slice Units.
-Gen-2 systemd[1]: Reached target Mounting snaps.
-Gen-2 systemd[1]: Reached target Local Verity Protected Volumes.
-Gen-2 systemd[1]: Listening on Syslog Socket.
-Gen-2 systemd[1]: Listening on fsck to fsckd communication Socket.
-Gen-2 systemd[1]: Listening on initctl Compatibility Named Pipe.

相关内容