📄 28895.html
字号:
<br>□ 给Unix高手速读 <br><br>看完这一章後有消化系统失常或头痛徵兆者, 可能您不是UNIX高手, 要不然您对PC的认识还没到家, 笔者自己此刻正上吐下泻当中, 回头是 岸 :-) <br><br>Unix高手在确定硬碟Partition没有被DOS占满後, 就可以开始动手。 <br><br>〔第一步〕当然是先造出一个Linux 装机用的启动磁片, 这动作是在 DOS下执行的, 您手上有 Slackware Linux bootdisk/rootdisk两个档案 ,以及RAWRITE.EXE程式, 接著您执行RAWRITE.EXE把这两个档案写到两张 刚FORMAT过的A磁片上, 您的所有步骤都是从这两张装机磁片开始。 <br><br>〔第二步〕把这张装机磁片摆入A槽, 启动机器。没有错误的话, 您 现在已经进入Linux系统了, 您第一次的Login当然是″root″, 您现在所 处的环境是Bourne shell。 <br><br>〔第三步〕执行fdisk造出Linux自己的空间来, 至於是否把全部硬碟 都给Linux, 这由您自己决定, 图1.1让您参考。 <br><br>┌—图1.1 ——————————————————————————————┐ │ /# fdisk ← 在Shell提示符号後键入fdisk指令 │ │ │ │ Command (m for help): p ← 我们先来浏览目前的Partition配置情况 │ │ │ │ Disk /dev/hda: 15 heads, 17 sectors, 1001 cylinders │ │ Units = cylinders of 255 * 512 bytes │ │ │ │ /dev/hda1 1 1 161 20519 4 DOS 16-bit <32M │ │ /dev/hda4 162 162 483 41055 a5 Unknown │ │ │ │ Command (m for help): m ← 键入m求助 │ │ Command action │ │ a toggle a bootable flag ← 设定(或取消) Partition为Active │ │ d delete a Partition ← 删除Partition │ │ l list known Partition types │ │ m print this menu │ │ n add a new partition ← 增建一个新的Partition │ │ p print the partition table │ │ q quit without saving changes ← 中断执行fdisk │ │ t change a partition‘s system id │ │ u change display/entry units │ │ v verify the partition table ← 确认设定 │ │ w write table to disk and exit ← 设定完成後, 储存起来 │ │ x extra functionality (experts only) │ │ │ │ │ │ │ Command (m for help): n ← 回答n, ″n″是增建新Partition │ │ Command action │ │ e extended │ │ p primary partition (1-4) │ │ p ← 回答p, 指定primary partition │ │ │ │ Partition number (1-4): 2 ← 回答2 (因为我硬碟内编号1以及 │ │ 编号4的partition已经被其他系 │ │ 系统所用。这里若回答″3″也 │ │ 可以, 不过以下都要跟著改变。 │ │ First cylinder (484-1001): 484 ← 这里″484-1001″是fdisk自动 │ │ 侦测出来的, 假如您完全依照 │ │ 这两个数据来回答, 则表示您 │ │ 要把目前DOS剩下的空间全都给 │ │ Linux, 这例中我们就照著回答。 │ │ │ │ Last cylinder or +size or +sizeM or +sizeK (484-1001): 1001 │ │ │ │ Command (m for help): t ← 更改partition id │ │ Partition number (1-4): 2 ← 同样是编号2的Partition │ │ Hex code (type L to list codes): 81 ← 81 代表Linux/Minix │ │ │ │ Command (m for help): v ← 确认以上的设定 │ │ Command (m for help): p ← 浏览刚刚设定後的partition 表 │ │ │ │ Disk /dev/hda: 15 heads, 17 sectors, 1001 cylinders │ │ Units = cylinders of 255 * 512 bytes │ │ │ │ /dev/hda1 1 1 161 20519 4 DOS 16-bit <32M │ │ /dev/hda2 * 484 484 1001 66045 81 Linux/MINIX │ │ /dev/hda4 162 162 483 41055 a5 Unknown │ │ │ │ 果然, 硬碟内位於/dev/hda2的Partiion已经是Linux专用的Partition │ │ │ │ Command (m for help): w │ │ reboot now before doing anything else │ │ /# │ │ │ └——————————————————————————————————┘ <br><br>〔第三步〕建置档案系统 <br><br>┌—图1.2 ———————————————————————————┐ │ │ │ /# mke2fs -c /dev/hda2 66045 这操作, 意义上等同於DOS的 │ │ ″format c:″指令 │ └———————————————————————————————┘ <br><br>〔第四步〕开始执行Linux系统的装置工作, 这步骤会把您软碟上的系 统软体及其他各种使用者软体一一的装置在Linux档案系统下恰当的地方。 这步骤所给″/dev/hda2″即是您之前执行fdisk时所指定的Partition。键 入″doinstall″ 指令後, 您顺著画面说明一一回答操作即可。 <br><br>┌—图1.3 ———————————————————————————┐ │/# doinstall /dev/hda2 │ └———————————————————————————————┘ <br><br></P> <P ALIGN=center> <a href="28895_1.html" >[下一页]</a><BR> </P> <SPAN CLASS="article"> </SPAN> <TABLE WIDTH="99%" BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR ALIGN="RIGHT"> <TD><A HREF="http://pcmw.pconline.com.cn/bbs/index.html">点击这里发表意见</A></TD> </TR> <TR BGCOLOR="cccccc"> <TD HEIGHT="2"></TD> </TR> </TABLE> <BR> <SPAN CLASS="article"><B>相关文章:</B><BR> <BR> <BLOCKQUOTE></BLOCKQUOTE> </SPAN></TD> </TR> <TR ALIGN="CENTER"> <TD CLASS="article"> <SCRIPT SRC=/pcedu/js/ad_but_410art.js></SCRIPT> <BR> <BR> <SCRIPT LANGUAGE="JavaScript" SRC="/js/hotfiles.js"></SCRIPT> </TD> </TR> </TABLE> </div> <p> </p> </td> <td width="4" valign="top"><img src="http://www.pconline.com.cn/images/000000.gif" width="4" height="1"></td> <td valign="top" width="171" bgcolor="DEE7F7"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#000000" height="1"></td> </tr> <tr bgcolor="7B8694" align="center"> <td height="20"><font color="#FFFFFF">内容搜索 </font></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="FFF7EF"> <form action=http://search.pconline.com.cn/cgi-bin/search method=get> <tr align="center"> <td height="40"> <input name=word size=13> <input type=submit value=" GO " class="pt9"> </td> </tr> <tr align="center" valign="top"> <td height="34"> <select name=lm class="pt9"> <option value="0" SELECTED>任何时间</option> <option value="1">三个月内</option> <option value="3">一年</option> </select> <a href="http://www.pconline.com.cn/tpy/search.html"><font color="#000000">高级搜索</font></a> <input type="hidden" name="w" value="0"> <input type="hidden" name="si" value="pcedu"> <input type=hidden name="tn" value="bear"> <input type="hidden" name="cl" value="2"> </td> </tr> </form> </table> <DIV ALIGN="CENTER"> <SCRIPT SRC="/pcedu/js/ad_158_art.js"></SCRIPT> <BR> </DIV> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"> <TR BGCOLOR="7B8694" ALIGN="center"> <TD HEIGHT="20"><FONT COLOR="#FFFFFF">本栏今日焦点 </FONT></TD> </TR> </TABLE> <DIV ALIGN=right> <TABLE WIDTH="170" BORDER="0" CELLSPACING="0" CELLPADDING="5"> <TR CLASS="sfont"> <TD> <SCRIPT SRC="/pcedu/js/pcedu_top12.js"></SCRIPT> </TD> </TR> </TABLE> </DIV> <div align="center"> <div align="center"> </div> <div align="center"> </div> </div> </td> <td bgcolor="FFA200" width="6" class="bodyright"><img src="/images/blank.gif" width="1" height="1"></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="760" bgcolor="FFA200"> <tr> <td width="7" height="7" class="leftbottom"><img src="/images/blank.gif" width="7" height="9"></td> <td class="topbottom"><img src="/images/blank.gif"></td> <td width="6" class="rightbottom"><img src="/images/blank.gif" width="6"></td> </tr> </table> </div> <br> <SCRIPTSRC=/js/pc_but.js></SCRIPT> <script language="JavaScript" src="/pcedu/soft/js/pcedu_count.js"> </script></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -