Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #257578 > unrolled thread

Re: Re: Debian installation using debootstrap and grub-install - no entry in ESC boot menu

Started byValentin Caracalla <vorubergehend@tutanota.com>
First post2023-04-25 14:30 +0200
Last post2023-04-25 15:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Re: Re: Debian installation using debootstrap and grub-install - no  entry in ESC boot menu Valentin Caracalla <vorubergehend@tutanota.com> - 2023-04-25 14:30 +0200
    Re: Debian installation using debootstrap and grub-install - no entry in ESC boot menu Anssi Saari <as@sci.fi> - 2023-04-25 15:10 +0200

#257578 — Re: Re: Debian installation using debootstrap and grub-install - no entry in ESC boot menu

FromValentin Caracalla <vorubergehend@tutanota.com>
Date2023-04-25 14:30 +0200
SubjectRe: Re: Debian installation using debootstrap and grub-install - no entry in ESC boot menu
Message-ID<GopXX-4q57-9@gated-at.bofh.it>
> I can't see anything wrong with the script. Did that installation use> GPT and a BIOS Boot Partition though?The successful installation (with official installation media) used aBIOS partition table, but I prefer GPT.> I guess I have to ask, why not just use UEFI?I also tried that and I considered posting a similar recipe for EFI in thefirst message. But it doesn't work either, so I thought it is better toask the question with BIOS, because it seemed easier to me.Here's the recipe for EFI:
sudo parted /dev/sda mklabel gpt sudo parted /dev/sda mkpart init 0% 50% sudo parted /dev/sda mkpart root 50% 100% sudo mkfs.vfat /dev/sda1 sudo mkfs.ext4 /dev/sda2 sudo mount /dev/sda2 /mnt sudo mkdir /mnt/boot sudo mkdir /mnt/boot/efi sudo mount /dev/sda1 /mnt/boot/efi sudo debootstrap stable /mnt sudo mount --bind /sys /mnt/sys sudo mount --bind /proc /mnt/proc sudo mount --bind /dev /mnt/dev sudo mount --bind /dev/pts /mnt/dev/pts sudo mount --bind /run /mnt/run sudo chroot /mnt apt install grub-efi sudo chroot /mnt grub-install /dev/sda sudo umount /mnt/run sudo umount /mnt/dev/pts sudo umount /mnt/dev sudo umount /mnt/proc sudo umount /mnt/sys sudo umount /mnt/boot/efi sudo umount /mntBut this doesn't work either. Same problem here. However I can make such anEFI installation using official installation media on the same machine andthat does work.

[toc] | [next] | [standalone]


#257582 — Re: Debian installation using debootstrap and grub-install - no entry in ESC boot menu

FromAnssi Saari <as@sci.fi>
Date2023-04-25 15:10 +0200
SubjectRe: Debian installation using debootstrap and grub-install - no entry in ESC boot menu
Message-ID<GoqAF-4qyu-3@gated-at.bofh.it>
In reply to#257578
Valentin Caracalla <vorubergehend@tutanota.com> writes:

> But this doesn't work either. Same problem here. However I can make
> such an EFI installation using official installation media on the same
> machine and that does work.

That recipe (and the whole post) was hard to read but don't you need
some flags for the ESP partition, like esp and possibly boot as well?
The partition table on one EFI system I have looks like this, I think
it's probably what Debian installer created:

# parted /dev/nvme0n1 print
Model: KINGSTON SA2000M8250G (nvme)
Disk /dev/nvme0n1: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size    File system     Name        Flags
 1      1049kB  538MB  537MB   fat32                       boot, esp
 2      538MB   249GB  248GB   ext4            Zippy root
 3      249GB   250GB  1024MB  linux-swap(v1)  Zippy swap  swap

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web