HDDが飛んだ時のためのメモ。 ほとんどのマシンで / (root) パーティション と swap しかないしょーもない構成になっていたり。
root@melchiol ~ # fdisk ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=5606 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=5606 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 12,(DOS or Windows 95 with 32 bit FAT, LBA) start 63, size 28675962 (14001 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 1023/ sector 63/ head 254 The data for partition 2 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 28676025, size 30716280 (14998 Meg), flag 80 (active) beg: cyl 1023/ sector 63/ head 255; end: cyl 1023/ sector 63/ head 254 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 59392305, size 30668085 (14974 Meg), flag 0 beg: cyl 1023/ sector 63/ head 255; end: cyl 1023/ sector 63/ head 254 The data for partition 4 is: <UNUSED>
root@melchiol ~ # disklabel ad0s2 # /dev/ad0s2c: type: ESDI disk: ad0s2 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1912 sectors/unit: 30716280 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] a: 29667328 0 4.2BSD 0 0 0 # (Cyl. 0 - 1846*) b: 1048952 29667328 swap # (Cyl. 1846*- 1911*) c: 30716280 0 unused 0 0 # (Cyl. 0 - 1911)
root@melchiol ~ # disklabel ad0s3 # /dev/ad0s3: type: ESDI disk: ad0s3 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1909 sectors/unit: 30668085 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] a: 29696000 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 1848*) b: 972085 29696000 swap # (Cyl. 1848*- 1908*) c: 30668085 0 unused 0 0 # (Cyl. 0 - 1908)
root@m1ev /home/george # fdisk ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=2432 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=2432 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 160,(Suspend to Disk) start 63, size 417627 (203 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 25/ sector 63/ head 254 The data for partition 2 is: sysid 12,(DOS or Windows 95 with 32 bit FAT, LBA) start 417690, size 18057060 (8816 Meg), flag 0 beg: cyl 26/ sector 1/ head 0; end: cyl 1023/ sector 63/ head 254 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 18474750, size 20595330 (10056 Meg), flag 80 (active) beg: cyl 1023/ sector 63/ head 255; end: cyl 1023/ sector 63/ head 254 The data for partition 4 is: <UNUSED>
root@m1ev /home/george # disklabel ad0 # /dev/ad0c: type: ESDI disk: ad0s3 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1282 sectors/unit: 20595330 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] a: 19808256 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 1233*) b: 787074 19808256 swap # (Cyl. 1233*- 1281*) c: 20595330 0 unused 0 0 # (Cyl. 0 - 1281)
athlon# fdisk ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=2748 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=2748 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 11,(DOS or Windows 95 with 32 bit FAT) start 63, size 12289662 (6000 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 764/ head 254/ sector 63 The data for partition 2 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 12289725, size 31856895 (15555 Meg), flag 80 (active) beg: cyl 765/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED>
athlon# disklabel ad0 # /dev/ad0c: type: ESDI disk: ad0s2 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1983 sectors/unit: 31856895 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] a: 30720000 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 1912*) b: 1136895 30720000 swap # (Cyl. 1912*- 1982*) c: 31856895 0 unused 0 0 # (Cyl. 0 - 1982)
athlon# fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=1108 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=1108 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 17799957 (8691 Meg), flag 80 (active) 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>
athlon# disklabel da0 # /dev/da0c: type: SCSI disk: da0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1107 sectors/unit: 17799957 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] a: 16384000 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 1019*) b: 1415957 16384000 swap # (Cyl. 1019*- 1107*) c: 17799957 0 unused 0 0 # (Cyl. 0 - 1107*)
root@casper ~ # fdisk wd0 ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=3739 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=3739 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 11,(DOS or Windows 95 with 32 bit FAT) start 63, size 12289662 (6000 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 764/ sector 63/ head 254 The data for partition 2 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 12289725, size 4080510 (1992 Meg), flag 80 (active) beg: cyl 765/ sector 1/ head 0; end: cyl 1018/ sector 63/ head 254 The data for partition 3 is: sysid 12,(DOS or Windows 95 with 32 bit FAT, LBA) start 16370235, size 12273660 (5992 Meg), flag 0 beg: cyl 1019/ sector 1/ head 0; end: cyl 1023/ sector 63/ head 254 The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 28643895, size 31423140 (15343 Meg), flag 0 beg: cyl 1023/ sector 63/ head 255; end: cyl 1023/ sector 63/ head 254
root@casper ~ # disklabel wd0s2 # /dev/rwd0s2c: type: ESDI disk: wd0s2 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 254 sectors/unit: 4080510 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] a: 4080510 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 253) c: 4080510 0 unused 0 0 # (Cyl. 0 - 253)
root@casper ~ # disklabel wd0s4 # /dev/rwd0s4c: type: ESDI disk: wd0s4 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1956 sectors/unit: 31423140 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] b: 1048576 0 swap # (Cyl. 0 - 65*) c: 31423140 0 unused 0 0 # (Cyl. 0 - 1955) e: 30374564 1048576 4.2BSD 1024 8192 16 # (Cyl. 65*- 1955*)
root@asuka /home/george # fdisk ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=839 heads=240 sectors/track=63 (15120 blks/cyl) parameters to be used for BIOS calculations are: cylinders=839 heads=240 sectors/track=63 (15120 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 11,(DOS or Windows 95 with 32 bit FAT) start 63, size 6153777 (3004 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 406/ sector 63/ head 239 The data for partition 2 is: sysid 5,(Extended DOS) start 6153840, size 393120 (191 Meg), flag 0 beg: cyl 407/ sector 1/ head 0; end: cyl 432/ sector 63/ head 239 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 6546960, size 6138720 (2997 Meg), flag 80 (active) beg: cyl 433/ sector 1/ head 0; end: cyl 838/ sector 63/ head 239 The data for partition 4 is: <UNUSED>
root@asuka /home/george # disklabel ad0 # /dev/ad0c: type: ESDI disk: ad0s3 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 240 sectors/cylinder: 15120 cylinders: 406 sectors/unit: 6138720 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] a: 5613568 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 371*) b: 525152 5613568 swap # (Cyl. 371*- 405*) c: 6138720 0 unused 0 0 # (Cyl. 0 - 405)
現在Solaris8 for Intelになっているんだよな…。