我正在缩小 ext4 分区,但是它花了太长时间,所以我想我应该从头开始(创建一个新分区并擦除数据)。但是,在我取消调整大小(通过 gparted 完成)后,我无法在此驱动器上使用以前可用的命令:
sudo parted /dev/sdc
echo $?
1
parted 只是终止,gparted 也不显示驱动器。
lsblk 显示 0 大小的驱动器
lsblk | grep sdc
sdc 8:32 0 0B 0 disk
磁盘驱动器
sudo fdisk /dev/sdc
Welcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: cannot open /dev/sdc: No such file or directory
我是否可能在执行此操作时损坏了驱动器本身?根据https://www.scosales.com/ta/kb/104521.html这可能是硬件问题。
如果此错误出现在同一设备上,无论其位置在哪里,则很可能是设备硬件存在问题。查明此
设备上是否存在其他常见错误。如果有,则很可能是设备出现故障。
插入驱动器时 dmesg 会记录(通过 NVME -> USB 外部接口):
[Sun Jul 9 12:14:48 2023] usb 1-4: new high-speed USB device number 8 using xhci_hcd
[Sun Jul 9 12:14:48 2023] usb 1-4: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01
[Sun Jul 9 12:14:48 2023] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Sun Jul 9 12:14:48 2023] usb 1-4: Product: Best USB Device
[Sun Jul 9 12:14:48 2023] usb 1-4: Manufacturer: ULT-Best
[Sun Jul 9 12:14:48 2023] usb 1-4: SerialNumber: 012938001753
[Sun Jul 9 12:14:48 2023] usb-storage 1-4:1.0: USB Mass Storage device detected
[Sun Jul 9 12:14:48 2023] scsi host6: usb-storage 1-4:1.0
[Sun Jul 9 12:14:49 2023] scsi 6:0:0:0: Direct-Access Realtek RTL9210 1.00 PQ: 0 ANSI: 6
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Sense Key : Illegal Request [current]
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Add. Sense: Invalid field in cdb
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] 0 512-byte logical blocks: (0 B/0 B)
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] 0-byte physical blocks
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Write Protect is off
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Mode Sense: 37 00 00 08
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Sense Key : Illegal Request [current]
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Add. Sense: Invalid field in cdb
[Sun Jul 9 12:14:49 2023] sd 6:0:0:0: [sdc] Attached SCSI disk
答案1
将驱动器直接插入主板的 NVME 插槽,一切正常,因此看来 NVME 适配器可能是这里的问题。
基于lsusb
它是一个Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter
.
此处也报告了该设备的类似问题:https://github.com/raspberrypi/linux/issues/4130