/usr/share/doc/HOWTO/ja-html/Large-Disk-HOWTO-14.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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Large Disk HOWTO: ÌäÂê¤Î²ò·è</TITLE>
<LINK HREF="Large-Disk-HOWTO-15.html" REL=next>
<LINK HREF="Large-Disk-HOWTO-13.html" REL=previous>
<LINK HREF="Large-Disk-HOWTO.html#toc14" REL=contents>
</HEAD>
<BODY>
<A HREF="Large-Disk-HOWTO-15.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO-13.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO.html#toc14">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s14">14. ÌäÂê¤Î²ò·è</A></H2>
<P>ÌäÂê¤òÊú¤¨¤¿¤È»×¤¦¿Í¤Î¿¤¯¤Ï¡¢¤·¤«¤·¼ÂºÝ¤Ë¤Ï²¿¤â°¤¤ÅÀ¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¤Þ¤¿¡¢Êú¤¨¤Æ¤¤¤ëÌäÂê¤Î¸¶°ø¤¬¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Ë¤¢¤ë¤È»×¤ï¤ì¤ë¾ì¹ç¤Ç¤â¡¢
¼ÂºÝ¤Ë¤Ï¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Ë¤Ï²¿¤ÎÌäÂê¤â¤¢¤ê¤Þ¤»¤ó¡£
¾å¤Ç½Ò¤Ù¤¿¤è¤¦¤Ê¤¹¤Ù¤Æ¤Î¤³¤È¤¬»öÂÖ¤òÊ£»¨¤Ë¤·¤Æ¤¤¤Þ¤¹¤¬¡¢
¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Î°·¤¤¤ÏÈó¾ï¤Ë´Êñ¤Ç¤¹:
¤Þ¤Ã¤¿¤¯¿½¤·Ê¬¤Ê¤±¤ì¤Ð²¿¤â¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó;
¤â¤·µ¯Æ°»þ¤Ë `LI' ¤ÎÀè¤Ë¿Ê¤Þ¤Ê¤¤¾ì¹ç¤Ï LILO ¤Ë¥¡¼¥ï¡¼¥É
`linear' ¤òÍ¿¤¨¤Æ¤¯¤À¤µ¤¤¡£
¥«¡¼¥Í¥ë¤Îµ¯Æ°¥á¥Ã¥»¡¼¥¸¤ò¸«¤Æ»×¤¤½Ð¤·¤Æ¤¯¤À¤µ¤¤:
(LILO ¤ä fdisk ¤ä¥«¡¼¥Í¥ë¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¥Ø¥Ã¥É¿ô¤ä¥·¥ê¥ó¥À¿ô¤ò
Í¿¤¨¤Æ)¥¸¥ª¥á¥È¥ê¤ò¤¤¤¸¤¯¤ì¤Ð¤¤¤¸¤¯¤ë¤Û¤É¡¢
Àµ¾ï¤Ë¤ÏÆ°ºî¤·¤Ê¤¯¤Ê¤ë¤Ç¤·¤ç¤¦¡£¤ª¤ª¤¶¤Ã¤Ñ¤Ë¤¤¤¨¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤¬°ìÈ֤ʤΤǤ¹¡£
<P>¤µ¤é¤Ë»×¤¤½Ð¤·¤Æ¤¯¤À¤µ¤¤:
Linux ¤¬¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤ò»È¤ï¤Ê¤¤½ê¡¢
¤Ä¤Þ¤êLinux ¤¬Æ°ºî¤·¤Æ¤¤¤ë´Ö¤Ï¡¢
¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Ë¤è¤Ã¤ÆÌäÂ꤬°ú¤µ¯¤³¤µ¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¤½¤ì¤É¤³¤í¤«¡¢¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Ï LILO ¤È fdisk ¤À¤±¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£
¤½¤¦¡¢LILO ¤¬¥«¡¼¥Í¥ë¤Îµ¯Æ°¤Ë¼ºÇÔ¤¹¤ë¾ì¹ç¤Ï¡¢
¥¸¥ª¥á¥È¥ê¤ËÌäÂ꤬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
°Û¤Ê¤ë OS ¤¬¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥Æ¡¼¥Ö¥ë¤òÍý²ò¤·¤Ê¤¤¾ì¹ç¤Ï¡¢
¥¸¥ª¥á¥È¥ê¤ËÌäÂ꤬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤Ç¤â¤½¤ì¤À¤±¤Ç¤¹¡£
¤È¤ê¤ï¤±¡¢mount ¤¬Æ°ºî¤·¤Ê¤¤¤è¤¦¤Ë»×¤¨¤ë¾ì¹ç¤Ç¤â¡¢
¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Ë¤Ï²¿¤Î´Ø·¸¤â¤¢¤ê¤Þ¤»¤ó - ÌäÂê¤Ï¾¤Î½ê¤Ë¤¢¤ê¤Þ¤¹¡£
<P>
<H2><A NAME="ss14.1">14.1 ÌäÂê: SCSI ¤«¤éµ¯Æ°¤·¤¿»þ¡¢IDE ¥Ç¥£¥¹¥¯¤¬ÊѤʥ¸¥ª¥á¥È¥ê¤ò»ý¤Ã¤Æ¤¤¤ë</A>
</H2>
<P>¥Ç¥£¥¹¥¯¤¬ÊѤʥ¸¥ª¥á¥È¥ê¤ò»ý¤Ä¤Î¤Ï¤È¤Æ¤â¤¢¤ê¤¬¤Á¤Ç¤¹¡£
Linux ¥«¡¼¥Í¥ë¤Ï hd0 ¤È hd1 (80H ¤È 81H ¤Î¿ô»ú¤¬¤Õ¤é¤ì¤¿ BIOS ¥É¥é¥¤¥Ö)
¤Ë¤Ä¤¤¤Æ BIOS ¤ËÌ䤤¹ç¤ï¤»¡¢
¤³¤Î¥Ç¡¼¥¿¤¬ hda ¤È hdb ¤Î¤â¤Î¤À¤È²¾Äꤷ¤Þ¤¹¡£
¤·¤«¤· SCSI ¤«¤éµ¯Æ°¤·¤¿¥·¥¹¥Æ¥à¾å¤Ç¤Ï¡¢
ºÇ½é¤ÎÆó¤Ä¤Î¥Ç¥£¥¹¥¯¤¬ SCSI ¥Ç¥£¥¹¥¯¤Ç¤·¤ç¤¦¤«¤é¡¢
ºÇ½é¤Î IDE ¥Ç¥£¥¹¥¯ hda ¤Ç¤¢¤ë 5ÈÖÌܤΥǥ£¥¹¥¯¤ËÂФ·¤Æ
sda ¤Î¥¸¥ª¥á¥È¥ê¤¬³ä¤êÅö¤Æ¤é¤ì¤ë¤Ê¤ó¤Æ¤³¤È¤¬µ¯¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¤³¤ì¤Ï¡¢µ¯Æ°»þ¤ä /etc/lilo.conf ¤Ë¤ª¤¤¤Æ¡¢Å¬Àڤʿô»ú C, H, S ¤ò»È¤Ã¤Æ
¥Ö¡¼¥È¥Ñ¥é¥á¡¼¥¿ `hda=C,H,S' ¤òÍ¿¤¨¤ë¤³¤È¤Ç´Êñ¤Ë²ò·è¤Ç¤¤Þ¤¹¡£
<P>
<P>
<H2><A NAME="ss14.2">14.2 ÌäÂê¤Ê¤·: Ʊ¤¸¥Ç¥£¥¹¥¯¤¬°Û¤Ê¤ë¥¸¥ª¥á¥È¥ê¤ò»ý¤Ã¤Æ¤¤¤ë?</A>
</H2>
<P>¡Ö»ä¤Ï¤Þ¤Ã¤¿¤¯Æ±¤¸ IBM À½¤Î¥Ç¥£¥¹¥¯¤ò 2Âæ»ý¤Ã¤Æ¤¤¤Þ¤¹¡£
¤·¤«¤·¡¢fdisk ¤¬É½¼¨¤¹¤ë¥µ¥¤¥º¤Ï°Û¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ó¤Ê´¶¤¸:
<BLOCKQUOTE><CODE>
<PRE>
# fdisk -l /dev/hdb
Disk /dev/hdb: 255 heads, 63 sectors, 1232 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 1232 9896008+ 83 Linux native
# fdisk -l /dev/hdd
Disk /dev/hdd: 16 heads, 63 sectors, 19650 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 19650 9903568+ 83 Linux native
</PRE>
</CODE></BLOCKQUOTE>
²¿¤Ç¤Ç¤·¤ç?¡×
<P>²¿¤¬µ¯¤¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦?
¤½¤¦¡¢¤Þ¤ºÂè°ì¤Ë¡¢¤³¤ì¤é¤Î¥É¥é¥¤¥Ö¤Ï¤·¤Ã¤«¤ê 10 ¥®¥¬¥Ð¥¤¥È»È¤¨¤Æ¤¤¤Þ¤¹:
hdb ¤Ï 255*63*1232*512 = 10133544960 ¥Ð¥¤¥È¤Ç¡¢
hdd ¤Ï 16*63*19650*512 = 10141286400 ¥Ð¥¤¥È¤Ç¤¹¤¬¡¢
²¿¤â°¤¤½ê¤Ï¤Ê¤¤¤·¥«¡¼¥Í¥ë¤Ï¤É¤Á¤é¤â 10.1 GB ¤Ç¤¢¤ë¤ÈÍý²ò¤·¤Æ¤¤¤Þ¤¹¡£
¤Ç¤Ï²¿¸Î¥µ¥¤¥º¤¬°ã¤¦¤Î¤Ç¤·¤ç¤¦?
¤½¤ì¤Ï¡¢¥«¡¼¥Í¥ë¤ÏºÇ½é¤ÎÆóÂæ¤Î IDE ¥Ç¥£¥¹¥¯¤Ë¤Ä¤¤¤Æ¤Ï BIOS ¤«¤é¾ðÊó¤òÆÀ¡¢
¤½¤Î BIOS ¤Ï hdb ¤ò 255 ¥Ø¥Ã¥É¤ÇºÆ¥Þ¥Ã¥×¤·¤Æ¤¤¤ë¤«¤é¤Ç¤¹
(16*19650/255=1232 ¥·¥ê¥ó¥À)¡£
¤³¤Î´Ý¤á¤Ë¤è¤ë»¼º¤Ï 8MB ¼å¤Ç¤¹¡£
<P>hdd ¤âƱ¤¸ÊýË¡¤ÇºÆ¥Þ¥Ã¥×¤·¤¿¤¤¤Î¤Ê¤é¤Ð¡¢
¥«¡¼¥Í¥ë¤Î¥Ö¡¼¥È¥Ñ¥é¥á¡¼¥¿¤Ë `hdd=1232,255,63' ¤òÍ¿¤¨¤Æ¤¯¤À¤µ¤¤¡£
<P>
<H2><A NAME="df_fdisk"></A> <A NAME="ss14.3">14.3 ÌäÂê¤Ê¤·: df ¤è¤ê fdisk ¤ÎÊý¤¬¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤¬Â礤¯¸«¤¨¤ë</A>
</H2>
<P>fdisk ¤Ï¥Ö¥í¥Ã¥¯¤¬¥Ç¥£¥¹¥¯¾å¤Ë¤¤¤¯¤Ä¸ºß¤¹¤ë¤«¤òÊó¹ð¤·¤Þ¤¹¡£
mke2fs ¤ò»È¤Ã¤Æ¥Ç¥£¥¹¥¯¾å¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºî¤Ã¤¿¾ì¹ç¡¢
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÏÊíµ(bookkeeping)¤Î¤¿¤á¤Î¤¤¤¯¤é¤«¤Î¥¹¥Ú¡¼¥¹¤òɬÍפȤ·¤Þ¤¹
- Ä̾ï¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤Î 4% ¤¯¤é¤¤¤Ç¡¢
mke2fs ¤¹¤ëºÝ¤Ë¿¤¯¤Î inode ¤òºî¤ë¤È¤è¤êÁý¤¨¤Þ¤¹¡£
°Ê²¼¤ÏÎã¤Ç¤¹:
<BLOCKQUOTE><CODE>
<PRE>
# sfdisk -s /dev/hda9
4095976
# mke2fs -i 1024 /dev/hda9
mke2fs 1.12, 9-Jul-98 for EXT2 FS 0.5b, 95/08/09
...
204798 blocks (5.00%) reserved for the super user
...
# mount /dev/hda9 /somewhere
# df /somewhere
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda9 3574475 13 3369664 0% /mnt
# df -i /somewhere
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/hda9 4096000 11 4095989 0% /mnt
#
</PRE>
</CODE></BLOCKQUOTE>
¤Þ¤º¡¢4095976 ¥Ö¥í¥Ã¥¯¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£
¤³¤³¤Ë ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤·¡¢Å¬Åö¤Ê½ê¤Ë¥Þ¥¦¥ó¥È¤·¤Þ¤¹¡£
¤¹¤ë¤È 3574475 ¥Ö¥í¥Ã¥¯¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹
- 521501 ¥Ö¥í¥Ã¥¯ (12%) ¤Ï inode ¤È¾¤ÎÊíµÍÑ¥¹¥Ú¡¼¥¹¤Ë¾ÃÈñ¤µ¤ì¤¿¤Î¤Ç¤¹¡£
¹ç·× 3574475 ¤È 3369664 ¤Î´Ö¤Îº¹¤Ï¡¢¥æ¡¼¥¶¤¬ 13 ¥Ö¥í¥Ã¥¯¤ò»ÈÍѤ·¤Æ¤¤¤Æ¡¢
¤µ¤é¤Ë 204798 ¥Ö¥í¥Ã¥¯¤¬ root ¤Î¤¿¤á¤ËͽÌ󤵤ì¤Æ¤¤¤ë¤¿¤á¤Ç¤¢¤ë¤³¤È¤Ë
Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¸å¼Ô¤Ï tune2fs ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
¤³¤Î `-i 1024' ¤Ï¥Ë¥å¡¼¥¹¥¹¥×¡¼¥ë¤Ê¤É¤Î¾®¤µ¤¤¥Õ¥¡¥¤¥ë¤¬»³¤Û¤É¤¢¤ë
¾ì¹ç¤Ë¤Î¤ßŬ¤·¤Æ¤¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤³¤¦¤Ê¤ê¤Þ¤¹:
<BLOCKQUOTE><CODE>
<PRE>
# mke2fs /dev/hda9
# mount /dev/hda9 /somewhere
# df /somewhere
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda9 3958475 13 3753664 0% /mnt
# df -i /somewhere
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/hda9 1024000 11 1023989 0% /mnt
#
</PRE>
</CODE></BLOCKQUOTE>
º£ÅÙ¤Ï 137501 ¥Ö¥í¥Ã¥¯(3.3%)¤Î¤ß¤¬ inode ¤Î¤¿¤á¤Ë»ÈÍѤµ¤ì¡¢
¤½¤Î·ë²Ì°ÊÁ°¤è¤ê 384 MB ¤âÁý¤¨¤Æ¤Þ¤¹¡£
(inode 1¤Ä¤Ë¤Ä¤ 128 ¥Ð¥¤¥È»È¤Ã¤Æ¤ë¤ß¤¿¤¤¤Ç¤¹¡£)
°ìÊý¡¢Àè¤Î¾ì¹ç¤Ç¤Ï 4096000 ¥Õ¥¡¥¤¥ëÊݸ¤Ç¤¤ë¤Î¤ËÂФ·(¤É¤¦¸«¤Æ¤â¿¤¹¤®)¡¢
¤³¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¤ÏºÇÂç 1024000 ¥Õ¥¡¥¤¥ë¤¬Êݸ¤Ç¤¤Þ¤¹
(¤³¤ì¤Ç¤â½½Ê¬¤¹¤®¤Þ¤¹)¡£
<P>
<HR>
<A HREF="Large-Disk-HOWTO-15.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO-13.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO.html#toc14">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|