[FreeBSD-users-jp 92775] Re: bsdlabel(8) でハングアップする

2010-02-11 スレッド表示 OOTOMO Hiroyuki
大...@元記事です。


From: Hirohito m...@youko-house.ne.jp
Message-ID: 4b717ed8.4060...@youko-house.ne.jp

 私は、ATA/SATA to USB アダプタを、4種類ほど使った経験がありますが、
 挙動や安定性にばらつきがあるように感じます。
 
 アダプタを買い換えてみるか、もしくはアダプタを使わずにディスクを接続して
 試してみてはいかがでしょうか。

設置環境上ケースを開けるのが面倒だったので避けていたのですが,
御指摘に従ってSATA直結で試してみました。


# fdisk /dev/ad4
*** Working on device /dev/ad4 ***
parameters extracted from in-core disklabel are:
cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1938021 heads=16 sectors/track=63 (1008 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 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 1953525105 (953869 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 612/ head 15/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED
# fdisk -BI /dev/ad4
*** Working on device /dev/ad4 ***
fdisk: Geom not found: ad4
# fdisk /dev/ad4
*** Working on device /dev/ad4 ***
parameters extracted from in-core disklabel are:
cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1938021 heads=16 sectors/track=63 (1008 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 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 1953525105 (953869 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 612/ head 15/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED
# cat var/bsdlabel.txt
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  419430404.2BSD 2048 16384 28528 
  b: 16777216  4194304  swap
  c: 1953525105   0unused0 0 # raw part, don't 
edit
  d: 16777216 209715204.2BSD 2048 16384 28528 
  e: 16777216 377487364.2BSD 2048 16384 28528 
  f: 67108864 545259524.2BSD 2048 16384 28528 
  g: 67108864 121634816   4.2BSD 2048 16384 28528 
  h: 1764781425 1887436804.2BSD 2048 16384 28528 
# bsdlabel -w -B /dev/ad4s1
# bsdlabel -R -B /dev/ad4s1 var/bsdlabel.txt
# bsdlabel /dev/ad4s1
# /dev/ad4s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  419430404.2BSD 2048 16384 28528 
  b: 16777216  4194304  swap
  c: 19535251050unused0 0 # raw part, don't 
edit
  d: 16777216 209715204.2BSD 2048 16384 28528 
  e: 16777216 377487364.2BSD 2048 16384 28528 
  f: 67108864 545259524.2BSD 2048 16384 28528 
  g: 67108864 1216348164.2BSD 2048 16384 28528 
  h: 1764781425 1887436804.2BSD 2048 16384 28528 
# newfs -U /dev/ad4s1a
/dev/ad4s1a: 2048.0MB (4194304 sectors) block size 16384, fragment size 2048
using 12 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440, 2257696, 2633952, 3010208,
 3386464, 3762720, 4138976
# newfs -U /dev/ad4s1d
/dev/ad4s1d: 8192.0MB (16777216 sectors) block size 16384, fragment size 2048
using 45 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
(snip)
# newfs -U /dev/ad4s1e
/dev/ad4s1e: 8192.0MB (16777216 sectors) block size 16384, fragment size 2048
using 45 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
(snip)
# newfs -U /dev/ad4s1f
/dev/ad4s1f: 32768.0MB (67108864 sectors) block size 16384, fragment size 2048
using 179 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
(snip)
# newfs -U /dev/ad4s1g
/dev/ad4s1g: 32768.0MB (67108864 sectors) block size 16384, fragment size 2048
using 179 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
(snip)
# newfs -U /dev/ad4s1h
/dev/ad4s1h: 861709.7MB (1764781424 sectors) block size 16384, fragment size 
2048
using 4691 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
(snip)
# mount -t ufs /dev/ad4s1a /mnt
# df
Filesystem  512-blocks  UsedAvail Capacity  Mounted on
/dev/ad0s1a2025948   1125024   73885260%/
devfs2 20   100%/dev
/dev/ad0s1h  334638772 288049272 1981840094%/home
/dev/ad0s1d

[FreeBSD-users-jp 92755] Re: bsdlabel(8) でハングアップする

2010-02-05 スレッド表示 OOTOMO Hiroyuki
大友です。

本件, 情報ありませんでしょうか……。

繰り返し試していますが現象改善しません。
コマンドの使い方を間違っている可能性を考えて
/usr/sbin/sysinstallを使ってみましたが,
commitすると結局固まりました。

解決策や要確認項目など御存知の方が居られましたら,
宜しく御教示お願いします。


From: OOTOMO Hiroyuki oot...@za.wakwak.com
Date: Sun, 31 Jan 2010 15:47:44 JST
Message-ID: 100131154744.m0102...@sakura.ccsf.jp
Subject: [FreeBSD-users-jp 92751] bsdlabel(8)  でハングアップする

 ディスクを大容量のものに交換しようと思っていて,
 1TBのディスクをSATA→USBアダプタ経由で繋いだのですが,
 bsdlabel(8)を当該ディスクに実行すると
 OSまるごとハングアップしてしまいました。
 
 下記ログでは書き込みですが, 読み出しをしようとしても駄目です
 (現ディスクに対しての読み出しは正常にできます)。
 また, Windows機に繋いだ場合は正常に認識・領域確保・読み書きが
 できる事を確認しています。
 
 解決方法など, 情報ありましたら教えて下さい。
 宜しくお願いします。
 
 
 Disk: Seagate ST31000340NS
 Adaptor: Groovy UD-500SA
 
 参考にしたページ:
 http://markun.onohara.to/hiki/?FreeBSD%2FHDD%A4%CE%B8%F2%B4%B9%CA%FD%CB%A1
 
 
 sakura# uname -a
 FreeBSD sakura 7.2-STABLE FreeBSD 7.2-STABLE #5: Sun Jan 10 21:53:51 JST 2010 
 r...@sakura:/usr/obj/usr/src/sys/GENERIC  amd64
 sakura#   fdisk /dev/da0
 *** Working on device /dev/da0 ***
 parameters extracted from in-core disklabel are:
 cylinders=121601 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=121601 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 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
 start 63, size 1953520002 (953867 Meg), flag 0
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 1023/ head 254/ sector 63
 The data for partition 2 is:
 UNUSED
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED
 sakura#   fdisk -BI /dev/da0
 *** Working on device /dev/da0 ***
 fdisk: Geom not found: da0
 sakura#   fdisk /dev/da0
 *** Working on device /dev/da0 ***
 parameters extracted from in-core disklabel are:
 cylinders=121601 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=121601 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 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 63, size 1953520002 (953867 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 768/ head 254/ sector 63
 The data for partition 2 is:
 UNUSED
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED
 sakura#   cat bsdlabel.txt
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:  209715204.2BSD 2048 16384 28528 
   b:  8388608  2097152  swap
   c: 1953520002   0unused0 0 # raw part, don't 
 edit
   d:  8388608 104857604.2BSD 2048 16384 28528 
   e: 16777216 188743684.2BSD 2048 16384 28528 
   f: 67108864 356515844.2BSD 2048 16384 28528 
   g: 67108864 102760448   4.2BSD 2048 16384 28528 
   h: 1783650690 1698693124.2BSD 2048 16384 28528 
 sakura#   bsdlabel -w -B /dev/da0s1
 (ここでOSごと固まる。NumLockが反応しない)


-- 
大友紘之
oot...@za.wakwak.com


[FreeBSD-users-jp 90496] Re: DVI 出 力における X の設定

2007-04-10 スレッド表示 OOTOMO Hiroyuki
大友です。


From: Takeshi Hamabuchi [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]

 それで、rootでxorgcfg -textmode でXの設定を試みましたが、やはりDVIではうまくいきません。具体的には
 
 Configure monitor の設定で、default のままのStandard VGA , 640*480 @ 
 60Hzのままでどのように設定をかえてもdefault
 
 にもどってしまいます。

カードにアナログとDVIのコネクタが付いていて,
ディスプレイと両方で接続していませんか?
DVI側が2ndディスプレイと判断されて,
設定がないからデフォルトの解像度しか出なかった,
という経験があります。


-- 
大友紘之
[EMAIL PROTECTED]