尝试在硬盘上创建分区

尝试在硬盘上创建分区

我正在尝试在物理硬盘上创建分区。

这是我使用时的输出打印

(parted) print                                                            
Error: /dev/sdd: unrecognised disk label
Model: USB3.0 Super Speed (scsi)                                          
Disk /dev/sdd: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

我试过:

$ sudo parted /dev/sdd
(parted) mklabel msdos                                                    
Error: Input/output error during write on /dev/sdd

我还尝试使用以下方法修复驱动器:

$ sudo badblocks -v /dev/sdc > bad_sectors.txt

它给了我一个 11G 的输出文件

$ ll -h
total 11G
drwxrwxr-x  3 bric bric 4,0K oct.  10 08:23 ./
drwxr-xr-x 34 bric bric 4,0K oct.  10 07:56 ../
-rw-rw-r--  1 bric bric  11G oct.  10 09:28 bad_sectors.txt

我也尝试过这个:

$ sudo e2fsck -cfpv /dev/sdd
e2fsck: Bad magic number in super-block while trying to open /dev/sdd
/dev/sdd: 
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>

使用时出现同样的错误e2fsck -b 8193e2fsck -b 32768

我也尝试使用坏扇区.txt文件:

sudo e2fsck -l bad_sectors.txt /dev/sda1

但我有与上面相同的错误。

这是文件系统:

$ fsck -N /dev/sdc
fsck from util-linux 2.34
[/usr/sbin/fsck.ext2 (1) -- /dev/sdc] fsck.ext2 /dev/sdc 

有解决这个问题的线索吗?

相关内容