Dpup +fsck for ext3 partition

Puppy related raves and general interest that doesn't fit anywhere else
Post Reply
Message
Author
ndujoe1
Posts: 851
Joined: Mon 05 Dec 2005, 01:06

Dpup +fsck for ext3 partition

#1 Post 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?

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#2 Post 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.
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]

don922
Posts: 433
Joined: Sat 19 Jan 2008, 07:58
Location: Nong Yai Buah

#3 Post 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?
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]

User avatar
Patriot
Posts: 733
Joined: Thu 15 Jan 2009, 19:04

#4 Post 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

don922
Posts: 433
Joined: Sat 19 Jan 2008, 07:58
Location: Nong Yai Buah

fsck on vfat

#5 Post 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.
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]

User avatar
Patriot
Posts: 733
Joined: Thu 15 Jan 2009, 19:04

Re: fsck on vfat

#6 Post 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

don922
Posts: 433
Joined: Sat 19 Jan 2008, 07:58
Location: Nong Yai Buah

#7 Post 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..............
[color=green][i]Don -- Thailand[/i][/color]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]

cthisbear
Posts: 4422
Joined: Sun 29 Jan 2006, 22:07
Location: Sydney Australia

#8 Post 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.

Post Reply