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 Sat 19 Apr 2014, 15:51
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Underdog: Unleash the Power
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
jrb


Joined: 11 Dec 2007
Posts: 1017
Location: Smithers, BC, Canada

PostPosted: Thu 24 Oct 2013, 14:15    Post subject:  Underdog: Unleash the Power
Subject description: A half-full install
 

Recently I tried playing with Underdog, a feature that Barry resurrected from the 2 series. I matched Slacko-5502 with Slackware-14 and Precise-571 with Ubuntu-Precise. After hours of trial and error I got both to work, Slacko actually was pretty easy, and then realized there was nothing I really wanted from Slackware or Ubuntu. Puppy already has everything I need.

Upon reflection however I realized that what I had setup was a way to run Puppy with all the apps I could dream of from a read only partition with minimal memory use, WoW! Shocked So here’s how I did it:

WARNING!!! WARNING!!! WARNING!!! - If you haven’t used Gparted before be EXTREMELY careful and make sure you understand what you are doing before attempting setting up new partitions. You can lose EVERYTHING if you do it wrong. If you are going to do this on a drive containing Windows 7 or 8, you should use the builtin Windows partition resizing tool. Even then if you have hidden partitions as part of your Manufacturers Windows emergency reinstall you will probably lose that feature.

I booted Puppy (any recent will do) from a flashdrive and used Gparted (system menu) to resize the existing partition (sda1) on my harddrive to give me 14 GB (14386MB) of unallocated space after sda1. Then I added a new 4GB ext2 partition (sda2) at the front of the unallocated space and filled the rest with a 10GB swap partition (sda3). I could have gotten by with just a 2GB ext2 but what the hell.

Next I did a frugal install of Slacko-5502 to sda1. Setup->Puppy Universal Installer->Internal (IDE or SATA) hard drive.

Then I ran Grub4dos (system menu) which setup my bootloader on sda1. I edited the menu.lst to add on “underdog=sda2”. It now looks like this:
Code:
title Puppy slacko 5.5.02 underdog (sda1/slacko-5502)
  uuid e9529477-2121-4d1c-862f-cd95a2bc2a1e
  kernel /slacko-5502/vmlinuz  pmedia=atahd psubdir=slacko-5502 pfix=fsck underdog=sda2
  initrd /slacko-5502/initrd.gz


Now the fun stuff. I mounted devx_slacko_5.5.02.sfs (click on it) and copied the contents to /mnt/sda2. Then I mounted puppy_slacko_5.5.02.sfs and copied its contents to /mnt/sda2.

