森と申します。
FreeBSD 6.0-RELEASE-p6 で動かしていたサーバのマザーボードが死んで
しまったため、新規のマシンの新規ドライブに6.2-RELEASE-p8をインストー
ルし、そのマシンに旧マシンで使っていたディスク(2台)を接続しまし
た。
しかし、どちらのディスクもaパーティションしか認識されていないよう
です。【1,2】ただしどちらのパーティションに関しても、普通にアクセ
スできています。
ラベルは見えますが、いくつか警告が出ています。【3】
また、ラベルエディタのモードではパーティションは出てきません。
partition c: partition extends past end of unit
bsdlabel: partition c doesn't start at 0!
bsdlabel: An incorrect partition c may cause problems for
standard system utilities
partition f: partition extends past end of unit
この状態で、aパーティション以外をマウントできるようにするには、
bsdlabelコマンドでラベルの復元を行えばよいのでしょうか?
# bsdlabel /dev/ad2s1 > ad2s1.protofile
# bsdlabel -R /dev/ad2s1 ad2s1.protofile
アドバイスよろしくお願いします。
--
【1】
# df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ar0s1a 507630 100908 366112 22% /
devfs 1 1 0 100% /dev
/dev/ar0s1e 507630 18 467002 0% /tmp
/dev/ar0s1f 71410096 9253740 56443550 14% /usr
/dev/ar0s1d 1762414 106292 1515130 7% /var
/dev/ad3s1 1032142 42976 906596 5% /mnt2
/dev/ad2s1 507630 101288 365732 22% /mnt
【2】
# ls -l /dev/ad[23]*
crw-r----- 1 root operator 0, 92 Oct 25 18:48 /dev/ad2
crw-r----- 1 root operator 0, 94 Oct 26 03:49 /dev/ad2s1
crw-r----- 1 root operator 0, 95 Oct 25 18:48 /dev/ad3
crw-r----- 1 root operator 0, 108 Oct 26 03:49 /dev/ad3s1
【3】
# bsdlabel /dev/ad2s1
# /dev/ad2s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 1048576 63 4.2BSD 2048 16384 8
b: 1914512 1048639 swap
c: 80405262 63 unused 0 0 # "raw" part, don't edit
d: 3053568 2963151 4.2BSD 2048 16384 28552
e: 1048576 6016719 4.2BSD 2048 16384 8
f: 73340030 7065295 4.2BSD 2048 16384 28552
partition c: partition extends past end of unit
bsdlabel: partition c doesn't start at 0!
bsdlabel: An incorrect partition c may cause problems for standard system
utilities
partition f: partition extends past end of unit
# bsdlabel /dev/ad3s1
# /dev/ad3s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 2097152 63 4.2BSD 2048 16384 89
b: 4194304 2097215 swap
c: 321669432 63 unused 0 0 # "raw" part, don't
edit
e: 20971520 6291519 4.2BSD 2048 16384 89
f: 4194304 27263039 4.2BSD 2048 16384 89
g: 290212152 31457343 4.2BSD 2048 16384 89
partition c: partition extends past end of unit
bsdlabel: partition c doesn't start at 0!
bsdlabel: An incorrect partition c may cause problems for standard system
utilities
partition g: partition extends past end of unit
Takuya Mori /
[メールアドレス保護]
(World-wide Internet Gokaisho)