fatsort man page

fatsort — FAT sorting tool

Synopsis

fatsort [Options] DEVICE

Description

FATSort sorts directory structures of FAT file systems. Many MP3 hardware players don't sort files automatically but play them in the  order they were transferred to the device. FATSort can help here.

Options

-a

Use ASCIIbetical order for sorting

-c

Ignore case of file names

-f

Force sorting even if file system is mounted

-h, --help
Print some help
-i

Print file system information only

-I=PFX

Ignore file name PFX

-l

Print current order of files only

-o=FLAG

Sort order of files where FLAG is one of

d : directories first (default)

f : files first

a : files and directories are not differentiated

-n

Natural order sorting

-q

Be quiet

-r

Sort in reverse order

-R

Sort in random order

-t

Sort by last modification date and time

-v, --version
Print version information

The following options can be specified multiple times:

-d=DIR

Sort directory DIR only

-D=DIR

Sort directory DIR and all subdirectories

-x=DIR

Don't sort directory DIR

-X=DIR

Don't sort directory DIR and its subdirectories

DEVICE must be a FAT12, FAT16 or FAT32 file system.

WARNING: THE FILESYSTEM MUST BE CONSISTENT, OTHERWISE YOU MAY DAMAGE IT! IF SOMEONE ELSE HAS ACCESS TO THE DEVICE HE MIGHT EXPLOIT FATSORT WITH A FORGED CORRUPT FILESYSTEM! USE THIS PROGRAM AT YOUR OWN RISK!

Examples

fatsort /dev/sda

Sort /dev/sda.

fatsort -n /dev/sdb1

Sort /dev/sdb1 with natural order.

Author

Written by Boris Leidner.

Reporting Bugs

Report bugs to <fatsort@formenos.de>.

Info

February 2017 fatsort 1.3 User Commands