disk operating system part 001
CDROM から freedos を /dev/hda1 に 配置します。 そこで 計算機の ハードディスクの 構成を 元というか 大きくしましょう。まず 現在の 構成を 見てみましょう。
# fdisk -l /dev/hda 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 57 457821 c Win95 FAT32 (LBA) /dev/hda2 124 524 3221032+ 1c Hidden Win95 FAT32 (LBA)
ハードディスクの 構成を 変更します
# fdisk /dev/hda Command (m for help): d Partition number (1-4): 1 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-524, default 1): 1 Last cylinder or +size or +sizeM or +sizeK (1-123, default 123): 123 Command (m for help): t Partition number (1-4): 1 Hex code (type L to list codes): c Changed system type of partition 1 to c (Win95 FAT32 (LBA)) Command (m for help): a Partition number (1-4): 1 Command (m for help): p 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 123 987966 c Win95 FAT32 (LBA) /dev/hda2 124 524 3221032+ 1c Hidden Win95 FAT32 (LBA) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks.
では /dev/hda1 を format しておきましょう parted でコピー するので 必要ないかも 知れませんが?
# mkdosfs -F 32 -n fdoshda1 /dev/hda1 mkdosfs 2.7 (14 Feb 2001)
ほたら コピーしまひょ
CDROMを mount して parted にて /dev/hda1 に コピー しまひょう
# mount /dev/cdrom /cdrom/ mount: block device /dev/cdrom is write-protected, mounting read-only # cd /cdrom/ # ls -l total 457821 -r-xr-xr-x 1 root root 468808704 Jul 29 11:19 cdrom_dev_hda1_fdos_img* # parted /dev/hda Warning: Unable to determine if partitions are mounted via /proc/mounts or /etc/mtab. Make sure you don't attempt to resize or modify mounted file systems. (Even read-only mounted) Ignore/Cancel? Ignore GNU Parted 1.6.11 Copyright (C) 1998 - 2004 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Using /dev/hda Information: The operating system thinks the geometry on /dev/hda is 524/255/63. (parted) cp Source device? [/dev/hda]? cdrom_dev_hda1_fdos_img Warning: Unable to open /cdrom/cdrom_dev_hda1_fdos_img read-write (Read-only file system). /cdrom/cdrom_dev_hda1_fdos_img has been opened read-only. Warning: Unable to open /cdrom/cdrom_dev_hda1_fdos_img read-write (Read-only file system). /cdrom/cdrom_dev_hda1_fdos_img has been opened read-only. Source partition number? 1 Destination partition number? 1 Warning: Unable to open /cdrom/cdrom_dev_hda1_fdos_img read-write (Read-only file system). /cdrom/cdrom_dev_hda1_fdos_img has been opened read-only. moving data... 4% (time left 02:13) (parted) quit Information: Don't forget to update /etc/fstab, if necessary. # cd # umount /cdrom/ # eject
コピーが終わったので ファイルの構成を 見ておきましょう。
# mount /dev/hda1 /mnt/ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hdb3 7617504 3450820 3773496 48% / /dev/hda1 986016 225960 760056 23% /mnt # ls /mnt/ autoexec.bat* device.raw* fdos/ gemapps/ nic.txt* shell.raw* command.com* fdconfig.sys* gem.bat* kernel.sys* setup.bat* usbdos.zip*
起動するか 確認しましょう。
無事起動するようです、これで 序章はおはりです。 freedos を 色々 学ぶ 用意が 出来ました。
にゃんたろう 拝!
2007年 7月29日 (日) 21:04:41 JST 作成
disk operating system part 001
Copyright © 2007. fdopstm All Rights Reserved.