16.6. ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ÎºîÀ®¤È»ÈÍÑ

¸¶ºî: Julio Merino. ²þÄû: Martin Karlsson.

¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ë¥Ç¡¼¥¿¤ò³ÊǼ¤¹¤ë¤³¤È¤Ï¤·¤Ð¤·¤ÐÌò¤Ë¤¿¤Á¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð¡¢¤¢¤ë¿Í¤¬Â¾¤Î¥ê¥à¡¼¥Ð¥Ö¥ëµ­Ï¿¥á¥Ç¥£¥¢¤ò²¿¤â»ý¤Ã¤Æ¤¤¤Ê¤¤¤È¤­¤ä¡¢ ¾®¤µ¤Ê¥Ç¡¼¥¿¤ò¾¤Î¥³¥ó¥Ô¥å¡¼¥¿¤Ë°ÜÆ°¤µ¤»¤ëɬÍפ¬¤¢¤ë¤È¤­¤Ç¤¹¡£

¤³¤ÎÀá¤Ç¤Ï¡¢FreeBSD ¤Ë¤ª¤±¤ë¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Î»ÈÍÑÊýË¡¤òÀâÌÀ¤·¤Þ¤¹¡£ ¼ç¤Ë 3.5 ¥¤¥ó¥Á¤Î DOS ¥Õ¥í¥Ã¥Ô¡¼¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ÈÁàºîÊýË¡¤ò°·¤¤¤Þ¤¹¤¬¡¢ ¾¤Î¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Î·Á¼°¤Ë¤Ä¤¤¤Æ¤â³µÇ°¤Ï»÷¤Æ¤¤¤Þ¤¹¡£

16.6.1. ¥Õ¥í¥Ã¥Ô¡¼¤Î¥Õ¥©¡¼¥Þ¥Ã¥È

16.6.1.1. ¥Ç¥Ð¥¤¥¹

¾¤Î¥Ç¥Ð¥¤¥¹¤ÈƱÍͤˡ¢¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ï /dev ¤Ë¤¢¤ë¥¨¥ó¥È¥ê¤òÄ̤¸¤Æ¥¢¥¯¥»¥¹¤µ¤ì¤Þ¤¹¡£4.X ¤ª¤è¤Ó¤½¤ì°ÊÁ°¤Î¥ê¥ê¡¼¥¹¤Ë¤ª¤¤¤Æ raw ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤Ë¤Ï /dev/fdN ¤Þ¤¿¤Ï /dev/fdNX ¤ò»ÈÍѤ·¤Þ¤¹¡£N ¤Ï¥É¥é¥¤¥ÖÈÖ¹æ¤òɽ¤·¡¢ ÂçÄñ¤Ï 0 ¤Ç¤¹¡£X ¤Ïʸ»ú¤òɽ¤·¤Þ¤¹¡£

5.0 ¤ª¤è¤Ó¤½¤ì°Ê¹ß¤Î¥ê¥ê¡¼¥¹¤Ç¤Ï¡¢Ã±¤Ë /dev/fdN ¤ò»ÈÍѤ·¤Þ¤¹¡£

16.6.1.1.1. 4.X ¤ª¤è¤Ó¤½¤ì°ÊÁ°¤Î¥ê¥ê¡¼¥¹¤Ç¤Î¥Ç¥£¥¹¥¯¥µ¥¤¥º

/dev/fdN.size ¤È¤¤¤¦¥Ç¥Ð¥¤¥¹¤â¤¢¤ê¤Þ¤¹¡£ size ¤Ï¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Î¥µ¥¤¥º¤ò¥­¥í¥Ð¥¤¥È¤Ç¼¨¤·¤¿¤â¤Î¤Ç¤¹¡£ ¤³¤ì¤é¤Î¥¨¥ó¥È¥ê¤ÏÄã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤ÎºÝ¤Ë¡¢ ¥Ç¥£¥¹¥¯¥µ¥¤¥º¤ò·èÄꤹ¤ë¤Î¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£ 1440kB ¤Ï°Ê²¼¤ÎÎã¤Ç»ÈÍѤµ¤ì¤ë¥µ¥¤¥º¤Ç¤¹¡£

»þ¡¹ /dev ²¼¤Î¥¨¥ó¥È¥ê¤Ï (ºÆ) ºîÀ®¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¼¡¤Î¥³¥Þ¥ó¥É¤Ç¤³¤ì¤ò¹Ô¤¤¤Þ¤¹¡£

# cd /dev && ./MAKEDEV "fd*"

