LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 02-09-2006, 11:08 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
e2fsck and fsck.ext3


What's the difference between them? I am almost sure, that there is no difference between them. However, fsck.ext3 is not a symlink to e2fsck, as i suspected.
 
Old 02-09-2006, 11:22 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
"What's the difference between them? I am almost sure, that there is no difference between them. However, fsck.ext3 is not a symlink to e2fsck, as i suspected."


there's a huge difference in that fsck.ext3 is fsck for ext3 file systems whereas e2fsck only works on the older ext2 file system.

so their usage is entirely dependant on what file system(s) you have...
 
Old 02-09-2006, 11:27 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
On my Debian box, e2fsck, fsck.ext2 and fsck.ext3 are all HARDLINKS to each other, not symlinks. fsck.jfs and jfs_fsck are also hardlinked to each other.
Code:
$ cd /sbin
$ ls -l *fsck*
-rwxr-xr-x 1 root root  45036 2005-06-15 15:27 dosfsck
-rwxr-xr-x 3 root root 130504 2005-12-10 21:13 e2fsck
-rwxr-xr-x 1 root root  18208 2005-12-10 21:13 fsck
-rwxr-xr-x 1 root root  10548 2005-12-09 14:52 fsck.cramfs
-rwxr-xr-x 3 root root 130504 2005-12-10 21:13 fsck.ext2
-rwxr-xr-x 3 root root 130504 2005-12-10 21:13 fsck.ext3
-rwxr-xr-x 2 root root 396908 2005-06-23 07:08 fsck.jfs
-rwxr-xr-x 1 root root  20420 2005-12-09 14:52 fsck.minix
lrwxrwxrwx 1 root root      7 2005-11-13 22:41 fsck.msdos -> dosfsck
-rwxr-xr-x 1 root root    413 2005-11-19 07:09 fsck.nfs
-rwxr-xr-x 1 root root 285672 2005-08-18 05:23 fsck.reiser4
lrwxrwxrwx 1 root root      7 2005-11-13 22:41 fsck.vfat -> dosfsck
-rwxr-xr-x 1 root root   2604 2005-11-16 15:36 fsck.xfs
-rwxr-xr-x 2 root root 396908 2005-06-23 07:08 jfs_fsck
-rwxr-xr-x 1 root root 200748 2005-06-23 07:08 jfs_fscklog
$
 
Old 02-09-2006, 11:46 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
it might be the same binary, but it a like a different bit of the same penknife eh.....

why would you even consider running an ext2 check on ext3 file system?? lol. whatever floats your boat!
 
Old 02-09-2006, 12:29 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
Originally Posted by satinet
why would you even consider running an ext2 check on ext3 file system?? lol. whatever floats your boat!
You do realize that ext3 is nothing more than ext2 with a journal, don't you???!!!

You can certainly use ext2 tools on an ext3 filesystem. It's done all the time. You want to resize an ext3 filesystem? There is no "resize3fs" command. You use "resize2fs". The fsck commands for ext2 and ext3 are identical as the illustration below shows:
Code:
$ cmp /sbin/fsck.ext2 /sbin/fsck.ext3
$ echo $?
0
$
Compare the above output from cmp (nonexistant output, since the files are identical) to the output from cmp for two files that are clearly different:
Code:
$ cmp /sbin/fsck.ext2 /sbin/fsck.reiser4
/sbin/fsck.ext2 /sbin/fsck.reiser4 differ: byte 25, line 1
$ echo $?
1
$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
e2fsck is running for 3 days checking 800 GB ext3 lvm volume kyriakos Linux - Software 8 02-06-2006 03:21 PM
cannot succeed using e2fsck on an ext3 crypt file, Suse V. 10 DeekBeek Linux - Newbie 5 01-18-2006 10:10 AM
Running fsck (or e2fsck) on root file system... xbill311x Linux - Newbie 2 01-02-2006 11:54 PM
Ambiguous error messages from fsck, but not from e2fsck jiffydude Linux - Software 2 09-12-2003 07:02 PM
fsck, e2fsck, mke2fs ?'s - RH9 blackx Linux - Newbie 6 05-23-2003 03:02 PM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration