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 Fri 01 Aug 2014, 11:57
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
broken savefile how to fix?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
divisionmd


Joined: 14 Jul 2007
Posts: 606

PostPosted: Thu 25 Aug 2011, 03:58    Post subject:  broken savefile how to fix?
Subject description: e2fsck
 

Hello,

What tools can i use to repair the save file?

I know this command: e2fck %savefile%

But are there other commands?

Also except checking the save file - what command can i use to check the disk?

Thanks for help,

Best regards,
Johan
Back to top
View user's profile Send private message MSN Messenger 
Sylvander

Joined: 15 Dec 2008
Posts: 3401
Location: West Lothian, Scotland, UK

PostPosted: Thu 25 Aug 2011, 05:50    Post subject:  

1. I run a "live" Puppy from a CD-RW disk.
(a) If I suspect the host partition_file_system [of my primary Puppy = the one I'm using = hereafter known as the 1st Puppy] has become corrupted...
Perhaps by powering off improperly. [I may have been forced to do it]
Here's what I do:

(b) Reboot to a 2nd Puppy that doesn't use the pupsave of the 1st Puppy...
It's essential that it uses a different pupsave on a different partition.
I have at least one pupsave on a Flash Drive, when I normally use pupsaves on an internal HDD.
Then...
Use GParted to "check" [scan & fix] the UNMOUNTED host partition_file_system of the 1st Puppy.

(c) May even delete the existing pupsave of the 1st Puppy, and restore a recently made backup copy made when all was well with the 1st Puppy.
If I don't bother to do this restore [because I figure it isn't necessary?], I then complete step 2 below.

2. Then I reboot the 1st Puppy, and at the 5-sec delay during boot, I enter the command:
puppy pfix=fsck
This makes the Puppy check the Linux filesystem inside the pupsave of this 1st Puppy, and after that completes the Puppy continues to load.
Back to top
View user's profile Send private message 
divisionmd


Joined: 14 Jul 2007
Posts: 606

PostPosted: Thu 25 Aug 2011, 06:16    Post subject:  

Many thanks sylvander- will follow instructions and test this.

Did not know i could use gparted to check the disks.

Best Regards,
Johan
Back to top
View user's profile Send private message MSN Messenger 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Thu 25 Aug 2011, 06:49    Post subject:  

Just 2 additional notes.

For Sylvander's description 1.(b):
No need for a save file. It's only important that the partition you want to check isn't mounted.

You can also use e2fsck or fsck, like
Code:
fsck -f -y /dev/sda1.


Another (dirty) way:
Force an improper shutdown by swiching off your computer with the power button. Best if no program is running and nothing is be written to the hd at this moment. At next reboot, Puppy checks partition and save file automatically Wink . Works only for newer Puppies.

HTH
Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3401
Location: West Lothian, Scotland, UK

PostPosted: Fri 26 Aug 2011, 07:09    Post subject:  

1. "No need for a save file. It's only important that the partition you want to check isn't mounted."
Quite so! Very Happy
(a) I toyed with the idea of saying so in my 1st post, but decided to keep it short, because...

(b) Personally, I prefer to use a full Puppy using a pupsave.
I always have at least one suitable puppy available that doesn't have its pupsave with the others on the internal HDD partition.
So there's no need for me to use the following command at the 5-second pause during startup:
puppy pfix=ram
So that no pupsave will be used.
And therefore no partition mounted.
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.0479s ][ Queries: 11 (0.0033s) ][ GZIP on ]