LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2008, 12:22 PM   #1
user2002
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Arrow #What's the difference between these?


I've been a long time reiserfs user, since 2002.

The project I'm doing involves an ext3 journalised fs.

What is the difference between:

1. mkfs.ext3 /dev/sda1
and
2. mkfs.ext3 -j /dev/sda1

Are they both journalised or just the second one with the -j option?

By the way, I had a look at the man page but the explanation is quite vague. I personally think it is a journal fs on both cases but someone with more experince on ext2/ext3 would know the answer straight away.



Cheers
 
Old 10-15-2008, 01:25 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
From 'man mkfs.ext3': "if called as mkfs.ext3 a journal is created as if the -j option was specified", so you don't need "-j" if you use the "mkfs.ext3" command.
 
Old 10-15-2008, 01:39 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The only technical difference between ext2 and 3 is the journal. So, using mkfs.ext3 -j is really redundant. -j has a real meaning when you use mke2fs.
 
Old 10-16-2008, 02:47 AM   #4
user2002
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Arrow

Thank you for the answers, all helpful.

Here is what I found, just in case someone else is interested to know:

mkfs.ext3 /dev/sda1
mkfs.ext3 -j /dev/sda1
mke2fs -j /dev/sda1

Apparently all three commands will create an ext3 journalised file system.

The difference is they will be checked by the system respectively:
after it has been mounted 21 times
after it has been mounted 37 times
after it has been mounted 20 times.
 
Old 05-20-2016, 02:38 AM   #5
arun natarajan
Member
 
Registered: Jun 2014
Posts: 111

Rep: Reputation: Disabled
What kind of check will be done by the system after respective number of mounts ??

Hope the system will be scanning the partitions for data and for other parameters.
 
Old 05-20-2016, 03:20 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Duplicate post - as well as waking up a long dead thread
 
Old 05-20-2016, 07:14 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,633
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
... Yeah, and information that old is probably no longer accurate, anyway.

(Unfortunately, many forums and other Internet sources, while giving the "month and day" that a post was created, neglect to provide the year. Search engines, also, when looking for "relevancy," tend to consider only content ... because they probably don't have a way to know when a post was written. ("It looks good to me, but, then again, I am a computer.") Linux is changing very fast these days, and only the most-current information should be relied upon.
 
  


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
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 04:26 AM
difference between user52 Linux - Newbie 4 11-27-2006 05:24 PM
Difference Between..... SmithSmith123 Linux - Certification 1 11-17-2005 02:51 AM
What's The Difference Rick069 Linux - General 3 10-16-2005 06:42 PM
What is the difference? swmok Debian 1 04-22-2004 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 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
Open Source Consulting | Domain Registration