| Author |
Message |
ndujoe1
Joined: 04 Dec 2005 Posts: 620
|
Posted: Fri 14 May 2010, 09:15 Post subject:
Dpup +fsck for ext3 partition |
|
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?
|
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2407 Location: Montenegro
|
Posted: Fri 14 May 2010, 09:21 Post subject:
|
|
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.
_________________

|
|
Back to top
|
|
 |
don922
Joined: 19 Jan 2008 Posts: 337 Location: The land of 14" monitors
|
Posted: Sat 29 May 2010, 02:44 Post subject:
|
|
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: | 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?
_________________ Don -- Thailand

Last edited by don922 on Sat 29 May 2010, 05:16; edited 1 time in total
|
|
Back to top
|
|
 |
Patriot

Joined: 15 Jan 2009 Posts: 734
|
Posted: Sat 29 May 2010, 05:15 Post subject:
|
|
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: | | 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
|
|
Back to top
|
|
 |
don922
Joined: 19 Jan 2008 Posts: 337 Location: The land of 14" monitors
|
Posted: Sat 29 May 2010, 05:37 Post subject:
fsck on vfat |
|
| Patriot wrote: | | FYI, fsck only checks for ext2 filesystem on puppy412 |
What is happening in the console when I run:
| Code: | # 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: | # 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: | 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.
_________________ Don -- Thailand

Last edited by don922 on Sat 29 May 2010, 06:01; edited 1 time in total
|
|
Back to top
|
|
 |
Patriot

Joined: 15 Jan 2009 Posts: 734
|
Posted: Sat 29 May 2010, 05:55 Post subject:
Re: fsck on vfat |
|
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: | # 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 .....
To check your savefile, example:
| Code: | 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
|
|
Back to top
|
|
 |
don922
Joined: 19 Jan 2008 Posts: 337 Location: The land of 14" monitors
|
Posted: Sat 29 May 2010, 06:19 Post subject:
|
|
@ 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: | kernel (hd0,0)/puppy412retro/vmlinuz pmedia=idehd pdev1=hda1 psubdir=puppy412retro pfix=fsck
|
Thank you again for your help..............
_________________ Don -- Thailand

|
|
Back to top
|
|
 |
cthisbear
Joined: 29 Jan 2006 Posts: 2980 Location: Sydney Australia
|
Posted: Mon 31 May 2010, 05:31 Post subject:
|
|
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/FalconFour_s_Ultimate_Boot_CD_USB_2.0_-_Hiren_s_9.9__ERD
Mini Falcon.
http://thepiratebay.org/torrent/5373232/FalconFour_s_Micro_Boot_CD_2.5_-_Live_XP__Spinrite__Kon-Boot_
Chris.
|
|
Back to top
|
|
 |
|