Customize alternate install CD with UEFI?

Josef Wolf jw at raven.inka.de
Wed Jul 20 20:58:29 UTC 2016


On Wed, Jul 20, 2016 at 09:06:13PM +0200, Josef Wolf wrote:
> On Wed, Jul 20, 2016 at 07:22:09PM +0200, Liam Proven wrote:
> > On 20 July 2016 at 19:04, Josef Wolf <jw at raven.inka.de> wrote:
> > > On Wed, Jul 20, 2016 at 03:57:56PM +0200, Liam Proven wrote:
> > > The next question is, how to customize it? For the traditiona BIOS, I gave
> > > isolinux the following line to start preseeding:
> > >
> > >   append  debian-installer/locale=de_DE.UTF-8 console-setup/ask_detect=false \
> > >           keyboard-configuration/layoutcode=de \
> > >           keyboard-configuration/variantcode=nodeadkeys \
> > >           file=/cdrom/preseed/s-test.seed \
> > >           initrd=/install/initrd.gz quiet DEBCONF_DEBUG=5 --

Found it! This belongs into boot/grub/grub.cfg

Preseed EFI boot works now :-))

Thanks for the support!

> This is an asus bu201la-dt022g notebook with win8.1 preinstalled. I upgaraded
> to win10 and now I'd like to resize to install ubuntu.
> 
> The origial partitions are like this:
> 
> Disklabel-Type: gpt
> part      start       end   sectors size   type
> sda1:      2048    206847    204800 100.0m FAT32 ESP    (EFI system)
> sda2:    206848    468991    262144 128.0m ----- MSR    (M$ reserved)
> sda3:    468992 390236111 389767120 185.9g NTFS  Primär (C: M$ basic data)
> sda4: 390236160 391174143    937984 458.0m M$ recovery environment
> sda5: 391174144 924344319 533170176 254.2g MS basic data (D:)
> sda6: 924344320 976773119  52428800  25.0g Win recovery environment
> 
> My goal is to free as much as possible for ubuntu, but still keep a "usable"
> win10. I don't really need win, it's just for the case...

My current plan is:

1. delete sda4 and sda6 (assuming, windows don't really need them?
2. resize sda3 (Windows C:) to about 50G (is this enough?)
3. move+resize sda5 to the end of sda3
4. Create ubuntu partitions as usual.

Will the d-i partitioner properly shrink the partition? Or will I need to
defragment the disk before shrinking it?

> > > BTW: When the EFI-installer starts, the partition /dev/sda (is this the EFI
> > > partition) is already mounted and the installer complains that it is mounted.
> > You must be *very* careful to use the right words.
> 
> Argh! the bad wording comes from the installer. It says:
> 
>   "the following drives have mounted partitions: /dev/sda"
> 
> The mounted partition is /dev/sda1, the EFI partition from the hard drive.

Should I leave it mounted during install or should I umount it?

Why is it mounted at all?

-- 
Josef Wolf
jw at raven.inka.de



More information about the ubuntu-users mailing list