缺少大量分区硬盘空间。(不担心丢失数据)请帮忙!

缺少大量分区硬盘空间。(不担心丢失数据)请帮忙!

我最近安装了 Windows 8.1,但它停止工作并损坏了。我尝试加载 Linux 来清除我的硬盘分区,它说我的分区中总共只有 24 GB 的硬盘空间(SSD 是 256 GB)。

当我在 ununtu 上查看“磁盘”时,它还告诉我所有分区都有 24GB。

有没有简单的方法可以格式化我的整个硬盘以恢复所有丢失的空间?(我不担心里面的数据)

sudo fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 24.0 GB, 24015495168 bytes
255 heads, 63 sectors/track, 2919 cylinders, total 46905264 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 identifier: 0xb07b6a12

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1    46905263    23452631+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 32.0 GB, 32027705344 bytes
255 heads, 63 sectors/track, 3893 cylinders, total 62554112 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 identifier: 0x7565bcfd

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           0     2039807     1019904    0  Empty
/dev/sdb2           20644       25315        2336   ef  EFI (FAT-12/16/32)

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb1'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb1: 1044 MB, 1044381696 bytes
255 heads, 63 sectors/track, 126 cylinders, total 2039808 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 identifier: 0x7565bcfd

     Device Boot      Start         End      Blocks   Id  System
/dev/sdb1p1   *           0     2039807     1019904    0  Empty
/dev/sdb1p2           20644       25315        2336   ef  EFI (FAT-12/16/32)

ubuntu@ubuntu:~$ sudo parted -l
Model: ATA SAMSUNG MZMPA024 (scsi)
Disk /dev/sda: 24.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  538MB   537MB   fat32                                         msftdata
 2      538MB   852MB   315MB   ntfs            Basic data partition          hidden, diag
 3      852MB   957MB   105MB   fat32           EFI system partition          boot
 4      957MB   1092MB  134MB                   Microsoft reserved partition  msftres
 5      1092MB  19.9GB  18.8GB  ntfs            Basic data partition          msftdata
 6      19.9GB  24.0GB  4103MB  linux-swap(v1)


Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table.
However, it does not have a valid fake msdos partition table, as it should.
Perhaps it was corrupted -- possibly by a program that doesn't understand GPT
partition tables.  Or perhaps you deleted the GPT table, and are now using an
msdos partition table.  Is this a GPT partition table?
Yes/No? Yes                                                               
Error: The primary GPT table is corrupt, but the backup appears OK, so that will be used.

OK/Cancel? OK                                                             
Model:  Patriot Memory (scsi)
Disk /dev/sdb: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                  Flags
 1      20.5kB  210MB   210MB                EFI System Partition  boot
 2      210MB   31.9GB  31.7GB               Untitled

ubuntu@ubuntu:~$ sudo lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0  22.4G  0 disk 
├─sda1   8:1    0   512M  0 part 
├─sda2   8:2    0   300M  0 part 
├─sda3   8:3    0   100M  0 part 
├─sda4   8:4    0   128M  0 part 
├─sda5   8:5    0  17.5G  0 part 
└─sda6   8:6    0   3.8G  0 part 
sdb      8:16   1  29.8G  0 disk 
├─sdb1   8:17   1   996M  0 part 
└─sdb2   8:18   1   2.3M  0 part 
loop0    7:0    0   953M  1 loop /rofs

相关内容