Page 1 of 1

Dpup +fsck for ext3 partition

Posted: Fri 14 May 2010, 13:15
by ndujoe1
How does one go about invoking a file system check after a certain number of boots in dpup like puppy 1.08rl used to do?

Posted: Fri 14 May 2010, 13:21
by dejan555
Not sure how would you go after certain number of boots automatically but for invoking fsck on boot put pfix=fsck on kernel line in menu.lst maybe you could write two menu.lst and make script to swap them after x boots otherwise needs initrd hack. except there's some boot option i don't know.

Posted: Sat 29 May 2010, 06:44
by don922
frugal install of Puppy 4.12 retro using the Lin'N'Win dual booting with Win 98

@dejan555:

I have tried your suggestion (above) and I cannot tell if fsck is running during boot.

Here is a copy of the pertinent portion of the menu.lst

Code: Select all

title Puppy Linux 412retro fsck

rootnoverify (hd0,0)

kernel (hd0,0)/puppy412retro/vmlinuz pfix=fsck.vfat PMEDIA=idehd PDEV1=hda1 psubdir=puppy412retro psubok=TRUE

initrd (hd0,0)/puppy412retro/initrd.gz

boot
When this menu.lst option is selected puppy boots fine, but I can't tell if fsck is run.

Does this look right? Any suggestions?

Posted: Sat 29 May 2010, 09:15
by Patriot
Hmmm .....
don922 wrote: ........
kernel (hd0,0)/puppy412retro/vmlinuz pfix=fsck.vfat PMEDIA=idehd PDEV1=hda1 psubdir=puppy412retro psubok=TRUE
........
FYI, fsck only checks for ext2 filesystem on puppy412, example:

Code: Select all

kernel (hd0,0)/puppy412retro/vmlinuz pmedia=idehd pdev1=hda1 psubdir=puppy412retro pfix=fsck
BTW, psubok is available only on puppy4.2.x ...

Alternatively, if you wish to have your filesystem to cleanly unmount on shutdowns, kindly take a peek here. I'm still considering a couple of ways to complement the clean unmount with improper shutdown and max check auto-fsck ...


Rgds

fsck on vfat

Posted: Sat 29 May 2010, 09:37
by don922
Patriot wrote:FYI, fsck only checks for ext2 filesystem on puppy412
What is happening in the console when I run:

Code: Select all

# fsck /mnt/home/puppy412retro/pup_save-412retro.2fs
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/mnt/home/puppy412retro/pup_save-412retro.2fs: clean, 2188/65536 files, 72494/262144 blocks
So to make sure the pup_save.2fs is error free before I back it up I have to boot into a different puppy and manually run fsck:

Code: Select all

# fsck.vfat -v /mnt/home/puppy412retro/pup_save-412retro.2fs
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
What are these lines telling me? If anything...

Code: Select all

dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
BTW I have eliminated psubok from the menu.lst entry for puppy 412. Thanks for the advice.

Re: fsck on vfat

Posted: Sat 29 May 2010, 09:55
by Patriot
Hmmm .....
don922 wrote:So to make sure the pup_save.2fs is error free before I back it up I have to boot into a different puppy and manually run fsck: ...
It depends. If without pfix=fsck then (usually) yes. If with pfix=fsck then (usually) no.

Code: Select all

# fsck.vfat -v /mnt/home/puppy412retro/pup_save-412retro.2fs
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
The pup_save-412retro.2fs is an ext2 filesystem stored in folder \puppy412retro within a FAT32 filesystem .... So, the fsck is for your *.2fs savefile, not for your FAT32 win98lite system ..... :wink:

To check your savefile, example:

Code: Select all

e2fsck -v /mnt/home/puppy412retro/pup_save-412retro.2fs
-or-
e2fsck -av /mnt/home/puppy412retro/pup_save-412retro.2fs
(Hint: The fsck is done in initrd but fsck.vfat is not available there .... fsck.vfat is only available after puppy is fully loaded.)


Rgds

Posted: Sat 29 May 2010, 10:19
by don922
@ Patriot: I was editing my previous post while you were responding -- you beat me with your answer.

I think that you have made this clearer to me, but I still am kind of lost...............

For now I am going to use your suggested:

Code: Select all

kernel (hd0,0)/puppy412retro/vmlinuz pmedia=idehd pdev1=hda1 psubdir=puppy412retro pfix=fsck
Thank you again for your help..............

Posted: Mon 31 May 2010, 09:31
by cthisbear
A Mr Thicky question.

I had 2 comps yesterday playing up.

I used Falcons Boot disk and typed in

chkdsk /f c:

Which ran perfectly and fixed one comp...shutdown took forever

and the other >> Acer laptop...which wouldn't let me
delete some folders in XP..Puppy..or Hirens.

Chkdsk always worries me though.
If the drive is IFFY it might die...to my way of thinking.

So can I do anything in Puppy...similar for Fat32 or NTFS ?

Great win rescue tools...even the mini = 47 megs.

http://thepiratebay.org/torrent/5283510 ... s_9.9__ERD

Mini Falcon.

http://thepiratebay.org/torrent/5373232 ... _Kon-Boot_

Chris.