How to choose boot partition without a bootloader?
Moderator: Forum moderators
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
How to choose boot partition without a bootloader?
On old hardware I would just run Grub4DOS Bootloader Config and be done with it.
If I have two Puppy partitions and one Ubuntu partition, how do I get off Ubuntu at boot, from Ubuntu?
I see an app called "grub-pc" on Ubuntu/Mint, but it doesn't run. Maybe not an app?
I flagged a Puppy partition "boot" in GParted, but it's still booting Ubuntu.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
Re: How to choose boot partition without a bootloader?
Look for menu.lst on your partition(s) .
How looks your menu.lst. Please post it .
..........maybe just edit menu.lst manually (with any Texteditor) from ubuntu .....to change boot sequence in menu.lst.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
@backi I am not. Grub4DOS or equivalent is the goal.
I only have whatever is available in Ubuntu at the moment.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
# This Menu created with Universal USB Installer https://www.pendrivelinux.com
default 0
timeout 0
color NORMAL HIGHLIGHT HELPTEXT HEADING
foreground=FFFFFF
background=000000
title Boot swdl
set ISO=/uui/xenialpup64-7.5-uefi.iso
find --set-root %ISO%
parttype (hd0,3) | set check=
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (hd0,3) 0 0 0
if NOT "%check%"=="0x00" echo ERROR: Fourth partion table is not empty, please delete it if you wish to use this method && pause --wait=5 && configfile /boot/grub/menu.lst
partnew (hd0,3) 0x00 %ISO%
map %ISO% (0xff)
map --hook
root (0xff)
chainloader (0xff)
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: How to choose boot partition without a bootloader?
There must be a file like grub.cfg (or similar) probably in a directory named boot.
You'll need to edit this file adding the boot menu entries for Puppy and setting up another default.
Probably a timeout by 10 seconds will give you option to choose which OS to boot.
I'm not sure, though I think installing Grub4DOS will find all OS's that are being installed, if you let Grub4DOS search on all partitions/drives.
Though, please wait before installing Grub4DOS, as there might be an expert step in to proof me wrong or even true.
Edit:
I just saw this /boot/grub/menu.lst in your post above. So, I think you'll need to edit this menu.lst file.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
Re: How to choose boot partition without a bootloader?
On startup, the BIOS looks for a disk flagged as a boot disk and hands control over to it's MBR. The MBR looks for the partition with the bootloader (Grub4Dos, Grub2, Syslinux, etc) to which it hands control of the boot process. The bootloader config file then presents a menu that points to the disks, partitions, and directories containing OS's to boot.
The disk containing the OS's doesn't necessarily need a boot flag, an mbr, or a bootloader. Only the boot disk needs these things.
It is not unusual for me to arrange several OS's on a regular (non-boot) disk, and configure a USB flash drive as the boot disk that accesses them.
There are advanced, interesting and exotic combinations of this that chainload other configfiles, bootloaders, and configurations that are most certainly not basic topics. Learn to walk before learning to Tango ..
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
Grub4DOS indeed finds all OS's on a drive.
I don't see it in Ubuntu.
I'm not advanced enough yet to know how to add boot partitions into a configuration file manually.
This is an aside:
Even when a system is functional, I'm finding poles of ueber-technical and neophyte functionality and interface. I accidentally installed Bionic Ubuntu MATE. Briefly: this MATE is nice and better than the Mint version, but MATE still leans neophyte. Puppy/JWM is technical but it really works.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
The .iso burner mounted the Ubuntu partition in the /cdrom folder, but both Puppy partitions are mounted in /media.
I want to boot Puppy.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
root@ubuntu-mate:/boot/grub# ls
gfxblacklist.txt grubenv unicode.pf2
root@ubuntu-mate:/boot/grub#
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
Re: How to choose boot partition without a bootloader?
Using what I posted above as a guide, list where each of those key items is arranged on your disk.
Where is the boot flag?
Where is the Bootloader?
Where are the OS's
We need to understand how the DISK is configured before we can help. Boot a puppy distro in ram mode (in memory) and use it to study the disk in question.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
/dev/sdc1 XenialPup64Jafadmin wrote: ↑Mon Oct 19, 2020 4:39 pm Using what I posted above as a guide, list where each of those key items is arranged on your disk.
Where is the boot flag?
Where is the Bootloader?
Where are the OS's
We need to understand how the DISK is configured before we can help. Boot a puppy distro in ram mode (in memory) and use it to study the disk in question.
/dev/sdc2 XFCExenialPup
/dev/sdc3 Ubuntu MATE Bionic
The boot flag is on sdc1 where I manually placed it. sdc3 boots.
How do I determine the bootloader?
Each modern distro seems to come with a bootloader for itself, eg, save or no save file, but it's not home to all three partitions' os's.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
Re: How to choose boot partition without a bootloader?
It has been many years since I used a wizard to create a working boot disk.
Ordinarily I would install MBR & bootloader to the 1st partition on the disk, then use that bootloader's menu to boot OS's on the other partitions:
Code: Select all
sda 8:32 1 7.5G 0 disk <- MBR on root device
├─sda1 8:33 1 2G 0 part <- Bootloader & First OS
├─sda2 8:34 1 2.7G 0 part <- Second OS
└─sda3 8:35 1 2.8G 0 part <- Third OS
Use the bootloader menu on sda1 (menu.lst, grub.cfg, syslinux.cfg etc..) to
configure booting for all partitions on this disk.
If I find a situation that is too messy, I will usually make a fat32 boot thumb with G4D or efi/grub and use that to try and boot the problem OS's on the HDD partitions. That way I can solve without altering the HDD.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
Your approach might work. Just install Grub4DOS from another booted disk.root@ubuntu-mate:/boot/grub# grub-install /dev/sdc1
Installing for i386-pc platform.
grub-install: error: failed to get canonical path of `/cow'.
root@ubuntu-mate:/boot/grub#
I'm wary about this mixing 32/64 bit but maybe it doesn't matter.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
Re: How to choose boot partition without a bootloader?
Recognize that the original problem stems from the misconception that all bootloader installers are aware of all other boot configurations and will "just make it work right". None will do that. They all rely on the user having a clear and accurate understanding of the existing disk geometry, the existing boot configuration, and how bootloaders work.
Another common misconception is that changing the boot flag will automatically change the boot partition.
Re: How to choose boot partition without a bootloader?
Seems he is an absolute beginner....so we need to be more considerate .
Best in (my humble opinion) would be to install the boot loader with Grub4dosconfig......would be easier to help .because more common.(and the only one i am used to ) .....
but i don`t want to create even more confusion.
- puddlemoon
- Posts: 189
- Joined: Sun Sep 06, 2020 9:26 pm
- Location: In between
- Has thanked: 89 times
- Been thanked: 64 times
Re: How to choose boot partition without a bootloader?
@JASpup the simplest solution for you will be to install gru4dos on sdc (the disk with the boot flag) from another puppy live boot. Then you could refine your setup from there once you understand it better. it's really no risk.
grub4dos is (imo) the easiest to work with and very good at finding your other os's and making a menu for you.
It's the Yin you need...
Re: How to choose boot partition without a bootloader?
I'm trying to walk him out of the problem without creating more irreversible changes. That said, If he was certain he wanted to make the sacrifice, then yes, I'd just install G4D on /dev/sdc and select the puppy partition for the bootloader. Easy peasy.backi wrote: ↑Mon Oct 19, 2020 6:16 pm Hi jafadmin !
Seems he is an absolute beginner....so we need to be more considerate .
Best in (my humble opinion) would be to install the boot loader with Grub4dosconfig......would be easier to help .because more common.(and the only one i am used to ) .....
but i don`t want to create even more confusion.
But that will irreversibly blow away all previous boot configurations.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
Not only are there two more distros, that's not the third.
When it comes to multibooting, Puppy and Ubuntu don't mix? 64bit vs 32?
I went GRUB with partitions from multibooting because I thought it was more reliable.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
Re: How to choose boot partition without a bootloader?
(where 86b30d85-22d9-43e2-b000-51e6ecb1afd5 is the UUID of a Mint 17.2 partition)
Code: Select all
title Mint 17.2
MINT_UUID=86b30d85-22d9-43e2-b000-51e6ecb1afd5
find --set-root uuid () $MINT_UUID
kernel /boot/vmlinuz root=UUID=$MINT_UUID ro quiet splash
initrd /boot/initrd.img
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
1) Process is transferable to Puppy partitions with no modifications? (eg, Puppy has no casper)
2) UUID is required and comes from a command or SysInfo report?
3) The app cares about listing order. Does the configuration file?
4) There is a lot more to the file, and also another menu.lst in the Puppy partition's /boot/grub directory. What else could I miss?
The beginning of the new menu.lst:
Code: Select all
# menu.lst produced by grub4dosconfig-v1.9.2
color blue/cyan yellow/blue white/black cyan/black
#splashimage=/splash.xpm
timeout 10
default 0
# Frugal installed Puppy
title Bionic Ubuntu MATE(sdc3/casper)
find --set-root --ignore-floppies --ignore-cd /casper/initrd
kernel /casper/vmlinuz psubdir=casper pmedia=usbflash pfix=fsck
initrd /casper/initrd
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
@backi pardon me, before I was on the Ubuntu partition. Here is menu.lst from the XenialPup64 partition:
Code: Select all
# This Menu created with Universal USB Installer https://www.pendrivelinux.com
default 0
timeout 0
color NORMAL HIGHLIGHT HELPTEXT HEADING
foreground=FFFFFF
background=000000
title Boot swdl
set ISO=/uui/xenialpup64-7.5-uefi.iso
find --set-root %ISO%
parttype (hd0,3) | set check=
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (hd0,3) 0 0 0
if NOT "%check%"=="0x00" echo ERROR: Fourth partion table is not empty, please delete it if you wish to use this method && pause --wait=5 && configfile /boot/grub/menu.lst
partnew (hd0,3) 0x00 %ISO%
map %ISO% (0xff)
map --hook
root (0xff)
chainloader (0xff)
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
Thanks for the pointers.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
I found a promising tool called grub-customizer:
https://tipsonubuntu.com/2018/03/11/ins ... 18-04-lts/
It installs but won't run due to a technical error with a high Hackfactor fix.
https://askubuntu.com/questions/254491/ ... ath-of-cow
I got bogged down so am looking for a new route; instead of learning how to boot my extant setup I'm starting over from scratch, looking for a common setup to live dualboot Puppy and Ubuntu.
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- JASpup
- Posts: 1653
- Joined: Sun Oct 04, 2020 10:52 am
- Location: U.S.A.
- Has thanked: 70 times
- Been thanked: 89 times
Re: How to choose boot partition without a bootloader?
error: invalid EFI file path
( example: https://ubuntuforums.org/showthread.php?t=2059479 )
error: not an assignment
( example: https://www.linuxquestions.org/question ... nt-751076/ )
Code: Select all
menuentry "Puppy64 Xenial" {
set root = (hd0, /dev/sdc1)
chainloader +1
}
On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: How to choose boot partition without a bootloader?
Is UEFI/EFI boot activated in BIOS?error: invalid EFI file path
Trying to deactivate it does what?
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!