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 Mon 28 Jul 2014, 00:16
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge » Multi-session live-CD/DVD
Quirky multisession
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [33 Posts]   Goto page: 1, 2, 3 Next
Author Message
Ted Dog


Joined: 13 Sep 2005
Posts: 2298
Location: Heart of Texas

PostPosted: Mon 06 Jan 2014, 18:37    Post subject:  Quirky multisession
Subject description: idea on how to merge Q6 with multisession
 

The whole slow flashdrive and/or harddrive to run the latest Q6 offering has me bummed out dudes... Cool

I have 4Gs of RAM on one box and 8G of RAM on my lappy. Q6 should run fine in RAM. But its not an option....

So I wondered if those of us that use MS just for run in RAM speed have more than 1G.

I idea is to run Q6 as is uncompressed in RAM (est. 300-400M) let it do its thing. And when its time to shutdown call its backup routine and save the resulting file snapshot back as a multisession.

Next reboot reload backup file and ask Q6 to restore from backup..

Can anyone poke holes in this consept? add ideas?
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10936
Location: Arizona USA

PostPosted: Mon 06 Jan 2014, 22:08    Post subject:  

The concept sounds good to me, but I don't understand what you mean by, "I wondered if those of us that use MS just for run in RAM speed have more than 1G." Please explain.

Also, would you still be booting only from USB flash drive? Would it be possible to run it from a multisession DVD?
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2298
Location: Heart of Texas

PostPosted: Mon 06 Jan 2014, 22:58    Post subject:  

1G would be the minimum ram needed to pull this off. This would be a light wrapper to take compressed image storied inside inird ( like fat dog does ) expand in RAM like fatdog but into a RAM files system then switch Into normal Q6 loader routine.

Either boot would work. Heck even frugal style. Idea is tiny script to move backup files to a more permanent media when requested by user. System would always boot like pfix=ram and then replace with backup to gain last session. Not a wonderful idea but a way of working within limits..
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Tue 07 Jan 2014, 06:47    Post subject:  

Hmm why uncompress.... all my sfs load to ram.... might as well minimise ram usage. With puppy doing this with 512mb works happily and there is 512mb swap. Ok not so clever if you had a large pup, full open office and other such beasts...then 1GB is the sweet spot.... slax with the big stuff is happy doing similar in that.

saves are sfs files too loaded to ram... all seems to sit cosily...

So just saying compressed works fine and helps make a smooth working system. Would mean less hacking for your idea.

mike
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10936
Location: Arizona USA

PostPosted: Tue 07 Jan 2014, 10:50    Post subject:  

Uh, I didn't realize MS meant Multi-Session. I thought it meant Microsoft. Embarassed
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2298
Location: Heart of Texas

PostPosted: Tue 07 Jan 2014, 12:54    Post subject:  

Flash wrote:
Uh, I didn't realize MS meant Multi-Session. I thought it meant Microsoft. Embarassed


Rolling Eyes

ok I can see it now... that is funny.

The limit with no layered filesystem is why this idea is uncompressed for use.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Tue 07 Jan 2014, 13:23    Post subject:  

Quote:
Uh, I didn't realize MS meant Multi-Session. I thought it meant Microsoft. Embarassed


ha ha so did I ... guess the brain cell was on loan to someone else.

Ok so you are thinking of having effectively a full install sat in a ramdisk...no unionfs.... gotcha.

Well doable...it would resemble my image file save... with that I extract to a save file the full system .... it was then loaded by the initrd and pivoted into....no layers

Idea was to give a frugal like install so ok for ntfs and fat but have the unionless running and low ram of a full install. Obviously there is no save system as such as you have a full install in an image file.

It works..all my pups include this option... so really the only difference would be to extract the sfs into a tmpfs and pivot into that.

As i type I realise that slitaz is either very similar to this (giant initrd perhaps) or the same...been a few years since i played with it...they definitely make a snapshot at shutdown but they aim to be in the 30-50mb region.

