我使用 Ubuntu 19.04 一段时间,想尝试一下最近发布的 Pop!_OS 19.10。我想继续使用 GRUB,但 Pop!_OS(或者可能是我在尝试修复时这样做)损坏了我的引导加载程序,因此我重新安装了 GRUB - 但现在我无法再引导到旧的 Ubuntu 19.04 安装。/dev/sda1
无法安装/boot/efi
- 引发错误“IO 字符集 iso8859-1 未找到”。该消息出现后不久,启动过程就会停止并将我置于 shell 中。
我在过去两天搜索了解决方案,并多次尝试擦除并重新安装 grub,但到目前为止没有任何帮助。
\n\n我的目标是设置 GRUB,以便引导进入 Ubuntu 或 Pop!_OS(取决于我选择的菜单项)。
\n\n这是我得到的错误:
\n\nroot@my-laptop: mount /dev/sda1 /boot/efi\nmount: /mnt/efi: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.\n[ 473.093254] FAT-fs (sda1): IO charset iso8859-1 not found\n
Run Code Online (Sandbox Code Playgroud)\n\ndmesg | tail -n 150
:
[ 2.353284] nouveau 0000:01:00.0: bios: version 86.04.8a.00.88\n[ 2.353451] ata2.00: supports DRM functions and may not be fully accessible\n[ 2.354534] ata2.00: ATA-11: Samsung SSD 860 EVO M.2 2TB, RVT21B6Q, max UDMA/133\n[ 2.354537] ata2.00: 3907029168 sectors, multi 1: LBA48 NCQ (depth 32), AA\n[ 2.354548] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)\n[ 2.355366] acpi device:0f: registered as cooling_device12\n[ 2.355456] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input7\n[ 2.355500] ACPI: Video Device [PEGP] (multi-head: no rom: yes post: no)\n[ 2.355533] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:13/LNXVIDEO:01/input/input8\n[ 2.357427] ata2.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded\n[ 2.357429] ata2.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out\n[ 2.357431] ata2.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out\n[ 2.357809] ata2.00: supports DRM functions and may not be fully accessible\n[ 2.361467] ata2.00: configured for UDMA/133\n[ 2.361648] scsi 1:0:0:0: Direct-Access ATA Samsung SSD 860 1B6Q PQ: 0 ANSI: 5\n[ 2.361812] ata2.00: Enabling discard_zeroes_data\n[ 2.361843] sd 1:0:0:0: Attached scsi generic sg0 type 0\n[ 2.361998] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)\n[ 2.362008] sd 1:0:0:0: [sda] Write Protect is off\n[ 2.362010] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00\n[ 2.362021] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn\'t support DPO or FUA\n[ 2.362095] ata2.00: Enabling discard_zeroes_data\n[ 2.364616] sda: sda1 sda2 sda3\n[ 2.364782] ata2.00: Enabling discard_zeroes_data\n[ 2.365831] fbcon: inteldrmfb (fb0) is primary device\n[ 2.365925] sd 1:0:0:0: [sda] supports TCG Opal\n[ 2.365926] sd 1:0:0:0: [sda] Attached SCSI disk\n[ 2.394740] nouveau 0000:01:00.0: fb: 8192 MiB GDDR5\n[ 2.437942] vga_switcheroo: enabled\n[ 2.438013] [TTM] Zone kernel: Available graphics memory: 8129246 kiB\n[ 2.438013] [TTM] Zone dma32: Available graphics memory: 2097152 kiB\n[ 2.438013] [TTM] Initializing pool allocator\n[ 2.438015] [TTM] Initializing DMA pool allocator\n[ 2.438021] nouveau 0000:01:00.0: DRM: VRAM: 8192 MiB\n[ 2.438021] nouveau 0000:01:00.0: DRM: GART: 536870912 MiB\n[ 2.438023] nouveau 0000:01:00.0: DRM: BIT table \'A\' not found\n[ 2.438023] nouveau 0000:01:00.0: DRM: BIT table \'L\' not found\n[ 2.438024] nouveau 0000:01:00.0: DRM: TMDS table version 2.0\n[ 2.438024] nouveau 0000:01:00.0: DRM: DCB version 4.1\n[ 2.438025] nouveau 0000:01:00.0: DRM: DCB outp 00: 02000f62 00020010\n[ 2.438026] nouveau 0000:01:00.0: DRM: DCB outp 01: 04011f86 04600010\n[ 2.438027] nouveau 0000:01:00.0: DRM: DCB outp 02: 04011f82 00020010\n[ 2.438027] nouveau 0000:01:00.0: DRM: DCB conn 00: 00010061\n[ 2.438028] nouveau 0000:01:00.0: DRM: DCB conn 01: 01000146\n[ 2.461395] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).\n[ 2.461395] [drm] Driver supports precise vblank timestamp query.\n[ 2.462649] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies\n[ 2.525842] [drm] Cannot find any crtc or sizes\n[ 2.527699] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1\n[ 2.589858] [drm] Cannot find any crtc or sizes\n[ 2.653842] [drm] Cannot find any crtc or sizes\n[ 2.726531] psmouse serio1: synaptics: queried max coordinates: x [..5666], y [..4688]\n[ 2.757308] psmouse serio1: synaptics: queried min coordinates: x [1274..], y [1166..]\n[ 2.757312] psmouse serio1: synaptics: Your touchpad (PNP: SYN150d SYN1500 SYN0002 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kernel.org.\n[ 2.818164] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.16, id: 0x1e2b1, caps: 0xf00123/0x840300/0x12e800/0x400000, board id: 3414, fw id: 2667658\n[ 2.856833] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input6\n[ 2.974104] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd\n[ 2.994817] usb 2-2: New USB device found, idVendor=152d, idProduct=0539, bcdDevice= 2.06\n[ 2.994818] usb 2-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3\n[ 2.994819] usb 2-2: Product: External USB 3.0\n[ 2.994819] usb 2-2: Manufacturer: Intenso\n[ 2.994820] usb 2-2: SerialNumber: 20120712252C0\n[ 2.998739] usb-storage 2-2:1.0: USB Mass Storage device detected\n[ 2.998941] usb-storage 2-2:1.0: Quirks match for vid 152d pid 0539: 4000000\n[ 2.998998] scsi host2: usb-storage 2-2:1.0\n[ 2.999042] usbcore: registered new interface driver usb-storage\n[ 3.000000] usbcore: registered new interface driver uas\n[ 3.121995] usb 1-7: new full-speed USB device number 3 using xhci_hcd\n[ 3.271983] usb 1-7: New USB device found, idVendor=1038, idProduct=1122, bcdDevice= 2.29\n[ 3.271984] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0\n[ 3.271984] usb 1-7: Product: SteelSeries KLC\n[ 3.271985] usb 1-7: Manufacturer: SteelSeries\n[ 3.401966] usb 1-14: new full-speed USB device number 4 using xhci_hcd\n[ 3.465006] Console: switching to colour frame buffer device 240x67\n[ 3.480361] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device\n[ 3.551843] usb 1-14: New USB device found, idVendor=8087, idProduct=0aaa, bcdDevice= 0.02\n[ 3.552472] usb 1-14: New USB device strings: Mfr=0, Product=0, SerialNumber=0\n[ 3.700585] hidraw: raw HID events driver (C) Jiri Kosina\n[ 3.703220] usbcore: registered new interface driver usbhid\n[ 3.703908] usbhid: USB HID core driver\n[ 3.705609] hid-generic 0003:1038:1122.0001: hiddev0,hidraw0: USB HID v1.11 Device [SteelSeries SteelSeries KLC] on usb-0000:00:14.0-7/input0\n[ 3.706474] input: SteelSeries SteelSeries KLC as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.1/0003:1038:1122.0002/input/input9\n[ 3.766197] hid-generic 0003:1038:1122.0002: input,hidraw1: USB HID v1.11 Device [SteelSeries SteelSeries KLC] on usb-0000:00:14.0-7/input1\n[ 4.010431] scsi 2:0:0:0: Direct-Access Intenso External USB 3.0 0206 PQ: 0 ANSI: 6\n[ 4.010680] sd 2:0:0:0: Attached scsi generic sg1 type 0\n[ 4.011034] sd 2:0:0:0: [sdb] 1953523712 512-byte logical blocks: (1.00 TB/932 GiB)\n[ 4.011235] sd 2:0:0:0: [sdb] Write Protect is off\n[ 4.011236] sd 2:0:0:0: [sdb] Mode Sense: 27 00 00 00\n[ 4.011482] sd 2:0:0:0: [sdb] No Caching mode page found\n[ 4.011482] sd 2:0:0:0: [sdb] Assuming drive cache: write through\n[ 4.302455] sdb: sdb1\n[ 4.303973] sd 2:0:0:0: [sdb] Attached SCSI disk\n[ 8.565481] mce: CPU0: Core temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565482] mce: CPU6: Core temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565483] mce: CPU5: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565484] mce: CPU3: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565485] mce: CPU1: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565486] mce: CPU11: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565486] mce: CPU9: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565509] mce: CPU7: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565510] mce: CPU6: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565514] mce: CPU2: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565514] mce: CPU8: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565515] mce: CPU10: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.565516] mce: CPU4: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.566541] mce: CPU0: Package temperature above threshold, cpu clock throttled (total events = 1)\n[ 8.577445] mce: CPU0: Core temperature/speed normal\n[ 8.577446] mce: CPU6: Core temperature/speed normal\n[ 8.577496] mce: CPU7: Package temperature/speed normal\n[ 8.577497] mce: CPU1: Package temperature/speed normal\n[ 8.577497] mce: CPU8: Package temperature/speed normal\n[ 8.577498] mce: CPU10: Package temperature/speed normal\n[ 8.577499] mce: CPU4: Package temperature/speed normal\n[ 8.577500] mce: CPU11: Package temperature/speed normal\n[ 8.577500] mce: CPU2: Package temperature/speed normal\n[ 8.577501] mce: CPU3: Package temperature/speed normal\n[ 8.577501] mce: CPU5: Package temperature/speed normal\n[ 8.577502] mce: CPU9: Package temperature/speed normal\n[ 8.578480] mce: CPU0: Package temperature/speed normal\n[ 8.579382] mce: CPU6: Package temperature/speed normal\n[ 9.722964] NET: Registered protocol family 38\n[ 9.800418] device-mapper: crypt: xts(aes) using implementation "xts-aes-aesni"\n[ 9.906440] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)\n[ 10.030518] systemd[1]: Failed to find module \'autofs4\'\n[ 10.097955] systemd[1]: systemd 240 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)\n[ 10.118053] systemd[1]: Detected architecture x86-64.\n[ 10.125292] systemd[1]: Set hostname to <my-laptop>.\n[ 10.196986] systemd[1]: /etc/systemd/system/teamviewerd.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/teamviewerd.pid \xe2\x86\x92 /run/teamviewerd.pid; please update the unit file accordingly.\n[ 10.217354] systemd[1]: /etc/systemd/system/anydesk.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/anydesk.pid \xe2\x86\x92 /run/anydesk.pid; please update the unit file accordingly.\n[ 10.233042] systemd[1]: /lib/systemd/system/spice-vdagentd.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/spice-vdagentd/spice-vdagentd.pid \xe2\x86\x92 /run/spice-vdagentd/spice-vdagentd.pid; please update the unit file accordingly.\n[ 10.236510] systemd[1]: Listening on udev Control Socket.\n[ 10.238535] systemd[1]: Listening on udev Kernel Socket.\n[ 10.240439] systemd[1]: Reached target Remote File Systems.\n[ 10.242323] systemd[1]: Starting of Arbitrary Executable File Formats File System Automount Point not supported.\n[ 10.263104] EXT4-fs (dm-2): re-mounted. Opts: errors=remount-ro\n[ 10.576763] systemd-journald[734]: Received request to flush runtime journal from PID 1\n[ 10.684897] Adding 20971516k swap on /dev/mapper/luks-swap. Priority:-2 extents:1 across:20971516k SSFS\n[ 10.964560] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)\n[ 10.973934] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: errors=remount-ro\n[ 10.980548] FAT-fs (sda1): IO charset iso8859-1 not found\n[ 11.042392] audit: type=1400 audit(1572097473.688:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=1180 comm="apparmor_parser"\n[ 11.043052] audit: type=1400 audit(1572097473.688:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=1176 comm="apparmor_parser"\n[ 11.043054] audit: type=1400 audit(1572097473.688:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=1176 comm="apparmor_parser"\n[ 11.043162] audit: type=1400 audit(1572097473.688:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ippusbxd" pid=1178 comm="apparmor_parser"\n[ 11.043414] audit: type=1400 audit(1572097473.688:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=1184 comm="apparmor_parser"\n[ 11.043533] audit: type=1400 audit(1572097473.688:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=1181 comm="apparmor_parser"\n[ 11.043563] audit: type=1400 audit(1572097473.688:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=1179 comm="apparmor_parser"\n[ 11.043565] audit: type=1400 audit(1572097473.688:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=1179 comm="apparmor_parser"\n[ 11.043793] audit: type=1400 audit(1572097473.688:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=1177 comm="apparmor_parser"\n[ 11.043795] audit: type=1400 audit(1572097473.688:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=1177 comm="apparmor_parser"\n
Run Code Online (Sandbox Code Playgroud)\n\n我像这样对驱动器进行分区:
\n\n/dev/sda1
- 500MB - FAT32 - EFI 系统分区 ( /boot/efi
)/dev/sda2
- 500MB - EXT4 - 启动分区 ( /boot
)/dev/sda3
- - LUKS 上的 LVM\n\n/dev/luks/swap
- 20GB - 交换/dev/luks/ubuntu-19_04
- 35GB - EXT4 - Ubuntu 19.04 根分区 ( /
)/dev/luks/PopOS-19_10
- 30GB - EXT4 - Pop!_OS 19.10 根分区 ( /
)/dev/luks/tmproot
- 25GB - EXT4 - 临时 ubuntu 19.04 根分区(/
,我正在使用这个(几乎全新的)安装来写这篇文章并尝试修复我的系统)/dev/luks/data
- - EXT4 - 数据分区 ( /disks/main
)块:
\n\nroot@tmp-os:/# blkid\n/dev/loop0: TYPE="squashfs"\n/dev/loop1: TYPE="squashfs"\n/dev/loop2: TYPE="squashfs"\n/dev/loop3: TYPE="squashfs"\n/dev/loop4: TYPE="squashfs"\n/dev/loop5: TYPE="squashfs"\n/dev/loop6: TYPE="squashfs"\n/dev/loop7: TYPE="squashfs"\n/dev/sda1: UUID="A96B-7B47" TYPE="vfat" PARTUUID="c0960fdd-bbf3-497f-bbcd-c75d671a1682"\n/dev/sda2: UUID="d52d7993-7e37-4ec4-94aa-8f69e97ce836" TYPE="ext4" PARTUUID="625dd12b-d9c9-4cd0-b09c-8b6b708e998e"\n/dev/sda3: UUID="7d295d1c-863f-4ba1-9c84-5e91e3d24b18" TYPE="crypto_LUKS" PARTLABEL="luks" PARTUUID="0fb4ecc8-9857-49ee-95bb-4e756e0834f6"\n/dev/sdb1: LABEL="myHDD" UUID="c489e309-8b25-49cb-97c3-a5f8b8ba3fe5" TYPE="ext4" PARTUUID="3b3c5177-01"\n/dev/mapper/luks: UUID="0FZHWe-Os0U-JJZ9-bbKP-fvmN-WY7i-x4EU0c" TYPE="LVM2_member"\n/dev/mapper/luks-swap: UUID="a2a4712b-b7b3-485f-8346-66c8e38252f9" TYPE="swap"\n/dev/mapper/luks-ubuntu--19_04: LABEL="Ubuntu 19.04" UUID="c9ab03a5-a047-4f06-a93f-db38d166b91e" TYPE="ext4"\n/dev/mapper/luks-data: UUID="86f5d13d-f1e3-4861-84ed-acd4da88d015" TYPE="ext4"\n/dev/mapper/luks-PopOS--19_10: LABEL="Pop!_OS 19.10" UUID="9fe65b62-0546-4325-a137-b0edcd4b34b7" TYPE="ext4"\n/dev/mapper/luks-tmproot: UUID="a5121223-8d75-4358-aa3b-8d9ec35bdb1d" TYPE="ext4"\n/dev/loop8: TYPE="squashfs"\n
Run Code Online (Sandbox Code Playgroud)\n\nfdisk -l /dev/sda
:
root@tmp-os:/# fdisk -l /dev/sda\nDisk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors\nDisk model: Samsung SSD 860 \nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 512 bytes\nI/O size (minimum/optimal): 512 bytes / 512 bytes\nDisklabel type: gpt\nDisk identifier: B6B1B467-7565-43B4-BA87-638E635B7A10\n\nDevice Start End Sectors Size Type\n/dev/sda1 2048 1026046 1023999 500M EFI System\n/dev/sda2 1026048 2050046 1023999 500M EFI System\n/dev/sda3 2050048 3907028991 3904978944 1.8T Linux filesystem\n
Run Code Online (Sandbox Code Playgroud)\n\nUbuntu 19.04(非启动操作系统)文件:
\n\n/etc/fstab
:
# /etc/fstab: static file system information.\n#\n# Use \'blkid\' to print the universally unique identifier for a\n# device; this may be used with UUID= as a more robust way to name devices\n# that works even if disks are added and removed. See fstab(5).\n#\n# <file system> <mount point> <type> <options> <dump> <pass>\n/dev/mapper/luks-ubuntu--19_04 / ext4 errors=remount-ro 0 1\n# /boot was on /dev/sda2 during installation\nUUID=d52d7993-7e37-4ec4-94aa-8f69e97ce836 /boot ext4 defaults 0 2\n# /boot/efi was on /dev/sda1 during installation\nUUID=A96B-7B47 /boot/efi vfat umask=0077 0 1\n/dev/mapper/luks-swap none swap sw 0 0\n\n/dev/mapper/luks-data /disks/main ext4 errors=remount-ro 0 1\n/disks/main/homes/ubuntu-19_04 /home none bind 0 0\n
Run Code Online (Sandbox Code Playgroud)\n\n/etc/crypttab
:
# <target name> <source device> <key file> <options>\nluks UUID=7d295d1c-863f-4ba1-9c84-5e91e3d24b18 none luks,discard\n
Run Code Online (Sandbox Code Playgroud)\n\n自定义 GRUB 菜单项( /etc/grub.d/06_custom
):
#!/bin/sh\necho 1>&2 "Adding custom menuentries"\nexec tail -n +4 $0\n# This file provides an easy way to add custom menu entries. Simply type the\n# menu entries you want to add after this comment. Be careful not to change\n# the \'exec tail\' line above.\nmenuentry \'Pop!_OS 19.10\' {\n # I won\'t tinker with this Pop!_OS menuentry until my main OS can boot again\n search --no-floppy --fs-uuid --set=root 3de8a92b-8615-424b-a071-d858ed106007\n linux /vmlinuz root=/dev/mapper/luks-PopOS--19_10 ro quiet splash acpi_osi=! acpi_osi=\'Windows 2009\' pcie_aspm=off\n initrd /initrd.img\n}\nmenuentry \'Ubuntu 19.04\' {\n recordfail=1\n insmod gzio\n insmod part_gpt\n insmod ext2\n search --no-floppy --fs-uuid --set=root d52d7993-7e37-4ec4-94aa-8f69e97ce836\n linux /vmlinuz-5.0.0-13-generic cryptdevice=UUID=7d295d1c-863f-4ba1-9c84-5e91e3d24b18 root=/dev/mapper/luks-ubuntu--19_04 ro acpi_osi=! acpi_osi=\'Windows 2009\' pcie_aspm=off\n initrd /initrd.img-5.0.0-13-generic\n}\nmenuentry \'Shutdown\' {\n echo "System shutting down..."\n halt\n}\n
Run Code Online (Sandbox Code Playgroud)\n\n任何帮助深表感谢!
\n\n更新1:
\n\n因为我似乎无法在损坏的安装上挂载 fat32 文件系统,所以我刚刚/boot/efi
在 ubuntu 的工作安装中将文件夹内容复制到我的 ext4 驱动器,这样当我将其mount --bind /disks/main/efi-backup /boot/efi
放到损坏的 ubuntu 上的 shell 时就可以了。\ n这允许启动计算机,我可以登录并使用我的程序,但无法识别多个设备(即蓝牙、wifi...)。\n虽然这不是问题的解决方案,但至少我可以复制我对工作操作系统的设置。
小智 1
您的 Linux 模块目录已被删除。
\n这种情况发生在系统升级等过程中。您正处于升级过程中,某些内容被删除linux-modules-$(uname -r)
(Ubuntu/Debian 软件包名称)时,您直到下次尝试加载模块时才会注意到。
对于很多人来说,他们拥有或多或少完整的模块集来启动他们的计算机initrd
映像上启动所需的或多或少完整的模块集,这可能是当您尝试挂载 EFI 分区时。也许它在其他地方,但你在这个页面上,所以可能就是这样。
解决办法是重新\xe2\x80\x93安装你缺少的包;您想要的软件包名称是(同样,Debian/Ubuntu\xe2\x80\x93special):
\n\n\n\n
echo linux-modules-$(uname -r)
如果您无法找到apt install
该软件包名称,请尝试用谷歌搜索该软件包名称,看看是否可以找到旧文件的链接archive.ubuntu.com
或 Debian 等效文件的链接。您需要安装该modules
软件包和linux-image
软件包。
这对我有用。我避免重新启动机器,直到我可以恢复其正在运行的版本的 Linux 模块,然后update-grub
运行dpkg --configure -a
重新\xe2\x80\x93配置各种 EFI 软件包(当他们尝试挂载 EFI 分区时失败) 。
归档时间: |
|
查看次数: |
4021 次 |
最近记录: |