LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2011, 02:19 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
command line disk partition utility


Before I go off and write a new one, does anyone know of a good command line disk partition utility that works better than "parted"?
 
Old 01-10-2011, 02:22 PM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
cfdisk?

For actually making filesystems, mkfs.{ext3,ext4,xfs,jfs} etc. are standard and well documented.
 
Old 01-10-2011, 05:08 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
I guess I didn't say it just right.

What I am looking for is an "all in one command" way of partitioning. All the info should be given on the one command line, in arguments. Giving the info as stdin can be OK, but it needs to be in a sensible form that a script does not have to do calculations for. I'm hoping for something smart enough to figure out partition positions for me, given minimum sizes, and position on a specified alignment (such as multiples of 2048 sectors ... disregarding legacy CHS we no longer need). It needs to support both MBR and GPT. I would be running it from a script or program.

I don't need any filesystem formatting steps in this. Those would be done later.
 
Old 01-10-2011, 06:21 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
I haven't used it yet, but you could check out if
man sfdisk

does what you need. May I ask, what you do not like about parted?
 
Old 01-10-2011, 06:37 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Yes, I was also going to suggest sfdisk is the usual batch utility. Wouldn't do all you want, but you should be able to script around it for DOS MBR type disks. gpt would be a problem though.
 
Old 01-11-2011, 06:30 AM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
I'm already using sfdisk. And it is very cumbersome to script around. That's why I'm looking at writing my own program to do formatting. But I wanted to be sure I was not re-inventing a more rounded wheel.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Utility to Determine External (Internet) IP dragos19 Linux - Software 2 05-14-2008 10:18 AM
command line setup utility sikkalgopal Mandriva 3 09-14-2004 12:41 PM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM
RH8: command-line system configuration utility mmachado Red Hat 2 11-06-2003 05:51 AM
Command line utility costasm Linux - Software 1 10-24-2003 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration