disk partitions and special partition IDs

Stephan Hermann sh at sourcecode.de
Wed May 24 13:46:55 CEST 2006


Hi Guys,

as you all know when you want to format a disk partition with >300GB you need 
to set the EFI GPT id (0xEE).
Sadly I'm missing this possibility in /usr/sbin/setup_harddisks.

What would be the easiest way to add this functionality to this script:
in function ParseConfigFile the last part is 


                # extra options
                ($options =~ /\b(ext[23]|auto)\b/i) && ($MPID{$mountpoint} = 
83); # Linux native
                ($options =~ /\bswap\b/i) && ($MPID{$mountpoint} = 82); # 
Linux swap
                ($options =~ /\bdosfat16\b/i) && ($MPID{$mountpoint} = 6); # 
DOS FAT 16bit (>=32MB, will be changed later)
                ($options =~ /\bwinfat32\b/i) && ($MPID{$mountpoint} = "b"); # 
Win 95 FAT 32
                $MPOptions{$mountpoint} = $options;
                if($test == 1){
                    print "$mountpoint,
$MPMinSize{$mountpoint}-$MPMaxSize{$mountpoint},";
                    print "$fstaboptions,$options";
                    ($MPPreserve{$mountpoint} eq "yes") && (print " Preserve: 
$MountpointPart{$mountpoint}");
                    print "\n";
                }

and %MPID is the assoc array for the partition IDs.

To accomplish this "partition id setting" task to be fully automatic, we are 
thinking about an option addition to this source. 

e.g.

 ($option =~ /\bpart\_id\=([0-9a-f]{1,2})\b/i) && ($MPID{$mountpoint}=$1; # 
read Partition ID  for sfdisk

(BTW, it's untested, just an idea first)

What do you think? Good Idea? If so, we will provide a patch against 2.10.1 
for including in the new version or an updated revision :)


Regards,

\sh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20060524/a52ce0a8/attachment.bin 


More information about the linux-fai-devel mailing list