/usr/share/doc/HOWTO/ja-html/ext-root-mini-HOWTO-3.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Ext-Rootfs-mini-HOWTO: ³°ÉÕ¤± HDD ¤ò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤¹¤ë</TITLE>
<LINK HREF="ext-root-mini-HOWTO-4.html" REL=next>
<LINK HREF="ext-root-mini-HOWTO-2.html" REL=previous>
<LINK HREF="ext-root-mini-HOWTO.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="ext-root-mini-HOWTO-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO.html#toc3">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="HDD"></A> <A NAME="s3">3. ³°ÉÕ¤± HDD ¤ò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤¹¤ë</A></H2>
<P>³°ÉÕ¤± HDD ¤Ë¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÃÖ¤¯ÊýË¡¤«¤éÀâÌÀ¤·¤Þ¤¹¡£
<P>¤Þ¤º¡¢Win95 ¤ÎºÜ¤Ã¤¿ Note PC ¤È pcmcia-cs ¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë SCSI ¥«¡¼
¥É¡¢³°ÉÕ¤±¤Î HDD ¥É¥é¥¤¥Ö¡¢¤½¤ì¤é¤òÀܳ¤¹¤ë¤¿¤á¤Î SCSI ¥±¡¼¥Ö¥ë¡¢¥¿¡¼
¥ß¥Í¡¼¥¿Åù¤òÍÑ°Õ¤·¤Þ¤¹¡£Linux ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë¤Ï CD-ROM ¤ò»È¤¦¤¿¤á¡¢
CD-ROM ¥É¥é¥¤¥Ö¤â¤¢¤Ã¤¿Êý¤¬¤¤¤¤¤Ç¤·¤ç¤¦¡£¼ê¸µ¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤Ê¹½À®¤Ç»î
¤·¤Æ¤¤¤Þ¤¹¡£
<P>
<UL>
<LI>Note PC : Toshiba 610CT</LI>
<LI>CD-ROM ¥É¥é¥¤¥Ö : Panasonic KXL-D740 4X CD-ROM</LI>
<LI>SCSI ¥«¡¼¥É : ¾åµ¤ËÉÕ°¤Î¥«¡¼¥É(Qlogic OEM)</LI>
<LI>LAN ¥«¡¼¥É : Accton EN2212</LI>
<LI>³°ÉÕ¤± SCSI HDD : iomega jaz 1GB</LI>
</UL>
<P>¥¤¥ó¥¹¥È¡¼¥ë¤Ë»È¤¦ Linux ¤Î¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ï¥È¥Ã¥Ñ¥ó¤Î¡ÖLinux
ÆþÌç¡×¤Î CD-ROM(Slackware 3.1)¤ò»È¤¦¤³¤È¤Ë¤·¤Þ¤¹¡£
<P>initrd ¤Ï¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë°Í¸¤¹¤ëµ¡Ç½¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢Red Hat ¤ä
Debian ¤ò»È¤Ã¤Æ¤âƱÍͤΤ³¤È¤Ï¼Â¸½²Äǽ¤À¤È»×¤¤¤Þ¤¹¤¬¡¢É®¼Ô¤Ï Slackware
3.1 ¤Ç¤·¤«»î¤·¤Æ¤¤¤Þ¤»¤ó¡£
<P>
<OL>
<LI>
¤Þ¤º¡¢Windows 95 ¤òµ¯Æ°¤·¤Æ CD-ROM ¥É¥é¥¤¥Ö¤ò¥·¥¹¥Æ¥à¤Ëǧ¼±¤µ¤»¤Þ¤¹¡£
¤³¤ÎÉôʬ¤Ï Linux ¤È¤Ï´Ø·¸¤Ê¤¤¤Î¤Ç¡¢Windows 95 ¤Î¥Þ¥Ë¥å¥¢¥ë¤ä CD-ROM ¥É
¥é¥¤¥Ö¤Î¥Þ¥Ë¥å¥¢¥ë¤òÆɤó¤Ç¤¯¤À¤µ¤¤¡£
</LI>
<LI>¡ÖLinux ÆþÌç¡×¤Î CD-ROM ¤ËÆþ¤Ã¤Æ¤¤¤ë pxmciax.gz ¤Î mount ¤Ï°Ê²¼¤Îºî¶È¤Ë
ɬÍ×¤Ê loopback ¥Ç¥Ð¥¤¥¹¤Î¥Þ¥¦¥ó¥È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢
<A HREF="http://www.st.rim.or.jp/~isle/Linux/pcmciax2.gz">http://www.st.rim.or.jp/~isle/pcmciax2.gz</A> ¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£
</LI>
<LI>¡ÖLinux ÆþÌç¡×¤Î 1 ËçÌܤΠCD-ROM ¤«¤é¡¢
<CODE>(D:\)install\notepc\tools\loadlin\loadlin.exe</CODE>
¤È<CODE>(D:\)kernels\aha1542.s\zImage</CODE> ¤ò Windows95 ¤Î
Îΰè¤Ë¥³¥Ô¡¼¤·¤Þ¤¹¡£Linux ÍѤΥǥ£¥ì¥¯¥È¥ê¤òºî¤Ã¤Æ¤½¤³¤ËÆþ¤ì¤Æ¤ª¤¯¤Î¤¬
¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼¤Ç¤Ï¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Ï <CODE>C:\linux</CODE> ¤ËÃÖ¤¤¤Æ¤¢
¤ë¤â¤Î¤È¤·¤Þ¤¹¡£¾å¤Ç¥À¥¦¥ó¥í¡¼¥É¤·¤¿ pcmciax2.gz ¤âƱ¤¸¥Ç¥£¥ì¥¯¥È¥ê¤Ë
°Ü¤·¤Æ¤ª¤¤Þ¤¹¡£
</LI>
<LI>Win95 ¤ò¤¤¤Ã¤¿¤óºÆµ¯Æ°¤·¤Æ¡¢"Starting Windows95" ¤Î¥á¥Ã¥»¡¼¥¸¤¬½Ð
¤¿»þ¤Ë F8 ¥¡¼¤ò²¡¤·¡¢Î©¤Á¾å¤²¥â¡¼¥É¤ÎÁªÂò²èÌ̤ò½Ð¤·¤Þ¤¹¡£6 ¤Î
"Command Prompt Only" ¤òÁª¤Ó¡¢¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È²èÌ̤ǵ¯Æ°¤·¤Þ¤¹¡£
Linux ¤ò¥Ö¡¼¥È¤¹¤ëºÝ¡¢ÆüËܸì¥â¡¼¥É¤Ç¤Ï²èÌ̤¬É½¼¨¤µ¤ì¤Ê¤¯¤Ê¤ë¤Î¤Ç¡¢
"us" ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¡¢Ëº¤ì¤º¤Ë±Ñ¸ì¥â¡¼¥É¤ËÀÚ¤êÂؤ¨¤Æ¤ª
¤¤Þ¤·¤ç¤¦¡£
</LI>
<LI><CODE>cd linux</CODE> ¤·¡¢loadlin ¤ò»È¤Ã¤Æ Linux ¤òµ¯Æ°¤·¤Þ¤¹¡£¤³¤Î»þ¡¢
pcmciax.gz ¤ò initrd ¤Ë»ØÄꤷ¡¢¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï initrd ¤ò
Ÿ³«¤·¤ÆºîÀ®¤µ¤ì¤ë ramdisk(/dev/ram0) ¤ò»ØÄꤷ¤Þ¤¹¡£
<HR>
<PRE>
c:\linux > loadlin zimage initrd=pcmciax2.gz root=/dev/ram0
</PRE>
<HR>
</LI>
<LI>pcmciax2.gz ¤Ë¤Ï pcmcia-2.8.22 ÁêÅö¤Îµ¡Ç½¤¬ÁȤߤ³¤Þ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¥µ
¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë SCSI ¥«¡¼¥É¤Ï¤½¤Î¤Þ¤Þǧ¼±¤Ç¤¤ë¤Ï¤º¤Ç¤¹¡£Àܳ¤·¤Æ
¤¤¤ë CD-ROM ¤ä³°ÉÕ¤± HDD ¤¬¤¤Á¤ó¤Èǧ¼±¤µ¤ì¤Æ¤¤¤ë¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
<BLOCKQUOTE>
pcmciax2.gz ¤Ë¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤ò»È¤Ã¤Æ NFS ·Ðͳ¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¤ê¡¢
EasyHard¡¢PLIP¡¢ SLIP ·Ðͳ¤Ç¤â¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤¤ë¤è¤¦¤Ë¥â¥¸¥å¡¼¥ë¤òÍÑ°Õ
¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¥Ò¥Þ¤Èº¬À¤Î¤¢¤ë¿Í¤Ï»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤(¶ì¾Ð)¡£
</BLOCKQUOTE>
</LI>
<LI>Slackware ¤Î¥¤¥ó¥¹¥È¡¼¥ëºî¶È¤½¤Î¤â¤Î¤Ï¡ÖLinux ÆþÌç¡×¤Ë¾Ü¤·¤¯ÀâÌÀ¤·¤Æ¤¢
¤ë¤Î¤Ç¾Êά¤·¤Þ¤¹¡£³°ÉÕ¤±¤Î HDD ¤òÂоݤˡ¢CD-ROM ¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤è
¤¦¤Ë»ØÄꤹ¤ì¤Ð¡¢¤½¤Î¸å¤ÎÀßÄê¤Ï¡ÖLinux ÆþÌç¡×¤Îµ½Ò¤Ë±è¤Ã¤Æ¿Ê¤à¤Ï¤º¤Ç¤¹¡£
¤¿¤À¤·¡¢º£²ó¤Ï lilo ¤ò»È¤ï¤º loadlin.exe ¤Çµ¯Æ°¤·¤Þ¤¹¤Î¤Ç¡¢ºÇ¸å¤Î lilo
¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ÎÉôʬ¤ÏÈô¤Ð¤·¤Æ¡¢Æ⢠HDD ¤Ë lilo ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Ê¤¤
¤è¤¦¤Ë¤·¤Æ¤ª¤¤Þ¤¹¡£
</LI>
<LI>Slackware ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤¬½ªÎ»¤·¤¿¤é¡¢ºÆµ¯Æ°¤¹¤ëÁ°¤Ë pcmciax2.gz ¤Ë¾¯¤·
ºÙ¹©¤ò¤·¤Æ¡¢initrd ¤ò¥Þ¥¦¥ó¥È¤·¤¿»þÅÀ¤Ç°ìÅÙ¥×¥í¥ó¥×¥È¤ò½Ð¤¹¤è¤¦¤Ë¤·¤Æ
¤ª¤¤Þ¤¹¡£
pcmciax2.gz ¤ò½¤Àµ¤¹¤ë¤Ë¤Ï¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤ò loopback ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò
»È¤Ã¤Æ¥Þ¥¦¥ó¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£initrd ¤Ë¤Ï°µ½Ì¥Õ¥¡¥¤¥ë¤ò¼«Æ°Åª¤Ë
Ÿ³«¤¹¤ëµ¡Ç½¤¬¤¢¤ê¤Þ¤¹¤¬¡¢loopback ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ï¼«Æ°Å¸³«µ¡Ç½¤¬
¤Ê¤¤¤Î¤Ç¡¢°ìÅÙ pcmciax2.gz ¤òŸ³«¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
pcmciax2.gz ¤òŸ³«¤¹¤ë¤¿¤á¤Ë¡¢¤Þ¤º <CODE>/dos</CODE> ¤Î¤è¤¦¤Ê¥Ç¥£¥ì¥¯¥È¥ê¤ò
ºî¤ê¡¢¤½¤³¤Ë Windows95 ¤Î¥Ç¥£¥¹¥¯Îΰè¤ò¥Þ¥¦¥ó¥È¤·¡¢gunzip ¤Ç
pcmciax2.gz ¤òŸ³«¤·¤Þ¤¹¡£
<HR>
<PRE>
# mkdir /dos
# mount -t msdos /dev/hda1 /dos
# gunzip < /dos/linux/pcmciax2.gz > /dos/linux/pcmciax2
</PRE>
<HR>
pcmciax2 ¤ËºÙ¹©¤¹¤ë¤¿¤á¤Ë¡¢pcmciax2 ¤ò¥Þ¥¦¥ó¥È¤¹¤ë¤¿¤á¤Î¥Ç¥£¥ì¥¯¥È¥ê
(/workdir)¤òºî¤ê¡¢mount ¤Ë -o loop ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Æ pcmciax2 ¥Õ¥¡
¥¤¥ë¤ò¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·¤Æ¥Þ¥¦¥ó¥È¤·¤Þ¤¹¡£
<HR>
<PRE>
# mkdir /workdir
# /mnt/bin/mount /dos/linux/pcmciax2 /workdir -o loop
# ls /workdir
bin/ cdrom@ etc/ lib/ proc/ sbin/ usr/
boot/ dev/ floppy/ mnt/ root/ tmp/ var/
</PRE>
<HR>
initrd ¤Ç¤Ï¡¢initrd ¾å¤Ë linuxrc ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤¬¤¢¤ì¤Ð¤½¤ì¤ò¤Þ¤ºµ¯Æ°
¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤Ç¤¹¤«¤é linuxrc ¤ò <CODE>bin/sh</CODE> ¤Ë¥·¥ó¥Ü¥ê¥Ã
¥¯¥ê¥Ã¥¯¤·¤Æ¤ª¤±¤Ð¡¢initrd ¤òµ¯Æ°¤·¤¿¾õÂÖ¤Ç sh ¤ò»È¤Ã¤ÆÂÐÏÃŪ¤Ë³Æ¼ï¤Î
ÀßÄê¤ò¹Ô¤¦¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
<HR>
<PRE>
# ln -s bin/sh linuxrc
# ls -l /workdir/linuxrc
lrwxrwxrwx 1 root root 6 Jan 4 14:39 /workdir/linuxrc -> bin/sh*
</PRE>
<HR>
¤â¤¦°ì¤Ä¡¢¼ÂºÝ¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ê¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë
<CODE>/initrd</CODE> ¤È¤¤¤¦¥Ç¥£¥ì¥¯¥È¥ê¤òºî¤Ã¤Æ¤ª¤¤Þ¤¹¡£initrd ·Ðͳ¤Çµ¯Æ°
¤·¤¿»þ¡¢¼ÂºÝ¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ê¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë /initrd ¤È
¤¤¤¦¥Ç¥£¥ì¥¯¥È¥ê¤¬¤¢¤ë¤È¡¢initrd ¤Ç»È¤Ã¤¿»ÃÄêÈǤΥ롼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ
¥à¤Ï¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë°Ü¤·¤ÆÊݸ¤µ¤ì¤Þ¤¹¡£
<HR>
<PRE>
# mkdir /workdir/initrd
</PRE>
<HR>
¤³¤ì¤Ç¥¤¥ó¥¹¥È¡¼¥ëºî¶È¤¬½ªÎ»¤·¤Þ¤·¤¿¡£¥·¥¹¥Æ¥à¤òºÆµ¯Æ°¤·¤Æ¡¢ºÆÅÙ Win95
¤ò¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¥â¡¼¥É¤Çµ¯Æ°¤·¤Þ¤¹¡£
</LI>
<LI>º£²ó¤Ï¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÂÐÏÃŪ¤ËÀßÄꤷ¤¿¤¤¤Î¤Ç loadlin.exe ¤ò°Ê
²¼¤Î¤è¤¦¤Ë <CODE>root=</CODE> ¥ª¥×¥·¥ç¥ó¤Ï»ØÄꤻ¤º¤Ëµ¯Æ°¤·¤Þ¤¹¡£initrd ¤Î
»ØÄê¤â½¤Àµ¤·¤¿ pcmciax2 ¤Ë¤·¤Æ¤¤¤ë¤³¤È¤Ë¸æÃí°Õ¤¯¤À¤µ¤¤¡£
<HR>
<PRE>
c:\linux\> loadlin zimage initrd=pcmciax2
</PRE>
<HR>
</LI>
<LI>¤³¤Î¾õÂ֤ǵ¯Æ°¤¹¤ë¤È¡¢¥«¡¼¥Í¥ë¤òŸ³«¤·¤¿¸å¡¢initrd ¾å¤Ë¤¢¤ë linuxrc ¤ò
¼Â¹Ô¤·¡¢¥×¥í¥ó¥×¥È¤¬½Ð¤Æ»ß¤Þ¤ê¤Þ¤¹(linuxrc ¤Ï sh ¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó
¥¯¤Ê¤Î¤Ç¡¢¼ÂºÝ¤Ë¤Ï sh ¤¬Æ°¤¤¤Æ¤¤¤Þ¤¹)¡£¤³¤Î¾õÂ֤ǤϤޤÀ pcmcia-cs ¤¬Æ°
¤¤¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¤Þ¤º <CODE>/etc/rc</CODE> ¤ò¼Â¹Ô¤·¤Æ pcmcia-cs ¤ò»È¤¨¤ë¤è
¤¦¤Ë¤·¤Þ¤¹¡£
<HR>
<PRE>
# /etc/rc
</PRE>
<HR>
<CODE>/etc/rc</CODE> ¤¬ <CODE>/rc/rc.d/rc.pcmcia</CODE> ¤ò¼Â¹Ô¤¹¤ë¤È¡¢
pcmcia-cs ¤¬µ¡Ç½¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¡¢SCSI ¥«¡¼¥É¤ä¤½¤ì¤ËÀܳ¤µ¤ì¤¿³°Éô¥Ç¥Ð
¥¤¥¹¤âǧ¼±¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£Àµ¤·¤¯Ç§¼±¤·¤Æ¤¤¤ë¤«¡¢É½¼¨¤µ¤ì¤ë¥á¥Ã¥»¡¼
¥¸¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
</LI>
<LI>¼¡¤Ë¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³°ÉÕ¤±¤Î SCSI ¥Ç¥£¥¹¥¯¤ËÊѹ¹¤·¤Þ¤¹¡£
initrd ¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢proc ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î
<CODE>/proc/sys/kernel/real-root-dev</CODE> ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤Ë¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹
¥Æ¥à¤Î¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤ò½ñ¤¤³¤ó¤Ç¤ä¤ë¤È¡¢initrd ¤ò½ªÎ»¤·¤¿ºÝ¡¢¤½¤Î¥Ç
¥Ð¥¤¥¹¤ò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·¤Æ¥Þ¥¦¥ó¥È¤·¤Þ¤¹¡£
¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤Ï <CODE>/dev/xxx</CODE> ¥Õ¥¡¥¤¥ë¤ò
<CODE>ls -l</CODE> ¤¹¤ì¤Ðɽ¼¨¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð¡¢³°ÉÕ¤±¤Î 1 ¤Ä¤á¤Î SCSI HDD
¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó 1 ¤ò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤·¤¿¤¤¾ì¹ç¡¢
<HR>
<PRE>
# ls -l /dev/sda1
brw-r----- 1 root disk 8, 1 Apr 29 1995 /dev/sda1
</PRE>
<HR>
¤Ê¤Î¤Ç¡¢<CODE>/dev/sda1</CODE> ¤Î¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤Ï major ¤¬ 8¡¢minor ¤¬ 1 ¤Ç
¤¹¡£¤³¤Î¾ì¹ç¡¢"0x801" ¤ò <CODE>/proc/sys/kernel/real-root-dev</CODE> ¤Ë½ñ
¤¤³¤ß¤Þ¤¹¡£
<HR>
<PRE>
# echo "0x801" > /proc/sys/kernel/real-root-dev
</PRE>
<HR>
ƱÍͤ˳°ÉÕ¤±¤Î 2 ¤Ä¤á¤Î SCSI HDD Á´ÂΤò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤¹¤ë¾ì¹ç¡¢
<HR>
<PRE>
# ls -l /dev/sdb1
brw-r----- 1 root disk 8, 17 Apr 29 1995 /dev/sda1
</PRE>
<HR>
¤Ê¤Î¤Ç¡¢"0x811" ¤ò <CODE>/proc/sys/kernel/real-root-dev</CODE> ¤Ë½ñ¤¤³¤ß
¤Þ¤¹¡£2 ÂæÌܤΠIDE ¥É¥é¥¤¥Ö¤Î 2 ¤ÄÌܤΥѡ¼¥Æ¥£¥·¥ç¥ó¤Ê¤é¤Ð¡¢
<HR>
<PRE>
# ls -l /dev/hdb2
brw-r----- 1 root disk 3, 66 Apr 28 1995 /dev/hdb2
</PRE>
<HR>
¤Ê¤Î¤Ç "0x342" ¤ò½ñ¤¤³¤ß¤Þ¤¹¡£
ls -l /dev/xxx ¤Çɽ¼¨¤µ¤ì¤ë¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤Ï 10 ¿Êɽµ¤Ç¤¹¤¬¡¢<CODE>echo
"0xaaa"</CODE> ¤Ç½ñ¤¤³¤à¾ì¹ç¤Ï 16 ¿Êɽµ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤Ë¸æÃí°Õ¤¯¤À¤µ
¤¤¡£
</LI>
<LI>¼ÂºÝ¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÀßÄ꤬½ª¤ï¤ì¤Ð exit ¤òÆþÎϤ¹¤ë¤«¡¢ctrl-D
¤ò²¡¤·¤Æ linuxrc(¼ÂÂÎ¤Ï sh)¤ò½ªÎ»¤·¤Þ¤¹¡£¤¹¤ë¤È¡¢
<CODE>/proc/sys/kernel-real-root-dev</CODE> ¤ËÀßÄꤷ¤¿¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ
¥à¤ò¿·¤·¤¤¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤·¤Æ¥·¥¹¥Æ¥à¤¬µ¯Æ°¤¹¤ë¤Ï¤º¤Ç¤¹¡£
</LI>
<LI>Slackware¤Ëɸ½à¤Îµ¯Æ°ÍÑ¥¹¥¯¥ê¥×¥È <CODE>/etc/rc.d/rc.S</CODE> ¤ÏÄ̾ï¤Î
desktop ´Ä¶¤òÁ°Äó¤Ë¤·¤Æ¤¤¤ë¤Î¤Ç nfsroot ¤Ç»ÈÍѤ¹¤ë¤È¤¤¤í¤¤¤í¤ÈÌäÂ꤬
À¸¤¸¤Þ¤¹¡£¶ñÂÎŪ¤Ë¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤«¤Ï¸½ºß¤â»î¹Ôºø¸íÃæ¤Ç¤¹¤¬¡¢nfsroot ¤ò
fsck ¤¹¤ë¤Î¤Ï¥Ø¥ó¤Ê¤Î¤Ç¡¢fsck ¤·¤Æ¤ë²ó¤ê¤ÏÁ´Éô¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ¡¢
ɬÍפʥ³¥Þ¥ó¥É¤òÆ°¤«¤·¤Æ¤¤¤ë¤È¤³¤í¤À¤±¤Ë¤·¤Æ¤¤¤¤¤è¤¦¤Ë»×¤¤¤Þ¤¹¡£
</LI>
<LI>¿·¤·¤¤¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Çµ¯Æ°¤¹¤ë¤È¡¢¸Å¤¤¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï
<CODE>/initrd</CODE> °Ê²¼¤Ë°Ü¤µ¤ì read only ¤Ç¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£initrd
Ãʳ¬¤ÇÆ°¤¤¤Æ¤¤¤¿³Æ¼ï¤Î¥×¥í¥»¥¹¤«¤é¤Ï¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·
¥¹¥Æ¥à¤Î¤Þ¤Þ¤Ë¸«¤¨¤ë¤Î¤Ç¡¢Î㤨¤Ð cardmgr ¤Î¸«¤ë <CODE>/var/run/stab</CODE>
¤Ï <CODE>/initrd/var/run/stab</CODE> ¤Ë¤Ê¤ê¤Þ¤¹¡£
pcmcia-cs ¤Ç¤Ï <CODE>/var/run/stab</CODE> ¤Ë¸½ºßÁÞÆþ¤µ¤ì¤Æ¤¤¤ë¥«¡¼¥É¤Î¾õÂÖ
¤ò½ñ¤¤³¤ó¤Ç´Æ»ë¤·¤Æ¤¤¤Þ¤¹¤¬¡¢<CODE>/var/run/stab</CODE> ¤¬
<CODE>/initrd</CODE>°Ê²¼¤Î read only ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
(<CODE>/initrd/var/run/stab</CODE>)¤Ë°ÜÆ°¤¹¤ë¤È¡¢¥«¡¼¥É¤òÁÞ¤·Âؤ¨¤¿»þ¤Î¾ð
Êó¤Î¹¹¿·¤¬ÉÔ²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î¤¿¤á¡¢°ìö cardmgr ¤ò½ªÎ»¤µ¤»¤Æ¤«¤éºÆ
µ¯Æ°¤·¡¢cardmgr ¤¬¸½ºß¤Î <CODE>/var/run/stab</CODE> ¤ò»²¾È¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
<HR>
<PRE>
# killall cardmgr
# /sbin/cardmgr
</PRE>
<HR>
¤³¤Î¤¿¤á¤Ë¤Ï¡¢initrd ¤ËÁȤߤ³¤ó¤À pcmcia-cs ¤È¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ
¥à¤Ë¤¢¤ë pcmcia-cs ¤Î¥Ð¡¼¥¸¥ç¥ó¤äÀßÄ꤬Ʊ¤¸¤Ë¤Ê¤Ã¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
pcmcia-cs ¤¬ initrd Ãʳ¬¤ÇÁȤߤ³¤ó¤À pcmcia_core.o ¤ä i82365.o¡¢ds.o
¤Î 3 ¤Ä¤Î¥â¥¸¥å¡¼¥ë¤Ï³°ÉÕ¤± SCSI HDD ¤ò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤·¤Æ¤¤
¤ë¸Â¤ê»ÈÍÑÃæ¤Ê¤Î¤Ç¼è¤ê½ü¤¯¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½¤Î¤¿¤áºÆµ¯Æ°¤ÎºÝ¤Ë¤Ï
"device busy" Åù¤Î¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬¤¤¤¯¤Ä¤«½Ð¤Þ¤¹¤¬¡¢Æä˵¤¤Ë¤¹¤ëɬÍ×
¤Ï¤¢¤ê¤Þ¤»¤ó(¤È»×¤¦¡¢¡¢)¡£
</LI>
<LI>ºÆµ¯Æ°¤·¤¿ cardmgr ¤ÏÄ̾ï¤Î <CODE>/var/run/stab</CODE> ¤ò¸«¤Ê¤¬¤é¥«¡¼¥É¤Î
´Æ»ë¤ò¹Ô¤¦¤¿¤á¡¢¿·¤·¤¤¥«¡¼¥É¤òÁÞÆþ¤·¤Æ¤âǧ¼±¤Ç¤¤ë¤Ï¤º¤Ç¤¹¡£PC ¥«¡¼¥É
¤¬Àµ¤·¤¯Ç§¼±¤µ¤ì¤ë¤«¡¢¥«¡¼¥É¤òÈ´¤ÁÞ¤·¤·¤Æ»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¤¿¤À¤·¡¢
³°ÉÕ¤±¤Î SCSI ¤ò¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤·¤Æ¤¤¤ë¾ì¹ç¡¢SCSI ¥«¡¼¥É¤òÈ´
¤¯¤È³Î¼Â¤Ë¥Ï¥ó¥°¥¢¥Ã¥×¤·¤Þ¤¹¤Î¤Ç¸æÃí°Õ¤¯¤À¤µ¤¤¡£
</LI>
</OL>
<P>
<HR>
<A HREF="ext-root-mini-HOWTO-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO.html#toc3">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|