The time now is Wed 22 May 2013, 17:51
All times are UTC - 4 |
| Author |
Message |
divisionmd

Joined: 14 Jul 2007 Posts: 592
|
Posted: 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
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 2855 Location: West Lothian, Scotland, UK
|
Posted: 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
|
|
 |
divisionmd

Joined: 14 Jul 2007 Posts: 592
|
Posted: 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
|
|
 |
rhadon

Joined: 27 Mar 2008 Posts: 1228 Location: Germany
|
Posted: 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 . Works only for newer Puppies.
HTH
Rolf
_________________ Ich verwende "frugal", und das ist gut so.
Raspberry Pi without Puppy? No, thanks.
|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 2855 Location: West Lothian, Scotland, UK
|
Posted: 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!
(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
|
|
 |
|
|
|
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
|