File: disk.md

package info (click to toggle)
fatcat 1.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 960 kB
  • sloc: cpp: 2,533; php: 89; sh: 25; xml: 18; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# FAT disk

Back to [documentation index](index.md)

To create a disk, you can use your favourite partition tool.

With linux tools, a common way to create a FAT empty image is:

```
# Create a 50M file full of zero
$ dd if=/dev/zero of=/disk.img bs=1M count=50
# Format it to FAT32
$ mkfs.vfat -F 32 disk.img
```

And that's it!

You can also use `-F 12` and `-F 16` to create a FAT12 and FAT16 filesystem.