16.6.1.1.2. 5.X ¤ª¤è¤Ó¤½¤ì°Ê¹ß¤Î¥ê¥ê¡¼¥¹¤Ç¤Î¥Ç¥£¥¹¥¯¥µ¥¤¥º

FreeBSD 5.0 ¤Ç¤Ï devfs(5) ¤¬ /dev Æâ¤Î¥¨¥ó¥È¥ê¤ò¼«Æ°Åª¤Ë´ÉÍý¤¹¤ë¤Î¤Ç¡¢ MAKEDEV¤ò»ÈÍѤ¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

½ê˾¤Î¥Ç¥£¥¹¥¯¥µ¥¤¥º¤Ï fdformat(1) ¤Ë -f ¥Õ¥é¥°¤òÄ̤·¤ÆÅϤµ¤ì¤Þ¤¹¡£Âбþ¤·¤Æ¤¤¤ë¥µ¥¤¥º¤Ï fdcontrol(8) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ë·ÇºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢ºÇÎɤËÆ°ºî¤¹¤ë¤Î¤Ï 1440kB ¤À¤È½õ¸À¤·¤Æ¤ª¤­¤Þ¤¹¡£

16.6.1.2. ¥Õ¥©¡¼¥Þ¥Ã¥È

¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ï¡¢ »ÈÍÑÁ°¤ËÄã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤ò¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ Ä̾¥Ù¥ó¥À¤ÏÄã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥ÈºÑ¤ß¤Î¥Ç¥£¥¹¥¯¤ò½Ð²Ù¤·¤Æ¤¤¤Þ¤¹¤¬¡¢ ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¥á¥Ç¥£¥¢¤ÎÉʼÁ¤ò³Îǧ¤¹¤ë¤è¤¤ÊýË¡¤Ç¤¹¡£ ¤è¤êÂ礭¤Ê (¤Þ¤¿¤Ï¾®¤µ¤Ê) ¥Ç¥£¥¹¥¯¥µ¥¤¥º¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¤¬¡¢ ¤Û¤È¤ó¤É¤Î¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Î¥µ¥¤¥º¤Ï 1440kB ¤ÇÆ°ºî¤¹¤ë¤è¤¦¤ËÀ߷פµ¤ì¤Æ¤¤¤Þ¤¹¡£

¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤òÄã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤¹¤ë¤Ë¤Ï fdformat(1) ¤ò»ÈÍѤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤³¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï°ú¿ô¤È¤·¤Æ¥Ç¥Ð¥¤¥¹Ì¾¤ò»ØÄꤷ¤Þ¤¹¡£

¥Ç¥£¥¹¥¯¤¬Îɹ¥¤«¤¢¤ë¤¤¤ÏÉÔÎɤǤ¢¤ë¤«¤ò·èÄꤹ¤ë¤Î¤ËÌòΩ¤Ä¤Î¤Ç¡¢ ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¤¹¤Ù¤Æ¥á¥â¤Ë¼è¤Ã¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£

16.6.1.2.1. 4.X °ÊÁ°¤Î¥ê¥ê¡¼¥¹¤Ç¤Î¥Õ¥©¡¼¥Þ¥Ã¥È

/dev/fdN.size ¥Ç¥Ð¥¤¥¹¤ò»È¤Ã¤Æ¥Õ¥í¥Ã¥Ô¡¼¤ò¥Õ¥©¡¼¥Þ¥Ã¥È¤·¤Þ¤¹¡£ ¿·¤·¤¤ 3.5 ¥¤¥ó¥Á¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ò¥É¥é¥¤¥Ö¤ËÁÞÆþ¤·¡¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

# /usr/sbin/fdformat /dev/fd0.1440

16.6.1.2.2. 5.0 °Ê¹ß¤Î¥ê¥ê¡¼¥¹¤Ç¤Î¥Õ¥©¡¼¥Þ¥Ã¥È

/dev/fdN ¥Ç¥Ð¥¤¥¹¤ò»ÈÍѤ·¤Æ¥Õ¥í¥Ã¥Ô¡¼¤ò¥Õ¥©¡¼¥Þ¥Ã¥È¤·¤Þ¤¹¡£ ¿·¤·¤¤ 3.5 ¥¤¥ó¥Á¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ò¥É¥é¥¤¥Ö¤ËÁÞÆþ¤·¡¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

# /usr/sbin/fdformat -f 1440 /dev/fd0

16.6.2. ¥Ç¥£¥¹¥¯¥é¥Ù¥ë

