Re: Restoring superblock backup?

[ Available lists | Index of freebsd-hackers | Month of Dec 2002 | Week of 15 Dec 2002 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Yury Tarasievich <grog@grsu.by>
Date
15 Dec 2002 00:45:34
Subject
Re: Restoring superblock backup?
Message-ID
3DFB9DB0.1020708@grsu.by

References to
Replies

[ Hide this part ]
 

Andreas Klemm wrote:

>On Fri, Dec 13, 2002 at 02:28:00PM -0800, Nate Lawson wrote:
>
>
>>I've successfully repaired a fs with the superblock backup at 32. Now how
>>do I copy that backup to the default superblock location? fsck_ffs does
>>NOT automatically do this.
>>
>>
>
>It does. With fsck -b 32 you use the alternate super block to repair
>the filesystem just in case the superblock in at the usual place is
>damaged. After that the filesystem is completely repaired ...
>Of course the previously damages superblock ...
>
>fsck does the same things only that you choosed the first copy
>of the superblock, that is always on block 32. The next copy
>depends on the size and geometry of the filesystem and is not
>so easy predictable like the "32" which is always present ....
>
>
If FS boundaries are right, one can always try newfs -N, then fsck with -b.
I tried this once and succeeded using superblock copy being really more
distant from FS start.



>
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Elapsed time: 0.134 seconds