UEFI/Grub USB boot disk image - Boot-o-Rama

Moderator: Forum moderators

Post Reply
User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Jafadmin »

I have made a compressed 8gb usb bootdisk image. It will boot on either Legacy BIOS or UEFI. It contains NO operating systems. It just boots to a grub menu.

Your mission, should you decide to accept, is to extract the boot image onto an 8gb USB stick and test if it boots to a grub menu. If it does, create Puppy directories on partition 2, make entries for the puppies in /boot/grub/grub.cfg on partition2, and have a dang blast driving puppy instead of trying to figure out how to get it started. Let's dig in ..

1) Download the 12meg "uefi-grub_boot_8gb.img.gz" from Ufile.io: https://ufile.io/eseoklyf .. OR: download the 6meg "uefi-grub_boot_2gb.img.gz" version and resize partition2 https://ufile.io/fpyoei7m
2) Extract the compressed disk image to a USB stick by running the following command from the folder that has the gz image. It will overwrite the USB stick

Code: Select all

gzip -d -c uefi-grub_boot_8gb.img.gz | dd bs=512 of=/dev/sdX

(Where sdX is the drive descriptor of the USB stick).

3) Add Puppy OS's (one OS to a directory) by dropping the .sfs files, vmlinuz, and initrd.gz files from their ISO into their respective directories on partition 2.
4) Edit partition2's '/boot/grub/grub.cfg' and mimic the entries you see there, for each of your desired OS's.
5) Get out there and boot some doggone machines! :thumbup:

Last edited by Jafadmin on Wed Apr 28, 2021 4:43 pm, edited 15 times in total.
User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: UEFI/Grub boot disk image - Boot-o-Rama

Post by Jafadmin »

The image extracts 7.4 gb onto an 8gb stick (not all 8gb sticks are really 8gb :o ). You can extract it onto a larger stick, of course, then just resize partition2 with Gparted to fill the stick.

williwaw
Posts: 1937
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 170 times
Been thanked: 368 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by williwaw »

Step 2 requires patience. 37+ minutes, but so far it looks good. (added status=progress arguement to create feedback with dd.)

0 /mnt/sda3 # gzip -d -c uefi-grub_boot_8gb.img.gz | dd bs=512 of=/dev/sdc status=progress
7737053696 bytes (7.7 GB, 7.2 GiB) copied, 2232 s, 3.5 MB/s
15114240+0 records in
15114240+0 records out
7738490880 bytes (7.7 GB, 7.2 GiB) copied, 2235.61 s, 3.5 MB/s
0 /mnt/sda3 #

User avatar
GMBudwrench
Posts: 98
Joined: Tue Feb 23, 2021 3:19 am
Has thanked: 14 times
Been thanked: 22 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by GMBudwrench »

I used a windows image program to flash to my 16gb drive. Went off without a hitch. It booted up to the grub screen, as you posted. Now if I had some pointers on how/where to drop my files, I’d be happy. My first couple of tries didn’t work. I’m a nooby with these grub configurations. I had a working instance years ago but I don’t remember how I did it. So any help would be appreciated. Thx

Oh, Fossapup64-9.5 is my setup atm

HP G71 Wins10 64 bit, 2.2ghz 320gb hdd, Bionicpup64 on a WD 500gb portable HDD.

User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Jafadmin »

williwaw wrote: Wed Apr 28, 2021 2:52 am

Step 2 requires patience. 37+ minutes, but so far it looks good. (added status=progress arguement to create feedback with dd.)

0 /mnt/sda3 # gzip -d -c uefi-grub_boot_8gb.img.gz | dd bs=512 of=/dev/sdc status=progress
7737053696 bytes (7.7 GB, 7.2 GiB) copied, 2232 s, 3.5 MB/s
15114240+0 records in
15114240+0 records out
7738490880 bytes (7.7 GB, 7.2 GiB) copied, 2235.61 s, 3.5 MB/s
0 /mnt/sda3 #

Yep. 3.5 MB/s is pretty slow. As with everything, speed is hardware dependent. My i5 machine averages 6 MB/s to USB 2.

In retrospect I guess I could have made it as a 2gb disk image and the user could resize it with gparted after it is created :geek:

Maybe I will later .. :ugeek: ... Ok, done! See the first post!

Thank you @williwaw

Last edited by Jafadmin on Wed Apr 28, 2021 4:42 pm, edited 3 times in total.
User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Jafadmin »

GMBudwrench wrote: Wed Apr 28, 2021 10:01 am

I used a windows image program to flash to my 16gb drive. Went off without a hitch. It booted up to the grub screen, as you posted. Now if I had some pointers on how/where to drop my files, I’d be happy. My first couple of tries didn’t work. I’m a nooby with these grub configurations. I had a working instance years ago but I don’t remember how I did it. So any help would be appreciated. Thx

Oh, Fossapup64-9.5 is my setup atm

I have no idea what your first sentence means. What windows program did you use to flash what to your drive?

williwaw
Posts: 1937
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 170 times
Been thanked: 368 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by williwaw »

Jafadmin wrote: Wed Apr 28, 2021 3:12 pm

Yep. 3.5 MB/s is pretty slow. As with everything, speed is hardware dependent. My i5 machine averages 6 MB/s to USB 2.

In retrospect I guess I could have made it as a 2gb disk image and the user could resize it with gparted after it is created :geek:

Maybe I will later .. :ugeek: ... Ok, done! See the first post!

Thank you @williwaw

The slow write speed in this case is most likely attributable to the cheapo thumb drive I used. It's going in the trash and I am downloading Fatdog to install on a new drive, on which I will also try out your
uefi-grub_boot_2gb.img.gz.

