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 Sun 21 Dec 2014, 17:06
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to boot with saved session, but read-only?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
jden

Joined: 21 Apr 2013
Posts: 2

PostPosted: Sun 21 Apr 2013, 07:48    Post_subject:  How to boot with saved session, but read-only?  

Hello -

first time here - sorry if this has been addressed elsewhere (I've looked in lots of threads, haven't had any joy).

I've been trying to figure out how to make a USB-bootable full puppy installation that remains completely unchanged between sessions. I'm failing.

I've turned off all session saves as far as i can tell, but even if i just boot (from USB), then immediately pull out the USB disk and check the MD5 hashes on the USB disk (in another OS) the hash of the save.2fs file always changes (no other files change, though the fsckme flag file is there when i do this). If i mount the save.2fs in another puppy I can see modified files, modified at the time of boot.

I thought puppy booting would be essentially just read-only, and wasn't supposed to modify anything (until you choose to save your session later). Am I misunderstanding?


To explain what i'm trying to do: on my very first boot I want to be able to set various things (firewall, wifi, some theme & firefox prefs etc) - and then use this exact session every time I use puppy*. I want to be able to check MD5 hashes every so often, just to be sure, but the fact that the save file changes even when I apparently do nothing means this doesn't seem possible.

* ie don't want to just use pfix=ram or similar...

Any help anyone can give will definitely be appreciated.
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


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

PostPosted: Sun 21 Apr 2013, 08:11    Post_subject:  

I think this same basic question was discussed in a recent thread.

What filesystem did you format the USB drive with before you installed Puppy in it?

I guess you could remaster a Puppy before you install it. Theoretically you wouldn't need a Save file at all, since the changes and settings should be incorporated into the remastered Puppy.
Back to top
View user's profile Send_private_message 
dennis-slacko531


Joined: 18 Jan 2012
Posts: 103
Location: Oregon

PostPosted: Sun 21 Apr 2013, 09:40    Post_subject:  

May I ask, are you saying you need a pristine Save File? That's the way I read your question.

you said,
I want to be able to check MD5 hashes every so often, just to be sure, but the fact that the save file changes even when I apparently do nothing means this doesn't seem possible.

My reply,
Are you trying to build an "anonymous" kind browsing situation for possible business, etc?
I'm probably missing your need, but good luck. Laughing
Back to top
View user's profile Send_private_message Visit_website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9373
Location: Stratford, Ontario

PostPosted: Sun 21 Apr 2013, 10:02    Post_subject:  

Your savefile is mounted R-W. So even if you don't explicitly write back to it, there could be slight changes.

Read here for a method that always starts with exactly the same savefile.

[Edit] However, I have never tested this with a USB install.

[Edit-Edit] Here is a version that works for me with a FAT32 flash drive:
Code:
sleep 3
mount -t vfat /dev/sdb1 /mnt/data
cp /mnt/data/slackosave.bak /mnt/data/slackosave.3fs
umount /mnt/data
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


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

PostPosted: Sun 21 Apr 2013, 11:26    Post_subject:  

This is the thread I was thinking of.
Back to top
View user's profile Send_private_message 
jden

Joined: 21 Apr 2013
Posts: 2

PostPosted: Tue 23 Apr 2013, 14:49    Post_subject:  

Hi - thanks for your replies.

I'll be tinkering again this weekend, so I'll have a chance to look through the linked threads then - and will attempt some of your suggestions.


But in response to some of the questions so far -

Flash - the USB stick was FAT32 formatted. I hadn't tried to remaster - that might be exactly what I'm looking for.

dennis-slacko531 - I suppose I'm saying that I want my save file to be set once (at first boot), and then I want that file to remain completely unchanged from that point on.... (so much so that I can check its md5 hash every so often).

I'm not really trying to build anything for anonymous browsing - I'm just a bit paranoid about banking online and stuff - so i like the idea of using a puppy build that is freshly downloaded, changed once with my prefs and then remains - verifiably - completely the same from that point on.

This is probably just ignorance on my part (about linux in general) driving my paranoia. I obviously start from the POV that i trust using puppy in the first place. It's just subsequent changes that I want to feel secure about (by preventing them!)

rcrsn51 - indeed there are changes even though I've (as far as I can tell) switched off all periodic (and final) saves. Mounting the save file in linux mint showed a small number of files with new modified dates (modified at the time of the last puppy boot). But i'll maybe have a try with the code you sent.


Again, thanks all.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0693s ][ Queries: 12 (0.0172s) ][ GZIP on ]