Linux file system checking

Filemanagers, partitioning tools, etc.
Post Reply
Message
Author
User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

Linux file system checking

#1 Post by 8-bit »

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.

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#2 Post by rjbrewer »

8-bit;

This is what comes with Puppy (Wary in this case).
(typed fsck in pfind)
How does it differ after using your tip?
Attachments
fsck.jpg
(127.65 KiB) Downloaded 1176 times

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

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#3 Post by amigo »

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...

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#4 Post by alienjeff »

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: Select all

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

Code: Select all

[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 ...
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#5 Post by L18L »

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 8)
I haver never used another fs in puppy

Post Reply