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 30 Jul 2014, 07:28
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
How to save only on command?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Author Message
dult

Joined: 31 Aug 2013
Posts: 21

PostPosted: Wed 04 Sep 2013, 08:43    Post subject:  

It's just a first line of defense. If someone wants to crack something, they will. Though for the most casual user, if he can't access in a jiffy it's not worth the trouble. He will just format the USB.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Wed 04 Sep 2013, 10:24    Post subject:  

Ah ok... well as a first line of defense the odds are well in your favour that someone who finds your missing stick would not have a clue what to do with a save file or a bootable usb (the default on most machines is to boot the hard drive/floppy/cd)... ..indeed if the stick itself was formatted ext2 that would be another level of bafflement...windows would just give you the 'format now' dialog.... Oh and iirc windows will only see the first partition so a save on the second would not be seen either.
Now if some techie geek is after your millions then you are doomed......

A case of security by obscurity in this case

regards

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


Joined: 08 Jun 2005
Posts: 5010
Location: Arizona, U.S.A.

PostPosted: Wed 04 Sep 2013, 15:12    Post subject:  

What Mike said...

Karl; Yes, unionfs was a mess, aufs is much better but horribly bloated.
I had a link to a great page about union file system problems that I can`t find.

The real focus is: If a union mount isn`t needed, then why have one at all.?

The developers are working on transparent mounts to replace union type.
I`ve said a number of times:
The mount command could do the job if it didn`t "opaquely" overlay it`s mounts.
Having the mounts be opaque so they cover up the lower ones isn`t very useful.
Better would be to have it behave either way, Opaque or Transparent stacking.

Now you still need copy on write and white out files... What a messy business.
.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Wed 04 Sep 2013, 15:23    Post subject:  

.....mike looks around the thread for karl.......
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5010
Location: Arizona, U.S.A.

PostPosted: Thu 05 Sep 2013, 02:35    Post subject:  

The forum did it again, posted at the wrong thread..!
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Thu 05 Sep 2013, 03:58    Post subject:  

Quote:
....mike looks around the thread for karl.......

Hi Mike !

Hmmm ... that theme had been posted a lot of times , but not recently .

Basically the solution found by other members was to set the save interval to 0 in the eventmanager gui and add few lines into /etc/rc.d/rc.shutdown

to present a dialog asking to save session or not into the save file like :

Code:
function_ask_to_save(){
dialog --yesno "Save the trash from /initrd/pup_rw into /initrd/pup_ro1?" 0 0
if [ "$?" = 0 ] ; then
:
else
unset PUPMODE
PUPMODE=5
fi
}


And such function needs to be called somewhere at or before

#save session...
case $PUPMODE in
3) #PDEV1.
echo "Saving session to $PDEV1..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
;;
[ .. ]
5) #v2.02 first boot.
echo "Session not saved" >/dev/console
sync
#ha ha, before had this, if aborted save after choosing save-partition, code
#further down wiped all of the partition (it was mntd on /tmp/savepup)...
[ ! "$SMNTPT" = "" ] && umount $SMNTPT
#...well, fixed it, changed mntpt so not in /tmp. Leave above line here.
;;
*)
echo "Session not saved" >/dev/console
sleep 2
;;
esac

or probably in every PUPMODE case .. in rc.shutdown .
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Thu 05 Sep 2013, 13:24    Post subject:  

Hi karl
The day I removed snapmergepuppy was a happy one.
It does not really do the job that well and IIRC never got to do a proper ram flush either. pupmode=13 is a distant memory.

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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.0545s ][ Queries: 13 (0.0054s) ][ GZIP on ]