块设备文件存在,但访问时出现“未找到媒体”错误

块设备文件存在,但访问时出现“未找到媒体”错误

我的 USB 闪存驱动器出现问题:块设备文件出现在 /dev (/dev/sdc) 中,但当我尝试在其上启动 fdick、mount 或 event cat 时,出现“未找到媒体”错误

root@nuclight:~# ls -l /dev  | g sdc
brw-rw---T 1 root floppy    8,  32 Aug  1 14:05 sdc

root@nuclight:~# fdisk /dev/sdc
fdisk: unable to open /dev/sdc: No medium found

设备也出现在 lsusb 输出中:

root@nuclight:~# lsusb 
...
Bus 008 Device 002: ID 13fe:3100 Kingston Technology Company Inc. 2/4 GB stick

dmesg:

root@nuclight:~$ dmesg | tail -n 22
[ 8309.368063] ata3.01: SATA link down (SStatus 0 SControl 300)
[ 8309.376124] ata3.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
[ 8309.376129] ata3.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
[ 8309.376216] ata3.00: ACPI cmd c6/00:10:00:00:00:a0 (SET MULTIPLE MODE) succeeded
[ 8309.376218] ata3.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
[ 8309.492298] ata3.00: configured for UDMA/133
[ 8309.532094] PM: resume of devices complete after 6125.660 msecs
[ 8309.532265] PM: Finishing wakeup.
[ 8309.532267] Restarting tasks ... done.
[ 8310.052567] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8311.861011] ATL1E 0000:02:00.0: eth0: NIC Link is Up <100 Mbps Full Duplex>
[ 8311.861792] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8321.976010] eth0: no IPv6 routers present
[ 8491.332026] usb 2-5: new high-speed USB device number 4 using ehci_hcd
[ 8491.464741] usb 2-5: New USB device found, idVendor=13fe, idProduct=3100
[ 8491.464746] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8491.464750] usb 2-5: Product: 2250 PRAM               
[ 8491.464753] usb 2-5: Manufacturer:                         
[ 8491.465160] scsi7 : usb-storage 2-5:1.0
[ 8492.464703] scsi 7:0:0:0: Direct-Access              2250 PRAM        1.00 PQ: 0 ANSI: 0 CCS
[ 8492.466460] sd 7:0:0:0: Attached scsi generic sg1 type 0
[ 8492.468735] sd 7:0:0:0: [sdb] Attached SCSI removable disk

I suspect this flash drive is damaged. How can I make it work?

ps 我使用 Debian 7 x64

答案1

根据更新的问题,似乎 USB 设备被检测为“sdb”,而不是尝试使用 fdisk 的“sdc”。如果这是正确的,那么“sdc”可能是 CD/DVD 或其他带有可移动介质的设备。请注意,块设备可以(并且确实)在重新启动后更改名称(如果您想要永久更改,则应使用 LABEL= 或 UUID=)

如果这是拼写错误,请更新问题 - 首先执行“fdisk /dev/xxx”并复制/粘贴输出,然后执行“dmesg”及其输出。

相关内容