USB flash drive not appearing in Disks and GParted

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
BookkeeperThink7021
Level 1
Level 1
Posts: 4
Joined: Sat Aug 13, 2022 8:52 am

USB flash drive not appearing in Disks and GParted

Post by BookkeeperThink7021 »

My flash drive was working fine when I inserted it earlier. I formatted it with the Disks app to NTFS format and since that it isn't appearing anywhere.

it does appear in lsusb as LogiLink UDisk flash drive

Code: Select all

Bus 002 Device 003: ID 04f2:b2e1 Chicony Electronics Co., Ltd Lenovo EasyCamera
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 012: ID abcd:1234 LogiLink UDisk flash drive
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 30fa:1330  USB GAMING MOUSE 
Bus 003 Device 002: ID 09da:2268 A4Tech Co., Ltd. USB Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
but not in fdisk

Code: Select all

Disk /dev/loop0: 113.99 MiB, 119525376 bytes, 233448 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


Disk /dev/loop1: 109.07 MiB, 114372608 bytes, 223384 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


Disk /dev/sda: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk model: HITACHI HTS54503
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 7C069793-F075-4631-9F00-7DD23140E6E7

Device        Start       End   Sectors   Size Type
/dev/sda1      2048   1085439   1083392   529M Windows recovery environment
/dev/sda2   1085440   1290239    204800   100M EFI System
/dev/sda3   1290240   1323007     32768    16M Microsoft reserved
/dev/sda4   1323008  52475903  51152896  24.4G Linux filesystem
/dev/sda5  52475904 625141759 572665856 273.1G Microsoft basic data
I saw a post where it asked for outputs from tail -n 0 -f /var/log/syslog when plugging in and out and it does seem to recognize it

Code: Select all

Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.027416] usb 1-1.2: new high-speed USB device number 11 using ehci-pci
Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.136277] usb 1-1.2: New USB device found, idVendor=abcd, idProduct=1234, bcdDevice= 1.00
Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.136290] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.136294] usb 1-1.2: Product: UDisk           
Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.136297] usb 1-1.2: Manufacturer: General 
Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.136300] usb 1-1.2: SerialNumber: Љ
Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.137647] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Aug 13 18:50:14 anogh-Lenovo-G580 kernel: [13586.139450] scsi host6: usb-storage 1-1.2:1.0
Aug 13 18:50:14 anogh-Lenovo-G580 mtp-probe: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Aug 13 18:50:14 anogh-Lenovo-G580 mtp-probe: bus: 1, device: 11 was not an MTP device
Aug 13 18:50:14 anogh-Lenovo-G580 mtp-probe: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Aug 13 18:50:14 anogh-Lenovo-G580 mtp-probe: bus: 1, device: 11 was not an MTP device
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.168202] scsi 6:0:0:0: Direct-Access     General  UDisk            5.00 PQ: 0 ANSI: 2
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.168700] sd 6:0:0:0: Attached scsi generic sg1 type 0
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.172057] sd 6:0:0:0: [sdb] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB)
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.179430] sd 6:0:0:0: [sdb] Write Protect is off
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.179438] sd 6:0:0:0: [sdb] Mode Sense: 0b 00 00 08
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.180039] sd 6:0:0:0: [sdb] No Caching mode page found
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.180047] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Aug 13 18:50:15 anogh-Lenovo-G580 kernel: [13587.190795] sd 6:0:0:0: [sdb] Attached SCSI removable disk



Aug 13 18:50:20 anogh-Lenovo-G580 kernel: [13591.679788] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=4s
Aug 13 18:50:20 anogh-Lenovo-G580 kernel: [13591.679801] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 01 d4 bf 80 00 00 08 00
Aug 13 18:50:20 anogh-Lenovo-G580 kernel: [13591.679805] blk_update_request: I/O error, dev sdb, sector 30719872 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
Aug 13 18:50:20 anogh-Lenovo-G580 kernel: [13591.680018] usb 1-1.2: USB disconnect, device number 11
Aug 13 18:50:20 anogh-Lenovo-G580 kernel: [13591.699414] blk_update_request: I/O error, dev sdb, sector 30719872 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Aug 13 18:50:20 anogh-Lenovo-G580 kernel: [13591.699431] Buffer I/O error on dev sdb, logical block 3839984, async page read
Aug 13 18:50:20 anogh-Lenovo-G580 systemd-udevd[8548]: sdb: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/sdb' failed with exit code 1.
Last edited by LockBot on Mon Feb 13, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
coffee412
Level 8
Level 8
Posts: 2263
Joined: Mon Nov 12, 2012 7:38 pm
Location: I dont know
Contact:

