lwouis / fat-drive-sorter

Actually sort files on your FAT drives
https://fat-drive-sorter.netlify.app
GNU General Public License v3.0
28 stars 0 forks source link

Disk not recognized #1

Open GusJeep opened 1 year ago

GusJeep commented 1 year ago

Describe the bug

I have a 256 GB HDD Fat 32 formated and it is not recognized.

Your environment

lwouis commented 1 year ago

Hi,

Could you please share more details?

Is it recognized by macOS? Can you read/write contents? What does FatDriveSorter show?

Thank you

GusJeep commented 1 year ago

Hi!! Yes, it is recognized by mac os and in my car. I tried with a pen drive and it recognize it well, but the hdd doesn’t.  I use it for playing music.

Thanks!

Gus Battisti El 31 de ago. de 2023 18:28 -0300, lwouis @.***>, escribió:

Hi, Could you please share more details? Is it recognized by macOS? Can you read/write contents? What does FatDriveSorter show? Thank you — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

lwouis commented 1 year ago

Could you share a screenshot of how FatDriveSorter main window shows?

GusJeep commented 1 year ago

Yes, sure!  Gus Battisti

El 31 ago. 2023, a las 18:28, lwouis @.***> escribió:

Hi,

Could you please share more details?

Is it recognized by macOS? Can you read/write contents? What does FatDriveSorter show?

Thank you

— Reply to this email directly, view it on GitHub https://github.com/lwouis/fat-drive-sorter/issues/1#issuecomment-1701810255, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCIYZ4FNODVOJL22KKYE3ATXYD6ZXANCNFSM6AAAAAA4GVHE24. You are receiving this because you authored the thread.

lwouis commented 1 year ago

I'm sorry, I can't see the image

GusJeep commented 1 year ago

Sorry! It was png. I send you a jpeg. And a lot of thanks for your effort!!! Gus Battisti

El 31 ago. 2023, a las 19:30, Gustavo Battisti @.***> escribió:

<Captura de pantalla 2023-08-31 a la(s) 19.27.01.png>

lwouis commented 1 year ago

I'm sorry, I still can't see it. I think it's the way you send the messages through email. I suggest using github in the web browser

GusJeep commented 1 year ago

I Try Pdf.  Gus Battisti

El 31 ago. 2023, a las 19:50, Gustavo Battisti @.***> escribió:

Sorry! It was png. I send you a jpeg. And a lot of thanks for your effort!!!<Captura de pantalla 2023-08-31 a la(s) 19.27.01.jpg> Gus Battisti

El 31 ago. 2023, a las 19:30, Gustavo Battisti @.***> escribió:

<Captura de pantalla 2023-08-31 a la(s) 19.27.01.png>

lwouis commented 1 year ago
image
GusJeep commented 1 year ago

Gus Battisti

El 31 ago. 2023, a las 19:59, lwouis @.***> escribió:

I'm sorry, I still can't see it. I think it's the way you send the messages through email. I suggest using github in the web browser — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

El 31 ago. 2023, a las 19:59, lwouis @.***> escribió:

I'm sorry, I still can't see it. I think it's the way you send the messages through email. I suggest using github in the web browser — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

GusJeep commented 1 year ago

Hi! I send you the screenshot. Captura de pantalla 2023-08-31 a la(s) 19 27 01

lwouis commented 1 year ago

Thank you for sharing this screenshot.

Here's the code which lists mounted drives.

FatDriveSorter asks the OS for the drives, straight up. It's surprising that the OS is not listing the drive here, since you mentioned that you see it in Finder.

The only thing I can imagine is that somehow your drive is not removable or ejectable. FatDriveSorter will only sort removable and ejectable drives. Maybe it was a mistake to not show non-removable drives. I added that check because in my tests, all external drives had that. But I found this definition online which seems to imply that we shouldn't check those probably:

As they use the term, "removable" means that the media and the drive for the media are separate (like a floppy drive or CD-ROM). Anything that doesn't allow a single drive to hold different media at different times is a "fixed" drive.

I've created a local build which doesn't have that check. Could you please test this build and let me know if it lists your drive?

If it works for you, I'll release an official version with this fix.

Thank you

GusJeep commented 1 year ago

Hi! Sorry for the inconvenients! It doesn´t let me open it.

Captura de pantalla 2023-09-01 a la(s) 13 13 13
GusJeep commented 1 year ago

Finally I could open FatDriveSorter but it still not detect de HDD. Sorry! And thanks a lot for your effort!

GusJeep commented 1 year ago

