Author Topic: Format a Hard Drive  (Read 6196 times)


  • Newbie
  • *
  • Posts: 4
Format a Hard Drive
« on: November 05, 2010, 22:21:06 PM »
I'm trying to format a hard drive (/dev/sda) using a script, but all the tools I've tried, I either dont understand how to use properly or just dont do what I need.

Could someone write a quick and dirty shell script to format /dev/sda to fat32



  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: Format a Hard Drive
« Reply #1 on: November 05, 2010, 22:41:59 PM »
a hard drive with sda only? you have no partition on it? however, the command is

mkfs.vfat -F 32 /dev/sda