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

📄 052-054.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Linux Installation Overview</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Que//-->

<!--CHAPTER=2//-->

<!--PAGES=052-054//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="050-052.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="055-056.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H3><A NAME="Heading21"></A><FONT COLOR="#000077">Troubleshooting Problems</FONT></H3>

<P>After your machine reboots, the LILO prompt should appear. Make sure that you can boot to your old operating system if you left it on the hard drive. If that system was DOS, press &lt;Shift&gt; and then type the short word you used to identify the DOS partition when you installed LILO. If you enter an invalid word, press &lt;Tab&gt; to get a list of valid operating system types. If you&#146;re having problems at that point, place your DOS boot disk in the boot drive and reboot.

</P>

<P>You should be able to boot from your boot disk. When your system is up and running under DOS, try the Linux boot disk you created during installation&#151;not the ones you created to originally install the entire system. If that boot disk doesn&#146;t work, you may have to reinstall Linux. Potential problems to check initially are the kernels and your hardware. Before starting over, make sure that you have the appropriate hardware. If you made notes during the installation process, check which kernel you installed against what hardware you have. Make sure your hardware is supported by Linux.</P>

<P>Below are some answers to common problems listed on Red Hat&#146;s Web site. These troubleshooting tips are used under the provisions of GNU&#146;s GPL.</P>

<P><B>Q: Can I use a hard drive that has more than 1023 cylinders?</B></P>

<P><B>A:</B> The infamous 1023 cylinder question. Yes, but not to boot Linux. You can install Linux on partitions above the 1023 cylinder, but to boot Linux, the root directory and specifically the /boot directory must be installed on the first hard drive below 1024.</P>

<P><B>Q: How do I add arguments for LILO at the prompt?</B></P>

<P><B>A:</B> Some hardware requires that extra parameters be fed to the kernel before the kernel will recognize the hardware. You can accommodate this by editing the /etc/lilo.conf file to provide the necessary parameters, or you can provide them manually during boot up. See the LILO HOWTO for more examples of LILO parameters.</P>

<P><B>Q: Why does LILO hang on LI?</B></P>

<P><B>A:</B> This is a symptom of the 1023 cylinder problem addressed previously. If you have installed the boot system above 1023, LILO will not be able to boot the system. You can try to boot from a floppy using the rescue disk you made during installation, or you can repartition your hard drive and reinstall Linux.</P>

<P><B>Q: The installation will not find the SCSI card.</B></P>

<P><B>A:</B> To remedy this, you need to add a boot-time argument such as the following:</P>

<!-- CODE SNIP //-->

<PRE>

LILO: linux qlogicfas=0x230,11,5

</PRE>

<!-- END CODE SNIP //-->

<P>This option can be made permanent so you don&#146;t have to re-enter it. See the LILO configuration option <TT>append</TT> in the lilo.conf man page.</P>

<P><B>Q: How do I uninstall LILO?</B></P>

<P><B>A:</B> If you want to uninstall LILO and reinstall the original boot record, try using this command</P>

<!-- CODE SNIP //-->

<PRE>

    lilo -u /dev/hda

</PRE>

<!-- END CODE SNIP //-->

<P>which represents the boot record of the first IDE drive. Parameters may vary for your machine, for example, if your first hard drive is a SCSI drive, you would use <TT>/dev/sda</TT>.</P>

<P><B>Q: Can I use LILO and Win95 on one installation?</B></P>

<P><B>A:</B> Yes, install Windows 95 first and then install Linux. During the installation, tell Linux to place LILO in the MBR. You can also use a commercial program such as System Commander.</P>

<P><B>Q: How do I mount a CD-ROM?</B></P>

<P><B>A:</B> Installing Red Hat 5.1 should place the proper entries in your /etc/fstab file, as shown below:</P>

<!-- CODE //-->

<PRE>

#

# /etc/fstab

#

# You should be using fstool (control-panel) to edit this!

#

# &lt;device&gt;    &lt;mountpoint&gt;   &lt;filesystemtype&gt; &lt;options&gt; &lt;dump&gt; &lt;fsckorder&gt;

/dev/sda1                 /                         ext2   defaults 1 1

/dev/sda5                 /home                     ext2   defaults 1 2

/dev/cdrom                /mnt/cdrom                iso9660 noauto,ro 0 0

/dev/fd0                  /mnt/floppy               ext2   noauto 0 0

/dev/sda6                 /var                      ext2   defaults 1 2

/dev/sda2                 none                      ignore 0 0 0

none                      /proc                     proc   defaults

/dev/sda7                 none                      swap   sw

</PRE>

<!-- END CODE //-->

<P>Note the use of noauto for the cdrom entry. Without this setting, Linux will try to automount the CD-ROM when it boots, which isn&#146;t really a problem unless there&#146;s no CD in the drive.

</P>

<P>If there is not an entry in your fstab file, you can either edit /etc/fstab or use the X Window Control Panel tool to add the appropriate mount information. Also, make sure the mount point /mnt/cdrom does indeed exist. If the entry is correct, you can <TT>cd</TT> to the mount point and issue the following commands:</P>

<!-- CODE SNIP //-->

<PRE>

cd /mnt

mount cdrom

</PRE>

<!-- END CODE SNIP //-->

<P><B>Q: I have Red Hat 5.0 and have upgraded to the ld.so RPM package listed in the errata, but my libc5 applications still create a seg fault. What is wrong?</B></P>

<P><B>A:</B> The problem with crashing libc5 applications can be caused by several things.</P>

<P>Before or after the upgrade, another version of libc might have been installed that was not obsoleted by the upgrade process, or the libc5 libraries might have been placed in a location that causes conflict.</P>

<P>To find out if this is the case, run this command:</P>

<!-- CODE SNIP //-->

<PRE>

rpm -qa | grep libc

</PRE>

<!-- END CODE SNIP //-->

<P>It should produce the following output:

</P>

<!-- CODE SNIP //-->

<PRE>

glibc-devel-2.0.5c-12

libc-5.3.12-24

glibc-debug-2.0.5c-12

rpm-2.4.10-1glibc

rpm-devel-2.4.10-1glibc

glibc-profile-2.0.5c-12

glibc-2.0.5c-12

</PRE>

<!-- END CODE SNIP //-->

<P>If you see items like <TT>libc-debug-5.3.12-18</TT> or <TT>libc-5.4.44-2</TT>, you will need to remove these packages (with the command <TT>rpm -e libc-debug</TT> ) and run <TT>ldconfig &#150;v</TT>.</P>

<P>Your /etc/ld.so.conf file has been changed from an optimal setting. For optimal loading, set your /etc/ld.so.conf file in the following order:</P>

<!-- CODE SNIP //-->

<PRE>

/usr/i486-linuxaout/lib

/usr/i486-linux-libc5/lib

/usr/openwin/lib

/usr/X11R6/lib

</PRE>

<!-- END CODE SNIP //-->

<P><B>Q: Some of my older applications get the incorrect time.</B></P>

<P><B>A:</B> Some libc5 apps want /usr/lib/zoneinfo. You can either recompile them for libc6, or you can provide a symlink with the following command so things will work.</P>

<!-- CODE SNIP //-->

<PRE>

     ln -s ../share/zoneinfo /usr/lib/zoneinfo

</PRE>

<!-- END CODE SNIP //-->

<P><B>Q: I have all the latest updates installed, but my programs still get the incorrect time.</B></P>

<P><B>A:</B> If you have installed all the latest updates and your programs still get the incorrect time, try checking the settings in /etc/sysconfig/clock. They probably look something like this:</P>

<DL>

<DD>UTC=true

<DD>ARC=false

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="050-052.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="055-056.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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