¥Ç¥£¥¹¥¯¤òÄã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤·¤¿¤é¡¢ ¼¡¤Ë¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤Ï¸å¤ÇÇË´þ¤µ¤ì¤Þ¤¹¤¬¡¢ ¥·¥¹¥Æ¥à¤¬¥Ç¥£¥¹¥¯¤Î¥µ¥¤¥º¤È¥¸¥ª¥á¥È¥ê¤ò·èÄꤹ¤ë¤Î¤ËɬÍפˤʤê¤Þ¤¹¡£

¿·¤·¤¤¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤Ï¥Ç¥£¥¹¥¯Á´ÂΤò°ú¤­·Ñ¤®¡¢ ¥Õ¥í¥Ã¥Ô¡¼¤Î¥¸¥ª¥á¥È¥ê¤Ë´Ø¤¹¤ëŬÀڤʾðÊó¤Î¤¹¤Ù¤Æ¤¬´Þ¤Þ¤ì¤Þ¤¹¡£ ¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤ËÂФ¹¤ë¥¸¥ª¥á¥È¥ê¤ÎÃÍ¤Ï /etc/disktab ¤Ë·ÇºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

¼¡¤Î¤è¤¦¤Ë disklabel(8) ¤ò¼Â¹Ô¤Ç¤­¤Þ¤¹¡£

# /sbin/disklabel -B -r -w /dev/fd0 fd1440

注意: FreeBSD 5.1-RELEASE ¤«¤é¡¢½¾Íè¤Î disklabel(8) ¥×¥í¥°¥é¥à¤Ï bsdlabel(8) ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤·¤¿¡£bsdlabel(8) ¤Ç¤Ï¡¢ »ÈÍѤµ¤ì¤Æ¤¤¤Ê¤¤¥ª¥×¥·¥ç¥ó¤ª¤è¤Ó¥Ñ¥é¥á¥¿¤Î¿ô¿¤¯¤¬ºï½ü¤µ¤ì¤Þ¤·¤¿¡£ ¤¿¤È¤¨¤Ð -r ¥ª¥×¥·¥ç¥ó¤Ï bsdlabel(8) ¤Ç¤Ï¼è¤ê½ü¤«¤ì¤Þ¤·¤¿¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï bsdlabel(8) ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

16.6.3. ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à

¤³¤ì¤Ç¥Õ¥í¥Ã¥Ô¡¼¤ò¹â¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤¹¤ë½àÈ÷¤¬¤Ç¤­¤Þ¤·¤¿¡£¤³¤ì¤Ï FreeBSD ¤¬¥Ç¥£¥¹¥¯¤òÆɤ߽ñ¤­¤¹¤ë¿·¤·¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤·¤Þ¤¹¡£ ¿·¤·¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤¹¤ë¤È¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤ÏÇË´þ¤µ¤ì¤Þ¤¹¡£ ¤·¤¿¤¬¤Ã¤Æ¡¢¥Ç¥£¥¹¥¯¤òºÆ¥Õ¥©¡¼¥Þ¥Ã¥È¤¹¤ë¤È¤­¤Ë¤Ï¡¢ ¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤òºÆºîÀ®¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

¥Õ¥í¥Ã¥Ô¡¼¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ï UFS ¤Þ¤¿¤Ï FAT ¤ò»ÈÍѤǤ­¤Þ¤¹¡£ ¥Õ¥í¥Ã¥Ô¡¼¤ËÂФ·¤Æ¤Ï FAT ¤¬°ìÈÌŪ¤Ë¤è¤ê¤è¤¤ÁªÂò¤Ç¤¹¡£

¥Õ¥í¥Ã¥Ô¡¼¾å¤Ë¿·¤·¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤¹¤ë¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£

# /sbin/newfs_msdos /dev/fd0

¤³¤ì¤Ç¥Ç¥£¥¹¥¯¤¬»ÈÍѤǤ­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£

16.6.4. ¥Õ¥í¥Ã¥Ô¡¼¤Î»ÈÍÑ

¥Õ¥í¥Ã¥Ô¡¼¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¡¢mount_msdos(8) (4.X °ÊÁ°¤Î¥ê¥ê¡¼¥¹) ¤Þ¤¿¤Ï mount_msdosfs(8) (5.0 °Ê¸å¤Î¥ê¥ê¡¼¥¹) ¤òÍѤ¤¤Æ¥Þ¥¦¥ó¥È¤·¤Þ¤¹¡£ Ports Collection ¤«¤é emulators/mtools ¤ò»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£