帮助修复启动

帮助修复启动

突然间我无法启动 Ubuntu 22.04。我该怎么做才能重新启动并运行?

以下是启动修复摘要:

boot-repair-4ppa203                                              [20221219_1620]

============================== Boot Info Summary ===============================

 => No boot loader is installed in the MBR of /dev/sda.

sdg: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sdg and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sdg: /dev/sdg already mounted or mount point busy.


================================ 0 OS detected =================================


================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Trinity [Radeon HD 7660D] EFI VGA from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.1 LTS, jammy, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 7.11(4.6) from AMI
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - This system doesn't support Secure Boot.
BootCurrent: 000B
Timeout: 0 seconds
BootOrder: 0009,000A,0003,0001,0002,000B,0000,0004,0006,0005,0007,0008
Boot0000* ubuntu    HD(1,MBR,0xc18980b2,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* USB Floppy/CD VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0500000001)AMBO
Boot0002* USB Hard Drive    VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0200000001)AMBO
Boot0003  ubuntu    HD(1,MBR,0x87c70b8b,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* ATAPI CD-ROM Drive    VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0300000001)AMBO
Boot0005* CD/DVD Drive  BBS(CDROM,,0x0)AMGOAMNO........o.h.p. . . . . . .D.V.D.-.R.A.M. .S.W.8.1.0....................A...........................>..Gd-.;.A..MQ..L.2.1.6.1.P.T.0.0.2.5.4.6.S.T.1.H. .H. . ......AMBO
Boot0006* USB Floppy/CD VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0500000000)AMBO
Boot0007* Hard Drive    BBS(HD,,0x0)AMGOAMNO........q.H.P. .P.h.o.t.o.s.m.a.r.t. .5.5.2.0. .1...0.0....................A.......................D..Gd-.;.A..MQ..L.H.P. .P.h.o.t.o.s.m.a.r.t. .5.5.2.0. .1...0.0......AMBOAMNO........o.P.N.Y. .C.S.9.0.0. .1.2.0.G.B. .S.S.D....................A...........................>..Gd-.;.A..MQ..L.N.P.2.Y.1.1.2.4.0.1.0.4.0.6.0.1.D.0.D.9......AMBOAMNO........y.G.e.n.e.r.a.l. .U.S.B. .F.l.a.s.h. .D.i.s.k. .1.1.0.0....................A.......................L..Gd-.;.A..MQ..L.G.e.n.e.r.a.l. .U.S.B. .F.l.a.s.h. .D.i.s.k. .1.1.0.0......AMBO
Boot0008* Atheros Boot Agent    BBS(Network,,0x0)AMBO
Boot0009  ubuntu    HD(1,MBR,0xf217301a,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot000A  ubuntu    HD(1,MBR,0xf8a0a474,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot000B* UEFI: General USB Flash Disk 1100 PciRoot(0x0)/Pci(0x10,0x1)/USB(4,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)AMBO


============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________


Partitions info (1/3): _________________________________________________________


Partitions info (2/3): _________________________________________________________


Partitions info (3/3): _________________________________________________________


fdisk -l (filtered): ___________________________________________________________

Disk sda: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk sdg: 14.92 GiB, 16025387008 bytes, 31299584 sectors
Disk identifier: 9240A165-D190-4AB6-8A10-46DC207B42EE
        Start      End  Sectors  Size Type
sdg1       64  7465119  7465056  3.6G Microsoft basic data
sdg2  7465120  7473615     8496  4.1M EFI System
sdg3  7473616  7474215      600  300K Microsoft basic data
sdg4  7475200 31299520 23824321 11.4G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:120GB:scsi:512:512:unknown:ATA PNY CS900 120GB:;
sdg:16.0GB:scsi:512:512:gpt:General USB Flash Disk:;
1:32.8kB:3822MB:3822MB::ISO9660:hidden, msftdata;
2:3822MB:3826MB:4350kB::Appended2:boot, esp;
3:3826MB:3827MB:307kB::Gap1:hidden, msftdata;
4:3827MB:16.0GB:12.2GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                
sdb                                                                                                                
sdc                                                                                                                
sdd                                                                                                                
sde                                                                                                                
sdg    iso9660  2022-08-10-16-21-45-00                                                    Ubuntu 22.04.1 LTS amd64 
├─sdg1 iso9660  2022-08-10-16-21-45-00               9240a165-d190-4ab6-8a11-46dc207b42ee Ubuntu 22.04.1 LTS amd64 ISO9660
├─sdg2 vfat     8D6C-A9F8                            9240a165-d190-4ab6-8a12-46dc207b42ee ESP                      Appended2
├─sdg3                                               9240a165-d190-4ab6-8a13-46dc207b42ee                          Gap1
└─sdg4 ext4     26f315e2-7097-4e97-a724-56aa610b4894 778c3857-277a-5b4c-95fe-7632e1ed4d9b writable                 

Mount points (filtered): _______________________________________________________

                                                              Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2022-12-19.2/crash] 10.5G   0% /var/crash
/dev/disk/by-label/writable[/install-logs-2022-12-19.2/log]   10.5G   0% /var/log
/dev/sdg1                                                         0 100% /cdrom

Mount options (filtered): ______________________________________________________




Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the boot.

答案1

  1. 从 Ubuntu Live CD 启动并选择尝试而不安装。
  2. 从键盘打开终端 ctrl + alt + T 或单击键盘上的窗口,然后在搜索框中输入终端
  3. 在终端中输入fsck /dev/sda2然后输入,如果需要root则添加sudosudo fsck /dev/sda2

**注意:sda2 是系统运行的位置,要知道它是相同还是不同的数字,请从程序菜单中打开磁盘程序,通过搜索找到终端,然后选择硬盘并单击您将在大小后找到的文件系统分区,设计 /dev/sdX0,其中 x 是字母,0 是数字,写下您将找到的内容而不是 a2、x0...

答案2

让我给你一个更新,Bassem。这是我尝试打开 GParted 的操作。它显示了 2 个分区。

/dev/sda (111.79 GiB) 分区:未分配!文件系统未分配 /dev/sdg (14.92 GiB) 分区:/dev/sdg 文件系统:iso9660 Ubuntu 22.04 LTS amd64

ubuntu@ubuntu:~$ sudo fsck /dev/sda2 fsck from util-linux 2.37.2 e2fsck 1.46.5 (30-Dec-2021) fsck.ext2: 尝试打开 /dev/sda2 时没有此文件或目录 可能不存在设备? ubuntu@ubuntu:~$ sudo fsck /dev/sda fsck from util-linux 2.37.2 e2fsck 1.46.5 (30-Dec-2021) ext2fs_open2: 超级块中的魔法数字错误 fsck.ext2: 超级块无效,正在尝试备份块... fsck.ext2: 尝试打开 /dev/sda 时超级块中的魔法数字错误

无法读取超级块,或者超级块未描述有效的 ext2/ext3/ext4 文件系统。如果设备有效,并且确实包含 ext2/ext3/ext4 文件系统(而不是交换或 ufs 或其他文件系统),则超级块已损坏,您可以尝试使用备用超级块运行 e2fsck:e2fsck -b 8193 或 e2fsck -b 32768

答案3

Richard 按照这些图片我在你的报告中发现你的分区是 sdg4

1-打开磁盘

2-选择系统分区并将其设备信息复制到设备大小前面

3- 在终端中输入fsck,然后按空格键并粘贴您复制或写入的信息,然后按回车键我认为您fsck /dev/sdg4 可能需要添加 sudo root,因此将输入sudo fsck然后粘贴有关系统分区的设备信息。我认为它会sudo fsck /dev/sdg4

注意:您必须在实时 CD 上“尝试不安装的 Ubuntu”才能在运行已安装的系统上工作,它会说无法卸载它,而且只有系统分区可以通过 FSCK 修复。

您还可以使用 Ubuntu 将硬盘作为从属硬盘放在正在运行的主硬盘上,然后选择字母和数字,在这种情况下,如果没有更多设备,可能会给出 sdb2 而不是 sdb1。

打开磁盘程序

开发信息

相关内容