看板FreeBSD
标 题[问题] 请问在 4.10 的环境下要 mount 5.1 版的硬碟
发信站无名小站 (Sat Oct 2 10:01:18 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.csie.nctu!wretch
是这样的 本来这个系统装的是 5.1 release 用的是 Q - 6.4GB HDD
这几天老板答应买新硬碟来用,所以买了一个 WD 80GB 的
在 WD 80GB 上面灌好了 4.10 之後,要去 mount 6.4GB 的 HDD 时,
会出现 incorrect super block 的讯息
试着去 fsck 时会出现
BAD SUPER BLOCK: MAGIC NUMBER WRONG
本来想会不会是比较新的版本的问题,於是用 6.4GB 的 5.1-release 开机,
想要去 mount 新硬碟,但也是发生同样的状况
然後,猜测也许是 6.4GB HDD 本身可能有问题,
跟朋友借了一个同样的 WD-80GB HDD,分割好了以後,用 6.4GB 的 5.1-release
开机去 mount ,是可以 mount 的,并且可以把资料 cp 进去
但是这个朋友的WD,虽然可以在 5.1-release 的环境底下存取资料,
当回到 4.10 的环境之下,要 mount 它的时候,又出现了
stu# mount /dev/ad1s2d /mnt
mount: /dev/ad1s2d on /mnt: incorrect super block
在 google 爬过,大部分的资料写 incorrect super block 会出现在
试图把 cd9060 的光碟当成 ufs mount 时。但这两个档案系统应该都是 ufs 啊
爬了无名的 bsd 板,之前有前辈提过要看
disklabel -r /dev/ad1s2d 和 fdisk /dev/ad1 的内容,但看来看去还是不懂
附上如下,请各位前辈指教,感恩。
--- disklabel -r /dev/ad1s2d ---
stu# disklabel -r /dev/ad1s2d
# /dev/ad1s2d:
type: ESDI
disk: ad1s2
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 3916
sectors/unit: 62910540
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
c: 62910540 0 unused 0 0 # (Cyl. 0 - 3915)
d: 62910540 0 4.2BSD 0 0 0 # (Cyl. 0 - 3915)
--- fdisk /dev/ad1 ---
******* Working on device /dev/ad1 *******
parameters extracted from in-core disklabel are:
cylinders=9729 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=9729 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 63, size 20964762 (10236 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 20964825, size 62910540 (30718 Meg), flag 80 (active)
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 83875365, size 72421020 (35361 Meg), flag 80 (active)
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
<UNUSED>
stu#
--
夫兵者不祥之器物或恶之故有道者不处君子居则贵左用兵则贵右兵者不祥之器非君子
之器不得已相簿 http://www.wretch.twbbs.org/album 有布景主题 速度很快於天下
矣吉事尚左凶事尚右偏将军居左上将军居右言以丧礼处之杀人之众以哀悲泣之战胜以
丧礼处之道常无名朴虽小天下莫能臣侯王若能守之万物将自宾天地相合以降甘露民莫
之令而自均始制有名名亦既有夫亦将知止知220-134-102-130.HINET-IP.hinet.net海