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 Wed 26 Nov 2014, 09:07
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Empowering the Zdrv
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Author Message
jrb


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

PostPosted: Sat 08 Sep 2012, 01:21    Post_subject:  Empowering the Zdrv
Sub_title: Giving the Zdrv precedence over the main Puppy.sfs
 

(Note: I’m keeping this brief so feel free to ask questions)

From time to time I have tried putting my favourite applications in the zdrv_puppy_xxx.sfs file so they will be automatically loaded at bootup and not take space in a Pupsave (or be lost when a Pupsave dies). I can also transfer them from pup to pup without reinstalling. This works well except for the fact that the main Puppy.sfs takes precedence over the Zdrv and overwrites any files that they have in common.

Recently it occurred to me how to overcome this, rename puppy_xxx.sfs to zdrv_puppy_xxx.sfs and rename my generic SFS to puppy_xxx.sfs. Now my applications take precedence over the main puppy files. One bonus is that any configuration changes I want, such as show hidden files and small icons arranged vertically in Rox can be placed in my SFS along with my apps and will be implemented at bootup.

In practice I keep a copy of my generic SFS with all the apps. When I try a new puppy I make the configuration changes I want, grab the configuration files from /initrd/pup_rw and add them to my generic SFS and then rename it to whatever the new pups name is. Then I rename the main puppy file to zdrv and I’m good to go.
Back to top
View user's profile Send_private_message 
musher0


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

PostPosted: Sat 08 Sep 2012, 02:19    Post_subject:  

Brilliant!

"Il suffisait d'y penser !" (Un-vetted translation: "One only had to think of it!")

BFN

_________________
"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_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Sat 08 Sep 2012, 08:22    Post_subject:  

Interesting... What if my zdrv has all the kernel modules (/lib/modules, missing from pup_420.sfs) and so on? Does it still work OK?
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
tlchost

Joined: 05 Aug 2007
Posts: 1738
Location: Baltimore, Maryland USA

PostPosted: Sat 08 Sep 2012, 08:47    Post_subject: Re: Empowering the Zdrv
Sub_title: Giving the Zdrv precedence over the main Puppy.sfs
 

jrb wrote:
(Note: I’m keeping this brief so feel free to ask questions)


Assuming the big dummy mode(very easy for me to do).....Running Slacko 5.3.3 on a bootable usb drive.

How do I create the zdrv sfs file, and add the favorite apps into that file?

Am I correct that this method gets around the number of sfs files limitation?

Thanks

Thom
Back to top
View user's profile Send_private_message Visit_website 
jrb


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

PostPosted: Sat 08 Sep 2012, 15:03    Post_subject:  

sc0ttman wrote:
Interesting... What if my zdrv has all the kernel modules (/lib/modules, missing from pup_420.sfs) and so on? Does it still work OK?

It works fine but you have to either combine your apps with the /lib/modules etc. or combine the /lib/modules etc. with the main puppy files. I tried it the second way on spup51 and it worked no problem.
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Sat 08 Sep 2012, 15:03    Post_subject:  

jrb wrote:
sc0ttman wrote:
Interesting... What if my zdrv has all the kernel modules (/lib/modules, missing from pup_420.sfs) and so on? Does it still work OK?

It works fine but you have to either combine your apps with the /lib/modules etc. or combine the /lib/modules etc. with the main puppy files. I tried it the second way on spup51 and it worked no problem.

Nice, thanks.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
jrb


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

PostPosted: Sat 08 Sep 2012, 15:10    Post_subject: Re: Empowering the Zdrv
Sub_title: Giving the Zdrv precedence over the main Puppy.sfs
 

tlchost wrote:
jrb wrote:
(Note: I’m keeping this brief so feel free to ask questions)


Assuming the big dummy mode(very easy for me to do).....Running Slacko 5.3.3 on a bootable usb drive.

How do I create the zdrv sfs file, and add the favorite apps into that file?

Am I correct that this method gets around the number of sfs files limitation?

Thanks

Thom

The easiest way is to copy puppy_slacko_5.3.3.sfs to zdrv_slacko_5.3.3.sfs and then use Pizzagood’s Edit-SFS 2.1 (squash filesystem editor) to open up puppy_slacko_5.3.3.sfs, delete the contents and add in your own apps.

This method does not affect the number of SFS files that can be loaded but all the apps that I know I will use regularly are in mine leaving me 6 other SFS's that I can load and unload as I choose.
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Sat 08 Sep 2012, 23:49    Post_subject:  

