⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 合理规划您的硬盘分区 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 2 页
字号:
      <P>SCSI 和SATA 硬盘在Linux通常也是表示为 sd* ,比如 sda 、sdb ... ... 以fdisk -l 为准</P>
      <P>移动存储设备在linux表示为 sd* ,比如 sda 、sdb ... ... 以fdisk -l 为准</P>
      <P><FONT size=3><B><BR>3、合理的规划分区;<BR></B></FONT></P>
      <P>关于一个磁盘的分区,一个磁盘应该有四个主分区,其中扩展也算一个主分区;存在以下情况:<BR><FONT 
      size=2><B><BR>1)分区结构之一:四个主分区,没有扩展分区;<BR></B></FONT></P>
      <P>
      <DIV class=codeblock><CODE>[主|分区1] [主分|区2] [主|分区3] [主|分区4]</CODE></DIV>
      <P></P>
      <P>这种情况,如果您想在一个磁盘上划分五个以上分区,这样是行不通的;</P>
      <P><B><BR>三个主分区 一个扩展分区;<BR></B><BR><BR></P><PRE>[ 主 |  分区1 ] [ 主 | 分区2 ] [ 主 | 分区3 ] [扩展分区]
                                                                          |
            [逻辑|分区5] [逻辑|分区6] [逻辑|分区7] [逻辑|分区8] ... ... 
</PRE>
      <P>这种情况行得通,而且分区的自由度比较大;分区也不受约束,能分超过5个分区;这只是举一个例子;</P>
      <P><FONT size=3><B><BR>2)最合理的的分区方式;<BR></B></FONT></P>
      <P><B>最合理的分区结构</B>:主分区在前,扩展分区在后,然后在扩展分区中划分逻辑分区;主分区的个数+扩展分区个数要控制在四个之内;比如下面的分区是比较好的;<BR><BR></P><PRE>[主|分区1] [主|分区2] [主|分区3] [扩展分区]
                                                            |
             [逻辑|分区5] [逻辑|分区6] [逻辑|分区7] [逻辑|分区8] ... ... 
</PRE><BR><PRE>[主|分区1] [主|分区2] [扩展分区]
                                          |        
   [逻辑|分区5] [逻辑|分区6] [逻辑|分区7] [逻辑|分区8] ... ... 
</PRE><BR><PRE>[主|分区1] [扩展分区]
                        |        
[逻辑|分区5] [逻辑|分区6] [逻辑|分区7] [逻辑|分区8] ... ...
</PRE>
      <P><BR><BR><FONT color=red><B>最不合理的分区结构:</B></FONT> 
      主分区包围扩展分区;比如下面的;<BR><BR></P><PRE>[主|分区1] [主|分区2] [扩展分区] [主|分区4] [空白未分区空间]
                                          |
    [逻辑|分区5] [逻辑|分区6] [逻辑|分区7] [逻辑|分区8] ... ... 