Re: USB flash drive not appearing in Disks and GParted

Post by coffee412 »

Aside from the flash drive just dying,

Sounds like it is not recognizing the partition on the disk or you didnt put one on.
sudo fdisk /dev/sdb
Choose 'n' for new partition
Make it fat32
hit 'w' to write to drive
you will probably have to re-read the partition then on it:
run 'partprobe'
Then format the flash drive:
mkfs.fat32 /dev/sdb1

Post any error messages you get.
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
Dell PE T610, Dell PE T710
- List your hardware Profile: inxi -Fxpmrz
MeshCentral * Virtualbox * Debian * InvoiceNinja * NextCloud * Linux since kernel 2.0.36
BookkeeperThink7021
Level 1
Level 1
Posts: 4
Joined: Sat Aug 13, 2022 8:52 am

Re: USB flash drive not appearing in Disks and GParted

Post by BookkeeperThink7021 »

sudo fdisk /dev/sdb returns

Code: Select all

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sdb: No such file or directory

BookkeeperThink7021
Level 1
Level 1
Posts: 4
Joined: Sat Aug 13, 2022 8:52 am

Re: USB flash drive not appearing in Disks and GParted

Post by BookkeeperThink7021 »

BookkeeperThink7021 wrote: Sat Aug 13, 2022 1:23 pm sudo fdisk /dev/sdb returns

Code: Select all

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sdb: No such file or directory

I do see sdb for a while when running this

Code: Select all

ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4  /dev/sda5  /dev/sdb
but after few a couple of seconds it isn't there anymore
User avatar
coffee412
Level 8
Level 8
Posts: 2263
Joined: Mon Nov 12, 2012 7:38 pm
Location: I dont know
Contact:

Re: USB flash drive not appearing in Disks and GParted

Post by coffee412 »

I have my doubts on this not being some cheap, Junk drive:

Code: Select all

idVendor=abcd, idProduct=1234
The vender id and product id sends me a red flag.

I didnt notice that before until I was going to have to watch the logs when its inserted. I went back and you had already done that.

I guess I would try another flash drive instead of that one. It could have just failed also. Its just the ID's are screaming at me to just not waste time on it.

Nothing personal,
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
Dell PE T610, Dell PE T710
- List your hardware Profile: inxi -Fxpmrz
MeshCentral * Virtualbox * Debian * InvoiceNinja * NextCloud * Linux since kernel 2.0.36
BookkeeperThink7021
Level 1
Level 1
Posts: 4
Joined: Sat Aug 13, 2022 8:52 am

Re: USB flash drive not appearing in Disks and GParted

Post by BookkeeperThink7021 »

That just might be it. I guess I'll try using another USB drive. Thanks!
User avatar
coffee412
Level 8
Level 8
Posts: 2263
Joined: Mon Nov 12, 2012 7:38 pm
Location: I dont know
Contact:

Re: USB flash drive not appearing in Disks and GParted

Post by coffee412 »

BookkeeperThink7021 wrote: Sat Aug 13, 2022 7:10 pm That just might be it. I guess I'll try using another USB drive. Thanks!
I didnt want to upset you but I felt it had to be said. :)

I bought a laptop off amazon about six months ago and tried to reload win10 for a client. Win10 would not recognize the hard drive. I opened it up and it was an SSD. However, I could not discern who the manufacturer was or model number. So, I booted from the Mint live usb and found out the model and serial numbers where a bunch of "---------". Some knock off SSD that needed some type of loading of a driver before I could use it I think. So, I just replaced it.

Lesson learned.
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
Dell PE T610, Dell PE T710
- List your hardware Profile: inxi -Fxpmrz
MeshCentral * Virtualbox * Debian * InvoiceNinja * NextCloud * Linux since kernel 2.0.36
Locked

Return to “Beginner Questions”