1fatsort(1) General Commands Manual fatsort(1)
2
3
4
6 FATSort - FAT filesystem sorting utility
7
9 fatsort [options] device
10
12 FATsort sorts directory structures of FAT filesystems. Many MP3 hard‐
13 ware players don't sort files automatically but play them in the order
14 they were transmitted to the device. FATSort can help here.
15
17 -c This option causes FATSort to ignore the case of filenames (e.g.
18 'example.mp3' is equal to 'EXAMPLE.MP3').
19
20 -f Force sorting even if the device is mounted or if FATSort cannot
21 determine if the device is mounted.
22
23 -h Shows some help information.
24
25 -i Prints some file system information of the specified device.
26
27 -l FATSort will not sort directory structures, but just print the
28 current order.
29
30 -o type
31 This options specifies how FATSort will sort files and directo‐
32 ries. type can be 'd' for directories before files (which is
33 the default), 'f' for files before directories, or 'a' for no
34 differentiation between files and directories.
35
36 -n Uses natural order to sort directory structures instead of
37 alphanumeric order. For example, an alphanumeric order would be
38 file123.mp3
39 file21.mp3
40 file3.mp3
41 and the corresponding natural order would be
42 file3.mp3
43 file21.mp3
44 file123.mp3.
45
46 -q FATSort will work quietly without printing additional informa‐
47 tion messages.
48
49 -r Sorts files and directories in reverse order (Z-A).
50
51 -R Sorts files and directories in random order.
52
53 -v Shows version information only.
54
55 The following options can be specified multiple times:
56
57 -d directory
58 Sort directory only
59
60 -D directory
61 Sort directory and all subdirectories
62
63 -x directory
64 Don't sort directory
65
66 -X directory
67 Don't sort directory and all subdirectories
68
69 -I prefix
70 Ignore filename prefix prefix during sorting. For example, pass‐
71 ing option -I "the " tells FATSort to sort 'The Beatles.mp3'
72 like 'Beatles.mp3'.
73
75 Sort FAT filesystem on an USB stick:
76 fatsort /dev/sda1
77
78 Sort FAT filesystem in a file:
79 fatsort /home/user/fat16_fs.img
80
81 Sort directory /dir1 and all subdirectories except /dir1/dirA:
82 fatsort /dev/sda1 -D /dir1 -x /dir1/dirA
83
84 Ignore prefixes 'a ' and 'the ' during sorting:
85 fatsort /dev/sda1 -I "a " -I "the "
86
88 Boris Leidner <fatsort(at)formenos.de>
89
91 mount(8) fsck(8)
92
94 FAT12 is not supported yet.
95
97 Please report bugs to fatsort(at)formenos.de. Thanks.
98
99
100
101FATSort 0.9.15 2011 fatsort(1)