grub-2.06 from Debian

Moderator: Forum moderators

Post Reply
williwaw
Posts: 2151
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 196 times
Been thanked: 414 times

grub-2.06 from Debian

Post by williwaw »

Those wishing to install a later version of grub2 can use a debian installer. This procedure creates a "net" install of Debian to a partition and then installs grub-2.06 to the /boot of that partition. you can then relocate the EFI dir and then repurpose the partition for whatever your needs. You should have on hand a second way to boot your machine other than from the disk you wish to install grub-2.06 to.

1. go to
https://cdimage.debian.org/debian-cd/cu ... 64/iso-cd/
and download
https://cdimage.debian.org/debian-cd/cu ... etinst.iso

2. this minimal iso can be burned to a cd (or written to a spare USB should you prefer).

3. Boot the installer and choose custom install then direct the installer to install Debian to an unused partition on the disk you want to have grub-2.06 on. You do not have to wipe the disk, but you should save or move anything you wish to keep in the selected partition.

4. reboot with a puppy (or your preferred OS) from a working install. Ths can be from the disk you just installed Debian to, but if you do not get the following instructions correct on the first try, this is where you need a second way to boot from a different disk if your machine will not boot on the first try.

5. in the case of wanting to replace your existing UEFI bootloader with gru2.06, find the current bootloader EFI dirs and files, (typically located on the first FAT32 partition of your disk) and move all into a tempory folder that you can delete later after your new configs are working.

6. copy /EFI out of /boot in your new Debian install to your preferred boot partition. move grub.cfg also and add any grub stanzas from your exisiting grub.cfg in the temporary folder.

Clarity
Posts: 4238
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1815 times
Been thanked: 571 times

Re: grub-2.06 from Debian

Post by Clarity »

IIRC, Grub2 v2.12 is current as it takes into accounts newer filesystem and stability.

Not sure if your Deb version has this.

FYI

d-pupp
Posts: 426
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 245 times
Been thanked: 82 times

Re: grub-2.06 from Debian

Post by d-pupp »

@williwaw This is interesting to me as I am using Vanilladpup 11. It only has a usb installer so how to get grub2 boot loader onto a hard drive. Something like this maybe just what is needed if a default grub2 with the correct boot stanza will work.

williwaw
Posts: 2151
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 196 times
Been thanked: 414 times

Re: grub-2.06 from Debian

Post by williwaw »

d-pupp wrote: Sat Aug 24, 2024 7:02 pm

@williwaw This is interesting to me as I am using Vanilladpup 11. It only has a usb installer so how to get grub2 boot loader onto a hard drive. Something like this maybe just what is needed if a default grub2 with the correct boot stanza will work.

easier yet is to download frugalpup41 to a USB install then uses diskpup on your HD. https://www.mediafire.com/file/me2y2dpr ... 1.pet/file
then update to 2.06
viewtopic.php?t=10028

dimkr
Posts: 2512
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1267 times

Re: grub-2.06 from Debian

Post by dimkr »

Bootflash in my 11.0.x builds is currently artificially limited and only shows a list of removable drives. It's a development build, and that allows testing using a flash drive installation without the risk of accidentally wiping an internal drive.

To force installation on an internal drive and skip the device selection prompt, specify it in the command line (for example, bootflash sdb). It will repartition the drive.

Currently it offers only choice between syslinux and efilinux (both without a boot menu), and doesn't offer GRUB. Both options should work well on an internal drive.

Adding menu entries to an already installed boot loader or offering GRUB is not planned because as far as I see, most Puppy users that request these things install multiple distros on one partition or use one distro's installer to install a boot loader, then manually configure it to boot another distro. There's too much variety for me to build a solution that works for everyone and covers all edge cases.

d-pupp
Posts: 426
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 245 times
Been thanked: 82 times

Re: grub-2.06 from Debian

Post by d-pupp »

@dimkr @williwaw
I was searching around and found something else that might work

First install dpup 11 to a usb
Then install grub to the usb
apt-get update && apt-get install grub2

Boot dpup 11 on the pc that needs grub
mount the partition you want grub installed on say... sda1
mount /dev/sda1 /mnt
then install grub with
grub-install --root-partition=/mnt /dev/sda

This looks like it should work but I currently have nothing to test with. :oops:
What do you guys think??

williwaw
Posts: 2151
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 196 times
Been thanked: 414 times

Re: grub-2.06 from Debian

Post by williwaw »

d-pupp wrote: Sun Aug 25, 2024 8:05 pm

grub-install --root-partition=/mnt /dev/sda
What do you guys think??

Curious what version grub you get? There seems to be a need for later versions with some rigs.

d-pupp
Posts: 426
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 245 times
Been thanked: 82 times

Re: grub-2.06 from Debian

Post by d-pupp »

Curious what version grub you get? There seems to be a need for later versions with some rigs.

Good question. I guess you would get the latest stable version that Debian is using likely 2.06
The reason I'm asking about this is the misses has a old Windows 10 laptop and I'm looking for a way to get dpup 10 or 11 on the hard drive.

williwaw
Posts: 2151
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 196 times
Been thanked: 414 times

Re: grub-2.06 from Debian

Post by williwaw »

I think Dimkr mentioned above, if you open bootflash in a terminal.....

d-pupp
Posts: 426
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 245 times
Been thanked: 82 times

Re: grub-2.06 from Debian

Post by d-pupp »

@williwaw At this point I would like to dual boot with Windows 10

Post Reply

Return to “Boot”