logo       

Re: Partition codes: msg#00071

gnu.parted.bugs

Subject: Re: Partition codes

On Oct 26, 2002 02:36 +0200, Henrik Treadup wrote:
> Anyway I'm running into the following gedanken problem :( How can I set a
> partitions partition code?
>
> The only thing I can find in the documentation is "mkpart part-type ..."
> where
> part-type is one of the following:
>
> ext2, fat32, fat16, HFS, linux-swap, NTFS, reiserfs, ufs
>
> What if I want to create any of the following partitions: ext3, xfs, Compaq
> Diagnostic Partition (partition code 0x12)? Or any other weird partition
> type? Is there a way to directly set a partitions partition code?
>
> Are the partition codes for all linux fs types just set to 85? Can I just do
> "parted $DEVICE --script mkpart primary ext2 0 100" for a xfs partition?

See the code/patches at the "Cockpit Partitioner" project, which has a
bunch of changes I made to parted to allow it to be easily scripted and
also support setting numeric partition types. The project is dead, but
the code lives on (unmaintained).

http://sourceforge.net/projects/cockpit-part/

Yes, Andrew hates numeric partition types, but they are a requirement
for certain cases (BIOS, Windows, etc).

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise