Dpup +fsck for ext3 partition
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?
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.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
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
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?
@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
Does this look right? Any suggestions?
Last edited by don922 on Sat 29 May 2010, 09:16, edited 1 time in total.
[color=green][i]Don -- Thailand[/i][/color]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]
Hmmm .....
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
FYI, fsck only checks for ext2 filesystem on puppy412, example:don922 wrote: ........
kernel (hd0,0)/puppy412retro/vmlinuz pfix=fsck.vfat PMEDIA=idehd PDEV1=hda1 psubdir=puppy412retro psubok=TRUE
........
Code: Select all
kernel (hd0,0)/puppy412retro/vmlinuz pmedia=idehd pdev1=hda1 psubdir=puppy412retro pfix=fsck
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
What is happening in the console when I run:Patriot wrote:FYI, fsck only checks for ext2 filesystem on puppy412
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
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.
Code: Select all
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
Last edited by don922 on Sat 29 May 2010, 10:01, edited 1 time in total.
[color=green][i]Don -- Thailand[/i][/color]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]
Re: fsck on vfat
Hmmm .....
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:
(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
It depends. If without pfix=fsck then (usually) yes. If with pfix=fsck then (usually) no.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: ...
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.
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
Rgds
@ 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:
Thank you again for your help..............
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
[color=green][i]Don -- Thailand[/i][/color]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]
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.
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.