Another way of distributing Puppy?

Under development: PCMCIA, wireless, etc.
Message
Author
gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#31 Post by gyro »

I've uploaded a new zip file, http://www.fishprogs.software/puppy/zip ... .05+13.zip.
It contains all that is needed to setup a bootable usb stick.

Windows process for uefi boot:

1. Download http://www.fishprogs.software/puppy/zip ... .05+13.zip (259 MiB).

2. Format usb stick, with "Volume label" of "USBPBOOT".

3. Unpack the zip file, in this case "upupbb-18.05+13.zip", into the empty usb stick.
Windows: Right click on the zip file, and select "Extract All...", and in the ensuing dialog select the empty root folder of the usb stick.
Puppy: Right click on the zip file, and select "XArchive archiver, "Select All", "Extract", then "choose" the empty root folder of the usb stick.

4. Boot the usb stick.

To enable a mbr/legacy boot, there is an extra step:

Windows: Execute "utils\win\grubinst_gui.exe" within the usb stick.
Puppy: Execute "utils/lin/grubinst_gui.sh" within the usb stick.

Note: I intend to delete all previous files uploaded in this project, soon.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#32 Post by gyro »

In case there is someone interested in how this latest zip file works, but is daunted by a 259MiB download,
I have uploaded "puppy_usb_stick.zip" (1 MiB) to http://www.mediafire.com/folder/7y3c7eafptzao/zipboot.
This zip file contains everything execpt the actual Puppy files. i.e. the "puppy/" directory is empty.
So the process will work as per the instructions of the previous post, execpt that when you come to boot the usb stick, the bootloader will not be able to find the kernel because the "vmlinuz" file does not exist.

You could make it work, by copying "vmlinuz", "initrd.gz" and all the ".sfs" files from some existing woof-ce based frugal install into the "puppy/" directory on the usb stick.

gyro
Last edited by gyro on Wed 24 Apr 2019, 14:05, edited 1 time in total.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#33 Post by gyro »

A new version of "puppy_usb_stick.zip" has been uploaded to http://www.mediafire.com/folder/7y3c7eafptzao/zipboot.
Please see previous post for details about this file.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#34 Post by gyro »

All remaining files for this project are now available at http://www.mediafire.com/folder/7y3c7eafptzao/zipboot.

The script 'iso2zip' is stored as 'iso2zip.zip' so that it's execute attribute is maintained. After downloading, you will need to 'unzip' it to reproduce the script.

gyro

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#35 Post by musher0 »

Many thanks, gyro.

I'll try your script for bundling a thumbdrive-ready package when my Puduan-7 is ready.

Best.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#36 Post by gyro »

musher0 wrote:I'll try your script for bundling a thumbdrive-ready package when my Puduan-7 is ready.
Great.
Just remember that if unzipping directly to a usb stick, the usb stick must have a volume label of "USBPBOOT" (without the quotes).

And when you do, I'll try installing your Puduan-7 '.zip' file.

gyro

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#37 Post by musher0 »

gyro wrote:
musher0 wrote:I'll try your script for bundling a thumbdrive-ready package when my Puduan-7 is ready.
Great.
Just remember that if unzipping directly to a usb stick, the usb stick must have a volume label of "USBPBOOT" (without the quotes).

And when you do, I'll try installing your Puduan-7 '.zip' file.

gyro
:)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#38 Post by gyro »

musher0 wrote::)
I appreciate you trying the script, but I just thought of a couple of issues.

1. For the script to work, you also need to download 'puppy_usb_stick.zip' from http://www.mediafire.com/folder/7y3c7eafptzao/zipboot and store it in the same directory as the script, (no need to unzip this file, the 'iso2zip' script uses it as a '.zip').

2. The boot entry in the generated 'menu.lst'/'grub.cfg' is generic, and not customised for the particular Puppy stored in the output '.zip'. (I am working on this.)

Yes, the script should work, but I think I should include a "complete package" in the 'iso2zip.zip', not just the script.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#39 Post by gyro »

For now, I've uploaded a new version of 'iso2zip.zip' to http://www.mediafire.com/folder/7y3c7eafptzao/zipboot.
It still contains only the script, so you still need 'puppy_usb_stick.zip' as well.

This version customises the sub-directory and title of the boot entry to reflect the Puppy that the '.zip' contains.
This makes it a better template for adding more Puppies to the usb stick.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#40 Post by gyro »

i've uploaded a new version of 'bionicpup32-8.0+3-uefi.zip' to http://www.mediafire.com/folder/7y3c7eafptzao/zipboot, generated with the new 'iso2zip' script.

Since it's only a matter of a nicer boot entry, there's not much value in downloading it again if you have already done so.

gyro

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#41 Post by musher0 »

HI gyro.

I need this:
ftp://ftp.gnu.org/gnu/mtools/mtools_4.0.23_i386.deb
i.e. the mlabel utility in the mtools package, from the GNU site,
to relabel my thumbdrive,
because my GParted can't do it.
The menu entry for labelig is greyed out.

IHTH potential users of your script.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#42 Post by musher0 »

Hi, gyro.

I got this message:
0: PMEDIA=usbflash PDRV=USBPBOOT PSUBDIR=/puppy pfix=fsck,fsckp
1: PDRV= P_BP_ID=USBPBOOT P_BP_FN=
[WAIT4USB] TIMEOUT=4

