Install Puppy on Ubuntu Linux

Moderator: Forum moderators

Post Reply
User avatar
shinobar
Posts: 83
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 9 times
Been thanked: 67 times
Contact:

Install Puppy on Ubuntu Linux

Post by shinobar »

Best solution is Grub2config. https://forum.puppylinux.com/viewtopic.php?f=155&t=3360

If you install Ubuntu Linux or the derivatives and want to install Puppy on the Ubuntu partition, only the solution is Grub2config.
The Grub4Dos does not support recent linux'es ext4 partition with 64bit option. You need Grub2. The FrugalPup uses Grub2, but it does not make dual boot with Ubuntu Linux.

if your PC uses UEFI and you can boot Live Puppy by CD or USB, need not rest of this article.

Only one case the Grub2config does not support: EDIT(2024-09-16) grub2config-2.1 supports this case.
If you clean install Ubuntu Linux on a legacy BIOS PC, the partition sda1 is ext4 formatted, does not support Grub2config nor FrugalPup.
In this case, you can install Puppy manually or using the Universal installer on a live Puppy.
And then make a text file /boot/grub/custom.cfg describes menu entry shown in the next post.
The file /boot/grub/custom.cfg persists as is even the grub updated.

Here I made a script runs on Ubuntu Linux doing this automatically. Next steps on the Ubuntu:

  1. Download any of Puppy Linux .iso file. Maybe at '/home/USERNAME/Downloads'.
  2. At the same place of the .iso file, download pupisoinstall .zip.
  3. Extract the .zip there.
  4. Run the extracted pupisoinstall on a terminal.

Download pupisoinstall-0.4.zip (2024-07-17: updated)

Last edited by shinobar on Mon Sep 16, 2024 6:01 am, edited 10 times in total.
User avatar
shinobar
Posts: 83
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 9 times
Been thanked: 67 times
Contact:

Boot up Puppy on Ubuntu Linux

Post by shinobar »

if you like to manually make /boot/grub/custom.cfg like this:

Code: Select all

set timeout_style=menu
set timeout=10
menuentry 'Puppy Linux' {
	set subdir=puppy
	search --no-floppy  --file --set=root /$subdir/vmlinuz
	linux /$subdir/vmlinuz psubdir=$subdir pmedia=atahd pfix=fsck
	initrd /$subdir/initrd.gz
}

Where the Puppy is installed in a folder /puppy.

On Ubuntu, make a text file custom.cfg contains above at the users home directory. Then laiunch a virtual terminal and type:

Code: Select all

sudo cp custom.cfg /boot/grub

New entry will be shown at the last on the boot menu.

puppybootmenu.png
puppybootmenu.png (4.75 KiB) Viewed 3275 times
Last edited by shinobar on Tue Sep 07, 2021 4:30 pm, edited 1 time in total.
User avatar
shinobar
Posts: 83
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 9 times
Been thanked: 67 times
Contact:

Install Ubuntu Linux for multiboot

Post by shinobar »

If you want to clean install Ubuntu Linux and/or derivatives co-operative with Puppy Linux on legacy BIOS PC, read this article.
If your PC uses UEFI, need not this article. See the top article of this topic.

Make the first partition sda1 to be 512MB sized fat32 formatted and flagged 'boot'. Make the 2nd partition sda2 ext4 formatted and install Ubuntu on sda2 (mount point '/').

Ubuntu installer shows the disk status. You can see 'BIOS' and 'MBR' at the top line. Then select 'Manual Partitioning.
If it shows 'UEFI' and 'GPT', Select 'Erase Disk' so that the installer erases all partitions and automatically makes partitions on the disk.

ubuntuinst1.png
ubuntuinst1.png (22.99 KiB) Viewed 3170 times

Erase all partitions.
Create 521 size fat32 partition, boot flag.
create the rest ext4 parttion, mount point '/'.

ubuntuinst9.png
ubuntuinst9.png (14.23 KiB) Viewed 3170 times

In this partition layout, you can use Grub2config.

User avatar
shinobar
Posts: 83
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 9 times
Been thanked: 67 times
Contact:

Updated: Pupisoinstall-0.4

Post by shinobar »

