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 29 Nov 2014, 01:06
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to automatically fsck an encrpyted save file?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
seacyd

Joined: 14 Nov 2011
Posts: 30
Location: Austria

PostPosted: Fri 22 Feb 2013, 09:13    Post subject:  How to automatically fsck an encrpyted save file?
Subject description: On bootup or shutdown
 

I would like to have my encrypted save file automatically being checked on boot or shutdown. What is the reason that an encrypted save file (heavy encryption) is not checked on bootup even though I added pfix=fsck on the kernel boot line?

I understand, there is a workaround solution available as documented in this thread: http://www.murga-linux.com/puppy/viewtopic.php?t=41918

Code:
modprobe cryptoloop
 modprobe aes
 losetup-FULL -e aes /dev/loop6 pup_save_crypta.2fs
 e2fsck /dev/loop6


This is not what I want. It should be done automatically, in order to prevent to many errors pile up and possibly get discovered to late for a fix. This happened to me before. So the question for me remains:

HOW TO AUTOMATICALLY FSCK.EXT2 the ENCRYPTED SAVE FILE:


A) Can the check be done on bootup? I assume, in the bootup-script, after the password was provided, it could be possible to add a line of code, just before the full mounting of the partition starts.

B) Can it be done on shutdown? There as well, after save was completed and the partition is unounted, it could work, I assume?


Any ideas are welcome.
Back to top
View user's profile Send private message 
Dewbie

Joined: 15 Apr 2010
Posts: 1783

PostPosted: Sat 23 Feb 2013, 04:20    Post subject:  

Classic Pup 2.14x does filesystem check at shutdown when you use the pfix=fsck boot parameter. I don't know if this would work with encrypted save files, though.
Back to top
View user's profile Send private message 
seacyd

Joined: 14 Nov 2011
Posts: 30
Location: Austria

PostPosted: Tue 26 Feb 2013, 04:47    Post subject:  

Thanks for your reply.

I have not yet discovered though, which script handles the filesystem checking. I have looked into "rc.shutdown" but could not figure it out.
Back to top
View user's profile Send private message 
Dewbie

Joined: 15 Apr 2010
Posts: 1783

PostPosted: Tue 26 Feb 2013, 22:56    Post subject:  

seacyd wrote:
Quote:
I have not yet discovered though, which script handles the filesystem checking.

That would be the init script, which is inside initrd.gz.
Have a look over here.

Unlike the others, Classic Pup 2.14x has part of the filesystem check script in rc.shutdown.

I say "part" because I'm assuming it's triggered by something in the init script, which apparently cannot be accessed in 2.14x.
(at least not with 0_pupbuild_tools)

Also have a look at
this.
Back to top
View user's profile Send private message 
seacyd

Joined: 14 Nov 2011
Posts: 30
Location: Austria

PostPosted: Sun 31 Mar 2013, 07:55    Post subject:  

A late thank you for your reply!

I kept silent first, as I tried to solve the issue based on your hints...no time / success so far. I am inclined now to go for another method, i.e. having the large encrypted file as a separate container outside of puppy.

Thanks anyhow for your comments.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0483s ][ Queries: 11 (0.0037s) ][ GZIP on ]