nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Ext2 file system : Mechanism on number of backup Superblocks ?

This is a discussion on Ext2 file system : Mechanism on number of backup Superblocks ? within the Getting started tutorials forums, part of the Linux Getting Started category; Hi, I have a doubt as how many redundant backups of superblock are created in the file system ? Is ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-31-2007, 12:42 PM
Junior Member
User
 
Join Date: Aug 2007
My distro: SuSe
Posts: 1
Rep Power: 0
swapnil is on a distinguished road
Default Ext2 file system : Mechanism on number of backup Superblocks ?

Hi,
I have a doubt as how many redundant backups of superblock are created in the file system ? Is it made on every block group or only on initial few block groups ?
In the filesystem that I created of size 128 MB with 16 block groups, when I run the dumpe2fs command on it, it gives the info on superblocks (These are not the exact wordings of the output ) :
primary superblock is present on block group 0,
back up superblock is present on block group 1, 3, 5, 7, 9.
Similarly for a file system with 256 MB size and 31 block groups, primary superblock is present on block group 0 and backups are present on block groups 1,3,5,7, and 9.
So my doubt is how does the file system decide how many backups of the superblock to be created ?
And the same doubt for block group descriptors as well. Block group descriptors are not present in each block group but only in the block groups where superblock is present.
Hoping for an earliest response.

Thanks,
Swapnil
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-03-2007, 07:40 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

mke2fs block-size is heuristically determined by the file system size and the expected usage of the filesystem. So you don't have to worry about it. It is calculated by mke2fs command. You can pass -n option to see exact location. Some old UNIX version has option to specify super block size.
__________________
May the force with you!
Reply With Quote
Reply

Bookmarks


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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
File System Error During Boot svoltmer Ubuntu / Debian 3 02-21-2008 02:50 PM
Script to display number of lines and words from a file newbewie Shell scripting 2 12-07-2007 11:37 PM
problem with System + MySQL backup script massoo Shell scripting 1 08-20-2007 10:50 PM
Difference between ext2 and ext3 Linux file system nixcraft Getting started tutorials 0 05-18-2007 02:43 AM
Command to Check Linux File System lacloai Getting started tutorials 3 05-14-2007 06:45 PM


All times are GMT +5.5. The time now is 02:24 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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