Formatting or initializing a partition from the command-line in Haiku

1

1

I'm making a script and I want to take an existing partition and clear it quickly. Rather than using rm I thought there might be a command-line way of formatting or initializing a partition, but I couldn't find it.

Kev

Posted 2013-04-05T20:33:22.207

Reputation: 1 069

Answers

2

mkfs -t bfs /dev/disk/ata/0/master/raw

Diver

Posted 2013-04-05T20:33:22.207

Reputation: 61

I don't want to trash my whole disk...will this also work on /dev/disk/ata/0/master/3 even though it doesn't seem to have a raw subdir if I try autocomplete in a Terminal? – Kev – 2013-04-07T21:36:32.553