pupisoinstall-0.4
Frugal install Puppy on Ubuntu Linux
Download: http://shinobar.server-on.net/puppy/opt ... ll-0.4.zip

Do next steps on the Ubuntu:
1. Download any of Puppy Linux .iso file, maybe at '/home/USERNAME/Downloads'.
2. At the same place of the .iso file, download pupisoinstall-0.4.zip.
3. Extract the .zip there.
4. Run the extracted pupisoinstall.bin on a terminal.

tryPuppy
Posts: 12
Joined: Tue Jul 23, 2024 3:24 pm
Has thanked: 4 times

Re: Install Puppy on Ubuntu Linux

Post by tryPuppy »

Just wanted to say, ** THANK YOU VERY VERY MUCH!!! ** :thumbup:

I have a Dual boot sys, Xubuntu/Win 7, & 1st (Xu ) part is Ext4
[for many years used Ext3, 4 limits options & compatibility on many things]
Didn't want it on /Home, (defeats purpose of 2nd OS that can work on other OS) but was able to modify script some to work on another partition.
(been trying to boot ISOs from GRUB boot menu, all kinds of problems! 1 of which, GRUB won't boot any linux from anything except hd0)

I am curious though, formats seem very very similar---can the "custom.cfg" (/boot/grub/) be combined with
" /etc/grub.d/40_custom" where other GRUB boot entries can be added?

is there a way to make the puppy boot from ISO, or does it have to be "installed" 1st?
I've never seen *SO MANY* "distros" /versions of linux in 1 place! LOL!

TerryH
Posts: 615
Joined: Mon Jun 15, 2020 2:08 am
Has thanked: 151 times
Been thanked: 151 times

Re: Install Puppy on Ubuntu Linux

Post by TerryH »

tryPuppy wrote: Tue Jul 23, 2024 10:39 pm

I am curious though, formats seem very very similar---can the "custom.cfg" (/boot/grub/) be combined with
" /etc/grub.d/40_custom" where other GRUB boot entries can be added?

They basically do the same thing in adding boot stanzas to the boot screen. They achieve it in different ways. The 40_custom file is added to the the grub.cfg only by running update-grub / update-grub2, it is not used otherwise. The custom.cfg, if it contains boot stanzas is added to the bottom of the boot screen at time of boot, it does not require the update-grub to be run. so grub2 is configured to use custom.cfg, but not 40_custom directly.

Last edited by TerryH on Wed Jul 24, 2024 12:01 am, edited 1 time in total.

New Laptop - ASUS ZenBook Ryzen 7 5800H Vega 7 iGPU / 16 GB RAM

williwaw
Posts: 1863
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 165 times
Been thanked: 340 times

Re: Install Puppy on Ubuntu Linux

Post by williwaw »

tryPuppy wrote: Tue Jul 23, 2024 10:39 pm

is there a way to make the puppy boot from ISO, or does it have to be "installed" 1st?

viewtopic.php?p=93661#p93661

tryPuppy
Posts: 12
Joined: Tue Jul 23, 2024 3:24 pm
Has thanked: 4 times

Re: Install Puppy on Ubuntu Linux

Post by tryPuppy »

TerryH wrote: Tue Jul 23, 2024 11:13 pm
tryPuppy wrote: Tue Jul 23, 2024 10:39 pm

I am curious though, formats seem very very similar---can the "custom.cfg" (/boot/grub/) be combined with
" /etc/grub.d/40_custom" where other GRUB boot entries can be added?

They basically do the same thing in adding boot stanzas to the boot screen. They achieve it in different ways. The 40_custom file is added to the the grub.cfg only by running update-grub / update-grub2, it is not used otherwise. The custom.cfg, if it contains boot stanzas is added to the bottom of the boot screen at time of boot, it does not require the update-grub to be run. so grub2 is configured to use custom.cfg, but not 40_custom directly.

Thanks for the info.
Seems im finding, KISS (Keep It Simple Stupid) better to stick to using 1 file instead of 2
"grub-update" runs quick, small price to pay. (not that BOTH files need SUDO permission.
Little things like this are part of what makes GRUB2 confusing for many. (still learning it myself)

Post Reply

Return to “Boot”