jrb,

That's just a fantastic discovery.

I had fooled around with converting the save file to an sfs zdrv file a while back and ran into the priority problem.

Ironically, It occured to me to swap and rename the two sfs files, but then rejected that idea because it seemed that the initialization would fail - so I never tried it. Sad

My solution was to compare the puppy sfs with the pup save zdr file and where they were equal, copy those from the pup save zdr to the main file system - not worth the game.

One way to create the zdr is to go to /initrd, open a terminal and "dir2sfs /initrd/pup_roX" where /intitrd/pup_roX is the pup save file. This will create an sfs file of your save file which you can rename and swap.

Again, a great find.

Regards,
s
Back to top
View user's profile Send_private_message 
jrb


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

PostPosted: Sun 09 Sep 2012, 00:14    Post_subject:  

seaside wrote:
One way to create the zdr is to go to /initrd, open a terminal and "dir2sfs /initrd/pup_roX" where /intitrd/pup_roX is the pup save file. This will create an sfs file of your save file which you can rename and swap.

Nice one seaside. Cool As I remember you're an advocate of running without pupsaves. I followed your lead and have been doing that for a while now using an initialization script in /etc/init.d (previously in my zdrv now in the main sfs). The script has gotten a lot simpler now that I am putting so much of my configuration directly in my main SFS file. But that's another story and I'll write it up in a separate thread.
Back to top
View user's profile Send_private_message 
musher0


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

PostPosted: Wed 12 Sep 2012, 14:03    Post_subject:  

Hello, jrb.

Aren't the drivers already in the zdrive crushed in the copying operation?

Best regards.

_________________
"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_website 
jrb


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

PostPosted: Wed 12 Sep 2012, 15:03    Post_subject:  

musher0 wrote:
Hello, jrb.

Aren't the drivers already in the zdrive crushed in the copying operation?

Best regards.

Hi Christian,
This is getting confusing. Which Zdrv and which copying operation?Laughing

If you mean copying /etc and /lib from a pup built with the kernel in the Zdrv into the Main Puppy files then no there are no duplications between the Zdrv files and the Main Puppy files.

If you mean copying your applications into the Zdrv then if there are any duplicates you want the ones that go with your apps to replace the current ones, although right off the top of my head I can't think of any apps that I've run into which replace kernel drivers.

IMHO having two versions of the same driver around is definitely not a good thing.

Cheers, J
Back to top
View user's profile Send_private_message 
musher0


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

PostPosted: Thu 13 Sep 2012, 09:23    Post_subject:  

Thanks for the reply, jrb.

I meant that some Puppies already have a zdrv_xxx.sfs sometimes, which contains hardware or other drivers.

I gather from your reply that merging the puppy_xxx.sfs into zdrv_xxx.sfs with the merging utility would not erase anything. Right?

Regards.

_________________
"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_website 
jrb


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

PostPosted: Fri 14 Sep 2012, 09:53    Post_subject:  

musher0 wrote:
Thanks for the reply, jrb.

I meant that some Puppies already have a zdrv_xxx.sfs sometimes, which contains hardware or other drivers.

I gather from your reply that merging the puppy_xxx.sfs into zdrv_xxx.sfs with the merging utility would not erase anything. Right?

Regards.

Right. I haven't seen any of the standard Puppies with Zdrv's that come with duplicate files.
Back to top
View user's profile Send_private_message 
musher0


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

PostPosted: Fri 14 Sep 2012, 14:20    Post_subject:  

Thanks for the clarification.

Have a great day!

_________________
"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_website 
musher0


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

PostPosted: Sat 15 Sep 2012, 12:35    Post_subject:  

Hello again, jrb.

Tested your idea a couple of ways in a new puppy alpha being created (not by me). So here are a few test notes that may or may not be useful to others.

Do not put the devx in place of the regular puppy sfs: you'll get a panic message in the loader. This linux loader needs a properly configured "root" sfs with at least a simple /root/ structure in it.

So I created a "root" sfs that had only 12 k (with near-empty my-documents and my-applications directories), but this time it loaded without "panic" and the entire Puppy in the zdrv was available and functional.

However, the puppy cloner will not respect one's choice of zdrv-xxx.sfs. It will ask you if you want to create a zdrv, and if you answer yes, it will create its own (6-7 Mgs), not the substitute main file you provided initially. This needs further investigation and testing.

That's it for now.

Regards.

_________________
"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_website 
Display_posts:   Sort by:   
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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