| 80 | |
| 81 | === /dev/loop0 as CD-ROM drive === |
| 82 | * CDドライブが無い環境では、/dev/loop0を使用すればよい |
| 83 | |
| 84 | |
| 85 | * mitty@bogie:~/mandrake$ vim mandrake.conf |
| 86 | {{{#!diff |
| 87 | --- /etc/ppc/ppc.conf 2010-01-10 12:26:38.000000000 +0900 |
| 88 | +++ mandrake.conf 2011-11-19 10:34:37.741230931 +0900 |
| 89 | @@ -90,7 +90,7 @@ |
| 90 | ## must be >= 64 MiB |
| 91 | ## |
| 92 | |
| 93 | -#memory_size=0x8000000 |
| 94 | +#memory_size=0x20000000 |
| 95 | |
| 96 | ## |
| 97 | ## IO Devices |
| 98 | @@ -106,11 +106,11 @@ |
| 99 | ## pci_ide0_master_type / pci_ide0_slave_type |
| 100 | |
| 101 | pci_ide0_master_installed = 1 |
| 102 | -pci_ide0_master_image = "test/imgs/linux.img" |
| 103 | +pci_ide0_master_image = "mandrake.img" |
| 104 | #pci_ide0_master_type = "hd" |
| 105 | |
| 106 | pci_ide0_slave_installed = 1 |
| 107 | -pci_ide0_slave_image = "/dev/cdrom" |
| 108 | +pci_ide0_slave_image = "/dev/loop0" |
| 109 | pci_ide0_slave_type = "cdrom" |
| 110 | |
| 111 | ## |
| 112 | }}} |
| 113 | |
| 114 | * mitty@bogie:~/mandrake$ sudo losetup /dev/loop0 MandrakeLinux-9.1-CD1.ppc.iso |
| 115 | * mitty@bogie:~/mandrake$ sudo chmod o+r /dev/loop0 |
| 116 | |
| 117 | * mitty@bogie:~/mandrake$ ppc mandrake.conf |
| 118 | |
| 119 | * CDの変更は、デバイスがロックされるため不可 |
| 120 | * mitty@bogie:~/mandrake$ sudo losetup -d /dev/loop0 |
| 121 | {{{ |
| 122 | loop: can't delete device /dev/loop0: Device or resource busy |
| 123 | }}} |