/usr/share/doc/HOWTO/ja-html/Large-Disk-HOWTO-9.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 | <!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-10.html" REL=next>
<LINK HREF="Large-Disk-HOWTO-8.html" REL=previous>
<LINK HREF="Large-Disk-HOWTO.html#toc9" REL=contents>
</HEAD>
<BODY>
<A HREF="Large-Disk-HOWTO-10.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO-8.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO.html#toc9">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s9">9. ·ëÏÀ</A></H2>
<P>
<!--
disk!consequences of translation
-->
·ë¶É¤É¤¦¤À¤È¤¤¤¦¤Î¤Ç¤·¤ç¤¦? Linux ÍøÍѼԤˤȤäƤϰìÅÀ¤À¤±¤¬½ÅÍפǤ¹¡£
¤½¤ì¤Ï¡¢LILO ¤È <CODE>fdisk</CODE> ¤¬Àµ¤·¤¤¥¸¥ª¥á¥È¥ê¤ò»È¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤Ç¤¹¡£
¤³¤³¤Ç¤Î¡ÖÀµ¤·¤¤¡×¤È¤Ï¡¢<CODE>fdisk</CODE> ¤Ë´Ø¤·¤Æ¤ÏƱ¤¸¥Ç¥£¥¹¥¯¾å¤Î¾¤Î OS
¤¬¤½¤Î¥¸¥ª¥á¥È¥ê¤ò»ÈÍѤ·¤Æ¤¤¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ê¡¢
¤Þ¤¿ LILO ¤Ë´Ø¤·¤Æ¤Ïµ¯Æ°»þ¤Ë BIOS ¤È¤ä¤ê¼è¤ê¤·¤Æµ¯Æ°¤¬À®¸ù¤¹¤ë
¥¸¥ª¥á¥È¥ê¤Ç¤¢¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£(ÉáÄ̤Ϥ³¤Î 2¤Ä¤Ï°ìÃפ·¤Þ¤¹¡£)
<P><CODE>fdisk</CODE> ¤Ï¡¢¤É¤¦¤ä¤Ã¤Æ¥¸¥ª¥á¥È¥ê¤òÄ´¤Ù¤ë¤Î¤Ç¤·¤ç¤¦?
<CODE>HDIO_GETGEO</CODE> ioctl ¤ò»ÈÍѤ·¤Æ¥«¡¼¥Í¥ë¤ËÌ䤤¹ç¤ï¤»¤ë¤Î¤Ç¤¹¡£
¤·¤«¤·¡¢ÍøÍѼԤÏÂÐÏÃŪ¤Ë¡¢¤¢¤ë¤¤¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¥¸¥ª¥á¥È¥ê¤ò¶¯À©¤Ç¤¤Þ¤¹¡£
<P>LILO ¤Ï¡¢¤É¤¦¤ä¤Ã¤Æ¥¸¥ª¥á¥È¥ê¤òÄ´¤Ù¤ë¤Î¤Ç¤·¤ç¤¦?
<CODE>HDIO_GETGEO</CODE> ioctl ¤ò»ÈÍѤ·¤Æ¥«¡¼¥Í¥ë¤ËÌ䤤¹ç¤ï¤»¤ë¤Î¤Ç¤¹¡£
¤·¤«¤·¡¢ÍøÍÑ¼Ô¤Ï <CODE>/etc/lilo.conf</CODE> Æâ¤Î "<CODE>disk=</CODE>" ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¡¢
¥¸¥ª¥á¥È¥ê¤ò¶¯À©¤Ç¤¤Þ¤¹ (lilo.conf(5) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
<CODE>linear</CODE> ¥ª¥×¥·¥ç¥ó¤ò LILO ¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¤½¤Î¾ì¹ç¡¢LILO ¤Ï CHS ¥¢¥É¥ì¥¹¤ÎÂå¤ï¤ê¤Ë LBA ¥¢¥É¥ì¥¹¤ò¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë¤Ë³ÊǼ¤·¡¢
µ¯Æ°¤¹¤ë¤È¤¤Ë¤½¤ì¤ò»ÈÍѤ·¤Þ¤¹¡£
(¥É¥é¥¤¥Ö¤Î¥¸¥ª¥á¥È¥ê¤òÌ䤤¹ç¤ï¤»¤ë¤¿¤á¤Ë INT 13 ¤Î¥Õ¥¡¥ó¥¯¥·¥ç¥ó 8 ¤ò»È¤¤¤Þ¤¹)
<P>¥«¡¼¥Í¥ë¤Ï(<CODE>fdisk</CODE> ¤ä LILO ¤Ë¿Ö¤«¤ì¤¿)Åú¤ò¤É¤¦¤ä¤Ã¤ÆÄ´¤Ù¤ë¤Î¤Ç¤·¤ç¤¦¤«?
¤¨¤¨¤È¡¢¤ª¤½¤é¤¯¼êÆ°¤«¡¢¤Þ¤¿¤Ï ¥«¡¼¥Í¥ë¤Ë¤½¤Î¤è¤¦¤Ê¥ª¥×¥·¥ç¥ó¤òÅϤ¹¤è¤¦¤Ë
¥Ö¡¼¥È¥í¡¼¥À¤Ë¼ÁÌ䤵¤ì¤Æ¡¢
ºÇ½é¤ËÍøÍѼԤ¬ `<CODE>hda=</CODE><I>cyls</I><CODE>,</CODE><I>heads</I><CODE>,</CODE><I>secs</I>'
¤È¤¤¤¦¥«¡¼¥Í¥ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó(bootparam(7) ¤ò»²¾È¤Î¤³¤È)
¤Ë¤è¤Ã¤ÆÌÀ¼¨Åª¤Ë¤³¤ì¤ò»ØÄꤹ¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
Î㤨¤Ð¡¢<CODE>/etc/lilo.conf</CODE> Æâ¤Ë
`<CODE>append = "hda=</CODE><I>cyls</I><CODE>,</CODE><I>heads</I><CODE>,</CODE><I>secs</I><CODE>"</CODE>'
¤È¤¤¤¦¤è¤¦¤Ê¹Ô¤òÄɲ乤뤳¤È¤Ë¤è¤ê¡¢
¤½¤Î¤è¤¦¤Ê¥ª¥×¥·¥ç¥ó¤ò LILO ¤ËÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹(lilo.conf(5) ¤ò»²¾È¤Î¤³¤È)¡£
¤Ç¤Ê¤±¤ì¤Ð¡¢¥«¡¼¥Í¥ë¤Ï BIOS ¤«¥Ï¡¼¥É¥¦¥§¥¢¤«¤é¼èÆÀ¤·¤¿Ãͤò»È¤Ã¤Æ
²¿¤È¤«¤·¤Æ¿äÎ̤¹¤ë¤Ç¤·¤ç¤¦¡£
<P>
<P>(Linux 2.1.79 ¤«¤é¤Ï) <CODE>/proc</CODE> ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ
¥¸¥ª¥á¥È¥ê¤Ë¤Ä¤¤¤Æ¤Î¥«¡¼¥Í¥ë¤Î¸«²ò¤òÊѹ¹¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£
Î㤨¤Ð¤³¤ó¤Ê´¶¤¸¤Ç¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
# sfdisk -g /dev/hdc
/dev/hdc: 4441 cylinders, 255 heads, 63 sectors/track
# cd /proc/ide/ide1/hdc
# echo bios_cyl:17418 bios_head:128 bios_sect:32 > settings
# sfdisk -g /dev/hdc
/dev/hdc: 17418 cylinders, 128 heads, 32 sectors/track
#
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss9.1">9.1 LILO ¤Î¥Ñ¥é¥á¡¼¥¿¤ò·×»»¤¹¤ë</A>
</H2>
<P>¥«¡¼¥Í¥ë¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë
`<CODE>hda=</CODE><I>cyls</I><CODE>,</CODE><I>heads</I><CODE>,</CODE><I>secs</I>'
¤ÈÄɲ乤뤳¤È¤Ë¤è¤Ã¤Æ¿®Íê¤Ç¤¤ë¥¸¥ª¥á¥È¥ê¤ò¶¯Íפ¹¤ë¤Î¤Ï¡¢»þ¤Ë¤ÏÊØÍø¤Ç¤¹¡£
¤Û¤È¤ó¤ÉÂçÄñ¤Î¾ì¹ç¤Ï <I>secs</I>=63 ¤Ë¤·¤Þ¤¹¡£
¤½¤ì¤«¤é <I>heads</I> ¤ò»ØÄꤷ¤Þ¤¹¡£
(º£Æü¤Ç¤ÎÊØÍø¤ÊÃÍ¤Ï <I>heads</I>=16 ¤È <I>heads</I>=255 ¤Ç¤¹)
<I>cyls</I> ¤Ë»ØÄꤹ¤Ù¤Ãͤϲ¿¤Ç¤·¤ç¤¦?
¤³¤ÎÃÍ¤Ï C*H*S ¥»¥¯¥¿¤ÎÁíÍÆÎ̤«¤éÀµ³Î¤Ëµá¤á¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Î㤨¤Ð 71346240 ¥»¥¯¥¿ (36529274880 ¥Ð¥¤¥È)¤Î¥É¥é¥¤¥Ö¤Ç¤Ï¡¢
C ¤Ï 71346240/(255*63)=4441 ¤È¤·¤Æ·×»»¤Ç¤
(·×»»¤Ë¤Ï <CODE>bc</CODE> ¥×¥í¥°¥é¥à¤ò»È¤¨¤Þ¤¹)¡¢
<CODE>hdc=4441,255,63</CODE> ¤È¤¤¤¦¥Ö¡¼¥È¥Ñ¥é¥á¡¼¥¿¤òÆÀ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¤É¤Î¤è¤¦¤Ë¤·¤ÆÀµ³Î¤ÊÁíÍÆÎ̤òÃΤ뤳¤È¤¬¤Ç¤¤ë¤Î¤Ç¤·¤ç¤¦?
Î㤨¤Ð¡¢
<BLOCKQUOTE><CODE>
<PRE>
# hdparm -g /dev/hdc | grep sectors
geometry = 4441/255/63, sectors = 71346240, start = 0
# hdparm -i /dev/hdc | grep LBAsects
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=71346240
</PRE>
</CODE></BLOCKQUOTE>
¤È¤¤¤¦¤è¤¦¤Ë¥È¡¼¥¿¥ë¤Ç 71346240 ¥»¥¯¥¿¤Ç¤¢¤ë¤³¤È¤òÃΤë 2¤Ä¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£
¥«¡¼¥Í¥ë¤Î½ÐÎÏ
<BLOCKQUOTE><CODE>
<PRE>
# dmesg | grep hdc
...
hdc: Maxtor 93652U8, 34837MB w/2048kB Cache, CHS=70780/16/63
hdc: [PTBL] [4441/255/63] hdc1 hdc2 hdc3! hdc4 < hdc5 > ...
</PRE>
</CODE></BLOCKQUOTE>
¤Ï(¾¯¤Ê¤¯¤È¤â) 34837*2048=71346176 ¤«(¾¯¤Ê¤¯¤È¤â) 70780*16*63=71346240
¥»¥¯¥¿¤Ç¤¢¤ë¤³¤È¤ò¶µ¤¨¤Æ¤¯¤ì¤Þ¤¹¡£
¤³¤Î¾ì¹ç¤Ç¤Ï¡¢2ÈÖÌܤÎÃÍ¤Ï (ÌõÃí: ¾åµ hdparm ¤Ç¤ÎÃͤÈ)
¶öÁ³¤Ë¤â¤Þ¤Ã¤¿¤¯Æ±¤¸¤Ç¤¹¤¬¡¢
°ìÈÌŪ¤Ë¤³¤ì¤é¤ÎÃͤÏü¿ô¤¬ÀÚ¤ê¼Î¤Æ¤é¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤Ï <CODE>hdparm</CODE> ¤¬ÍøÍѤǤ¤Ê¤¤»þ¤Ë¥Ç¥£¥¹¥¯¥µ¥¤¥º¤ò³µ»»¤¹¤ë¤¤¤¤ÊýË¡¤Ç¤¹¡£
·è¤·¤Æ <I>cyls</I> ¤ËÂ礤¹¤®¤ëÃͤòÍ¿¤¨¤Ê¤¤¤è¤¦¤Ë!
SCSI ¥Ç¥£¥¹¥¯¤Î¾ì¹ç¤Ë¤Ï¡¢
Àµ³Î¤Ê¥»¥¯¥¿¿ô¤Ï¥«¡¼¥Í¥ë¤Î¥Ö¡¼¥È¥á¥Ã¥»¡¼¥¸¤Ëɽ¼¨¤µ¤ì¤Þ¤¹:
<BLOCKQUOTE><CODE>
<PRE>
SCSI device sda: hdwr sector= 512 bytes. Sectors= 17755792 [8669 MB] [8.7 GB]
</PRE>
</CODE></BLOCKQUOTE>
(MB ¤ä GB ¤Ï´Ý¤á¤é¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢ÀÚ¤ê¼Î¤Æ¤é¤ì¤Æ¤Ï¤¤¤Þ¤»¤ó¡£
¤Þ¤¿ 2¿Ê¤Ç·×»»¤·¤Æ¤¤¤Þ¤¹)
<P>
<HR>
<A HREF="Large-Disk-HOWTO-10.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO-8.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Large-Disk-HOWTO.html#toc9">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|