Command line for creating partitions
Joachim Backes
joachim.backes at rhrk.uni-kl.de
Thu Aug 7 19:13:35 UTC 2014
On 08/07/2014 08:45 PM, Robert Moskowitz wrote:
> I am working now more on handcrafting my SD cards for arm testing.
> Gparted did not do a good job, allowing me to make parititions not on
> 'cylinder boundaries'. And the labels it created were not recognized
> when I mounted the drive. I had to use the disk utility to fix the
> labels. Anyway, to script it and to put this up on some wikis, I really
> need to do this by command line.
>
> So I have looked at both fdisk and parted. Neither are for 'simple'
> command lines. Fdisk takes me back to my DOS days (wonder where MS got
> it from?).
>
> So first I want a command that will delete all partitions on /dev/sdb
>
> then create a partition as ext3, then one as linux-swap, and finally
> ext4. Of course, I understand how many MB I want each, but I am suppose
> to (or so from the warnings that 'fdisk -l' provided) maintain boundaries.
>
> thanks for any pointers to the best tool(s) for this. So far my search
> foo has only gone to old fdisk pages.
>
Hi Robert,
have a look at /sbin/cfdisk
It is part of util-linux.
Kind regards
Joachim Backes
--
Fedora release 20 (Heisenbug)
Kernel-3.15.8-200.fc20.x86_64
Joachim Backes <joachim.backes at rhrk.uni-kl.de>
http://www-user.rhrk.uni-kl.de/~backes
More information about the users
mailing list