Jump to content
IGNORED

FATsort for BSD, Linux, Mac OS X and UNIX


SpiceWare

Recommended Posts

I found FATsort earlier this week and have successfully used it on my Mac to sort my Harmony games.

 

To run it on the Mac do the following:

  • Plug in your SD card and figure out the Volume Name. My SD card is named HARMONY, so the Volume Name is/Volumes/HARMONY
  • In a terminal window do the following
    • use diskutil to find out the Device Node, mine's /dev/disk2s11
      diskutil info /Volumes/HARMONY | grep "Device Node:"
    • use diskutil to Unmount (but not eject) the SD card using the Volume Name
      diskutil unmount /Volumes/HARMONY
    • use fatsort to Sort the SD card using the Device Node 2
      ./fatsort /dev/disk2s1
    • use diskutil to Eject the SD card using the Device Node
      diskutil eject /dev/disk2s1
    • You can now remove the SD card and put it in the Harmony.

1 you can leave off | grep "Device Node:", but then you'll have to read through a lot of output to find the Device Node.

 

2 for this to work you need to be in the directory that you unzipped fatsort into. On my system I did "make install" and it moved the program into /usr/local/bin/fatsort so I can now run the program from anywhere by leaving off the leading ./ like so:

fatsort /dev/disk2s1

 

 

Intel build of FATsort for Mac OS X

fatsort.zip

 

I'm hoping others can add to this thread with instructions for the other operating systems, and that somebody set up to compile PowerPC OS X programs could upload a version for the older Macs.

 

I was going to try to wrap it up in a GUI utility, but decided to leave that for somebody else to do so I can concentrate on Frantic instead.

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 4 weeks later...

Answered my own question, but for reference yes it sorts both.

 

Also, you can just use mount to see the device node, and right clcik eject the media from the desktop - no need for diskutil.

 

I documented the OSX install and usage here: http://unfinishedbitness.wordpress.com/2014/04/16/alphabetically-sorting-fat-usb-drives-with-mac-osx/

Edited by Ripdubski
Link to comment
Share on other sites

  • 2 years later...

Picked up a new gadget:

post-3056-0-06137200-1481996435_thumb.jpg

 

and had to sort the files on the microSD card. There's been a security change in OS X since I originally posted this, which results in a minor change to one of the steps. This step:

 

  • use fatsort to Sort the SD card using the Device Node 2

    ./fatsort /dev/disk2s1

must now be done like this:

 

  • use fatsort to Sort the SD card using the Device Node 2

    sudo ./fatsort /dev/disk2s1

 

sudo will run the command at a higher security level. You'll be prompted for your logon password to confirm.

Link to comment
Share on other sites

  • 2 months later...

It's clearly likely to be a super-unreliable tip, but on my Mac I found that using the Finder to move all the files off a FAT drive and then them back on had the effect of sorting them into name order*. So try that if FATsort ever becomes unmaintained or is otherwise unavailable.

 

* also the order I had the temporary folder they rested in set to display within the Finder, which may or may not be coincidence.

Link to comment
Share on other sites

  • 9 months later...

It's clearly likely to be a super-unreliable tip, but on my Mac I found that using the Finder to move all the files off a FAT drive and then them back on had the effect of sorting them into name order*. So try that if FATsort ever becomes unmaintained or is otherwise unavailable.

 

 

This works for me with OSX El Capitan. But it works _not_ on my other Mac with High Sierra. :-(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...