将 dev/loop0 重新格式化为 dev/sdX

将 dev/loop0 重新格式化为 dev/sdX

我试图使用网站提供的安装映像 memstick 将 FreeBSD-Current 安装到 7.2G 闪存驱动器中。但它无法启动,并且 thunar 检测不到它。因此,我尝试重新使用该驱动器,但遗憾的是我无法将其重新格式化为工作驱动器,我尝试使用 来检测它fdisk -l,并且检测到它的大小为 1.5G /dev/loop0。而且 GParted 无法格式化/dev/loop.

我的目标是使存储驱动器可用作 USB 记忆棒,或使驱动器可启动。

怎么做?我使用的是实时 MX-Linux。

编辑 :

# fdisk -l
Disk /dev/loop0: 1.5 GiB, 1647960064 bytes, 3218672 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

省略dev/sdadev/sdb一个是我正在使用的live发行版,一个是我的硬盘。

$ lsblk -S
NAME HCTL       TYPE VENDOR   MODEL            REV TRAN
sda  0:0:0:0    disk ATA      M4-CT128M4SSD2  0309 sata
sdb  6:0:0:0    disk Kingston DataTraveler_G3 PMAP usb

/dev/sdadmesg检测后循环此/dev/sdb

# dmesg
[ 2703.639467]  sdc:
[ 2703.641156] sd 7:0:0:0: [sdc] Attached SCSI disk
[ 2709.663891]  sdc:
[ 2724.176641]  sdc:
[ 2772.664139] raid6: sse2x4   gen() 11666 MB/s
[ 2772.681137] raid6: sse2x4   xor()  6000 MB/s
[ 2772.698138] raid6: sse2x2   gen() 11677 MB/s
[ 2772.715139] raid6: sse2x2   xor()  6635 MB/s
[ 2772.732140] raid6: sse2x1   gen()  9804 MB/s
[ 2772.749140] raid6: sse2x1   xor()  5680 MB/s
[ 2772.749141] raid6: using algorithm sse2x2 gen() 11677 MB/s
[ 2772.749142] raid6: .... xor() 6635 MB/s, rmw enabled
[ 2772.749144] raid6: using ssse3x2 recovery algorithm
[ 2772.761264] xor: automatically using best checksumming function   avx       
[ 2772.877620] Btrfs loaded, crc32c=crc32c-intel
[ 2773.057855] JFS: nTxBlock = 8192, nTxLock = 65536
[ 2773.206621] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[ 2775.092781]  sdc:
[ 2847.105454] sd 7:0:0:0: [sdc] Synchronizing SCSI cache
[ 2847.124910] usb 3-2: USB disconnect, device number 5
[ 2905.979235] usb 3-2: new high-speed USB device number 6 using xhci_hcd
[ 2906.108102] usb 3-2: New USB device found, idVendor=0930, idProduct=6544, bcdDevice= 1.00
[ 2906.108108] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2906.108110] usb 3-2: Product: TransMemory     
[ 2906.108113] usb 3-2: Manufacturer: TOSHIBA 
[ 2906.108115] usb 3-2: SerialNumber: 9C3C21577780CF1042227B9E
[ 2906.109122] usb-storage 3-2:1.0: USB Mass Storage device detected
[ 2906.109764] scsi host7: usb-storage 3-2:1.0
[ 2908.859893] scsi 7:0:0:0: Direct-Access     GENERIC  USB Mass Storage 1.00 PQ: 0 ANSI: 4 CCS
[ 2908.860770] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 2908.862833] sd 7:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE

答案1

[ 2905.979235] usb 3-2: new high-speed USB device number 6 using xhci_hcd
[ 2906.108102] usb 3-2: New USB device found, idVendor=0930, idProduct=6544, bcdDevice= 1.00
[ 2906.108108] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2906.108110] usb 3-2: Product: TransMemory     
[ 2906.108113] usb 3-2: Manufacturer: TOSHIBA 
[ 2906.108115] usb 3-2: SerialNumber: 9C3C21577780CF1042227B9E
[ 2906.109122] usb-storage 3-2:1.0: USB Mass Storage device detected
[ 2906.109764] scsi host7: usb-storage 3-2:1.0
[ 2908.859893] scsi 7:0:0:0: Direct-Access     GENERIC  USB Mass Storage 1.00 PQ: 0 ANSI: 4 CCS
[ 2908.860770] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 2908.862833] sd 7:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE

内核尝试将闪存驱动器显示为/dev/sdc,但当它尝试读取驱动器的大小时,驱动器报告故障。

结论:死了。

当然,如果您愿意深入研究深奥的 USB 存储信息,那么有俄罗斯 Windows 软件,名为ChipGenius可识别U盘控制芯片。如果问题是控制器芯片丢失了固件,并且您可以找到适合控制器芯片的固件及其安装实用程序(最有可能的是 Windows 软件),那么您或许也许能够复活它。

但新的 16G 闪存驱动器每个售价 5 美元(如果您一次购买 10 个装,甚至更低);这真的值得你这么麻烦吗?

相关内容