Re: GPT preseed [ almost solved ]
- To: Tom H <tomh0665@gmail.com>
- Cc: Debian User <debian-user@lists.debian.org>
- Subject: Re: GPT preseed [ almost solved ]
- From: Darren Baginski <kickbsd@yandex.com>
- Date: Sun, 03 Jun 2012 05:10:36 +0400
- Message-id: <[🔎] 367031338685836@web7g.yandex.ru>
- In-reply-to: <CAOdo=Sx5_zjB8xO1SXFjryUibLcim5bFPFi-=T67D3MxqYU8-A@mail.gmail.com>
- References: <177841338231769@web29g.yandex.ru> <CAOdo=SyupqieU06-WDSwxy1r30NUcv6+qWO4iv7-uubLrnfJxg@mail.gmail.com> <107271338246874@web18d.yandex.ru> <CAOdo=Sx35wsR+pFNyxTgLNPM3Zvv9bGj2jZLeGsAF=h8dMqS9g@mail.gmail.com> <217811338416486@web25g.yandex.ru> <CAOdo=Sx5_zjB8xO1SXFjryUibLcim5bFPFi-=T67D3MxqYU8-A@mail.gmail.com>
Final recipe is:
d-i partman-auto/expert_recipe string physics-workstation :: \
32 32 32 free \
$gptonly{ } \
$primary{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
1600 1000 1600 linux-swap \
$gptonly{ } \
$primary{ } \
method{ swap } format{ } \
. \
25500 9000 25555 xfs \
$gptonly{ } \
$primary{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ xfs } \
mountpoint{ / } \
.
and the output:
# gdisk -l /dev/vda
GPT fdisk (gdisk) version 0.8.4
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/vda: 335544320 sectors, 160.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 2A256643-D59F-4B71-B796-9137E7241FE9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 335544286
Partitions will be aligned on 1-sector boundaries
Total free space is 0 sectors (0 bytes)
Number Start (sector) End (sector) Size Code Name
1 34 62534 30.5 MiB EF02
2 62535 3187535 1.5 GiB 8200
3 3187536 52992223 23.7 GiB 0700
31.05.2012, 13:16, "Tom H" <tomh0665@gmail.com>:
> On Wed, May 30, 2012 at 6:21 PM, Darren Baginski <kickbsd@yandex.com> wrote:
>
>> I've added lines below and got GPT on a empty 160GB hard drive. Thanks Tom!
>> Need to understand which of them really needed.
>> Will use your debugging hint for keymap selection.
>>
>> d-i partman-basicfilesystems/choose_label string gpt
>> d-i partman-basicfilesystems/default_label string gpt
>> d-i partman-partitioning/choose_label string gpt
>> d-i partman-partitioning/default_label string gpt
>> d-i partman/choose_label string gpt
>> d-i partman/default_label string gpt
>> partman-partitioning partman-partitioning/choose_label select gpt
>> d-i partman-auto/expert_recipe string physics-workstation :: \
>> 32 32 32 free \
>> $gptonly{ } \
>> $primary{ } \
>> $bios_boot{ } \
>> method{ biosgrub } \
>> . \
>> 16000 1000 16000 linux-swap \
>> $gptonly{ } \
>> $primary{ } \
>> method{ swap } format{ } \
>> . \
>> 500 1000 -1 xfs \
>> $gptonly{ } \
>> $primary{ } \
>> method{ format } format{ } \
>> use_filesystem{ } filesystem{ xfs } \
>> mountpoint{ / } \
>> .
>
> You're welcome. It's good to know that a gpt label can be created via
> preseed. :)
>
> What's the output of "parted -l /dev/sda" or "gdisk -l /dev/sda" after
> this install?
>
> (BTW, you don't need the backslashes in the partitioning section -
> although I think that you might need it after the "::".)
Reply to: