領域の設定を行う これは 一例
状態確認
nyan:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda2 3579116 702132 2692240 21% / nyan:~# fdisk -l Disk /dev/hda: 255 heads, 63 sectors, 524 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 1 64 514048+ 82 Linux swap /dev/hda2 65 524 3694950 83 Linux Disk /dev/hdb: 255 heads, 63 sectors, 524 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 524 4208998+ a5 BSD/386
まあ こんな状態の 場合も あるということ BSD の領域を どうにかしたいと 考えた
nyan:~# fdisk /dev/hdb2 Command (m for help): p Disk /dev/hdb1: 255 heads, 63 sectors, 523 cylinders Units = cylinders of 16065 * 512 bytes 8 partitions: # start end size fstype [fsize bsize cpg] a: 1* 17* 16* 4.2BSD 2048 16384 94 b: 17* 56* 38* swap c: 1* 524 523* unused 0 0 e: 56* 88* 32* 4.2BSD 2048 16384 94 f: 88* 121* 32* 4.2BSD 2048 16384 94 g: 121* 524 403* 4.2BSD 2048 16384 89
BSD 領域を 削除しようと 試みると
Command (m for help): d Partition number (1-4): 1 Segmentation fault
あらーー
nyan:~# fdisk /dev/hdb1 Command (m for help): p Disk /dev/hdb1: 255 heads, 63 sectors, 523 cylinders Units = cylinders of 16065 * 512 bytes 8 partitions: # start end size fstype [fsize bsize cpg] a: 1* 17* 16* 4.2BSD 2048 16384 94 b: 17* 56* 38* swap c: 1* 524 523* unused 0 0 e: 56* 88* 32* 4.2BSD 2048 16384 94 f: 88* 121* 32* 4.2BSD 2048 16384 94 g: 121* 524 403* 4.2BSD 2048 16384 89 Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): d Partition number (1-4): 1 Segmentation fault
タメタメタメある
nyan:~# make -t ext2 /dev/hdb1 bash: make: command not found
ほんなら
nyan:~# mkfs -t ext2 /dev/hdb1 mke2fs 1.34 (25-Jul-2003) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 526944 inodes, 1052249 blocks 52612 blocks (5.00%) reserved for the super user First data block=0 33 block groups 32768 blocks per group, 32768 fragments per group 15968 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: 0/33 1/33 2/33 3/33 4/33 5/33 6/33 7/33 8/33 9/33 10/33 11/33 12/33 13/33 14/33 15/33 16/33 17/33 18/33 19/33 20/33 21/33 22/33 23/33 24/33 25/33 26/33 27/33 28/33 29/33 30/33 31/33 32/33 done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 39 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
これで どうだーー
nyan:~# fdisk -l Disk /dev/hda: 255 heads, 63 sectors, 524 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 1 64 514048+ 82 Linux swap /dev/hda2 65 524 3694950 83 Linux Disk /dev/hdb: 255 heads, 63 sectors, 524 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 524 4208998+ a5 BSD/386
どうもこれらは インストール用の CDROM でないと処理できないようだ そこで インストール用の CDROM を使用して 変更する。
nyan:~# fdisk -l Disk /dev/hda: 255 heads, 63 sectors, 524 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 1 64 514048+ 82 Linux swap /dev/hda2 65 524 3694950 83 Linux Disk /dev/hdb: 255 heads, 63 sectors, 524 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 255 2048256 83 Linux /dev/hdb2 256 524 2160742+ 83 Linux
どうにか こうにか 処理した
linux を インストール した後の linux の fdisk は BSD 領域の 取り扱いは無理なようだ linux の インストール CD の fdisk では 取り扱えるようだ 何が違うのか?? にゃんたろう 拝!