如何在硬碟建置Linux系统之指定安装目的分割区
点击次数:18 次 发布日期:2008-11-29 14:57:12 作者:源代码网
|
源代码网推荐 源代码网推荐 在这步骤里, 我们要一一的告诉系统安装程式, 哪一个分割区我 源代码网推荐 们想作为 / 档案系统, 哪一个分割区指定为 /usr 档案系统, 等等。 源代码网推荐 除此以外, 假如硬碟某一个分割区已经安装有 DOS 或 OS/2, 也可以 源代码网推荐 在此告诉系统安装程式, 这样子将来就可以直些在 Linux 档案系统 源代码网推荐 下取用 DOS与 OS/2 档案系统内的东西 (Linux支援 DOS FAT 及 OS2 源代码网推荐 HPFS 等档案系统)。 源代码网推荐 源代码网推荐 这一阶段的实际操作步骤也很简单。 我们首先指定所要安装 源代码网推荐 Linux 的分割区, 接着安装程式会询问确认该分割区的属性, 然後 源代码网推荐 们需决定要不要对该分割区规划出档案系统 (make filesystem)。 源代码网推荐 源代码网推荐 下面画面中, 我们可以看到, 系统安装程式会自动侦测出所有属 源代码网推荐 性为 Linux native (Partition ID 为 83) 的分割区。 这画面中, 源代码网推荐 我们被询问的第一个话题, 就是 / 档案系统将设於何处? 这里笔 源代码网推荐 者回答 /dev/hdb3, 这是第二颗硬碟的第三个分割区。 额外一提, 源代码网推荐 Linux 可以安装在第一或第二颗硬碟, 悉听尊便。 源代码网推荐 源代码网推荐 源代码网推荐 << 画面 4-16 >> 源代码网推荐 _____________________________________________________________________ 源代码网推荐 ? ? 源代码网推荐 ? Device Boot Begin Start End Blocks Id System ? 源代码网推荐 ? /dev/hdb1 1 1 100 50368+ 83 Linux native ? 源代码网推荐 ? /dev/hdb3 536 536 736 101304 83 Linux native ? 源代码网推荐 ? ? 源代码网推荐 ? Which device would you like to use for your root Linux partition? ? 源代码网推荐 ? __________________________________________________________________ ? 源代码网推荐 ??dev/hdb3 ?? 源代码网推荐 ? __________________________________________________________________?? 源代码网推荐 ? ? 源代码网推荐 ? ? 源代码网推荐 ? ? 源代码网推荐 ? ? 源代码网推荐 ? ? 源代码网推荐 ? ? 源代码网推荐 ? ? 源代码网推荐 ______________________________________________________________________? 源代码网推荐 ? < OK > ? 源代码网推荐 ______________________________________________________________________? 源代码网推荐 源代码网推荐 源代码网推荐 接下来读者会看到下面这画面, 这里询问档案系统型态, 我建议 源代码网推荐 读者选择 ext2, 因为绝大多数人都是选用这个。 我们用方向键把反 源代码网推荐 白移至 ext2 这行, 之後按 键。 源代码网推荐 源代码网推荐 源代码网推荐 << 画面 4-17 >> 源代码网推荐 __________________ CHOOSE LINUX FILESYSTEM __________________ 源代码网推荐 ? There are two main filesystem types that are used for ? 源代码网推荐 ? Linux. These are the xiafs filesystem, and the second ? 源代码网推荐 ? extended filesystem (ext2). Ext2 seems to be the current ? 源代码网推荐 ? standard. Xiafs hasn"t really been changed in quite some ? 源代码网推荐 ? time. Ext2 has one really nice feature that xiafs doesn"t ? 源代码网推荐 ? have: as an ext2 partition is unmounted, a clean bit is ? 源代码网推荐 ? written to it. When the machine is rebooted, checking is ? 源代码网推荐 ? skipped for any partitions that have the clean bit on them. ? 源代码网推荐 ? Xiafs may be a better choice for machines with low memory, ? 源代码网推荐 ? however, so it"s still supported. What filesystem do you ? 源代码网推荐 ? plan to use on your root partition (/dev/hdb3), ext2fs or ? 源代码网推荐 ? xiafs? ? 源代码网推荐 ? __________________________________________________________ ? 源代码网推荐 ?? ext2 Linux Second Extended Filesystem ?? 源代码网推荐 ?? xiafs Linux Xiafs ?? 源代码网推荐 ? __________________________________________________________ ? 源代码网推荐 ______________________________________________________________ ? 源代码网推荐 ? < OK > ? 源代码网推荐 ______________________________________________________________ ? 源代码网推荐 源代码网推荐 源代码网推荐 选择 ext2 档案系统後, 接着又询问我们是否要真的执行建造动 源代码网推荐 作 (相当於DOS的格式化动作), 假如这是我们第一次安装, 很可能我 源代码网推荐 要就要选择 Format 或 Check, 但是如果确定以前已经做过, 这里也 源代码网推荐 可以选择 No。 至於 Format 与 Check的不同, Check 除了做 Format 源代码网推荐 动作外, 还额外检测硬碟是否有坏轨, 假如您硬碟有瑕疵的话, 记得 源代码网推荐 选用 Check。 源代码网推荐 源代码网推荐 << 画面 4-18 >> 源代码网推荐 ________________________ FORMAT PARTITION ________________________ 源代码网推荐 ? If this partition has not been formatted, you should format it. ? 源代码网推荐 ? NOTE: This will erase all data on it. If you are trying to ? 源代码网推荐 ? upgrade an existing Linux partition, you should use setup from ? 源代码网推荐 ? your hard drive, not from the boot/root disk. (The versions of ? 源代码网推荐 ? setup supplied on the hard drive and the boot/root disk differ) ? 源代码网推荐 ? Would you like to format this partition? ? 源代码网推荐 ? ________________________________________________________________?? 源代码网推荐 ?? Format Quick format with no bad block checking ?? 源代码网推荐 ?? Check Slow format that checks for bad blocks ?? 源代码网推荐 ?? No No, do not format this partition ?? 源代码网推荐 ? ________________________________________________________________?? 源代码网推荐 ____________________________________________________________________? 源代码网推荐 ? < OK > ? 源代码网推荐 ____________________________________________________________________? 源代码网推荐 源代码网推荐 源代码网推荐 以下我选择 Format, 系统就立刻执行 mkfs 动作, 额外一提, 这 源代码网推荐 动作相同於 $ mke2fs /dev/hdb3 101304 指令, 读者朋友以後进行正 源代码网推荐 常系统管理时, 会用到这命令。 源代码网推荐 源代码网推荐 源代码网推荐 << 画面 4-19A >> 源代码网推荐 源代码网推荐 源代码网推荐 ______________________SELECT INODE DENSITY ______________________ 源代码网推荐 ? Ext2fs defaults to one inode per 4096 bytes of drive space. ? 源代码网推荐 ? If you"re going to have many small files on your drive, ? 源代码网推荐 ? then you may need more inodes (one is used for each file ? 源代码网推荐 ? entry). You can change the density to one inode per 2048 ? 源代码网推荐 ? bytes, or even per 1024 bytes. Select "2048" or "1024", or ? 源代码网推荐 ? just hit enter to accept the default of 4096 bytes. NOTE: ? 源代码网推荐 ? If you are going to run from CD using a small (<60MB) ? 源代码网推荐 ? partition, use 1024 to be safe. Each link uses an inode and ? 源代码网推荐 ? it"s easy to run out of space. ? 源代码网推荐 ?____________________________________________________________?? 源代码网推荐 ?? 4096 1 inode per 4096 bytes. (default) ?? 源代码网推荐 ?? 2048 1 inode per 2048 bytes. ?? 源代码网推荐 ?? 1024 1 inode per 1024 bytes. ?? 源代码网推荐 ?____________________________________________________________?? 源代码网推荐 _______________________________________________________________ 源代码网推荐 ? < OK > ? 源代码网推荐 _______________________________________________________________? 源代码网推荐 源代码网推荐 画面 4-19A 的选择, 笔者建议, 若是用来作为 News spool 区域 源代码网推荐 (也就是 /var/spool/news) 的档案系统, 不妨选择 1024 这一栏, 这 源代码网推荐 结果会造成一个 Block (照内定, 一个Block等於1024 bytes) 等於一 源代码网推荐 个 Inode 除此以外的正常状况, 选择第一选项 4096, 这结果一个Inode 源代码网推荐 会等於 4096 b 源代码网推荐 源代码网推荐 源代码网推荐 源代码网推荐 源代码网供稿. |