</PRE>
      <P>这样<B> [主|分区2]</B> 和 <B>[主|分区4]</B> 之间的<B> [扩展分区] 
      </B>是有自由度,但<B>[主|分区4]</B>后的<B>[空白未分区空间]</B>怎么办?除非把主分区4完全利用扩展分区后的空间,否则您想在主分区4后再划一个分区是不可能的,划分逻辑分区更不可能; 
      虽然类似此种办法也符合一个磁盘四个主分区的标准,但这样主分区包围扩展分区的分区方法实在不可取;</P>
      <P><FONT color=blue>我们根据这个标题,查看一下我们的例子,是不是符合这个标准呢?</FONT><BR><BR><BR>
      <DIV class=codeblock><CODE>&nbsp;&nbsp;&nbsp;Device Boot Start End Blocks 
      Id System<BR>/dev/hda1 * 1 765 6144831 7 HPFS/NTFS<BR>/dev/hda2 766 2805 
      16386300 c W95 FAT32 (LBA)<BR>/dev/hda3 2806 9729 55617030 5 
      Extended<BR>/dev/hda5 2806 3825 8193118+ 83 Linux<BR>/dev/hda6 3826 5100 
      10241406 83 Linux<BR>/dev/hda7 5101 5198 787153+ 82 Linux swap / 
      Solaris<BR>/dev/hda8 5199 6657 11719386 83 Linux<BR>/dev/hda9 6658 7751 
      8787523+ 83 Linux<BR>/dev/hda10 7752 9729 15888253+ 83 
      Linux</CODE></DIV><BR><BR><BR><FONT size=4><B><BR>后记:<BR></B></FONT>
      <P></P>
      <P>把分区基础写出来,主要是想让新手弟兄知道什么是合理的分区结构,如果把硬盘分区规划好了,也为以学习省却了不少麻烦;在此文后,我计划写具体的分区工具介绍;这也算一个基础知识的积累;虽然老手都会,但新手可能还是需要的;</P>
      <P><FONT size=4><B><BR>致谢:<BR></B></FONT></P>
      <P>对于本文<A href="http://www.linuxsir.org/bbs/member.php?u=57037" 
      target=_blank>zhy2111314</A> 兄弟也有贡献;在此致谢;</P>
      <P><FONT size=4><B><BR>附录:<BR></B></FONT></P>
      <P><A 
      href="http://www.linuxsir.org/main/?q=node/80">《系统引导过程及硬盘分区结构论述》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/41">《Linux 
      查看磁盘分区、文件系统、使用情况的介绍》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/81">《实例解说 fdisk 使用方法》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/127">《在Linux系统中存储设备的两种表示方法》</A></P></DIV>
      <DIV class=links>By 北南南北 at 2005/09/11 - 08:31 | <A 
      href="http://www.linuxsir.org/main/?q=taxonomy/term/1">Linux</A> | <A 
      href="http://www.linuxsir.org/main/?q=taxonomy/term/25">基础知识</A> | <A 
      href="http://www.linuxsir.org/main/?q=taxonomy/term/22">硬件解决</A> | <A 
      title=共享你有关本文的思想和意见。 
      href="http://www.linuxsir.org/main/?q=comment/reply/80#comment">参与评论</A> | 
      10040 阅读</DIV></DIV><A id=comment></A>
      <FORM action=?q=comment method=post>
      <DIV><INPUT type=hidden value=80 name=edit[nid]> <A id=comment-620></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/80#comment-620">终于知道了...</A></H3>
      <DIV class=content>
      <P>Thank you!</P></DIV>
      <DIV class=links>By Anonymous at 周日, 2006/08/06 - 00:47 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/80/620">回复</A></DIV></DIV><A 
      id=comment-425></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/80#comment-425">有个小错误吧</A></H3>
      <DIV class=content>
      <P>“每个扇区大小是 512byte,也就是0.5M”这一句应该是 0.5K 吧,如果要换算成 MB 的话就应该是 
      0.0005M。</P></DIV>
      <DIV class=links>By Anonymous at 周二, 2006/05/02 - 16:52 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/80/425">回复</A></DIV></DIV>
      <DIV style="MARGIN-LEFT: 25px"><A id=comment-426></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/80#comment-426">兄弟说的对,一会就更正</A></H3>
      <DIV class=content>
      <P>兄弟仔细。</P>
      <P>谢谢 。。</P>
      <P>北南 呈上</P></DIV>
      <DIV class=links>By Anonymous at 周二, 2006/05/02 - 18:26 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/80/426">回复</A></DIV></DIV></DIV>
      <DIV style="MARGIN-LEFT: 50px"><A id=comment-464></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/80#comment-464">经典</A></H3>
      <DIV class=content>
      <P>说得真的是好啊<BR>我一直都对这个有些疑问,现在终于弄明白了<BR>谢谢了</P></DIV>
      <DIV class=links>By Anonymous at 周六, 2006/05/27 - 02:37 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/80/464">回复</A></DIV></DIV></DIV></DIV></FORM><!-- end content -->
      <DIV id=footer>
      <CENTER><A href="http://www.linuxsir.org/"><IMG 
      src="合理规划您的硬盘分区  LinuxSir_Org.files/logo.jpg"></A> <BR><A 
      href="http://www.miibeian.gov.cn/"><FONT color=blue 
      size=3><B>闽ICP备06025536号</B></FONT></A><BR>
      <SCRIPT language=JavaScript 
      src="合理规划您的硬盘分区  LinuxSir_Org.files/cyberpolice.htm"></SCRIPT>
      <BR><A href="http://www.linuxsir.org/main/?q=node/78"><FONT color=blue 
      size=3><B>© 2002-2006 LinuxSir.Org</B></FONT></A><BR></CENTER></DIV></TD>
    <TD id=sidebar-right>
      <DIV class="block block-block" id=block-block-2>
      <H2 class=title>基础知识</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/23">安装配置</A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/">基础入门</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/22/">硬件解决</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/21">软件管理</A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/">重要资源</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-4>
      <H2 class=title>软件应用</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/30">网络工具</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/32">图形图像</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/31">音乐视频</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/49">字体中文</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/33">软件其它</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-5>
      <H2 class=title>网络服务器</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/27">文件服务器<A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/28">Web服务器</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/29">邮件服务器</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/37">数据库应用</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/50">服务器其它</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-comment" id=block-comment-0>
      <H2 class=title>最新评论</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/226#comment-629">投影机</A><BR>15 
        hours 15 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/10#comment-628">压缩:</A><BR>15 
        hours 36 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/178#comment-627">不行</A><BR>20 
        hours 5 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/158#comment-626"></A><BR>1 
        day 11 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/42#comment-625">太感谢了</A><BR>1 
        day 15 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/222#comment-624">错了</A><BR>2 
        days 6 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/222#comment-623">q</A><BR>2 
        days 6 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/222#comment-622">有些道理</A><BR>2 
        days 6 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/219#comment-621">"内置的摄像头也能用这个吗?"</A><BR>2 
        days 20 hours 前
        <LI><A class=active 
        href="http://www.linuxsir.org/main/?q=node/80#comment-620">终于知道了...</A><BR>3 
        days 5 hours 
前</LI></UL></DIV></DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -