Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot open usb flash drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
hercc
n00b
n00b


Joined: 11 Nov 2019
Posts: 17

PostPosted: Fri Aug 18, 2023 10:52 am    Post subject: Cannot open usb flash drive Reply with quote

After connecting my usb pendrive there appears a new device /dev/sdf but I am not able to use it.

Code:
# fdisk /dev/sdf
fdisk: cannot open /dev/sdf: No medium found

dmesg
Code:
[ 7453.824903] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[ 7453.951576] usb 3-1: New USB device found, idVendor=ffff, idProduct=5678, bcdDevice= 2.00
[ 7453.951578] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7453.951580] usb 3-1: Product: ...
[ 7453.951581] usb 3-1: Manufacturer: ...
[ 7453.951582] usb 3-1: SerialNumber: ...
[ 7453.952630] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 7453.952748] scsi host8: usb-storage 3-1:1.0
[ 7454.954133] scsi 8:0:0:0: Direct-Access     FC       3281                  PQ: 0 ANSI: 4
[ 7454.954342] sd 8:0:0:0: Attached scsi generic sg5 type 0
[ 7455.110245] sd 8:0:0:0: [sdf] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 7455.110247] sd 8:0:0:0: [sdf] Sense Key : Hardware Error [current]
[ 7455.110248] sd 8:0:0:0: [sdf] Add. Sense: No additional sense information
[ 7455.110250] sd 8:0:0:0: [sdf] 0 512-byte logical blocks: (0 B/0 B)
[ 7455.110251] sd 8:0:0:0: [sdf] 0-byte physical blocks
[ 7455.110355] sd 8:0:0:0: [sdf] Write Protect is off
[ 7455.110357] sd 8:0:0:0: [sdf] Mode Sense: 03 00 00 00
[ 7455.110474] sd 8:0:0:0: [sdf] No Caching mode page found
[ 7455.110475] sd 8:0:0:0: [sdf] Assuming drive cache: write through
[ 7455.110624] sd 8:0:0:0: [sdf] Attached SCSI removable disk


On windows the pendrive is visible but an i/o error occurs when opening. The pendrive is also visible inside Windows disk management but Windows cannot determinate the size of the pendrive.

I have also tried other usb slots. To me, it seems clear that the pendrive is broken. But want to make sure if there is something else I can possibly check. Thx.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Fri Aug 18, 2023 12:52 pm    Post subject: Reply with quote

hercc,

Code:
[ 7455.110245] sd 8:0:0:0: [sdf] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 7455.110247] sd 8:0:0:0: [sdf] Sense Key : Hardware Error [current]
[ 7455.110248] sd 8:0:0:0: [sdf] Add. Sense: No additional sense information
[ 7455.110250] sd 8:0:0:0: [sdf] 0 512-byte logical blocks: (0 B/0 B)


As Read Capacity(10) failed, the kernel does not know what size the drive is, then it all goes down hill.

You could try
Code:
fdisk -l /dev/sdf
which will either read the partition table or add errors to dmesg.
Its possible it will do both too, with the partition table being rubbish.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hercc
n00b
n00b


Joined: 11 Nov 2019
Posts: 17

PostPosted: Sat Aug 19, 2023 12:58 am    Post subject: Reply with quote

@NeddySeagoon

Code:
# fdisk -l /dev/sdf
fdisk: cannot open /dev/sdf: No medium found

No additional messages on dmesg.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum