tech-kern archive

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

Re: ext2fs superblock updates





On Thu, Nov 16, 2017 at 12:12 PM, Mouse <mouse%rodents-montreal.org@localhost> wrote:
>> They are generated by _newfs_ and left untouched thereafter.
> Interesting, thanks.  what's so useful about the superblock at newfs
> time?

It contains enough information for fsck to find other critical things
(like cylinder groups and their inode tables).  If the primary
superblock has been destroyed but the rest of the filesystem is intact,
fsck is supposed be able to put the filesystem back together with the
help of a backup superblock.

Yes. For UFS filesystems on BSD labeled disks, there's additional hints to fsck about the size of different parts of the filesystem that allow it to guess fairly well at the location of these alternate super blocks.

Warner


Home | Main Index | Thread Index | Old Index