免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: changingsong
打印 上一主题 下一主题

有块盘修复不好,大家帮忙看看 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-07-18 10:04 |只看该作者
format> ver

Primary label contents:

Volume name = <        >
ascii name  = <SUN72G cyl 14087 alt 2 hd 24 sec 424>
pcyl        = 14089
ncyl        = 14087
acyl        =    2
nhead       =   24
nsect       =  424
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm     104 -  2164       10.00GB    (2061/0/0)   20972736
  1       swap    wu       0 -   103      516.75MB    (104/0/0)     1058304
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3       home    wm    2165 -  2494        1.60GB    (330/0/0)     3358080
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm    2495 - 14086       56.25GB    (11592/0/0) 117960192

root@b2000-2 # more etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
/proc           -               /proc           proc    -       no      -
fd              -               /dev/fd         fd      -       no      -
swap            -               /tmp            tmpfs   -       yes     -

/dev/dsk/c1t2d0s0 /dev/rdsk/c1t2d0s0 / ufs 1 no  -
/dev/dsk/c1t2d0s7 /dev/rdsk/c1t2d0s7 /gri  ufs 1 yes -
#/dev/dsk/c1t1d0s6 /dev/rdsk/c1t1d0s6 /data1  ufs 1 yes -
#/dev/dsk/c2t1d0s6 /dev/rdsk/c2t1d0s6 /data ufs 2 yes -
/dev/dsk/c1t2d0s3 -     - swap - no -
/dev/dsk/c1t2d0s1 -     - swap - no -
你是想看2分区是否可挂接是吗?本来是不可以的,我想试试改成可挂接行不行,结果也不行

论坛徽章:
0
12 [报告]
发表于 2007-07-18 12:59 |只看该作者
你是想看2分区是否可挂接是吗?本来是不可以的,我想试试改成可挂接行不行,结果也不行
According to your /etc/vfstab file, you should not be able to mount or fsck c1t2d0s2 since it is partitioned and the partitions are in use.

论坛徽章:
0
13 [报告]
发表于 2007-07-18 16:13 |只看该作者
我在修复c1t2d0s2的时候,c1t2上的所有分区都是没有挂接的,这块盘本是一块系统盘,在本机修复不了,我插到别的机器上修复的,所以上面的/etc/vfstab并不能代表真实的挂接情况,仅仅是位于这块盘上

论坛徽章:
0
14 [报告]
发表于 2007-07-18 21:26 |只看该作者
It doesn't matter whether the partitions are mounted or unmounted and it doesn't matter whether you change a machine or not. As long as you didn't create a UFS on c1t2d0s2 (newfs command), you won't be able to fsck it. Bear in mind, if you do newfs on c1t2d0s2, all data on the other partitions on the same disk is erased.

论坛徽章:
0
15 [报告]
发表于 2007-07-19 08:33 |只看该作者
哦,明白了,那这块盘还有别的办法修复吗?里面有些重要软件不能丢啊

论坛徽章:
0
16 [报告]
发表于 2007-07-19 09:03 |只看该作者
哦,明白了,那这块盘还有别的办法修复吗?里面有些重要软件不能丢啊


Try,

1. fsck -F ufs -y /dev/rdsk/c1t2d0s0
2. fsck -F ufs -y /dev/rdsk/c1t2d0s7
3. mkdir /oldroot   /oldgri
4. mount  /dev/dsk/c1t2d0s0 /oldroot
5. mount /dev/dsk/c1t2d0s7 /oldgri
6. cd /oldroot or cd /oldgri
you sure see all your data

论坛徽章:
0
17 [报告]
发表于 2007-07-19 09:46 |只看该作者
这两个分区的内容都是没问题的,我已经把盘插到别的机器上看过了。如果把这两个分区的内容整个的复制到新的盘上,且保证新盘与源盘规格以及分区表一致,那新盘还能作为原机器的系统盘吗?用dd命令呢?

论坛徽章:
0
18 [报告]
发表于 2007-07-19 10:34 |只看该作者
I'd simply tar it over.

论坛徽章:
0
19 [报告]
发表于 2007-07-19 10:43 |只看该作者
学习中...................

论坛徽章:
0
20 [报告]
发表于 2007-07-19 11:38 |只看该作者
风兄这就不用学习了吧. 您老相关文章都写了好几篇了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP