!NetBSD の外付けハードディスク(HDD)の初期化の仕方 # fdisk sd0 fdisk: Cannot determine the number of heads Disk: /dev/rsd0d NetBSD disklabel disk geometry: cylinders: 991, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 BIOS disk geometry: cylinders: 991, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 Partition table: 0: Primary 'big' DOS, 16-bit FAT (> 32MB) (sysid 6) start 63, size 2030049 (991 MB, Cyls 0/1/32-991/16/32), Active 1: 2: 3: # fdisk -u /dev/sd0 fdisk: Cannot determine the number of heads Disk: /dev/sd0d NetBSD disklabel disk geometry: cylinders: 991, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 BIOS disk geometry: cylinders: 991, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 Do you want to change our idea of what BIOS thinks? [n] y Geometries of known disks: Disk 0: cylinders 1024, heads 27, sectors 63 (156301488 sectors, 76319MB) BIOS's idea of #cylinders: [0..1024 default: 991] BIOS's idea of #heads: [0..256 default: 64] BIOS's idea of #sectors: [1..63 default: 32] Disk: /dev/sd0d NetBSD disklabel disk geometry: cylinders: 991, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 BIOS disk geometry: cylinders: 991, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 Are you happy with this choice? [n] y Partition table: 0: Primary 'big' DOS, 16-bit FAT (> 32MB) (sysid 6) start 63, size 2030049 (991 MB, Cyls 0/1/32-991/16/32), Active 1: 2: 3: Which partition do you want to change?: [none] 0 The data for partition 0 is: Primary 'big' DOS, 16-bit FAT (> 32MB) (sysid 6) start 63, size 2030049 (991 MB, Cyls 0/1/32-991/16/32), Active sysid: [0..255 default: 6] 169 start: [0..992cyl default: 63, 0cyl, 0MB] size: [0..992cyl default: 2030049, 991cyl, 991MB] bootmenu: [] start1 The bootselect code is not installed, do you want to install it now? [n] Partition table: 0: NetBSD (sysid 169) start 63, size 2030049 (991 MB, Cyls 0/1/32-991/16/32), Active 1: 2: 3: Which partition do you want to change?: [none] Installed bootfile doesn't support required options. Update the bootcode from /usr/mdec/mbr? [n] We haven't written the MBR back to disk yet. This is your last chance. Partition table: 0: NetBSD (sysid 169) start 63, size 2030049 (991 MB, Cyls 0/1/32-991/16/32), Active 1: 2: 3: Should we write new partition table? [n] y # # # # # sync # fdisk /dev/sd0 Disk: /dev/sd0d NetBSD disklabel disk geometry: cylinders: 991, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 BIOS disk geometry: cylinders: 992, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 2031120 Partition table: 0: NetBSD (sysid 169) start 63, size 2030049 (991 MB, Cyls 0/1/32-991/16/32), Active 1: 2: 3: # !パーティションの設定 # disklabel -e /dev/sd0