我正在我的 Macbook 上尝试新的操作系统,现在我开始在我的主驱动器上安装elementary,并在中间强制退出安装..这导致了错误的 GPT 分区。
现在,当我联系苹果支持时,他们让我擦除驱动器,但它不起作用,当我用 Linux 或 macOS 启动我的 Mac 时,会检测到驱动器,但当我尝试格式化它时,磁盘就消失了。
我尝试在 ubuntu 上执行 fsck:
fsck -a /dev/sda1
这是输出:
fsck from util-linux 2.31.1
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda1
/dev/sda1:
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
答案1
parted /dev/sda mklabel gpt
parted /dev/sda mkpart primary 0GB 100%
然后运行安装程序。