免费注册 查看新帖 |

Chinaunix

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

超级奇怪的问题,启动的时候,第一块硬盘找不到 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-22 14:28 |只看该作者 |倒序浏览
有一个V440机器,有4个147G的硬盘,OS是solaris8
出现问题如下,从硬盘启动的时候,无法mount第一块硬盘,并且使用format,无法发现第一块硬盘,使用prtvtoc检测,c1t0d0s0和c1t0d0s1的flags为10(read-only);但是如果通过cdrom启动,就是正常的,format和prtvtoc都能得到正确的结果;如果在ok下,用probe-scsi-all,也能检测到4个硬盘

#########################################################
从硬盘启动,出现如下错误:
/dev/dsk/c1t0d0s1: Read-only file system
The / file system (/dev/rdsk/c1t0d0s0) is being checked.
/dev/rdsk/c1t0d0s0: (NO WRITE ACCESS)

/dev/rdsk/c1t0d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.


fsck -F ufs /dev/rdsk/c1t0d0s0
** /dev/rdsk/c1t0d0s0 (NO WRITE)
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).

使用fsck -F ufs -o b=993312 /dev/dsk/cit0d0s0,出现如下错误
fsck -F ufs -o b=993312
Alternate super block location: 993312.
** /dev/rdsk/c1t0d0s0 (NO WRITE)
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).
Alternate super block location: 993312.
** /dev/rdsk/c1t0d0s3 (NO WRITE)

CANNOT READ: BLK 993312
CONTINUE?  no

Program terminated
Alternate super block location: 993312.
** /dev/rdsk/c1t0d0s4 (NO WRITE)

CANNOT READ: BLK 993312
CONTINUE?  no

Program terminated
Alternate super block location: 993312.
** /dev/rdsk/c1t0d0s6 (NO WRITE)

CANNOT READ: BLK 16
CONTINUE?  no

Program terminated
Alternate super block location: 993312.
** /dev/rdsk/c1t0d0s5 (NO WRITE)

CANNOT READ: BLK 993312
CONTINUE?  no

Program terminated
Alternate super block location: 993312.
** /dev/rdsk/c1t0d0s7 (NO WRITE)

CANNOT READ: BLK 16
CONTINUE?  no

Program terminated
Alternate super block location: 993312.
** /dev/rdsk/c1t1d0s3
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).
Alternate super block location: 993312.
** /dev/rdsk/c1t1d0s0
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).



AVAILABLE DISK SELECTIONS:
       0. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1f,700000/scsi@2/sd@1,0
       1. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1f,700000/scsi@2/sd@2,0
       2. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1f,700000/scsi@2/sd@3,0


#############################################################
从cdrom启动:
format
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1f,700000/scsi@2/sd@0,0
       1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1f,700000/scsi@2/sd@1,0
       2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1f,700000/scsi@2/sd@2,0
       3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1f,700000/scsi@2/sd@3,0


# prtvtoc /dev/dsk/c1t0d0s0
* /dev/dsk/c1t0d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*     848 sectors/track
*      24 tracks/cylinder
*   20352 sectors/cylinder
*   14089 cylinders
*   14087 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00          0  10257408  10257407
       1      3    01   10257408  16403712  26661119
       2      5    00          0 286698624 286698623
       3      7    00   26661120  12292608  38953727
       4      0    00   38953728  24585216  63538943
       5      0    00   63538944  20494464  84033407
       6      8    00   84033408 122885376 206918783
       7      0    00  206918784  79779840 286698623

#############################################################
在OK下:
probe-scsi-all
This command may hang the system if a Stop-A or halt command
has been executed.  Please type reset-all to reset the system
before executing this command.
Do you wish to continue? (y/n) y
/pci@1f,700000/scsi@2,1

/pci@1f,700000/scsi@2
Target 0
  Unit 0   Disk     FUJITSU MAX3147NCSUN146G1503    286739329 Blocks, 140009 MB
Target 1
  Unit 0   Disk     FUJITSU MAX3147NCSUN146G1503    286739329 Blocks, 140009 MB
Target 2
  Unit 0   Disk     FUJITSU MAX3147NCSUN146G1503    286739329 Blocks, 140009 MB
Target 3
  Unit 0   Disk     FUJITSU MAX3147NCSUN146G1503    286739329 Blocks, 140009 M




















请教各位高手,到底是什么原因导致从硬盘启动无法发现第一个硬盘?

论坛徽章:
0
2 [报告]
发表于 2007-11-22 15:23 |只看该作者
fsck -F ufs -o b=993312 /dev/dsk/cit0d0s0
这个超级块不是你的备用超级块,只是硬盘上表明坏块的地方。
newfs -N /dev/dsk/c1t0d0s0 查看可用的超级块,然后b=显示出来的超级块替换

论坛徽章:
0
3 [报告]
发表于 2007-11-22 16:50 |只看该作者
fsck -F ufs -o b=993312 /dev/dsk/cit0d0s0中的 993312就是通过newfs -N /dev/dsk/c1t0d0s0查找出来的,使用了好几个其他的超级快,都出现同样的错误。 关键是执行之后,报Alternate super block location: 993312.
** /dev/rdsk/c1t0d0s0 (NO WRITE)
就是找到备用超级快,也写不到硬盘里去,因为硬盘1没有认出来。
就是想知道用什么方法可以在硬盘启动的时候认出第一块硬盘
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP