nixCraft Linux / UNIX / Shell Scripting Forum

nixCraft

Linux / UNIX Tech Support Forum

Having queries regarding ext2 and ext3

This is a discussion on Having queries regarding ext2 and ext3 within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi all, One of my friend asked me these following questions which i cant not answer any of them.. I ...


Register free or login to your account to remove all advertisements.

Go Back   nixCraft Linux / UNIX / Shell Scripting Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

Thread Tools Display Modes
  #1 (permalink)  
Old 16th November 2009, 08:42 AM
kumarat9pm's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL(4/5),UBUNTU..
Scripting language: Bash,PHP,Perl(noob)
Posts: 635
Thanks: 32
Thanked 41 Times in 36 Posts
Rep Power: 8
kumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nice
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default Having queries regarding ext2 and ext3

Hi all,

One of my friend asked me these following questions which i cant not answer any of them.. I think here some people can answer to these

1) when we tune from ext2 to ext3 we see a hidden file .journal but not the partitions we format with. why?
2)I read that when the file system gets mounted journal is mainted in kernel.is that rite?
3)when we do dumpe2fs of any partitions we see journal size = some size in Kilo bytes ,and the journal has a inode number assigned,so now this is file .Where is this file and how the journal size is calculated?


here is one document i refereed but no use for me
http://www.redhat.com/support/wpaper.../ext3/ext3.pdf

Or atleast refer some forums where i can get answers for this.
__________________
Thanks,
Surendra Kumar Anne
Linux: Fast, friendly, flexible and .... free!
Support Open source.
http://www.linuxnix.com
Reply With Quote
  #2 (permalink)  
Old 16th November 2009, 11:45 AM
nixcraft's Avatar
Never say die
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash, Perl, Python
Posts: 3,294
Thanks: 13
Thanked 411 Times in 304 Posts
Rep Power: 10
nixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond repute
Default

Quote:
1) when we tune from ext2 to ext3 we see a hidden file .journal but not the partitions we format with. why?
If you create the journal on a mounted filesystem you will see a .journal file. If you run tune2fs -j on an unmounted partition an unvisible journal file will be created.


Quote:
2)I read that when the file system gets mounted journal is mainted in kernel.is that rite?
ext3 is part of kernel, so yes Linux kernel manage ext3 via file system driver.
Quote:

3)when we do dumpe2fs of any partitions we see journal size = some size in Kilo bytes ,and the journal has a inode number assigned,so now this is file .Where is this file and how the
journal size is calculated?
No inode and journal size not same. They can very. Here is output from my desktop:
Code:
dumpe2fs /dev/sdb2 | grep size

Output:
Code:
dumpe2fs 1.41.9 (22-Aug-2009)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Block size:               4096
Fragment size:            4096
Inode size:              256
Required extra isize:     28
Desired extra isize:      28
Journal size:             128M
The journal is stored inside the filesystem (see #1 answer). The size is calculated automatically from the size of the filesystem. However, you can set journal size whiel creating file systems. The size of the journal must be at least 1024 filesystem blocks (4MB if using 4k blocks) and may be no more than 102,400 filesystem blocks. For example, create 512M journal size:
Code:
 mke2fs -J size=512 /dev/sdXY
__________________
Vivek Gite
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Do you run a Linux? Let's face it, you need help!
Cricket & IPL News Blog
Reply With Quote
Reply

Tags
dumpe2fs, ext3, ext3 journal size, filesystem, inode, mke2fs


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Ext2 file system : Mechanism on number of backup Superblocks ? swapnil Getting started tutorials 1 3rd September 2007 06:40 PM
Difference between ext2 and ext3 Linux file system nixcraft Getting started tutorials 0 18th May 2007 01:43 AM
Differnece between ext2 & ext3 Yasar Linux software 3 27th April 2007 04:10 PM
can ext3 securely delete files Linux software 1 11th January 2006 12:08 PM
ext3 windows ext3 Linux software 1 30th December 2005 12:46 AM


All times are GMT +5.5. The time now is 09:01 AM.


Powered by vBulletin® Version 3.8.6 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40