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 20 Aug 2014, 08:55
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 Posts_count  
Author Message
seacyd

Joined: 14 Nov 2011
Posts: 28
Location: Austria

PostPosted: Fri 22 Feb 2013, 09:13    Post_subject:  How to automatically fsck an encrpyted save file?
Sub_title: 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: 28
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: 28
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
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.0474s ][ Queries: 12 (0.0036s) ][ GZIP on ]