×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

USB stick disappeared - any way to easily fix?

  • Posts: 912
  • Thank you received: 86
Hello,
I think what happened was:
I used a USB stick for storage (SM on RPI4) and it worked.
Then I decided to see how RPI boots from USB - copied the SD card content to that USB stick.
It booted.
Then I decided not to boot from USB until I get a faster device and use the USB stick as the storage again.
Now my RPI doesn't see/recognize that stick.
It's OK if I plug it into a Windows PC.
If I plug a different stick into RPI - it's recognized and mounted.
But this particular stick (which formerly worked fine) RPI/SM refuses to see/mount.

Some sort of Linux thing.
Any way to make it work again?

Thanks!
 
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 3 weeks ago #69550

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
Can you give us the output of :
lsusb
fdisk -l
3 years 3 weeks ago #69565

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
I agree with Gonzo. You probably formatted the disk with a file system that the RPi doesn't like.
3 years 3 weeks ago #69567

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
You're right!
There were three partitions and only one (256Mb) was formatted.
Deleted partitions, reformatted to full 64Gb - still doesn't show up.
But listed in lsusb as "Bus 002 Device 002: ID 0781:5583 SanDisk Corp. Ultra Fit"

fdisk -l:
Disk /dev/mmcblk0: 29.8 GiB, 32010928128 bytes, 62521344 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
Disklabel type: dos
Disk identifier: 0xd9b3f436
 
Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        8192   532479   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      532480 62521343 61988864 29.6G 83 Linux
 
 
Disk /dev/sda: 57.3 GiB, 61530439680 bytes, 120176640 sectors
Disk model: Ultra Fit       
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd9b3f436
 
Device     Boot Start       End   Sectors  Size Id Type
/dev/sda1        2048 120174591 120172544 57.3G  c W95 FAT32 (LBA)

 
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 3 weeks ago #69612

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
And SD Card Copier does see the stick even though it's not mounted...

If I do:
sudo mkdir /media/stick
sudo mount /dev/sda1 /media/stick
it mounts but doesn't auto-mount after reboot.

Some sort of UUID conflict or something.

Oh, well.
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
Last edit: 3 years 3 weeks ago by maxthebuilder.
3 years 3 weeks ago #69617

Please Log in or Create an account to join the conversation.

  • Posts: 60
  • Thank you received: 2
Same problem here. Copier sees the stick but no automount on desktop
3 years 3 weeks ago #69624

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
What's the output of:
cat /etc/fstab
3 years 3 weeks ago #69645

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
Automount entries are not listed in /etc/fstab so no need to put that output here. Can you insert a USB stick that does automount and put the output of

fdisk -l

here again?
3 years 3 weeks ago #69646

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
here it is:
Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        8192   532479   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      532480 62521343 61988864 29.6G 83 Linux
 
 
Disk /dev/sda: 15 GiB, 16044261376 bytes, 31336448 sectors
Disk model: UDisk           
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DF3E29C0-D833-4185-8015-F174C5F4DEBA
 
Device     Start      End  Sectors Size Type
/dev/sda1   2048 31336414 31334367  15G Microsoft basic data
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 3 weeks ago #69648

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
So the difference is that the disk that doesn’t automount has a W95 FAT32 partition and the one that does has a Microsoft Basic Data partition.
3 years 3 weeks ago #69652

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
That stick is actually a bootable Win10 UDisk.
OK. I'll just declare the problem stick unusable with RPI and forget about it.

Thanks for your help!
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 3 weeks ago #69658

Please Log in or Create an account to join the conversation.

Time to create page: 0.688 seconds