fdisk: can't open '/dev/sdd': No medium found
fdisk: can't open '/dev/sde': No medium found
fdisk: can't open '/dev/sdf': No medium found
fdisk: can't open '/dev/sdg': No medium found
cat: can't open '/sys/block/pdr/queue/rotational': No such file or directory
mount: can't read '/etc/fstab': No such file or directory
cat: can't open '/sys/block/pdr/queue/rotational': No such file or directory
mount: can't read '/etc/fstab': No such file or directory
sdi1 on /mnt/pdrv as mount failed.
2: ONE_PART=sdi1 ONE_FN= ONE_MP=
6: ONE_PART=sdi1 ONE_TRY_FN= PDRV=
Two files appear to be missing.
I have no idea what this "rotational" file is about.

As to the fstab, the puppy_puduan_7.0.0a2-2.sfs contains the usual Puppy fstab file,
very basic, almost empty:
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0
I have also included a pupsave file in the puppy directory, and that psave has a fully
populated fstab. ( Please see attached. ) However it does not have the entry for
the thumbdrive yet in it.

Please advise as to what I should do next.

TIA.
Attachments
fstab.zip
(459 Bytes) Downloaded 250 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#43 Post by gyro »

musher0 wrote:I need this:
ftp://ftp.gnu.org/gnu/mtools/mtools_4.0.23_i386.deb
i.e. the mlabel utility in the mtools package, from the GNU site,
to relabel my thumbdrive,
because my GParted can't do it.
The menu entry for labelig is greyed out.
Should not need that.
Should be a utility called 'fatlabel' which will write a label to a fat32 partition.

Code: Select all

fatlabel /dev/sdc1 USBPBOOT
Otherwise in 'gparted' delete the partition, and make a new fat32 one, this should provide an option to specify the label.
gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#44 Post by gyro »

musher0 wrote:I got this message:
You can ignore most of these messages, something is going wrong right at the start, 'init' did not find your install directory.
The "0:" and "1:" lines look reasonable, but the "2:" and "6:" lines have a lot of missing data that should not be missing.

My guess is that 'init' could not decode the label "USBPBOOT" into a valid partition name.

Is the volume label of the partition that contains your Puppy files "USBPBOOT", (all upper case and without the quotes)?

Are the Puppy files stored on that partition in a sub-directory called "/puppy" (all lower case, without the quotes)?

gyro

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#45 Post by musher0 »

yes to both questions.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#46 Post by gyro »

@musher0,
And it's a fat32 partition?
gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#47 Post by gyro »

musher0,
Where can I download the latest 'puduan_7.0.0a2-2'?

Also taking another tack, what does your '.zp' look like?
This is the output I get for 'bionicpup32' using the latest 'iso2zip' script:

Code: Select all

root# unzip -Z -1 bionicpup32-8.0+3-uefi.zip 
bionicpup32/
bionicpup32/vmlinuz
bionicpup32/initrd.gz
bionicpup32/adrv_upupbb_19.03.sfs
bionicpup32/fdrv_upupbb_19.03.sfs
bionicpup32/puppy_upupbb_19.03.sfs
bionicpup32/README-extra_sfs
bionicpup32/zdrv_upupbb_19.03.sfs
boot/
boot/grub/
boot/grub/grub.cfg
EFI/
EFI/boot/
EFI/boot/puppy.png
EFI/boot/grubx64.efi
EFI/boot/grub.cfg
EFI/boot/bootx64.efi
EFI/boot/unicode.pf2
grldr
grub.cfg
menu.lst
utils/
utils/lin/
utils/lin/grubinst_gui.sh
utils/lin/readme.txt
utils/lin/bootlace.com
utils/win/
utils/win/Turn_Off_Fast_Startup.bat
utils/win/grubinst.exe
utils/win/readme.txt
utils/win/grubinst_gui.exe
root# 
gyro

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#48 Post by musher0 »

gyro wrote:@musher0,
And it's a fat32 partition?
gyro
Yes
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#49 Post by musher0 »

gyro wrote:musher0,
Where can I download the latest 'puduan_7.0.0a2-2'?

Also taking another tack, what does your '.zp' look like?
This is the output I get for 'bionicpup32' using the latest 'iso2zip' script:

Code: Select all

root# unzip -Z -1 bionicpup32-8.0+3-uefi.zip 
bionicpup32/
bionicpup32/vmlinuz
bionicpup32/initrd.gz
bionicpup32/adrv_upupbb_19.03.sfs
bionicpup32/fdrv_upupbb_19.03.sfs
bionicpup32/puppy_upupbb_19.03.sfs
bionicpup32/README-extra_sfs
bionicpup32/zdrv_upupbb_19.03.sfs
boot/
boot/grub/
boot/grub/grub.cfg
EFI/
EFI/boot/
EFI/boot/puppy.png
EFI/boot/grubx64.efi
EFI/boot/grub.cfg
EFI/boot/bootx64.efi
EFI/boot/unicode.pf2
grldr
grub.cfg
menu.lst
utils/
utils/lin/
utils/lin/grubinst_gui.sh
utils/lin/readme.txt
utils/lin/bootlace.com
utils/win/
utils/win/Turn_Off_Fast_Startup.bat
utils/win/grubinst.exe
utils/win/readme.txt
utils/win/grubinst_gui.exe
root# 
gyro
Nowhere. Not ready for publication yet.
But I've attached the tree.

BFN.
Attachments
puduan-7.tree.zip
(1.64 KiB) Downloaded 297 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#50 Post by gyro »

@musher0,

It's a very "interesting" '.zip', I guess you didn't produce it using 'iso2zip'.
But it looks like '/puppy' does contain the "necessary" files to boot, ('vmlinuz', 'initrd.gz' and the relevant '.sfs' files).

Which brings us back to the usb stick.
What is the output from the following command?

Code: Select all

fatlabel /dev/sdi1
gyro

Post Reply