nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-08-2007, 11:42 AM
Junior Member
User
 
Join Date: Aug 2007
OS: SuSe
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 03-09-2007, 06:40 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
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


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 Off


Similar Threads

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


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


Powered by vBulletin® Version 3.8.5 - 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