I'm having trouble using fdisk, cfdisk, and parted to format my SD card. I researched some topics in the forum, but most of the messages specifies Windows, Mac, or digital camera solution. Not at all what I'm looking for.
I'm totally baffled with fdisk interface with sectors, cylinder and what not. cfdisk has clear interface that I like, but for some reason, operations aren't carried out. I can delete the partition just fine, but although I can install new partition, (default Linux fs), I can't do anything about it. And for some reason, changes aren't written?
I tried using dd. I copied image file from virgin SD card (image file is 3MB). So I decided to copy the image file back to external SD card to "format" the card. That didn't work. How come?
Finally, I use gparted. Click-click easy! I formatted a new FAT32 partition no problem.
Then I dropped back into the command line and run parted. I'm utterly confused again.
So, does anybody have a good resource that explain the SD formatting process using command line? It's for my script, so unfortunately Win, Mac, or even gparted solution isn't acceptable. Will a textfile fed into sfdisk format the card properly?