免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1688 | 回复: 3
打印 上一主题 下一主题

关于/dev/rdsk/c0t0d0s0文件系统 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-18 22:46 |只看该作者 |倒序浏览
这个文件系统是干吗用的啊?/dev/rdsk/c0t0d0s0
是不是只保存超级块信息啊?
可以直接重建吗? 然后恢复超级块?

多谢指点

论坛徽章:
0
2 [报告]
发表于 2006-04-18 22:57 |只看该作者
这是裸设备哦!

论坛徽章:
0
3 [报告]
发表于 2006-04-18 23:18 |只看该作者
好像是的哦?那下面到底怎么回事情?
  4.Find the locations of alternate super blocks. BE SURE TO USE AN UPPERCASE -N. For

example:

      # newfs -N /dev/rdsk/c0t0d0s0
      /dev/rdsk/c0t0d0s0:     2048960 sectors in 1348 cylinders of 19 tracks,
      80 sectors 1000.5MB in 85 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, 1290672, ...

   5.Using an alternate super block, run fsck(1M) on the disk. You might have to try more

than one alternate super block to make this to work. Pick a couple from the beginning, the

middle, and the end.

      # fsck -o b=<altblk> /dev/rdsk/c0t0d0s0

   6.The boot block is probably bad too. Restore it while you are booted from the CD-ROM.

      # /usr/sbin/installboot /usr/platform/architecture/lib/fs/ufs/bootblk
      /dev/rdsk/c0t0d0s0

   7.Reboot the operating environment.

      # reboot

论坛徽章:
0
4 [报告]
发表于 2006-04-19 00:26 |只看该作者
这个是,当你的超块由于非法断电等造成损坏时.用备份块来恢复超块.# newfs -N /dev/rdsk/c0t0d0s0 这个命令是查卡所有的备份块的数据块号. # fsck -o b=<altblk> /dev/rdsk/c0t0d0s0  这个是用指定的备份块来恢复超块
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP