我正在尝试在损坏的 Windows 10 安装上安装 Linux。
我已经在实时 USB 上启动并尝试删除旧分区并格式化磁盘,但到目前为止我尝试的所有方法都失败了。
如果我尝试将 LENOVO 分区格式化为 NTFS,我会得到/dev/nvme1n1 写入期间出现输入/输出错误。
fdisk
也不起作用:
$ sudo fdisk /dev/nvme1n1
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): d
Partition number (1-5, default 5): 4
Partition 4 has been deleted.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or partx(8).
我尝试了 partx 和 partprobe 并重新启动,但仍然出现同样的错误。
或者dd
sudo dd if=/dev/zero of=/dev/nvme1n1p4 bs=4096 status=progress
26830630912 bytes (27 GB, 25 GiB) copied, 721 s, 37.2 MB/s
dd: error writing '/dev/nvme1n1p4': No space left on device
6553601+0 records in
6553600+0 records out
26843545600 bytes (27 GB, 25 GiB) copied, 721.273 s, 37.2 MB/s
看来我无法格式化磁盘或删除分区。