I booted ubuntu 22.04 on usb dives and then tried to add some extra data into the flash and when I connected it back I could find it again.
here is what I tried
I did lsblk and found the drive with 0 byte space.
I tried formating it with mkfs.vfat /dev/sdb and I got no media found error.
I also tried checking the filesystem for errors fsck /dev/sdb and e2fsck -fcky /dev/sdb but I still have no media found error even fdisk and gdisk are unable to read the drive I also tried sudo fdisk -l /dev/sdb and I had not cannot open /dev/sdb:
No medium found.
all the above commands were ran as root.
I am short of ideas and need help.
sudo fdisk -l /dev/sd?Please Edit your question and add that information. – stumblebee Dec 16 '23 at 21:29sudo fdisk -l /dev/sdbgives cannot open /dev/sdb: No medium found. – Christian Yemele Dec 18 '23 at 07:55sudo fdisk -l /dev/sd?(yes, use a questionmark to look for also other drive letters, not only 'b'); 2.lsblk -e7 -o model,name,size,fstype,label,mountpoints-- Please try your USB drive via the other USB ports on the computer, and also try in some other computer. You can analyze the problem according to this link and if you are lucky, find a solution. – sudodus Dec 18 '23 at 10:51