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.