|
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年05月06日 ・py-setuptools (python 3.11.1) ・make release took 1 hours and 10 min ・qemu invocation for 10.99.10 2024年05月05日 ・Windows 10 version ・serial connection ・bc bench 2024年05月04日 ・Trial on 10.99.10 ・another version (later trial) to succeed 2024年04月29日 ・dkim 2024年03月10日 ・停電 (瞬電) | ||