Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 09:42
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
Dpup +fsck for ext3 partition
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
ndujoe1

Joined: 04 Dec 2005
Posts: 700

PostPosted: 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
View user's profile Send_private_message 
dejan555


Joined: 30 Nov 2008
Posts: 2689
Location: Montenegro

PostPosted: 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
View user's profile Send_private_message Visit_website MSNM 
don922

Joined: 19 Jan 2008
Posts: 380
Location: The land of 14" monitors

PostPosted: 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


Edited_time_total
Back to top
View user's profile Send_private_message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: 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
View user's profile Send_private_message 
don922

Joined: 19 Jan 2008
Posts: 380
Location: The land of 14" monitors

PostPosted: 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


Edited_time_total
Back to top
View user's profile Send_private_message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: 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 ..... Wink

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
View user's profile Send_private_message 
don922

Joined: 19 Jan 2008
Posts: 380
Location: The land of 14" monitors

PostPosted: 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
View user's profile Send_private_message 
cthisbear

Joined: 29 Jan 2006
Posts: 3434
Location: Sydney Australia

PostPosted: 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
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0661s ][ Queries: 11 (0.0038s) ][ GZIP on ]