调整分区大小时出错(Linux Mint 安装程序错误)

调整分区大小时出错(Linux Mint 安装程序错误)

https://i.stack.imgur.com/d1REs.png

尝试安装 Linux Mint 以与 Windows 11 双启动时,我总是收到上述错误。我不确定出了什么问题,驱动器在 Windows 上运行得很好,当我将其格式化为 ntfs、fat32、ext2 等时......它也运行得很好。我也无法安装它。我要安装它的设备是/dev/sda,250gb的SSD,我的安装设备是16gb的笔式驱动器。

fdisk -l产量:

root@mint:/home/mint# fdisk -l
Disk /dev/loop0: 2.34 GiB, 2515390464 bytes, 4912872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SSSTC CL1-4D256                         
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5AEAC324-E073-45E4-A1E5-7FFB0E9C35DB

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      2048    534527    532480   260M EFI System
/dev/nvme0n1p2    534528    567295     32768    16M Microsoft reserved
/dev/nvme0n1p3    567296 498065776 497498481 237.2G Microsoft basic data
/dev/nvme0n1p4 498069504 500117503   2048000  1000M Windows recovery environment


Disk /dev/sdb: 14.32 GiB, 15376318464 bytes, 30031872 sectors
Disk model: Cruzer Blade    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 07896644-3E61-4841-B41A-CA3F44823CCE

Device       Start      End  Sectors  Size Type
/dev/sdb1       64  5228883  5228820  2.5G Microsoft basic data
/dev/sdb2  5228884  5237379     8496  4.1M EFI System
/dev/sdb3  5238784 30031808 24793025 11.8G Linux filesystem
The backup GPT table is corrupt, but the primary appears OK, so that will be used.


Disk /dev/sda: 234.38 GiB, 251658240000 bytes, 491520000 sectors
Disk model: SD/MMC/MS PRO   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1D9ED2E0-08EC-4B50-BA77-FDDE180000F0

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1050623   1048576   512M EFI System
/dev/sda2  1050624 491517951 490467328 233.9G Linux filesystem

在 /dev/sda 上执行 mkdir.ext4 后:

root@mint:/home/mint# mkfs.ext4 /dev/sda
mke2fs 1.46.5 (30-Dec-2021)
Found a gpt partition table in /dev/sda
Proceed anyway? (y,N) y
Creating filesystem with 61440000 4k blocks and 15360000 inodes
Filesystem UUID: 72493794-1b54-4809-9d60-d28eff016d6a
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
    4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done

我以为这会解决它,但现在它给了我

    root@mint:/home/mint# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.8

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: OK

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

答案1

通过运行,mkfs.ext4 /dev/sda您在磁盘上创建了一个文件系统,而不是在目标分区上。您可能想从头开始,在以下位置创建一个新的空 GUID 分区表dev/sda

  • 跑步gdisk /dev/sda
  • o创建一个新的空 GUID 分区表
  • w将更改写入磁盘

Mint 安装程序应该检测您的空磁盘并允许您创建和格式化必要的分区。

相关内容