The Disk is a SSD 240 GB, formated MS-DOS Fat 32.

lwouis commented 1 year ago

I'm surprised it didn't work. I wonder why it's not showing. Is the drive not ejectable somehow? Can you eject it?

Could you please open Disk Utility.app and screenshot the drive information? Usually there are multiple nested sections within a drive. Could you please share each?

GusJeep commented 1 year ago

Hi!! I´m really sorry for bothering you for this inconvenient and I appreciate so much your effort! Yes, I can eject the disk normally. I also tried with another SSD and another case and it doesn´t detect them. This are the

Captura de pantalla 2023-09-01 a la(s) 18 43 55

screenshots:

Captura de pantalla 2023-09-01 a la(s) 18 45 12
lwouis commented 1 year ago

Thank you for sharing these screenshots.

The Drive looks healthy. It's intriguing why the app is not listing it.

Could you please try this build?

GusJeep commented 1 year ago

Yes! Now it detects the disk, but I can not see the directory order, when I click on see current file order, the drive tab changes to Mac Disk.

GusJeep commented 1 year ago

Can it be something with mbr?

lwouis commented 1 year ago

Sorry to ask again: could you please try and this build and share a screenshot of the list of Drives shown in the app?

GusJeep commented 1 year ago

Please don´t you sorry! No, didn´t work. Maybe is the way my SSD is formated. With a pendrive the original version works well.

lwouis commented 1 year ago

Hi @GusJeep,

Since I can't reproduce the issue on my side, I need your help to investigate. Could you please run this build from Terminal.app?

In order to do this, here are steps to guide you:

Thank you

GusJeep commented 1 year ago

Hii!! Again, sorry for all this extra work! Here I send you the sanpshot. The disk JeepBup is the Fat32 one. Thanks !!

Captura de pantalla 2023-09-04 a la(s) 17 31 54
lwouis commented 1 year ago

Thank you for sharing this screenshot. So it's confirmed: this disk is not showing because it's flagged by macOS as "not ejectable".

As I said above, when I wrote this app, I thought we should only list external drives, not internal drives. I don't see a use-case for wanting to alphabetize an internal drive. People want to alphabetize external drives which they use with mp3 players, and other devices.

There is technical way to filter only "external drive" with the macOS APIs. So I used "ejectable" as a proxy for "external".

I'm surprised to see you have an external drive here which is deemed "not ejectable" by macOS. I'm not sure how that makes sense. And I'm not sure how I could exclude internal drives without using the "is ejectable?" check.

GusJeep commented 1 year ago

Hi! I use this disk for playing mp3 music and video music in my car. I don´t have any problem ejecting the disk from my Mac. I don´t know how can I help you to fix it, or there is no fix? Thanks!

lwouis commented 1 year ago

Could you please try this build? You can launch it normally.

I removed the check on "is the drive ejectable". To mitigate risk for the users to format their internal drives, I added a check to only show "FAT" drives (e.g. FAT16, FAT32, exFAT).

Could you please tell me if it lists your drive, or not other drives?

Thank you

GusJeep commented 1 year ago

Now I can see the disk, but it doesn´t show directories or the see current file order doesn´t show anything

lwouis commented 1 year ago

Do you mean that you clicked "See current file order", and it didn't show you anything? Could you please share a screenshot?

GusJeep commented 1 year ago

https://github.com/lwouis/fat-drive-sorter/assets/143756528/e4c8a5a4-c0a9-40a6-ac04-a71e61d04de1

lwouis commented 1 year ago

Oh right, I didn't think of this.

The way the app works is that when you do actions like listing files, or sorting the drive, it will first unmount the drive, then do the operation on the unmounted drive, then remount it so it's accessible to the user again.

It's a technical requirement to operate on the unmounted drive. We can't list or sort files on a mounted drive.

I guess your drive not being ejectable means it can't be unmounted?

I wish I had a drive like yours at home to play with and understand why it's not ejectable. I don't know what can be done with such a drive. I don't see why it can't be ejected or unmounted since it's an external USB drive.

I'm sorry, I'm running out of ideas here to get it to work on the drive 🙇

GusJeep commented 1 year ago

Ok, please don´t be sorry! I really appreciate all you have done to make it work! Thank you a lot! Don´t worry about this, Mac Os isn´t easy! Best regards!!!

lwouis commented 1 year ago

Could you please run the latest build I shared above, from the Terminal?

I think it will log interesting things when you press "See current file order". Could you please share those logs?

GusJeep commented 1 year ago

Hey!!!! Now it works!!!! Great job! Thank you so much!! You are a genius!!