Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 20 Nov 2018, 12:00
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
USB installer originally by 01micko, but seriously hacked
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
gyro

Joined: 28 Oct 2008
Posts: 1553
Location: Brisbane, Australia

PostPosted: Sun 15 Jul 2018, 01:12    Post subject:  USB installer originally by 01micko, but seriously hacked
Subject description: Another file layout for installing Puppy for UEFI
 

install2usb version 0.4.10

This all started here http://www.murga-linux.com/puppy/viewtopic.php?p=983322#983322.
But I have serioiusly hacked this code to do something slightly different.

When the original code produced a 2 partition usb stick, it stored the vmlinuz and initrd.gz in a vfat first partition, and the Puppy sfs files in a Linux second partition.
This created a problem for the change_kernels script since the vmlinuz and zdrv...sfs were in different partitions.

This version produces a 2 partition usb stick in a different layout.
All the Puppy files are stored in a sub-directory in a vfat first partition. Much like a typical Puppy frugal install directory.
It also creates a sub-directory with the same name, in a Linux second partition.
It then adds a "psavemark=2" parameter to the boot entry, so that all saving is done in the Linux partition, and the Linux partition becomes /mnt/home.
So, UEFI is happy with vmlinuz being on the vfat partition, and the change_kernels script has no problems finding the vmlinuz since it's in the same directory as the zdrv...sfs.

Contrast this with a typical 2 partition layout using grub4dos.
Then the vfat first partition would contain only grub4dos.
The Linux second partition would contain all the Puppy files in a sub-directory, and saving would occur in this same directory.

Of course grub4dos or syslinux can also use this different layout.

I have published this version of install2usb in a separate topic to highlight this different layout, it has potential in a UEFI world.

Attached files:
"overlay_installers-0.9e.sfs" contains this version of "install2usb" and some supporting utilities. This can be loaded as an extra sfs in a normal Puppy.
"install2usb" is provided for use in "overlay_init" Puppies, which already contain an older version of "install2usb". Unfortunately this version won't be in "overlay_init" until the next release, probably version 0.9.1.
"change_kernels" is a version that is compatible with this "install2usb", it's a replacement for the existing "change_kernels".

Usage:
After loading "overlay_installers-0.9e.sfs", or copying "install2usb" to "/usr/sbin/", open a console and type "install2usb".
Or, you may find "USB Installer - Flash Drives" in the "Setup" menu.

Note1: "psavemark=" is a classic Puppy boot parameter that has seen little use.
Note2: This version of install2usb is not restricted to "overlay_init" Puppies, it should run on most Puppies, and install most Puppies.
Note3: @01micko, I hope that one day you will take this hack, and turn it into a polished flash drive installer.

gyro
overlay_installers-0.9e.sfs.gz
Description  gunzip to produce "overlay_installers-0.9e.sfs"
gz

 Download 
Filename  overlay_installers-0.9e.sfs.gz 
Filesize  10.11 KB 
Downloaded  69 Time(s) 
install2usb.gz
Description  gunzip to produce "install2usb" script
gz

 Download 
Filename  install2usb.gz 
Filesize  8.05 KB 
Downloaded  67 Time(s) 
change_kernels.gz
Description  gunzip to produce "change_kernels" script
gz

 Download 
Filename  change_kernels.gz 
Filesize  4.45 KB 
Downloaded  75 Time(s) 

Last edited by gyro on Mon 06 Aug 2018, 10:19; edited 1 time in total
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 855
Location: Connecticut, United States

PostPosted: Sun 15 Jul 2018, 15:27    Post subject:  

hey gyro I got a Bionic 18.05+8 to boot beautifully using the overlay version.

depending on the usb stick... 3 partitions - vfat - ext4 - swap
or ext4 - swap or just ext4

this time second option ext4-swap with Bionic frugally installed in a sub directory and Grub4Dos doing the honors...a tahr 6.0.6 is on the stick as well.

I made the usb format with GParted...rox-filer to create the directories....rox-filer to open iso's and copy the files..grub4dos to start the menu and boot stuff...tweaked the menu a bit and rebooted.

works even better on the HDD's I just tested
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1553
Location: Brisbane, Australia

PostPosted: Mon 16 Jul 2018, 01:00    Post subject:  

@rockedge,
Thanks for testing.

I guess a question for this topic is, did you store all of Puppy in a sub-directory on the vfat partition and use a "psavemark=2" boot parameter to push saving/writing onto the ext4 partition?

gyro
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 855
Location: Connecticut, United States

PostPosted: Fri 27 Jul 2018, 08:06    Post subject:  

Code:
I guess a question for this topic is, did you store all of Puppy in a sub-directory on the vfat partition and use a "psavemark=2" boot parameter to push saving/writing onto the ext4 partition?


the puppy files and save folder are on the ext4 in a sub directory...MBR and boot code in menu.lst on vfat

the vfat is there so certain machines see the USB stick at all.

I am setting up a stick with a similar structure and will place everything in the vfat and save folder in the ext4 and use psavemark=2

I could let you know the results.
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1553
Location: Brisbane, Australia

PostPosted: Thu 02 Aug 2018, 14:36    Post subject:  

rockedge wrote:
I could let you know the results.
That would be great.
gyro
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0791s ][ Queries: 12 (0.0350s) ][ GZIP on ]