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

📄 0610hardware.htm

📁 鸟哥的linux私房菜
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	>
<html lang="zh-TW">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
	<meta name="Author" content="VBird, 鸟哥" >
	<meta name="Description" content="在 Linux 系统上面侦测、维护、变更硬体的方法" >
	<title>鸟哥的 Linux 私房菜 -- Linux 硬体侦测与维护</title>
	<style type="text/css">
	 	body {
			background-color: #D3D3D3;
			color: #000000;
			background-attachment:fixed ;
		}
				body,th,td,input,select,textarea,select,checkbox {
			font-family: '新细明体', 'Times New Roman', serif;
			font-size: 11pt ;
		}
		a:link		{text-decoration: none; color: blue}
		a:visited	{text-decoration: none; color: blue}
		a:active	{text-decoration: none; color: blue}
		a:hover		{text-decoration: underline; color: #ff0000}
				table.head1	{width:100%; background-color: #FFCCCC; 
				 border-style:groove;border-width:5px;border-color: #FFCCCC; margin:0;
				 padding: 5px 5px}
		   		   td.head1	{font: 10pt "新细明体", serif; color: #000099; }
		   		   td.info1	{font: 11pt "新细明体", serif; color: #000066; text-align:center; width:14%}
		   td.info2	{font: 11pt "新细明体", serif; color: #000066; text-align:center; width:12%}
		    *.info21	{font: 11pt "新细明体", serif; color: #000066; }
		    *.info22	{font: 11pt "新细明体", serif; color: blue  ; }
		    *.info23	{font: 11pt "新细明体", serif; color: green ; }
		   td.info3	{font: 11pt "新细明体", serif; color: #000066; text-align:justify}
				*.text_head0	{font-size:18pt; font-family:'标楷体','Times New Roman','Times', serif; }
		*.text_head_en	{font-size:18pt; font-family:'Times New Roman','Times', serif; }
				*.text_h1	{font: 15pt "新细明体", serif; color: #0000BB; font-weight: bold }
				*.text_h2	{font: 13pt "新细明体", serif; color: #0000BB; font-weight: bold }
				*.text_import1	{font:  11pt "新细明体", serif; color: #000088; font-weight: bold  }
		*.text_import2	{font:  11pt "新细明体", serif; color: #000088; font-weight: normal}
		*.text_vbird	{font:  11pt "新细明体", serif; color: #000088; font-weight: normal; 
				 font-style: italic;}
		*.text_history	{font:  10pt "新细明体", serif; color: #000066; }
		*.text_date	{font:  10pt "新细明体", serif; color: #3333FF; }
				*.block1	{padding: 10px 20px 10px 25px; text-align:left }
				*.block2	{padding: 10px 0px  10px 25px; text-align:left }
	    table.term2		{width: 350px; background-color: #000000;
				 border-style:groove;border-width:3px;border-color: #FFCCCC; margin:10px 0px;}
	    	    table.term		{width: 580px; background-color: #000000;
				 border-style:groove;border-width:3px;border-color: #FFCCCC; margin:10px 0px;}
	       	       td.term		{font:  10pt "细明体", Fixedsys, serif; color: #FFFFFF; }
		*.term_hd	{font:  10pt "细明体", Fixedsys, serif; color: #BBBBBB; }
		*.term_note	{font:  10pt "细明体", Fixedsys, serif; color: #777777; font-weight: normal }
		*.term_note_b	{font:  10pt "细明体", Fixedsys, serif; color: #FF77FF; font-weight: bolder }
		*.term_command	{font:  10pt "细明体", Fixedsys, serif; color: yellow ; font-weight: bolder }
		*.term_write	{font:  10pt "细明体", Fixedsys, serif; color: yellow ; font-weight: normal }
		*.term_say	{font:  10pt "细明体", Fixedsys, serif; color: #FF6666; font-weight: normal }
	</style>
	
</head>
<body style="margin:0; padding:0">
<center>


<!-- 这里是关于页首按钮处的按钮程式 -->
<div style="text-align:center">
<span style="font-weight:bolder; color:#3333FF"><span class="text_head0">鸟哥的<span class="text_head_en"> 
	Linux </span>私房菜</span></span><br />
<span style="color:#000080">为取得较佳浏览结果,请爱用 <a href="http://moztw.org" target="_blank">firefox</a>
	浏览本网页</span><br />
<a href="http://linux.vbird.org/" target="_blank"
	onmouseover="document.head_icon1.src='../images/icon_VBird_on.jpg'"
	onfocus="document.head_icon1.src='../images/icon_VBird_on.jpg'"
	onmouseout="document.head_icon1.src='../images/icon_VBird_off.jpg'">
	<img alt="前往鸟哥的 Linux 私房菜馆首页" title="前往鸟哥的 Linux 私房菜馆首页" name="head_icon1"
		src="../images/icon_VBird_off.jpg" border="0" /></a>
<a target="_blank" href="http://linux.vbird.org/linux_basic"
	onmouseover="document.head_icon2.src='../images/icon_basic_on.jpg'"
	onfocus="document.head_icon2.src='../images/icon_basic_on.jpg'"
	onmouseout="document.head_icon2.src='../images/icon_basic_off.jpg'">
	<img src="../images/icon_basic_off.jpg" border="0" 
		alt="前往 Linux 基础文件,新手请从头学起" 
		title="前往 Linux 基础文件,新手请从头学起" name="head_icon2" /></a>
<a target="_blank" href="http://linux.vbird.org/linux_server"
	onmouseover="document.head_icon3.src='../images/icon_server_on.jpg'"
	onfocus="document.head_icon3.src='../images/icon_server_on.jpg'"
	onmouseout="document.head_icon3.src='../images/icon_server_off.jpg'">
	<img src="../images/icon_server_off.jpg" border="0"
		alt="前往 Linux 架站文件,网路基础那章节请务必参考!" 
		title="前往 Linux 架站文件,网路基础那章节请务必参考!" name="head_icon3" /></a>
<a target="_blank" href="http://linux.vbird.org/linux_security"
	onmouseover="document.head_icon4.src='../images/icon_security_on.jpg'"
	onfocus="document.head_icon4.src='../images/icon_security_on.jpg'"
	onmouseout="document.head_icon4.src='../images/icon_security_off.jpg'">
	<img src="../images/icon_security_off.jpg" border="0"
		alt="前往『网路安全』相关文件网页" title="前往『网路安全』相关文件网页" name="head_icon4" /></a>
<a href="http://phorum.vbird.org" target="_blank"
	onmouseover="document.head_icon5.src='../images/icon_forum_on.jpg'"
	onfocus="document.head_icon5.src='../images/icon_forum_on.jpg'"
	onmouseout="document.head_icon5.src='../images/icon_forum_off.jpg'">
	<img src="../images/icon_forum_off.jpg" border="0"
		alt="前往 Linux 新手讨论区,发问前务必查阅发文规则" 
		title="前往 Linux 新手讨论区,发问前务必查阅发文规则" name="head_icon5" /></a>
<a target="_blank" href="http://linux.vbird.org/adsl"
	onmouseover="document.head_icon6.src='../images/icon_adsl_on.jpg'"
	onfocus="document.head_icon6.src='../images/icon_adsl_on.jpg'"
	onmouseout="document.head_icon6.src='../images/icon_adsl_off.jpg'">
	<img src="../images/icon_adsl_off.jpg" border="0"
		alt="前往『ADSL连线分享』相关文件网页" title="前往『ADSL连线分享』相关文件网页" name="head_icon6" /></a>
<a href="http://www.study-area.org" target="_blank"
	onmouseover="document.head_icon7.src='../images/icon_study-area.jpg'"
	onfocus="document.head_icon7.src='../images/icon_study-area.jpg'"
	onmouseout="document.head_icon7.src='../images/icon_study-area.jpg'">
	<img src="../images/icon_study-area.jpg" border="0"
		alt="前往 Study Area 网站" title="前往 Study Area 网站" name="head_icon7" /></a>
<br />
</div>


<table summary="本文内容的排版" style="width:750px; 
	background-image:url('../images/VBirdLinux.jpg');
	background-attachment:fixed;" border="0" cellspacing="0" cellpadding="0">
<tr><td style="width:16px; height:16px; background-image:url('../images/border-top-left.jpg'); 
	font-size:6px">  </td>
    <td style="width:718px; height:16px; font-size:6px;
	background-image:url('../images/border-top-center.jpg')">  </td>
    <td style="width:16px; height:16px; background-image:url('../images/border-top-right.jpg');
	font-size:6px">  </td></tr>
<tr><td style="width:16px; font-size:6px;
	background-image:url('../images/border-middle-left.jpg')">  </td>
    <td width="718">

<!-- 本文的档头部分 -->
<div style="text-align:center">
    <a href="0610hardware.php">
    <span class="text_head0"><span class="text_head_en">Linux </span>硬体侦测与维护</span></a><br />
</div>
    <div style="text-align:left">
        <a href="0610hardware.php?thisscreen=800x600"><!--切换解析度为 800x600--></a>
    </div>
    <div style="text-align:right">
        <span class="text_history">最近更新日期∶2005/11/25</span>
    </div>


<!-- 本文的档头部分 -->
<table class="head1" summary="排版∶文章档头的说明"><tr><td class="head1">
	谈完了 Linux 的系统操作,再来得要了解一下若您的主机硬体更换,或者是想要进行主机的温度侦测时,
	应该要怎么作?在这个章节当中,我们会谈到如何以 Linux kernel 里面的 lm_sensor 功能,
	以及利用 LVM 来制作一个大型的硬碟,让您的 filesystem 容量更具有弹性喔!
	当然啦,在 Linux 系统上面接上您的印表机,也是一个很好玩的工作喔!那就来读一读吧!
</td></tr></table><br>

<!-- 本文的连结区部分 -->
<div class=block1>
<span class="text_h1">
1. <a href="#hw_pre">准备好你的硬体∶</a><br>
	<span class=text_h2>
	    1.1 <a href="#hw_pre_find">硬体资讯的收集</a>∶ <a href="#lspci">lspci</a>, 
		<a href="#iostat">iostat...</a><br>
	    1.2 <a href="#hw_pre_usb">驱动 USB 装置∶</a><br>
	    1.3 <a href="#hw_pre_lm">使用 lm_sensors 取得温度、电压等资讯∶</a><br>
	</span>
2. <a href="#fc_setup">FC4 的系统操作∶ setup 功能</a><br>
3. <a href="#cups">利用 CUPS 架构您的印表机∶</a><br>
4. <a href="#lvm">特殊的 filesystem∶ LVM</a><br>
	<span class=text_h2>
	    4.1 <a href="#lvm_whatis">什么是 LVM∶ PV, PE, VG, LV</a><br>
	    4.2 <a href="#lvm_flow">制作一个可使用的 LVM 磁碟流程</a><br>
	    4.3 <a href="#lvm_large">让原有的 LVM 磁碟加大的方法∶ resize2fs</a><br>
	    4.4 <a href="#lvm_note">注意事项∶</a><br>
	</span>
5. <a href="#raid">额外的储存设备 iSCSI 协定的磁碟阵列∶</a><br>
	<span class=text_h2>
	    5.1 <a href="#raid_raid">什么是磁碟阵列</a><br>
	    5.2 <a href="#raid_iscsi">iSCSI 磁碟阵列的架设与使用</a><br>
	</span>
6. <a href="#reference">参考资料</a><br>
<span class=text_h2>
7. <a href="http://phorum.vbird.org/viewtopic.php?t=23898"
    target="_blank">针对本文的建议∶http://phorum.vbird.org/viewtopic.php?t=23898</a>
</span>
</span>
</div>

<!-- 本文的正式部分 -->
<hr><a NAME="hw_pre"></a><img src="images/penguin-m.gif" alt="大标题的图示" height="34" width="25" align="middle" /><span class="text_h1">准备好你的硬体∶</span><br>
<div class=block1>
	我们这个章节的主要目的在于更深入的了解我们 Linux 主机的硬体,并进一步的将这些硬体资讯汇整,
	最好是还能够进行一些侦测与控管啦!这样才可以在最短的时间内了解我们 Linux 主机是否可能发生问题啊!
	这包括主机的电压值是否正确?主机与 CPU 温度是否过高等等。而为了这些目的,当然啦,
	我们就得要先准备好自己的 Linux 主机的硬体啊,至少得要先了解你的 Linux 主机是啥硬体配备啊,
	否则,假如你的硬体本身就是不支援温度侦测,那花再多时间在温度数值的取得,嘿嘿!是没有意义的啦!
	来给他进行下去棉! ^_^<br><br>

	<hr><a name=hw_pre_find></a><img src="../images/penguin-s.gif" alt="小标题的图示" height="23" width="16" align="middle" /><span class=text_h2>硬体资讯的收集∶ lspci, iostat...</span><br>
	<div class=block2>
		还记得我们在 <a href="0510osloader.php">开机与关机流程分析</a> 当中提到的核心功能吧?
		我们的 Linux kernel 会在开机时,以核心内建的功能去侦测主机的种种硬体,
		并尝试载入适当的驱动程式 (模组, modules) 来让硬体正确的启动与运作。
		而核心所侦测到的各项硬体装置,后来就会被记录在 /proc 当中了。
		包括 /proc/cpuinfo, /proc/partitions, /proc/interrupts 等等。
		更多的 /proc 内容介绍,先回到 <a href="0440processcontrol.php#proc">程序与资源管理</a> 
		那一篇去瞧一瞧先!<br>

		<div style="padding: 10 0 10 0 ;" align="right"><table width="90%"><tr><td><b>Tips:</b><br /><span style="font-style: italic; color : darkgreen">			当然还是得要再提到,核心所侦测到的硬体可能并非完全正确喔!
			他仅是『使用最适当的模组来驱动这个硬体』而已,所以有时候难免会误判啦!
			所以棉,如果你对于系统的稳定性是斤斤计较的,那么或者重新编译一次你的核心,

⌨️ 快捷键说明

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