grub2config Rescues Linux Mint (maybe others)

Post Reply
User avatar
mikeslr
Posts: 2963
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 917 times

grub2config Rescues Linux Mint (maybe others)

Post by mikeslr »

A couple years ago I acquired a new-to-me refurbished Desktop. It came with a 2 TiB hard-drive mostly wasted on Windows 7. At the time I decided to keep Windows 7. (Tax Software and a couple other useful programs ran under it; however, the major brands of Tax Software no longer do). And while I almost always use Puppys, still 2 TiBs would leave a lot of wasted space. So I decided to (a) move Windows restore files and remove its partition; (b) shrink Windows main partition and (c) add two new partitions, one for Puppys, the other for Linux Mint 20 Ulyana. Wasn't sure what I'd do with Ulyana. But you never know. The restructuring went without a hitch. Ulyana's grub enabled booting it and Windows; puppies --although on the hard-drive-- being booted via a dedicated USB-Stick.

I recently decided to upgrade Linux Mint to Vanessa. Still not sure what I'd do with it. Maybe try to convince my wife to abandon Windows 10. And Linux Mint does have some advantages, such as Hypnotix, an IPTV streaming application with support for live TV, movies and series. https://github.com/linuxmint/hypnotix.

Selected 'Custom Install' so that I could keep my Windows 7 and Puppy partitions. But during the installation process I received a notice to the effect "There is no EFI partition so booting will likely fail. Continue at your own risk". :shock: :roll: Brilliant idea: create a boot-loader for an 'after market' operating system which requires restructuring one's hard-drive, possibly wiping out years of work.

Well I took the risk. And true to its prophecy, booting failed.

Grub2Config to the rescue.

Booted Puppy on a USB-Stick which had grub2config installed. https://www.forum.puppylinux.com/viewto ... 703#p29703. Ran it, selecting sda as the partition for its installation. Rebooted. Its boot menu offered all my puppies, Windows and Linux Mint. All could be booted into. :thumbup: :D

Last edited by mikeslr on Sun Apr 02, 2023 11:53 pm, edited 1 time in total.
User avatar
wizard
Posts: 1984
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2648 times
Been thanked: 692 times

Re: grub2config Rescues Linux Mint (maybe others)

Post by wizard »

2 Gb hard-drive mostly wasted on Windows 7.

Pretty good trick :lol:

wizard

Big pile of OLD computers

williwaw
Posts: 1948
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 172 times
Been thanked: 369 times

Re: grub2config Rescues Linux Mint (maybe others)

Post by williwaw »

mikeslr wrote: Sun Apr 02, 2023 6:49 pm

Grub2Config to the rescue...........
Its boot menu offered all my puppies, Windows and Linux Mint. All could be booted into. :thumbup: :D

Thanos is testing his grub2 search function
viewtopic.php?p=85864#p85864

grub2config is a grub2 implementation also? would you be willing to try what his stanza can do? not necessarily with easy but try out the search and probe capibility?

edit
I can report Thanos stanza works with grub2config 2.01 it searched for a specific frugal install of easy, located on a different device, by directory name .

Code: Select all

menuentry "Auto Find and Boot EasyOS" {
    ver=520
    search -f /easyos$ver/vmlinuz -s root
    probe  -u ($root) -s uuid
    linux  ($root)/easyos$ver/vmlinuz rw wkg_uuid=$uuid  wkg_dir=easyos$ver
    initrd ($root)/easyos$ver/initrd
}
User avatar
mikeslr
Posts: 2963
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 917 times

Re: grub2config Rescues Linux Mint (maybe others)

Post by mikeslr »

wizard wrote: Sun Apr 02, 2023 7:51 pm

2 Gb hard-drive mostly wasted on Windows 7.

Pretty good trick :lol:

wizard

:oops: That why secretaries and copy-editors exist. Edited OP. :lol:

Post Reply

Return to “Other Distros”