- 论坛徽章:
- 0
|
楼上的newfs选项写错了,应该是N,特此更正
To replace a superblock, you must know what backup superblocks are available
on your disk. This is a simply informational step, and doesn\'t actually affect
anything or change your filesystem. To do this, run the command:
# newfs -Nv devicename.
Here is some sample output from this command.
# newfs -Nv c0t3d0s0
mkfs -F ufs -o N /dev/rdsk/c0t3d0s0 1755600 80 19 8192 1024 16 7 90 2048 t 0
-1 8 128
/dev/rdsk/c0t3d0s0: 1755600 sectors in 1155 cylinders of 19 tracks,
80 sectors 857.2MB in 73 cyl groups (16 c/g, 11.88MB/g, 5696 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 24432, 48832, 73232, 97632, 122032, 146432, 170832, 195232, 219632,
244032, 268432, 292832, 317232, 341632, 366032, 390432, 414832, 439232,
463632, 488032, 512432, 536832, 561232, 585632, 610032, 634432, 658832,
683232, 707632, 732032, 756432, 778272, 802672, 827072, 851472, 875872,
900272, 924672, 949072, 973472, 997872, 1022272, 1046672, 1071072, 1095472,
1119872, 1144272, 1168672, 1193072, 1217472, 1241872, 1266272, 1290672,
1315072, 1339472, 1363872, 1388272, 1412672, 1437072, 1461472, 1485872,
1510272, 1534672, 1556512, 1580912, 1605312, 1629712, 1654112, 1678512,
1702912, 1727312, 1751712,
#
Then you run fsck to replace the superblock. You will notice this syntax is
listed in the above output also, but this implies that you know what it\'s for.
# fsck -F ufs -o b=XX c0t3d0s0
where XX is a superblock backup from the above list.
If this doesn\'t work, then you can try successive superblock backups until
you find one that does. If none of them work, then your filesystem needs to
be recreated at the least, and you will need to restore from backup. |
|