Yes in tmpfs need a pile of ram but that's pretty common nowadays. Will also be slow at shutdown IF a save of the system is needed..of course thats optional and it also depends if compressed or not.

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


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Thu 16 Jan 2014, 12:27    Post subject:  

Abandoned or feverently pursued?

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


Joined: 13 Sep 2005
Posts: 2298
Location: Heart of Texas

PostPosted: Thu 16 Jan 2014, 14:27    Post subject:  

sidetracked by life and slacko64 Very Happy actually did not bring dvd burner on this trip. I missed the smell of lazered plastic in the morning Laughing
Also hoping you could blaze this trail. My code for doing this is on a old disc that I havent recovered. Sounds like your methods are at least past v2 of puppylinux. Embarassed
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Thu 16 Jan 2014, 14:54    Post subject:  

No problem...just wondered why you went suddenly quiet.

Hmm so you think it might just tease my curiosity to try this out.... a fiddle with initrd should be enough for a quick test.... only needs combining 2 methods into one.

Ok well theory says this will work so will put it into practise.... or is that practice...

mike
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3356
Location: Oregon

PostPosted: Fri 17 Jan 2014, 00:19    Post subject:  

I do not see why one could not make an SFS out of the Quirky 6.02? usfs file and then modify a initrd file to load it into memory and put it all on an ISO.
It would take some reverse engineering, but one should be able to do it.
The main thing is to if the usfs file is compressed.
I had tried renaming the extension to SFS and when i CLICKED on it afterward, the file system showed up.
But I am dumb. One might run dir2SFS on the root directory in that usfs file.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2285
Location: Germany

PostPosted: Fri 17 Jan 2014, 08:26    Post subject:  

Quote:
Uh, I didn't realize MS meant Multi-Session. I thought it meant Microsoft.

That was my first thought as well! Laughing

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Fri 17 Jan 2014, 08:30    Post subject:  

Quote:
That was my first thought as well! Laughing

you are just thinking about tarts who play with your modules...

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


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Fri 17 Jan 2014, 15:41    Post subject:  

Ok had a few spare moments so did the promised test.

After one failure as it needed initrd folder making (doh) it booted just fine. Obviously the ram hit is higher...I tested 4.12 as I had 512mb ram to hand...its 92MB sfs consumed ~260MB in tmpfs leaving 108 to spare... normally i add swap to the tmpfs but that was not happening since the tmpfs folder was moved.

Screen shot of it running...note no mounted folders in initrd and no drives mounted..truly floating in ram as I like it and not a unionfs in sight.

Took ~ 10 seconds to load the sfs on a pentium 3.

The core code doing the job which just uses common variables.

Code:
   mount tmpfs /pup_new -t tmpfs -o size=${SIZEFILLK}k;check_status $?
   echo -n "Mounting /dev/${PDEV1} on (/initrd)/mnt/dev_ro1..." >/dev/console
   mntfunc -o rw,noatime -t $FSTYPE /dev/$PDEV1 /mnt/dev_ro1;check_status $?
   
   echo -n "Loading contents of pup_${PUPPYVERSION}.sfs to ramdisk..." >/dev/console
   losetup /dev/loop1 /mnt/dev_ro1/$PUPSFS
   mount -r -t squashfs -o noatime /dev/loop1 /mnt/data
   cp -a /mnt/data/* /pup_new;check_status $?
   mkdir /pup_new/initrd   #or  it cannot pivot!!
   
   umntfunc /mnt/data
   umntfunc /mnt/dev_ro1


then a dummy pupmode is used to bypass the union mount.


mike
thing.png
 Description   
 Filesize   186.51 KB
 Viewed   162 Time(s)

thing.png

Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2298
Location: Heart of Texas

PostPosted: Fri 17 Jan 2014, 16:23    Post subject:  

wow did I read that correctly you are running in ram with only 512Ms of RAM hardware... if so sweet! Shocked
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [33 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge » Multi-session live-CD/DVD
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.0787s ][ Queries: 13 (0.0047s) ][ GZIP on ]