Then I used edit-sfs (not sure the original still works, let me know and I'll post mine) to open puppy_slacko_5.5.02.sfs and deleted everything and then recreated the /root folder (I’m not sure that’s necessary but it seems to me I got an error message one time trying to run an empy puppy.sfs)

Next I did a test boot. Total success! Very Happy

After this it was just a matter of booting to a different Puppy, you could use the same version but it has to be a totally different install not using sda2 for underdog, and loading in all the programs I could possibly need. When I was done I had 1.5GB of Puppy goodness. When the OS boots it uses 60MB of ram.

I’ll write more later if anyone’s interested got to get going now.

Cheers, J

Last edited by jrb on Thu 24 Oct 2013, 14:17; edited 1 time in total
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1017
Location: Smithers, BC, Canada

PostPosted: Thu 24 Oct 2013, 14:15    Post subject:  

hold
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1017
Location: Smithers, BC, Canada

PostPosted: Thu 24 Oct 2013, 14:16    Post subject:  

hold
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1017
Location: Smithers, BC, Canada

PostPosted: Thu 24 Oct 2013, 20:48    Post subject:  

tiptech wrote:
what does it do Question

Ha, Ha, guess I need to sharpen up my descriptive skills.

Put simply, it is another way to install the Puppy operating system on your computer. It has the advantage of allowing a really large Puppy system with lots of Apps, using little memory and being in an uncorruptible, read only, environment.
Back to top
View user's profile Send private message 
Pelo


Joined: 10 Sep 2011
Posts: 2285
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 26 Oct 2013, 02:43    Post subject: Full install ?  

Full install ! Underdog seems for just having a glance at a distro, like a virtual machine. NO ?
Back to top
View user's profile Send private message Yahoo Messenger 
8-bit


Joined: 03 Apr 2007
Posts: 3280
Location: Oregon

PostPosted: Sat 26 Oct 2013, 11:00    Post subject:  

What is the uuid line in your menu.lst entry for?
Also, I was thinking of an underdog Puppy for use with very limited memory machines.
As a for instance, I have and old Compaq laptop that sports 150 megs of ram.
And it seems unfair that one can install and run Win XP on it abet slow with that amount of ram and Puppy when tried with a swap partition keeps messing things up loosing desktop icons and even applications on the same laptop.
This was with a frugal install.
I had not tried a full install on it though.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1017
Location: Smithers, BC, Canada

PostPosted: Sat 26 Oct 2013, 13:17    Post subject: Re: Full install ?  

Pelo wrote:
Full install ! Underdog seems for just having a glance at a distro, like a virtual machine. NO ?


BarryK wrote:
An exciting alternative to the squashfs extensions is to use an existing installed Linux distro as the bottom layer:

What the above diagram is intended to convey is that the bottom layer is a partition, not the "underdog.lnx" file itself. File underdog.lnx is just a text file, containing the name of a partition, for example "hda1".
At bootup Puppy will read underdog.lnx and will mount the partition as the bottom layer. If that partition happens to have a Linux distro installed in it, then the entire distro filesystem will "show through" on the top layer of Puppy's unionfs.


Barry intended for underdog to take advantage of an existing linux full installation so that you could use the apps it contained. What occurred to me is that I could use the partition mounted by Underdog to contain all my Puppy files, except for initrd.gz and vmlinuz. The partition is mounted read only which is what I have always strived for since it cannot be corrupted (screwed up) like a full install.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1017
Location: Smithers, BC, Canada

PostPosted: Sat 26 Oct 2013, 13:28    Post subject:  

8-bit wrote:
What is the uuid line in your menu.lst entry for?
Also, I was thinking of an underdog Puppy for use with very limited memory machines.
As a for instance, I have and old Compaq laptop that sports 150 megs of ram.
And it seems unfair that one can install and run Win XP on it abet slow with that amount of ram and Puppy when tried with a swap partition keeps messing things up loosing desktop icons and even applications on the same laptop.
This was with a frugal install.
I had not tried a full install on it though.


The uuid just tells the bootloader which partition the folder containing the Puppy files is on. The uuid line is created automatically by the latest versions of Grub4dos. The older ones used to use "Find" and the bootloader would examine all partitions.

Unfortunately Wink I can only get my oldest machine down to 512MB of ram since that's the smallest ram chip I have. (I did a major housecleaning a while ago and sent a bunch of old stuff to the recycler, hopefully it all found new homes.) I have tried this setup on that machine and it works very well. As I mentioned in my first post I have a 4GB partition containing 1.5GB of uncompressed Puppy files and it works very well on this old P4.

By the Way, I have simply copied this install on to 4 different machines, 2 desktops and 2 netbooks and it works equally well on all, faster on the faster machines of course.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7183

PostPosted: Sat 26 Oct 2013, 14:11    Post subject:  

So its readonly as far as access from inside puppy is concerned.... I assume direct access...eg through its mount point would still be read write.
How are you savng ?..a save file?

This reminds me of an option I added to puppy some years ago...basically the save file gets used as a full system install image.... it runs like a full install ie low ram usage and does not have any unionfs overhead/quirks but can stll be installed frugally to such as windows partitions.

Mike
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 2531
Location: Everybody knows this is nowhere...

PostPosted: Sat 26 Oct 2013, 14:31    Post subject:  

mikeb, I'd be interested to hear the particulars of your savefile trick... PM me if you would, I'd rather not hijack the thread.
_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7183

PostPosted: Sat 26 Oct 2013, 14:50    Post subject:  

Quote:
mikeb, I'd be interested to hear the particulars of your savefile trick... PM me if you would, I'd rather not hijack the thread.

ok will do....not on puppy at the moment so will be a bit later on.
I posted under the 'ways of reducing ram usage' theme plus a general interest in naughty ways of using puppy Smile

mike
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 2531
Location: Everybody knows this is nowhere...

PostPosted: Sat 26 Oct 2013, 16:08    Post subject:  

Take as long as you need, mikeb, I'll be here Smile
_________________
Loving X-Slacko 1.1! Get the PetGet patch on pg8; it's important.
Next system will be an HP MOCA-AR + Core2Duo in an innovative case... if I ever get off my butt and build it Razz
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1017
Location: Smithers, BC, Canada

PostPosted: Sat 26 Oct 2013, 16:16    Post subject:  

mikeb wrote:
So its readonly as far as access from inside puppy is concerned.... I assume direct access...eg through its mount point would still be read write.
How are you savng ?..a save file?


Actually it is mounted at /initrd/pup_ro4 and is totally read-only, no access allowed. To make changes I boot into another Puppy. I just finished throwing together a special fast booting version of racy-5.3-BABYbarebones for just that purpose.

As for saving, you could use a save file just as in a normal install. Personally any changes I want I do by editing puppy_xxx.sfs or in this case by editing my underdog partition.

Quote:
This reminds me of an option I added to puppy some years ago...basically the save file gets used as a full system install image.... it runs like a full install ie low ram usage and does not have any unionfs overhead/quirks but can stll be installed frugally to such as windows partitions.


I tried that too, placing the whole puppy_xxx.sfs contents into a savefile and then using an empty puppy_xxx.sfs. My problem with savefiles is that they inevitably get corrupted or I screw them up by adding something stupid. Sad
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7183

PostPosted: Sat 26 Oct 2013, 17:28    Post subject:  

Hmm yes...not a fan of saves myself though ext2 was the default at the time I added ext3 and reiserfs which seemed more robust.

Perhaps a save partition would complete the ensemble though its getting a bit like a full install in that case.

Apart from less ram usage there will be less overhead loading uncompressed system files most noticeable in comparison to a machine where the sfs does not load to ram.

For testing with low ram I usually use qemu.... it can use flash sticks and real drives as images too though avoid using your normal system!

mike..
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 3798
Location: Gatineau (Qc), Canada

PostPosted: Sat 26 Oct 2013, 20:17    Post subject:  

Hi, jrb.

I mentioned your initiative here:
http://murga-linux.com/puppy/viewtopic.php?p=733105&sort=lastpost#733105

as it might present a solution to grouping all necessary big programming-
language files in one place -- instead of creating large sfs's (the subject of
that thread).

Some tangent questions:
* does this Puppy with itself as an "underdog" boot reasonably fast ?

* you mentioned the "bare-bones" Puppy, with a lesser version. Can it
use the newer Puppy version as an underdog? Or must it remain a
"service vehicle"?

* in the case of an older Puppy with a newer Puppy as an underdog, how
do the glibc versions play out? I mean: would the newer glibc version on
the newer Puppy still be active (override the older glibc)? Otherwise,
some programs in the underdog will not work, right?

* can the entire process you describe be created | installed | carried out
from an ISO CD? Is that how you installed it on your other machines?

"Bonne continuation !" Smile

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0812s ][ Queries: 11 (0.0072s) ][ GZIP on ]