Is your application intended for use by the "first time" linux user? Someone with no linux tools available?

Last edited by williwaw on Wed Apr 28, 2021 7:05 pm, edited 1 time in total.
User avatar
GMBudwrench
Posts: 98
Joined: Tue Feb 23, 2021 3:19 am
Has thanked: 14 times
Been thanked: 22 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by GMBudwrench »

I used this: https://www.alexpage.de/usb-image-tool/, posted by BK as another means of writing it to a flash drive. It works, I can boot to the grub screen, I need instructions on how to configure puppy to boot. I see the selection screen for fossa init, fossa iso and Linux mint. Where do I copy the files and configure the grub file to find them?

HP G71 Wins10 64 bit, 2.2ghz 320gb hdd, Bionicpup64 on a WD 500gb portable HDD.

User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Jafadmin »

williwaw wrote: Wed Apr 28, 2021 6:39 pm
Jafadmin wrote: Wed Apr 28, 2021 3:12 pm

Yep. 3.5 MB/s is pretty slow. As with everything, speed is hardware dependent. My i5 machine averages 6 MB/s to USB 2.

In retrospect I guess I could have made it as a 2gb disk image and the user could resize it with gparted after it is created :geek:

Maybe I will later .. :ugeek: ... Ok, done! See the first post!

Thank you @williwaw

The slow write speed in this case is most likely attributable to the cheapo thumb drive I used. It's going in the trash and I am downloading Fatdog to install on a new drive, on which I will also try out your
uefi-grub_boot_2gb.img.gz.

Is your application intended for use by the "first time" linux user? Someone with no linux tools available?

Well, it relies on 'gzip' & 'dd', so you can't run it from windows. But if they boot a puppy cd or iso, they could do it by following the directions.

User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Jafadmin »

GMBudwrench wrote: Wed Apr 28, 2021 6:51 pm

I used this: https://www.alexpage.de/usb-image-tool/, posted by BK as another means of writing it to a flash drive. It works, I can boot to the grub screen, I need instructions on how to configure puppy to boot. I see the selection screen for fossa init, fossa iso and Linux mint. Where do I copy the files and configure the grub file to find them?

The disk has 2 partitions. Partition1 is the 'front' fat32 partition, and partition 2 is 'back' ext2 partition. Make a directory on partition2 for the puppy you wish to boot, then edit the '/boot/grub/grub.cfg' and copy+paste the methods shown to boot your puppy. You will need a linux version to see and edit things on partition2.

This boot disk image I posted is NOT intended as task that can be undertaken from Windows. It is intended for linux users who wish to quickly make a Legacy BIOS/UEFI boot USB stick.

williwaw
Posts: 1937
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 170 times
Been thanked: 368 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by williwaw »

1. uefi-grub_boot_2gb.img.gz written to new stick at 5.6 MB/sec.

Code: Select all

gzip -d -c uefi-grub_boot_2gb.img.gz | dd bs=512 of=/dev/sdc status=progress

2. used Gparted to resize sdc2

3. created a new directory "fatdog" on sdc2 and mounted (opened) my iso and copied over the initrd and vmlimz to it. I found a stanza in the fatdog's iso grub.cfg to add to /boot/grub/grub.cfg (I needed to edit it as shown to reflect the new location of the copied initrd and vmlinz into the fatdog directory.)

It boots just fine.

Screenshot.png
Screenshot.png (169.02 KiB) Viewed 863 times
Last edited by williwaw on Thu Apr 29, 2021 4:49 am, edited 1 time in total.
User avatar
GMBudwrench
Posts: 98
Joined: Tue Feb 23, 2021 3:19 am
Has thanked: 14 times
Been thanked: 22 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by GMBudwrench »

Got it to work. I used windows to only write the image to my flashdrive. That’s it. I was looking at your code in the grub files with fossapup. I have a wonky flashdrive and have had issues trying to write EasyOs to it using dd. I used the windows program because that’s what works for me. Anyway, good work on this. Will try it out more this weekend when I have time.

HP G71 Wins10 64 bit, 2.2ghz 320gb hdd, Bionicpup64 on a WD 500gb portable HDD.

User avatar
festus
Posts: 11
Joined: Mon Jul 13, 2020 12:04 pm
Has thanked: 1 time
Been thanked: 4 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by festus »

@ Jafadmin

Thanks for sharing this much needed boot image, that works just as you explained.

User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Jafadmin »

Thanks all you guys, very much, for the testing and feedback. You rock! :thumbup:

User avatar
wiak
Posts: 4079
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1206 times
Contact:

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by wiak »

Works for me. I like this way of doing it - very straightforward.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
Grey
Posts: 2023
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 376 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Grey »

Interesting. But I find it easier to install grub2 from PPM. Insert a flash drive or disk. And then give two commands in terminal:

Code: Select all

mount /dev/sdXY /mnt
grub-install --boot-directory=/mnt/boot /dev/sdX

And then copy vmlinuz, initrd, all sfs. You can cram a bunch of distros.

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: UEFI/Grub USB boot disk image - Boot-o-Rama

Post by Jafadmin »

Grey wrote: Sat May 01, 2021 4:04 pm

Interesting. But I find it easier to install grub2 from PPM. Insert a flash drive or disk. And then give two commands in terminal:

Code: Select all

mount /dev/sdXY /mnt
grub-install --boot-directory=/mnt/boot /dev/sdX

And then copy vmlinuz, initrd, all sfs. You can cram a bunch of distros.

True, but then it won't boot on uefi boxes. The whole point of the images I made is that they will boot on both UEFI machines and Legacy BIOS machines.

Post Reply

Return to “Boot”