hns - 日記自動生成システム - Version 2.19.9

先月 2011年08月 来月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2011年08月14日() 旧暦 [n年日記] [更新:"2011/08/16 06:21:38"]

#1 [無題] 墓参

06:45 出発
07:15 八街
08:00 小堤
      平和公園 ( x 2)
      千葉寺
10:30 帰着

#2 [disk] disklabel: ioctl DIOCWDINFO: Label magic number or checksum is wrong!

次の 4.2BSD を swap に変更したい。
ttyp0:makoto@tera5 18:24:47/110814(~)> sudo disklabel -Ii  raid2d
partition> P
4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:    819072         0     4.2BSD      0     0     0  # (Cyl.      0 -    533*)
partition> Q
たまたま、良く似た構成の別の disk があり それの first sector を hexdump -C で確認しながら
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 b:    819009        63       swap                     # (Cyl.      0*-    533*)
ttyp0:makoto@tera6 18:15:42/110814(~)> sudo disklabel raid1 > ~/raid1-swap

ttyp0:makoto@tera6 18:43:24/110814(~)> sudo hexdump -C /dev/rraid1d | head
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 01  |................|
000001c0  01 00 a9 41 cc ff 3f 00  00 00 01 48 90 02 00 00  |...A..?....H....|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00001000  75 64 70 00 69 6e 65 74  00 75 64 70 00 2d 00 33  |udp.inet.udp.-.3|

ttyp0:makoto@tera6 18:48:53/110814(~)> 
sudo dd if=/dev/rraid1d of=/home/makoto/prep/first-sector count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.003 secs (170666 bytes/sec)
ttyp0:makoto@tera6 18:49:03/110814(~)> hexdump -C /home/makoto/prep/first-sector 
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 01  |................|
000001c0  01 00 a9 41 cc ff 3f 00  00 00 01 48 90 02 00 00  |...A..?....H....|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200
ttyp0:makoto@tera6 18:50:42/110814(~)> 
dd で写したら、ちょっと変になったが disklabel -i で編集して書くことが出来た。
ttyp0:makoto@tera5 18:49:23/110814(~)> 
sudo dd if=/home/makoto/prep/first-sector of=/dev/rraid2d 
Password:
1+0 records in
1+0 records out
512 bytes transferred in 0.010 secs (51200 bytes/sec)
ttyp0:makoto@tera5 18:50:00/110814(~)> sudo disklabel -i raid2d
partition> P
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 c:  43010049        63     unused      0     0        # (Cyl.      0*-  28001+)
 d:    819072         0     4.2BSD      0     0     0  # (Cyl.      0 -    533*)
 e:  43010049        63     unused      0     0        # (Cyl.      0*-  28001+)
partition> b
Filesystem type [?] [unused]: swap
Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: 63
Partition size ('$' for all remaining) [0c, 0s, 0M]: $
 b:    819009        63       swap                     # (Cyl.      0*-    533*)
partition> P
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 b:    819009        63       swap                     # (Cyl.      0*-    533*)
 c:  43010049        63     unused      0     0        # (Cyl.      0*-  28001+)
 d:    819072         0     4.2BSD      0     0     0  # (Cyl.      0 -    533*)
 e:  43010049        63     unused      0     0        # (Cyl.      0*-  28001+)
partition> d
Filesystem type [?] [4.2BSD]: unused
Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: 
Partition size ('$' for all remaining) [533.25c, 819072s, 399.938M]: 0
partition> P
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 b:    819009        63       swap                     # (Cyl.      0*-    533*)
 c:  43010049        63     unused      0     0        # (Cyl.      0*-  28001+)
 e:  43010049        63     unused      0     0        # (Cyl.      0*-  28001+)
partition> e
Filesystem type [?] [unused]: 
Start offset ('x' to start after partition 'x') [0.0410156c, 63s, 0.0307617M]: 0
Partition size ('$' for all remaining) [28001.3c, 43010049s, 21001M]: 0
partition> P
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 b:    819009        63       swap                     # (Cyl.      0*-    533*)
 c:  43010049        63     unused      0     0        # (Cyl.      0*-  28001+)
partition> c
Filesystem type [?] [unused]: 
Start offset ('x' to start after partition 'x') [0.0410156c, 63s, 0.0307617M]: 0
Partition size ('$' for all remaining) [28001.3c, 43010049s, 21001M]: $
 c:    819072         0     unused      0     0        # (Cyl.      0 -    533*)
partition> P
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 b:    819009        63       swap                     # (Cyl.      0*-    533*)
 c:    819072         0     unused      0     0        # (Cyl.      0 -    533*)
partition> W
Label disk [n]? Y
Label written
partition> Q
ttyp0:makoto@tera5 18:51:44/110814(~)>



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)