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 Thu 21 Aug 2014, 10:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Linux file system checking
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
8-bit


Joined: 03 Apr 2007
Posts: 3364
Location: Oregon

PostPosted: Sun 04 Sep 2011, 09:22    Post subject:  Linux file system checking
Subject description: file system checkers.
 

Have you ever noticed that Puppy only comes with e2fsck and all the other linux filesystem checkers for ext3 and ext4 are just links to fsck.ext2?

Well, somewhere I had downloaded an image of Ubuntu-9.04.ext3.1gb.fs.
I added a 3fs extension to it and was able to mount it.
There I found "fsck.ext2, fsck.ext3. fsck.ext4, fsck.ext4dev, and fsck.minix".

I am running Puppy Lucid 5.20 and got brave and tried running fsck.ext2 on an old pupsave.2fs file.
It did a 5 part check and I had never seen that with Puppy.
So are we missing out?

If you want to try them on an old pupsave, I am attaching them.
To use, "#./fsck.ext2 -y /path/pupsave.2fs".
Remove the "-y" if you do not want automatic repairs.
filesystem_checkers.tar.gz
Description  Filesystem checkers for linux from Ubuntu 9.04.
Use at your own risk. No guarantees even if run from Puppy Lucid although it seemed to work.
gz

 Download 
Filename  filesystem_checkers.tar.gz 
Filesize  416.88 KB 
Downloaded  282 Time(s) 
Back to top
View user's profile Send private message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Sun 04 Sep 2011, 11:00    Post subject:  

8-bit;

This is what comes with Puppy (Wary in this case).
(typed fsck in pfind)
How does it differ after using your tip?
fsck.jpg
 Description   
 Filesize   127.65 KB
 Viewed   954 Time(s)

fsck.jpg


_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2232

PostPosted: Sun 04 Sep 2011, 13:20    Post subject:  

fsck.ext3. fsck.ext4 and fsck.ext4dev are commonly either links to fsck.ext2 or are wrappers which call fsck.ext2. This is beacuse fsck.ext2 is multi-call binary -it behaves differently depending on what it is called. Some distros may leave the programs just like the sources install them -which is that they are all hard-links sharing the same inode. If the installation or package-creation process simply *copies* them into the directory, then they each become a separate binary -exactly identical to each of the others. That is a waste of space. If they remain as hardlinks, then they will show as having the original size -that is, one inode will be counted four time -so it lloks like the package needs more space than it really does.

The fsck 'programs' for fat, vfat etc, are sually just a tiny wrapper which runs the command 'true'. Which means that they do nothing. There are no linux/unix tools for fat/vfat/ntfs fs maintenance or defragging.

If the other distro tools are doing more, it is because they are using the *real* tools and not cut-down busybox versions. Damned busybox strikes again... So now, the puppy solution would be to install the real tool naming fsck-full, change the name of the busybox link to fsck-bb and then create a slow shell wrapper named fsck, which intercepts any calls to fsck, does some perverse guessing to figure out what the user really wants, and then run either the 'full' version or the busybox version according to that guess...
Back to top
View user's profile Send private message 
alienjeff


Joined: 08 Jul 2006
Posts: 2291
Location: Winsted, CT - USA

PostPosted: Sun 04 Sep 2011, 14:36    Post subject:  

amigo wrote:
If the other distro tools are doing more, it is because they are using the *real* tools and not cut-down busybox versions. Damned busybox strikes again.


Code:

[jeff@kayak ~]$ e2
e2freefrag  e2fsck      e2image     e2label     e2undo



Code:

[jeff@kayak ~]$ fs
fsadm          fsck.cramfs    fsck.ext3      fsck.ext4dev   fsck.minix     fsck.xfs       fstab-decode   
fsck           fsck.ext2      fsck.ext4      fsck.jfs       fsck.reiserfs  fsfreeze       fstrim


Thank you, Arch Linux ...

_________________
hangout: ##b0rked on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 04 Sep 2011, 14:44    Post subject:  

amigo wrote:
If the other distro tools are doing more, it is because they are using the *real* tools and not cut-down busybox versions. Damned busybox strikes again... So now, the puppy solution would be

or use ext2 only Cool
I haver never used another fs in puppy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0563s ][ Queries: 12 (0.0051s) ][ GZIP on ]