📄 sec4.html
字号:
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?
</pre>
<pre>
以下我选择 Format, 系统就立刻执行 mkfs 动作, 额外一提, 这
动作相同於 $ mke2fs /dev/hdb3 101304 指令, 读者朋友以後进行正
常系统管理时, 会用到这命令。
</pre>
<pre><< 画面 4-19A >>
</pre>
<pre> ______________________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 > <Cancel> ?
_______________________________________________________________?
</pre>
<pre> 画面 4-19A 的选择, 笔者建议, 若是用来作为 News spool 区域
(也就是 /var/spool/news) 的档案系统, 不妨选择 1024 这一栏, 这
结果会造成一个 Block (照内定, 一个Block等於1024 bytes) 等於一
个 Inode 除此以外的正常状况, 选择第一选项 4096, 这结果一个Inode
会等於 4096 bytes。 以上若读者无法明白什麽是 Bloack/Inode, 请
忽略无妨, 这些观念并不重要。
</pre>
<pre><< 画面 4-19B >>
______________ FORMATTING ________________
? Formatting /dev/hdb3 ?
? Size in 1K blocks: 70560 ?
? Filesystem type: ext2 ?
__________________________________________
</pre>
<pre> 以上连续几个动作已经成功的指定某一个分割区作为系统的 /
(root) 档案系统, 假如您只有一个 Linux属性的分割区, 这时 / 档
案系统就是您唯一的档案系统。 不过, 假如您有一个以上, 您就可
以看到下面画面, 这画面告诉我们说, 本电脑硬碟下有不只一个 Linux
属性分割区, 而 /dev/hdb3 已经指定作为 / 档案系统, 这时是否要
把剩下的分割区也包含进来, 比方独立出 /usr 或 /usr/X11 档案系
统等等的?</pre>
<pre> 这里我回答是。 再重复一次, 把 / 档案系统规划小一些, 也就
是把 /usrⅱ /varⅱ /homeⅱ /tmp 独立出来对系统执行效率以及系
统安全都会有助益。 不过, 对 Linux 或 Unix经验仍薄弱的朋友, 我
强烈建议您就此停住, 先不要顾虑效率或安全, 先跑看看, 增加一些
经验, 之後, 再考虑重新设定一个最佳的系统。</pre>
<pre><< 画面 4-20 >>
____________________________________________________________________
? You seem to have more than one partition tagged as Linux native. ?
? You may use these to distribute your Linux system across more ?
? than one partition. Currently, you have /dev/hdb3 mounted as ?
? your / partition. You might want to mount large directories such ?
? as /usr or /usr/X11 or seperate partitions. You should not try ?
? to mount /etc, /sbin, or /bin on their own partitions since they ?
? contain utilities needed to bring the system up and mount ?
? partitions. Would you like to use some of the other Linux ?
? partitions to mount some of your directories? ?
? ?
____________________________________________________________________?
? < Yes > < No > ?
____________________________________________________________________?
</pre>
<pre>
</pre>
<pre> 以下重复进行刚刚的动作, 这里我回答 /dev/hdb1 分割区。 另
外一点要注意的是, 假如这时您临时决定不再增加任何分割区, 可以
键入 q , 之後按 <Enter> 键即可。</pre>
<pre><< 画面 4-21 >>
______________________________________________________________________
? ?
? These are your Linux partitions: ?
? /dev/hdb1 1 1 100 50368+ 83 Linux native ?
? /dev/hdb3 536 536 736 101304 83 Linux native ?
? ?
? These partitions are already in use: ?
? /dev/hdb1 on /mnt type ext2 (rw) ?
? ?
? Please enter the partition you would like to use, or ?
? type [q] to quit adding new partitions: ?
? __________________________________________________________________ ?
??/dev/hdb1 ??
? __________________________________________________________________ ??
? ?
? ?
? ?
? ?
? ?
______________________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________________ ?
</pre>
<pre>
以下同样指定 ext2。</pre>
<pre>
<< 画面 4-22 >>
__________________ 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 > <Cancel> ?
______________________________________________________________ ?
</pre>
<pre>
<< 画面 4-23 >></pre>
<pre> ______________ FORMATTING ________________
? Formatting /dev/hdb3 ?
? Size in 1K blocks: 70560 ?
? Filesystem type: ext2 ?
__________________________________________
</pre>
<pre> 假如您硬碟内规划有很多 Linux 分割区, 这时您重复以上动作就
可以。 以下接着安装程式侦测到我第一个硬碟内有 DOS 分割区 (C:
碟), 就问我们说, 是否要把这DOS分割区包含进来, 成为系统的档案
系统之一, 於是我们可以在 Linux系统下直接存取原本 C: 磁碟内的
东西。 这里按 <Enter> 回答是, 若不想要, 按 <Tab> (或方向键),
把反白移到 No, 之後按 <Enter>。
</pre>
<pre><< 画面 4-24 >>
____________________ DOS AND OS/2 PARTITION SETUP ____________________ ?
? ?
? The following DOS FAT or OS/2 HPFS partitions were found: ?
? ?
? /dev/hda1 * 1 1 1000 127491+ 6 DOS 16-bit >=32M ?
? ?
? Would you like to make some of these partitions visible from Linux? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
________________________________________________________________________?
? < Yes > < No > ?
________________________________________________________________________?
</pre>
<pre>
由於我回答 Yes, 以下就要进一步回答 /dev/hda1。</pre>
<pre>
<< 画面 4-25 >>
__________________________ CHOOSE PARTITION ____________________________?
? These DOS or OS/2 partitions are available to mount: ?
? /dev/hda1 * 1 1 1000 127491+ 6 DOS 16-bit >=32M ?
? Please enter the partition you want to access from Linux, ?
? or type [q] to quit adding new partitions: ?
? ____________________________________________________________________ ?
??dev/hda1 ??
? ____________________________________________________________________ ??
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
________________________________________________________________________ ?
? < OK > <Cancel> ?
________________________________________________________________________ ?
</pre>
<pre>
以下画面则是要选择 Mount Point, 这个就是说把 C: 磁碟挂在
系统的哪里, 注意, Linux/Unix 没有 C: 磁碟观念 (C: 是 DOS的观
念与用法), 我们可以设立比方说 /msdos 目录, 之後把 C: 所在的分
割区, 挂在这 /msdos 目录下, 这样就可以很方便存取 该 C: 内的
DOS档案。 以下, 我就指定 /msdos 为这个挂点 (Mount Point)。
</pre>
<pre><< 画面 4-25 >>
____________________ SELECT MOUNT POINT ______________________
? Now this new partition must be mounted somewhere in your ?
? directory tree. Please enter the directory under which ?
? you would like to put it. for instance, you might want to ?
? reply /dosc, /dosd, or something like that. NOTE: This ?
? partition won't actually be mounted until you reboot. ?
? ?
? Where would you like to mount /dev/hda1? ?
? __________________________________________________________ ??
??msdos ??
? __________________________________________________________ ??
______________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________ ?
</pre>
<pre> 以下画面按 <Enter>。
</pre>
<pre><< 画面 4-26 >>
__________________ CURRENT DOS/HPFS PARTITION STATUS __________________ ?
? ?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -