Re: e2image doesn't get backup superblocks?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 20, 2012 at 10:35:27AM -0500, Phillip Susi wrote:
> 
> I've noticed that e2image doesn't get the backup superblocks and group
> descriptors.  Is this intentional or an oversight?  

It's deliberate.  I suppose it might be useful if you are using
e2image -r to make a copy of a corrupted file system, where the
primary superblocks are corrupted.  It's probably reasonable to save a
copy of the first backup superblock just so that e2fsck run on the raw
image mimicks what you'd see if you were running on the same file
system.   I'd accept a patch to do this.

> Is there a way to resync the backups from the master copy?  e2fsck
> doesn't seem to do it.

Why do you want to do this?  In general the tools will automatically
sync the backups from the master if it is necessary (i.e., in the case
of a file system resize, or if there is a change in the file system
features).  Otherwise, we deliberately try to avoid modifying the
backups, since any updates to the backups is an opportunity to copy
corrupted values to the backups, or otherwise risk write failures that
could smash the backups.

But if you really do want to copy the master superblock and block
descriptor blocks ot backups, you can do it via the following:

debugfs -w /dev/sdb1
debugfs: dirty
debugfs: close -a
debugfs: quit

Regards,

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux