Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-07-28  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-07-28  4:00 UTC (permalink / raw)


Archive-Name: linux/faq/part3
Posting-Frequency: weekly
   
   If you find that gzip complains when you try to uncompress a gzipped
   file you probably downloaded it in ASCII mode by mistake. You must
   download most things in binary mode - remember to type binary as a
   command in FTP before using get to get the file.
   
   ----------------------------------------------------------------------
   
7.16 What does VFS stand for?

   Virtual File System. It's the abstraction layer between the user and
   real filesystems like ext2, minix and msdos. Amongst other things, its
   job is to flush the read buffer when it detects a disk change on the
   floppy disk drive:

   VFS: Disk change detected on device 2/0

   ----------------------------------------------------------------------
   
7.17 What is a BogoMip?

   `BogoMips' is a contraction of `Bogus MIPS'. MIPS stands for
   (depending who you listen to) Millions of Instructions per Second, or
   Meaningless Indication of Processor Speed.
   
   The number printed at boot-time is the result of a kernel timing
   calibration, used for very short delay loops by some device drivers.
   
   As a very rough guide the BogoMips will be approximately:
     386SX              clock * 0.14
     386DX              clock * 0.18
     486Cyrix/IBM       clock * 0.33
     486SX/DX/DX2       clock * 0.50
     586                clock * 0.39

   If the number you're seeing is wildly lower than this you may have the
   Turbo button or CPU speed set incorrectly, or have some kind of
   caching problem (as described in Q6.5 `When I add more memory it slows
   to a crawl.'.)
   
   For values people have seen with other, rarer, chips, see the BogoMips
   Mini-HOWTO, on sunsite.unc.edu in /pub/Linux/docs/howto/mini/BogoMips.
   
   ----------------------------------------------------------------------
   
7.18 What is the Linux Journal and where can I get it?

   Linux Journal is a monthly magazine (printed on paper) that is
   available on newsstands and via subscription worldwide. Email <
   linux@ssc.com> for details. Their URL is http://www.ssc.com/.
   
   ----------------------------------------------------------------------
   
7.19 How many people use Linux?

   Linux is freely available, and no one is required to register their
   copies with any central authority, so it is difficult to know. Several
   businesses are now surviving solely on selling and supporting Linux,
   and very few Linux users use those businesses, relatively speaking.
   The Linux newsgroups are some of the most heavily read on the Net, so
   the number is likely in the hundreds of thousands, but firm numbers
   are hard to come by.
   
   However, one brave soul, Harald T. Alvestrand <
   Harald.T.Alvestrand@uninett.no>, has decided to try, and asks that if
   you use Linux, you send a message to < linux-counter@uninett.no> with
   one of the following subjects: `I use Linux at home', `I use Linux at
   work', or `I use Linux at home and at work'. He will also accept
   `third-party' registrations--ask him for details.
   
   Alternatively, you can register using the WWW forms found at
   http://domen.uninett.no/&nbsphta/linux/counter.html.
   
   He posts his counts to comp.os.linux.misc each month; alternatively
   look on aun.uninett.no in /pub/misc/linux-counter or at the web page
   above.
   
   ----------------------------------------------------------------------
   
7.20 How should I pronounce Linux?

   This is a matter of religious debate, of course!
   
   If you want to hear Linus himself say how he pronounces it download
   english.au or swedish.au from ftp.funet.fi (in
   /pub/OS/Linux/PEOPLE/Linus/SillySounds). If you have a soundcard or
   the PC-speaker audio driver you can hear them by typing

   cat english.au >/dev/audio

   The difference isn't in the pronunciation of Linux but in the language
   Linus uses to say hello. The English version was parodied very well by
   Jin Choi as "Hi, my name is Leenoos Torvahlds and I pronounce Leenooks
   as Leenooks."
   
   For the benefit of those of you who don't have the equipment or
   inclination: Linus pronounces Linux approximately as Leenus, where the
   ee is as in feet but rather shorter and the u is like a much shorter
   version of the French eu sound in peur (pronouncing it as the u in put
   is probably passable).
   
   When speaking English I pronounce it Lie-nucks (u as in bucket) ---
   this is an anglicised pronunciation based on the analogy with Linus'
   name, which in English is usually pronounced Lie-nus (u as in put). It
   is of course quite acceptable and common to modify the pronunciation
   of a proper noun when it changes languages.
   
   I think I can safely say that the pronunciation Linnucks (short i as
   in pit, short u as in bucket) is wrong in English, as it is not the
   original Swedish pronunciation, not a sensible direct anglicisation of
   it, and not based on the anglicised version of Linus' name.
   
   ======================================================================
   
8. Frequently encountered error messages.

   ----------------------------------------------------------------------
   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type has changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   ----------------------------------------------------------------------
   
8.2 During linking I get Undefined symbol mcount

   This is usually due to a bad interaction between a brokenness in SLS
   and the C library release notes. Your libc.a has been replaced by the
   profiling library. You should remove libc.a, libg.a and libc_p.a and
   once again install the new libraries (following the release notes, of
   course).
   
   ----------------------------------------------------------------------
   
8.3 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels this message reads lp1 reported invalid error status
   (on fire, eh?).
   
   ----------------------------------------------------------------------
   
8.4 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities; the new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs; see
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   ----------------------------------------------------------------------
   
8.5 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   ----------------------------------------------------------------------
   
8.6 GCC says Internal compiler error.

   If the fault is repeatable (ie, it always happens at the same place in
   the same file--even after rebooting and trying again, using a stable
   kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see Q9.7 `make says Error 139'.
   
   ----------------------------------------------------------------------
   
8.7 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see Q6.8 `My machine runs very
   slowly when I run GCC / X / ...' for more info.
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester --- much better
   than DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with maths emulation Q7.6 `How do I
   upgrade/recompile my kernel ?'; you may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use it, or
   it may be able to work and still use the 387, with the maths emulation
   compiled in but mainly unused.
   
   Much more information about this problem is available on the WWW at
   http://einstein.et.tudelft.nl/&nbspwolff/sig11/.
   
   ----------------------------------------------------------------------
   
8.8 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manpage for
   chmod or a book on Unix for how to fix the problem.
   
   ----------------------------------------------------------------------
   
8.9 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See Q6.11 `I have screwed up my
   system and can't log in to fix it.' for how to be able to do this.
   Note that utmp may also be found in /var/adm/utmp or /etc/utmp on some
   older systems.
   
   ----------------------------------------------------------------------
   
8.10 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time filesystem
   checks. It will work fine with older kernels as well, so there's no
   need to keep the old update around.
   
   ----------------------------------------------------------------------
   
8.11 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   ----------------------------------------------------------------------
   
8.12 EXT2-fs: warning: mounting unchecked filesystem.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a filesystem that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root filesystem readonly
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root filesystem is still read-only
   and this will otherwise cause it to fail!
   
   ----------------------------------------------------------------------
   
8.13 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a filesystem
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   ----------------------------------------------------------------------
   
8.14 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a filesystem based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   ----------------------------------------------------------------------
   
8.15 df says Cannot read table of mounted filesystems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   ----------------------------------------------------------------------
   
8.16 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered beyond 1024
   this is because standard DOS disk geometry information format in the
   partition table can't cope with cylinder numbers with more than 10
   bits. You should see Q4.1 `How can I get Linux to work with my large
   disk ?'.
   
   ----------------------------------------------------------------------
   
8.17 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately if
   you've already installed your system there's not much you can do about
   this, apart from copying the data off the partition, deleting and
   remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all good FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   1. Create partition 1 in the normal way. A p listing will produce the
   mismatch complaint.
   
   2. Type u to set sector mode and do p again. Copy down the number from
   the "End" column.
   
   3. Delete partition 1.
   
   4. While still in sector mode recreate partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the p output. Set the last sector to the
   value noted in 2. above.
   
   5. Type u to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors - they refer to the
   sectors on the first track apart from the Master Boot Record, which
   are not used if you start the first partition in track 2.
   
   ----------------------------------------------------------------------
   
8.18 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors
   the last sector is wasted. Ignore the message.
   
   ----------------------------------------------------------------------
   
8.19 mtools says cannot initialise drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manpage for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   discover which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers please note that this is *evil*.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see Q3.2 `How do I access files on my DOS
   partition or floppy ?'. Note--you should never use mtools to access
   files on an msdosfs mounted partition or disk !
   
   ----------------------------------------------------------------------
   
8.20 At the start of booting: Memory tight

   This means that you have an extra large kernel that means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need (Q7.6 `How do I
   upgrade/recompile my kernel ?').
   
   ----------------------------------------------------------------------
   
8.21 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this is a common indication
   of a hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one of my machines. Be sure that
   all electrical connections are clean and tight before placing the
   blame on the hard drive itself.
   
   ----------------------------------------------------------------------
   
8.22 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   ======================================================================
   
9. The X Window System.

   ----------------------------------------------------------------------
   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.2, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   ----------------------------------------------------------------------
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard to do--read the instructions that came with
   XFree86, in /usr/X11R6/lib/X11/etc. The file you probably most need to
   look at is README.Config.
   
   You should *not* use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is now obsolete and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   ----------------------------------------------------------------------
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   XFree86 3.1 fixes this problem.
   
   ----------------------------------------------------------------------
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   ======================================================================
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least 3 months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear (Q13.1
   `Feedback is invited').
   
   ----------------------------------------------------------------------
   
10.1 Emacs just dumps core.

   You probably have a version of Emacs that was compiled to work with
   X11; this requires the X11 libraries to work. If you're using
   Slackware you can change the /usr/bin/emacs symbolic link to point to
   emacs-19.29-no-x11 instead (see man ln). This is in the file
   emac_nox.tgz on Slackware 3.0's E6 disk.
   
   ----------------------------------------------------------------------
   
10.2 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix filesystem, which cannot use
   more than 64Mb per parition. This limitation is not present in the
   more advanced filesystems now available, such as ext2fs (the 2nd
   version of the Extended Filesystem, the `standard' Linux filesystem).
   
   If you intend to use ext2fs you can ignore the message.
   
   ----------------------------------------------------------------------
   
10.3 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug which made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   ----------------------------------------------------------------------
   
10.4 My keyboard goes all funny after I switch VC's.

   This is a bug in kernel versions before 0.99pl14-alpha-n. Sometimes
   Linux loses track of what modifier keys (Shift, Alt, Control etc.) are
   pressed or not, and believes that one or more are pressed when they
   are not. The solution is to press and release each of the modifier
   keys (without pressing any other keys)--this will ensure that Linux
   knows what state the keyboard is actually in.
   
   This problem often occurs when switching out of X windows; it can
   sometimes be avoided by releasing Ctrl and Alt very quickly after
   pressing the F-key of the VC you are switching to.
   
   ======================================================================
   
11. How to get further assistance.

   ----------------------------------------------------------------------
   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions ?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at < kiesling@terracom.net>.
   
   Read the appropriate Linux Documentation Project books--see Q2.1
   `Where can I get the HOWTOs and other documentation ?'.
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the < mail-server@rtfm.mit.edu> can send you
   these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manpages (type man man if you don't
   know about manpages. Try man -k <subject>-- it often lists useful and
   relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and reinstall it
   -- perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   ----------------------------------------------------------------------
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert and/or fellow user reading it will have enough
   information and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (MCC, Slackware, Debian or
       whatever) and what version of that release.
     * The *exact* and *complete* text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this noone who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by the readers
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   ----------------------------------------------------------------------
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   ======================================================================
   
12. Administrative information and acknowledgements.

   ----------------------------------------------------------------------
   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to < kiesling@terracom.net>.
   
   If you wish to refer to a question(s) in the FAQ it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patchfiles--I write the FAQ in a
   different internal format anyway, so I can't use a patchfile.
   
   ----------------------------------------------------------------------
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an Emacs Info
   document, an HTML World Wide Web page, PostScript and as a USENET news
   posting.
   
   The ASCII, Emacs Info, HTML and posted versions and a Lout typesetter
   file (from which the PostScript is produced) are generated
   automatically by a Perl script which takes as input a file in the
   Bizarre Format with No Name.
   
   The output files linux-faq.ascii, .info and .ps and a tarfile
   linux-faq.source.tar.gz, containing the BFNN source and Perl script
   converter, are available in the docs directories of the major Linux
   FTP sites.
   
   The HTML version of this FAQ is available as
   http://www.cl.cam.ac.uk/users/iwj10/linux-faq/index.html and is
   mirrored at www.li.org and other sites.
   
   The USENET version is posted regularly to comp.os.linux.announce,
   comp.os.linux.answers, comp.answers and news.answers.
   
   ----------------------------------------------------------------------
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled by Robert Kiesling < kiesling@terracom.net>, with
   assistance and comments from others too numerous to mention.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, used to coordinate
   the HOWTOs, and has written substantial portions of many of them, Greg
   Hankins and Timothy Bynum, the former and current HOWTO maintainers,
   Lars Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, to Marc-Michel Corsini, who wrote the original
   Linux FAQ, and to Ian Jackson, the previous FAQ maintainer.
   
   Thanks also to the many people who have sent comments and suggestions.
   They are too numerous to list here but their contributions are
   invaluable.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to write about!
   
   ----------------------------------------------------------------------
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   *not* warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is copyright (C) 1997 by
   Robert Kiesling < kiesling@terracom.net>. Portions are Copyright 1994,
   1995, 1996 by Ian Jackson, the previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at <
   kiesling@terracom.net>. These restrictions are here to protect the
   contributors, not to restrict you as educators and learners.

-- 

Robert Kiesling
kiesling@terracom.net
..No writing gig too small...



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-08-31  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-08-31  4:00 UTC (permalink / raw)


Archive-Name: linux/faq/part3
Posting-Frequency: weekly

   architecture-specific asm-arch directory--if you have a freshly
   unpacked kernel source tree you must use make symlinks. You'll also
   find that you may need to do make config in a newly-unpacked kernel
   source tree, to create linux/autoconf.h.
   
   
5.7 I get errors when I try to compile the kernel.

   See the previous question regarding the header files.
   
   Remember that when you apply a patch to the kernel, you must use the
   -p0 or -p1 option: otherwise the patch may be misapplied. See the
   patch manual page for details.
   
   ld: unrecognised option `-qmagic' means that you should get a newer
   linker, from ftp://tsx-11.mit.edu/pub/linux/packages/GCC/, in the
   file binutils-2.8.1.0.1.bin.tar.gz.
   
   
5.8 How do I make a shared library?

   For ELF,
   gcc -fPIC -c *.c
   gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.1.0 *.o

   For a.out, get tools-n.nn.tar.gz from tsx-11.mit.edu, in
   /pub/linux/packages/GCC/src/. It comes with documentation that will
   tell you what to do. Note that a.out shared libraries are a very
   tricky business. Consider upgrading your libraries to ELF shared
   libraries. See the ELF HOWTO, at
   sunsite.unc.edu/pub/Linux/docs/HOWTO/
   
   
5.9 My executables are (very) large.

   With an ELF compiler (see Q8.2 `What's all this about ELF ?') the most
   common cause of large executables is the lack of an appropriate .so
   library link for one of the libraries you're using. There should be a
   link like libc.so for every library like libc.so.5.2.18.
   
   With an a.out compiler (see, "What's all this about ELF?") the
   most common cause of large executables is the -g linker (compiler)
   flag. This produces (as well as debugging information in the output
   file) a program which is statically linked, i.e. one which includes a
   copy of the C library instead of using a dynamically linked copy.
   
   Other things worth investigating are -O and -O2 which enable
   optimisation (check the GCC documentation) and -s (or the strip
   command) which strip the symbol information from the resulting binary
   (making debugging totally impossible).
   
   You may wish to use -N on very small executables (less than 8K with
   the -N), but you shouldn't do this unless you understand its
   performance implications, and definitely never with daemons.
   
   
5.10 Does Linux support threads or lightweight processes?

   As well as the Unix multiprocessing model involving heavyweight
   processes, which is of course part of the standard Linux kernel, there
   are several implementations of lightweight processes or threads, most
   of which are generic packages for any Unix:
     * In sipb.mit.edu:/pub/pthread or
       ftp.ibp.fr:/pub/unix/threads/pthreads. Documentation isn't in the
       package, but is available on the World Wide Web at
       http://www.mit.edu:8001/people/proven/home_page.html. Newer Linux
       libcs contain the pthreads source; the GNU Ada compiler on
       sunsite.unc.edu in
       /pub/Linux/devel/lang/ada/gnat-3.01-linux+elf.tar.gz contains
       binaries made from that source code.
     * In ftp.cs.washington.edu:/pub/qt-001.tar.Z is QuickThreads. More
       information can be found in the technical report, available on the
       same site as /tr/1993/05/UW-CSE-93-05-06.PS.Z.
     * In gummo.doc.ic.ac.uk:/rex is lwp, a very minimal implementation.
     * In ftp.cs.fsu.edu:/pub/PART, an Ada implementation. This is useful
       mainly because it has a lot of PostScript papers that you'll find
       useful in learning more about threads. This is not directly usable
       under Linux.
       
   Please contact the authors of the packages in question for details.
   
   
5.11 Where can I get `lint' for Linux?

   Roughly equivalent functionality is built into the GNU C compiler
   (gcc) which is used by Linux systems. Use the -Wall option to turn on
   most of the useful extra warnings. Check the GCC manual for more
   details (type control-h followed by i in Emacs and select the entry
   for GCC).
   
   There is a freely available program called `lclint' that does much the
   same thing as traditional lint. The announcement and source code are
   available at on larch.lcs.mit.edu in /pub/Larch/lclint; on the World
   Wide Web look at http://larch-www.lcs.mit.edu:8001/larch/lclint.html.
   
   
5.12 Where can I find kermit for Linux?

   Kermit is distributed under a non-GPL copyright that makes its terms
   of distribution somewhat different. The sources and some binaries are
   available on kermit.columbia.edu.
   
   The WWW Home Page of the Columbia University Kermit project is
   http://www.columbia.edu/kermit.
   
   
   
6. Solutions to common miscellaneous problems.

   
6.1 free dumps core.

   In Linux 1.3.57 and later, the format of /proc/meminfo was changed in
   a way that the implementation of free doesn't understand.
   
   Get the latest version, from sunsite.unc.edu in
   /pub/Linux/system/Status/ps/procps-0.99.tgz.
   
   
6.2 My clock is very wrong.

   There are two clocks in your computer. The hardware (CMOS) clock runs
   even when the computer is off and is used to when the system starts up
   and by DOS (if you use it). The ordinary system time, shown and set by
   date, is maintained by the kernel while Linux is running.
   
   You can display the CMOS clock time, or set either clock from the
   other, with /sbin/clock program--see "man 8 clock."
   
   To set the time zone, some programs recognize the TZ environment
   variable. The manual page for tzset describes setting the time zone.
   Recent, POSIX-correct systems have the time zone info in
   /usr/lib/zoneinfo/. The soft link localtime points to the zone
   information file for your time zone. The soft link posixrules points
   to localtime.
   
   There are various other programs that can correct either or both
   clocks for systematic drift or transfer time across the network. Some
   of them may already be installed on your system. Try looking at or for
   adjtimex (corrects for drift), netdate and getdate (simply get the
   time from the network) or xntp (accurate fully-featured network time
   daemon).
   
   
6.3 Setuid scripts don't seem to work.

   That's right. This feature has been deliberately disabled in the Linux
   kernel because setuid scripts are almost always a security hole. If
   you want to know why read the FAQ for comp.unix.questions.
   
   
6.4 Free memory as reported by free keeps shrinking.

   The `free' figure printed by free doesn't include memory used as a
   disk buffer cache - shown in the `buffers' column. If you want to know
   how much memory is really free add the `buffers' amount to `free' -
   newer versions of free print an extra line with this info.
   
   The disk buffer cache tends to grow soon after starting Linux up, as
   you load more programs and use more files and the contents get cached.
   It will stabilize after a while.
   
   
6.5 When I add more memory, the system slows to a crawl.

   This is quite a common symptom of a failure to cache the additional
   memory. The exact problem depends on your motherboard.
   
   Sometimes you have to enable caching of certain regions in your BIOS
   setup. Look in the CMOS setup and see if there is an option to cache
   the new memory area which is currently switched off. This is
   apparently most common on a 486.
   
   Sometimes the RAM has to be in certain sockets to be cached.
   
   Sometimes you have to set jumpers to enable the caching.
   
   Some motherboards don't cache all the RAM if you have more RAM per
   amount of cache than they expect. Usually a full 256K cache will solve
   this problem.
   
   If in doubt, check your motherboard manual. If you still can't fix it
   because the documentation is inadequate you might like to post a
   message to comp.os.linux.hardware giving *all* the details - make,
   model number, date code, etc. so that other Linux users can avoid it.
   
   
6.6 Some programs (e.g. xdm) won't let me log in.

   You are probably using non-shadow password programs but are using
   shadow passwords.
   
   If so, you have to get or compile a shadow password version of the
   program(s) in question. The shadow password suite can be found in
   (amongst other places):
   tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-* This is the source
   code; you will probably find the binaries in
   .../linux/binaries/usr.bin.
   
   
6.7 Some programs let me log in with no password.

   You probably have the same problem as in "Some programs (e.g.
   xdm) won't let me log in.", with an added wrinkle:
   
   If you are using shadow passords you should put a letter x or an
   asterisk in the password field of /etc/passwd for each account, so
   that if a program doesn't know about the shadow passwords it won't
   think it's a passwordless account and let anyone in.
   
   
6.8 My machine runs very slowly when I run GCC / X / ...

   You may have too little real memory. If you have less RAM than all the
   programs you're running at once, Linux will swap to your hard disk
   instead and thrash horribly. The solution in this case is to not run
   so many things at once or to buy more memory. You can also reclaim
   some memory by compiling and using a kernel with less options
   configured. See "How do I upgrade/recompile my kernel?".
   
   You can tell how much memory and/or swap you're using by using the
   free command, or by typing

    cat /proc/meminfo

   If your kernel is configured with a ramdisk this is probably wasted
   space and will cause things to go slowly. Use LILO or rdev to tell the
   kernel not to allocate a ramdisk (see the LILO documentation or type
   man rdev).
   
   
6.9 I can only log in as root.

   You probably have some permission problems, or you have a file
   /etc/nologin.
   
   If the latter, put rm -f /etc/nologin in your /etc/rc.local or
   /etc/rc.d/* scripts.
   
   Otherwise, check the permissions on your shell, and any file names
   that appear in error messages, and also the directories containing
   these files all the way up the tree, up to and including the root
   directory.
   
   
6.10 My screen is all full of weird characters instead of letters.

   You probably sent some binary data to your screen by mistake. Type
   echo '\033c' to fix it. Many Linux distributions have a command,
   "reset," that does this.
   
6.11 I have screwed up my system and can't log in to fix it.

   Reboot from an emergency floppy or floppy pair, for example, the
   Slackware boot and root disk pair in the install subdirectory of the
   Slackware distributions.
   
   There are also two do-it-yourself rescue disk creation packages in
   sunsite.unc.edu/pub/Linux/system/Recovery. These are better
   because as they have your own kernel on them, so that you don't run
   the risk of missing devices, file systems, and so forth.
   
   Get to a shell prompt and mount your hard disk with something like
>   mount -t ext2 /dev/hda1 /mnt

   Then your file system is available under the directory /mnt and you
   can fix the problem. Remember to unmount your hard disk before
   rebooting (cd back down to / first, or it will say it's busy).
   
   
6.12 I've discovered a huge security hole in rm!

   No you haven't. You are obviously new to Unix and need to read a good
   book on it to find out how things work. Clue: ability to delete files
   under Unix depends on permission to write the directory they are in.
   
   
6.13 lpr(1) and/or lpd(8) don't work.

   First make sure that your /dev/lp* port is correctly configured. Its
   IRQ (if any) and port address need to match the settings on the board.
   You should be able to dump a file directly to the printer; e.g.:

$ cat the_file >/dev/lp1

   If lpr gives you a message like "myname@host: host not found," it
   may mean that the TCP/IP loopback interface, lo, isn't working
   properly. Loopback support is compiled into most distribution kernels.
   Check that the interface is configured with the ifconfig command. By
   Internet convention, the network number is 127.0.0.0, and the local
   host address is 127.0.0.1. If everything is configured correctly, you
   should be able to telnet to your own machine and get a login prompt.
   
   If your machine has a network-aware lpd, like the one that comes with
   LPRng, make sure that the lpd.perms file is configured correctly.
   
   Also look at the Printing-HOWTO "Where can I get the HOWTOs and
   other documentation?".
   
   
6.14 Timestamps on files on msdos partitions are set incorrectly.

   There is a bug in the program clock(8) (often found in /sbin)--it
   miscounts a time zone offset, confusing seconds with minutes or some
   such. Get a new version of it.
   
   
6.15 How do I get LILO to boot the vmlinux file?

   In kernel versions 1.1.80 and later, the compressed kernel image,
   which is what LILO needs to find, has been moved to
   arch/i386/boot/zImage. The vmlinux file in the root directory is the
   uncompressed kernel, and you shouldn't try to boot it.
   
   This change has been made to make it easier to build the versions for
   several different processors from the same source tree.
   
   
   
7. How do I do this or find out that ... ?

   
7.1 How can I get scrollback in text mode?

   With the default US keymap you can use Shift with the PageUp and
   PageDown keys (NB: these must be the grey ones, not the ones on the
   numeric keypad!). With other keymaps check the maps in
   /usr/lib/keytables; you can remap the ScrollUp and ScrollDown keys to
   be whatever you like--for example, in order to remap them to keys that
   exist on an 84-key AT keyboard.
   
   You can't increase the amount of scrollback, because of the way it is
   implemented using the video memory to store the scrollback text,
   though you may be able to get more scrollback in each virtual console
   by reducing the total number of VC's--see linux/tty.h.
   
   
7.2 How do I switch virtual consoles? How do I enable them?

   In text mode, press Left Alt-F1 to Alt-F12 to select the consoles tty1
   to tty12; Right Alt-F1 gives tty13 and so on. To switch out of X
   windows you must press Ctrl-Alt-F1, etc; Alt-F5 or whatever will
   switch back.
   
   If you want to use a VC for ordinary login you need to list it in
   /etc/inittab, which controls which terminals and virtual consoles have
   login prompts. NB: X needs at least one free VC in order to start.
   
   Kernels earlier than around 1.1.59 have a compiled-in limit on the
   number of consoles, for which the default is 8. See NR_CONSOLES in
   linux/include/linux/tty.h. Newer kernels allocate them dynamically, up
   to a maximum of 63.
   
   
7.3 How do I set the time zone?

   Change directory to /usr/lib/zoneinfo; get the timezone package if you
   don't have this directory. The source is available as
   sunsite.unc.edu/pub/Linux/system/admin/time/timesrc-1.2.tar.gz.
   
   Then make a symbolic link named localtime pointing to one of the files
   in this directory (or a subdirectory), and one called posixrules
   pointing to localtime. For example:

   ln -sf US/Mountain localtime
   ln -sf localtime posixrules

   This change will take effect immediately--try date(1).
   
   Don't try to use the TZ variable--leave it unset.
   
   You should also make sure that your Linux kernel clock is set to the
   correct GMT time--type date -u and check that the correct universal
   time is displayed.
   
   
7.4 What version of Linux and what machine name am I using?

   Type:
   uname -a

   
7.5 How can I enable or disable core dumps?

   By using the ulimit(1) command in bash(1), the limit command in
   tcsh(1), or the rlimit command in ksh(1). See the appropriate manual
   page for details.
   
   This setting affects all programs run from that shell (directly or
   indirectly), not the whole system.
   
   If you wish to enable or disable coredumping for all processes by
   default, you can change the default setting in linux/sched.h--see the
   definition of INIT_TASK, and look also in linux/resource.h.
   
   
7.6 How do I upgrade/recompile my kernel?

   See the Kernel HOWTO or the README files which comes with the kernel
   release on ftp.cs.helsinki.fi, in /pub/Software/Linux/Kernel and
   mirrors. (See "Where can I get Linux material by FTP?") You
   may already have a version of the kernel source code installed on your
   system, but if you got it as part of a standard distribution it is
   likely to be somewhat out of date (this is not a problem if you only
   want a custom-configured kernel, but it probably is if you need to
   upgrade.)
   
   Remember that to make the new kernel boot you must run LILO after
   copying the kernel into your root partition--the Makefile in recent
   kernels has a special zlilo target for this; try make zlilo.
   
   Kernel version numbers with an odd minor version (ie, 1.1.x, 1.3.x)
   are the testing releases; stable production kernels have even minor
   versions (1.0.x, 1.2.x). If you want to try the testing kernels you
   should probably subscribe to the linux-kernel mailing list. (See "
   What mailing lists are there?.")
   
   
7.7 Can I have more than 3 serial ports by sharing interrupts?

   Yes, but you won't be able to use simultaneously two ordinary ports
   which share an interrupt (without some trickery). This is a limitation
   of the ISA bus architecture.
   
   See the Serial HOWTO for information about possible solutions to and
   workarounds for this problem.
   
   
7.8 How do I make a bootable floppy?

   Make a file system on it with bin, etc, lib and dev directories --
   everything you need. Install a kernel on it and arrange to have LILO
   boot it from the floppy (see the LILO documentation, in lilo.u.*.ps).
   
   If you build the kernel (or tell LILO to tell the kernel) to have a
   ramdisk the same size as the floppy the ramdisk will be loaded at
   boot-time and mounted as root in place of the floppy.
   
   See the Bootdisk HOWTO.
   
   
7.9 How do I remap my keyboard to UK, French, etc.?

   For recent kernels, get /pub/Linux/system/Keyboards/kbd-0.90.tar.gz
   from sunsite.unc.edu. Make sure you get the appropriate version; you
   have to use the right keyboard-mapping package to go with your kernel
   version. 0.90 should work with kernel versions from 1.0.
   
   For older kernels you have to edit the top-level kernel Makefile, in
   /usr/src/linux.
   
   You may find more helpful information in The Linux keystroke and
   console HOWTO, by Andries Brouwer, at
   sunsite.unc.edu/pub/Linux/docs/HOWTO
   
   
7.10 How do I get NUM LOCK to default to on?

   Use the setleds program, for example (in /etc/rc.local or one of the
   /etc/rc.d/* files):

   for t in 1 2 3 4 5 6 7 8
   do
        setleds +num < /dev/tty$t > /dev/null
   done

   setleds is part of the kbd package (see Q7.9 `How do I remap my
   keyboard to UK, French, etc?').
   
   Alternatively, patch your kernel. You need to arrange for KBD_DEFLEDS
   to be defined to (1 << VC_NUMLOCK) when compiling
   drivers/char/keyboard.c.
   
   
7.11 How can I have more than 128Mb of swap?

   Use several swap partitions or swap files--Linux supports up to 16
   swap areas, each of up to 128Mb.
   
   Very old kernels only supported swap area sizes up to 16Mb.
   
   Peter Moulder says that Linux on machines with 8MB, paging like Alpha
   and Sparc64, support a swap partition up to 512MB. He says that the
   128MB limitation comes from PAGE_SIZE*BITSPERBYTE on machines with 4MB
   paging, but is 512MB on machines with 8MB paging. The file
   mm/swapfile.c has all of the gory details.
   
   
7.12 Miscellaneous information and questions answered.

   
7.13 How do I program XYZ under Linux?

   Read the manuals, or a good book on Unix. Manual pages (type "man
   man") are usually a good source of reference information on exactly
   how to use a particular command or function.
   
   There is also a lot of GNU Info documentation, which is often more
   useful as a tutorial. Run Emacs and type C-h i, or type info info if
   you don't have or don't like Emacs. Note that the Emacs libc node
   doesn't exactly describe the Linux libc (which is more like a
   traditional Unix libc, not having some of the GNU oddities), but it's
   close enough to make a fair tutorial in Unix C programming.
   
   The latest release of the Linux manual pages, a collection of useful
   GNU Info documentation, and various other information related to
   programming Linux can be found on sunsite.unc.edu in
   /pub/Linux/docs/man-pages.
   
   
7.14 What's all this about ELF?

   See the ELF HOWTO by Daniel Barlow--note, this is not the file
   move-to-elf, which is a blow-by-blow account of how to upgrade to ELF
   manually.
   
   Linux has two different formats for executables, object files, and
   object code libraries, known as `ELF' (the old format is called
   `a.out'). This will have many advantages, including better support for
   shared libraries and dynamic linking.
   
   Both a.out and ELF binaries can coexist on a system. However, they use
   different shared C libraries, both of which will have to be installed
   to do this.
   
   If you want to find out whether your system can run ELF binaries, look
   in /lib for a filename libc.so.5. If this exists it probably can. If
   you want to know whether your installation actually is ELF you can
   pick a representative program, like ls, and run file on it:

   -chiark:~> file /bin/ls
   /bin/ls: Linux/i386 impure executable (OMAGIC) - stripped

   valour:~> file /bin/ls
   /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, stripped

   There is a patch to get 1.2.x to compile using the ELF compilers, and
   produce ELF core dumps, at tsx-11.mit.edu in /pub/packages/GCC. You do
   not need the patch merely to run ELF binaries. 1.3.x and later do not
   need a patch at all.
   
   
7.15 What is a .gz file ? And a .tgz ? And ... ?

   .gz (and .z) files have been compressed using GNU gzip. You need to
   use gunzip (which is as a symlink to the gzip command which comes with
   most Linux installations) to unpack the file.
   
   .taz and .tz are tarfiles (made with Unix tar) compressed using
   standard Unix compress.
   
   .tgz (or .tpz) is a tarfile compressed with gzip.
   
   .lsm is a Linux Software Map entry, in the form of a short text file.
   Details about the LSM and the LSM itself are available in the docs
   subdirectory on sunsite.unc.edu.
   
   .deb is a Debian Binary Package - the binary package format used by
   the Debian GNU/Linux distribution. It is manipulated using dpkg and
   dpkg-deb (available on Debian systems and from ftp.debian.org).
   
   .rpm is a Red Hat RPM package, which is used in the Red Hat
   distribution. These can be found on ftp.redhat.com.
   
   The "file" command can often tell you what a file is.
   
   If you find that gzip complains when you try to uncompress a gzipped
   file you probably downloaded it in ASCII mode by mistake. You must
   download most things in binary mode - remember to type binary as a
   command in FTP before using get to get the file.
   
   
7.16 What does VFS stand for?

   Virtual File System. It's the abstraction layer between the user and
   real file systems like ext2, minix and msdos. Among other things, its
   job is to flush the read buffer when it detects a disk change on the
   floppy disk drive:

   VFS: Disk change detected on device 2/0

   
7.17 What is a BogoMip?

   `BogoMips' is a contraction of `Bogus MIPS'. MIPS stands for
   (depending who you listen to) Millions of Instructions per Second, or
   Meaningless Indication of Processor Speed.
   
   The number printed at boot-time is the result of a kernel timing
   calibration, used for very short delay loops by some device drivers.
   
   As a very rough guide the BogoMips will be approximately:
     386SX              clock * 0.14
     386DX              clock * 0.18
     486Cyrix/IBM       clock * 0.33
     486SX/DX/DX2       clock * 0.50
     586                clock * 0.39

   If the number you're seeing is wildly lower than this you may have the
   Turbo button or CPU speed set incorrectly, or have some kind of
   caching problem (as described in Q6.5 `When I add more memory it slows
   to a crawl.'.)
   
   For values people have seen with other, rarer, chips, see the BogoMips
   Mini-HOWTO, on sunsite.unc.edu in /pub/Linux/docs/howto/mini/BogoMips.
   
   
7.18 What is the Linux Journal and where can I get it?

   Linux Journal is a monthly magazine (printed on paper) that is
   available on newsstands and via subscription worldwide. Email
   linux@ssc.com for details. Their URL is http://www.ssc.com/.
   
   
7.19 How many people use Linux?

   Linux is freely available, and no one is required to register their
   copies with any central authority, so it is difficult to know. Several
   businesses are now surviving solely on selling and supporting Linux,
   and very few Linux users use those businesses, relatively speaking.
   The Linux newsgroups are some of the most heavily read on the Net, so
   the number is likely in the hundreds of thousands, but firm numbers
   are hard to come by.
   
   However, one brave soul, Harald T. Alvestrand,
   Harald.T.Alvestrand@uninett.no, has decided to try, and asks that
   if you use Linux, you send a message to linux-counter@uninett.no
   with one of the following subjects: `I use Linux at home', `I use
   Linux at work', or `I use Linux at home and at work'. He will also
   accept `third-party' registrations--ask him for details.
   
   Alternatively, you can register using the WWW forms found at
   http://domen.uninett.no/~hta/linux/counter.html.
   
   He posts his counts to aun.uninett.no in /pub/misc/linux-counter or at
   the web page above.
   
   
7.20 How should I pronounce Linux?

   This is a matter of religious debate, of course!
   
   If you want to hear Linus himself say how he pronounces it, download
   english.au or swedish.au from ftp.funet.fi (in
   /pub/Linux/PEOPLE/Linus/SillySounds). If you have a soundcard or the
   PC-speaker audio driver you can hear them by typing

   cat english.au >/dev/audio

   The difference isn't in the pronunciation of Linux but in the language
   Linus uses to say hello.
   
   For the benefit of those of you who don't have the equipment or
   inclination: Linus pronounces Linux approximately as Leenus, where the
   ee is as in feet but rather shorter and the u is like a much shorter
   version of the French eu sound in peur (pronouncing it as the u in put
   is probably passable).
   
   
   
8. Frequently encountered error messages.

   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type has changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   
8.2 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels, this message reads, "lp1 reported invalid error
   status (on fire, eh?)"
   
   
8.3 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities. The new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs. See
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   
8.4 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   
8.5 GCC says Internal compiler error.

   If the fault is repeatable (i.e., it always happens at the same place
   in the same file--even after rebooting and trying again, using a
   stable kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version, though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile, you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see make says Error 139.
   
   
8.6 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see My machine runs very slowly
   when I run GCC / X / ....
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester--much better than
   DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with math emulation ( How do I
   upgrade/recompile my kernel?.) You may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use math
   emulation, or it may be able to work and still use the '387, with the
   math emulation compiled in but mainly unused.
   
   Much more information about this problem is available on the Web at
   http://www.bitwizard.nl/sig11/.
   
   
8.7 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manual page for
   chmod or a book on Unix for how to fix the problem.
   
   
8.8 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See ("I have screwed up
   my system and can't log in to fix it.") Note that utmp may also be
   found in /var/adm/utmp or /etc/utmp on some older systems.
   
   
8.9 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time file
   system checks. It will work fine with older kernels as well, so
   there's no need to keep the old update around.
   
   
8.10 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   
8.11 EXT2-fs: warning: mounting unchecked file system.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a file system that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root file system read-only
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root file system is still read-only
   and this will otherwise cause it to fail!
   
   
8.12 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a file system
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   
8.13 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a file system based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   
8.14 df says Cannot read table of mounted file systems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   
8.15 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered greater than
   1024, this is because the standard DOS disk geometry information
   format in the partition table can't cope with cylinder numbers with
   more than 10 bits. You should see "How can I get Linux to work
   with my disk?"
   
   
8.16 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately, if
   you've already installed your system, there's not much you can do
   about this, apart from copying the data off the partition, deleting
   and remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all the usual FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   * Create partition 1 in the normal way. A `p' listing will produce the
   mismatch complaint.
   
   * Type `u' to set sector mode and do `p' again. Copy down the number
   from the "End" column.
   
   * Delete partition 1.
   
   * While still in sector mode, re-create partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the `p' output. Set the last sector to the
   value you wrote down in the step above.
   
   * Type `u' to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors--they refer to the
   sectors on the first track apart from the Master Boot Record, and they
   are not used if you start the first partition in track 2.
   
   
8.17 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors,
   the last sector is wasted. Ignore the message.
   
   
8.18 mtools says cannot initialize drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manual page for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   determine which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers, please note that this is evil.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see How do I access files on my DOS
   partition or floppy? Note--you should never use mtools to access files
   on an msdosfs mounted partition or disk!
   
   
8.19 At the start of booting: Memory tight

   This means that you have an extra large kernel, which means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need . (See, "How
   do I upgrade/recompile my kernel?)"
   
   
8.20 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this commonly indicates of a
   hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one machine. Be sure that all
   electrical connections are clean and tight before placing the blame on
   the hard drive itself.
   
   
8.21 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk, and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   
   
9. The X Window System.

   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.2, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard--read the instructions that came with XFree86, in
   /usr/X11R6/lib/X11/etc. The file you probably need to look at most is
   README.Config.
   
   You should not use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is obsolete, and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   The Xterms in XFree86 3.1 and later versions fix this problem.
   
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least three months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear. (See "
   Feedback is invited.")
   
   
10.1 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix file system, which cannot
   use more than 64Mb per parition. This limitation is not present in the
   more advanced file systems that are now available, such as ext2fs (the
   2nd version of the Extended File System, the `standard' Linux file
   system).
   
   If you intend to use ext2fs you can ignore the message.
   
   
10.2 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug that made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   
   
11. How to get further assistance.

   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50,000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at kiesling@terracom.net.
   
   Read the appropriate Linux Documentation Project books--see "
   Where can I get the HOWTOs and other documentation?"
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send
   you these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manual pages (type "man man" if
   you don't know about manual pages. Try "man -k subject"--it often
   lists useful and relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and re-install
   it--perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert or fellow user reading it will have enough information
   and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (Red Hat, Slackware, Debian, or
       whatever) and what version of that release.
     * The exact and complete text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this, no one who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by readers, along
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   
   
12. Administrative information and acknowledgements.

   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to kiesling@terracom.net.
   
   If you wish to refer to a question(s) in the FAQ, it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patch files--I context diff is not my
   first language.
   
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an HTML World Wide
   Web page, PostScript, and as a USENET news posting.
   
   All of these formats are generated from SGML source using SGML Tools
   and the LinuxDoc DTD.
   
   The HTML version of this FAQ is available as
   http://sunsite.unc.edu/LDP/ at other sites.
   
   The Usenet version is posted regularly to comp.os.linux.announce,
   comp.answers, and news.answers.
   
   The most recent text, HTML, source, and PostScript versions are
   available from the Linux archives at sunsite.unc.edu, and from
   http://www.terracom.net/~kiesling
   
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled and maintained by Robert Kiesling
   kiesling@terracom.net, with assistance and comments from Linux
   activists all over the world.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, coordinated the
   HOWTOs and wrote substantial portions of many of them, Greg Hankins
   and Timothy Bynum, the former and current HOWTO maintainers, Lars
   Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, Marc-Michel Corsini, who wrote the original
   Linux FAQ, and Ian Jackson, the previous FAQ maintainer. Thanks also
   to Roman Maurer for his many updates and additions, especially with
   European Web sites, translations, and general miscellany.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to talk about!
   
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   not warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is Copyright (c) 1997,
   1998 by Robert Kiesling kiesling@terracom.net, under the
   copyright of the Linux Documentation Project. The full text of the LDP
   copyright is available via anonymous FTP from sunsite.unc.edu, in the
   directory /pub/Linux/docs/LDP, and is included below.
   
   Portions are Copyright (c) 1994, 1995, 1996 by Ian Jackson, the
   previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at
   kiesling@terracom.net. As the license below says, these
   restrictions are here to protect the contributors, not to restrict you
   as educators and learners.
   
   LINUX DOCUMENTATION PROJECT COPYING LICENSE
   
   Last modified 6 January 1997
   
   The following copyright license applies to all works by the Linux
   Documentation Project.
   
   Please read the license carefully---it is somewhat like the GNU
   General Public License, but there are several conditions in it that
   differ from what you may be used to. If you have any questions, please
   email the LDP coordinator, mdw@sunsite.unc.edu.
   
   The Linux Documentation Project manuals may be reproduced and
   distributed in whole or in part, subject to the following conditions:
   
   All Linux Documentation Project manuals are copyrighted by their
   respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN. * The copyright
   notice above and this permission notice must be preserved complete on
   all complete or partial copies. * Any translation or derivative work
   of Linux Installation and Getting Started must be approved by the
   author in writing before distribution. * If you distribute Linux
   Installation and Getting Started in part, instructions for obtaining
   the complete version of this manual must be included, and a means for
   obtaining a complete version provided. * Small portions may be
   reproduced as illustrations for reviews or quotes in other works
   without this permission notice if proper citation is given. * The GNU
   General Public License referenced below may be reproduced under the
   conditions given within it.
   
   Exceptions to these rules may be granted for academic purposes: Write
   to the author and ask. These restrictions are here to protect us as
   authors, not to restrict you as educators and learners. All source
   code in Linux Installation and Getting Started is placed under the GNU
   General Public License, available via anonymous FTP from the GNU
   archive site.
   
   PUBLISHING LDP MANUALS
   
   If you're a publishing company interested in distributing any of the
   LDP manuals, read on.
   
   By the license given in the previous section, anyone is allowed to
   publish and distribute verbatim copies of the Linux Documentation
   Project manuals. You don't need our explicit permission for this.
   However, if you would like to distribute a translation or derivative
   work based on any of the LDP manuals, you must obtain permission from
   the author, in writing, before doing so.
   
   All translations and derivative works of LDP manuals must be placed
   under the Linux Documentation License given in the previous section.
   That is, if you plan to release a translation of one of the manuals,
   it must be freely distributable by the above terms.
   
   You may, of course, sell the LDP manuals for profit. We encourage you
   to do so. Keep in mind, however, that because the LDP manuals are
   freely distributable, anyone may photocopy or distribute printed
   copies free of charge, if they wish to do so.
   
   We do not require to be paid royalties for any profit earned from
   selling LDP manuals. However, we would like to suggest that if you do
   sell LDP manuals for profit, that you either offer the author
   royalties, or donate a portion of your earnings to the author, the LDP
   as a whole, or to the Linux development community. You may also wish
   to send one or more free copies of the LDP manual that you are
   distributing to the author. Your show of support for the LDP and the
   Linux community will be very appreciated.
   
   We would like to be informed of any plans to publish or distribute LDP
   manuals, just so we know how they're becoming available. If you are
   publishing or planning to publish any LDP manuals, please send email
   to Matt Welsh (email mdw@sunsite.unc.edu).
   
   We encourage Linux software distributors to distribute the LDP manuals
   (such as the Installation and Getting Started Guide) with their
   software. The LDP manuals are intended to be used as the "official"
   Linux documentation, and we'd like to see mail-order distributors
   bundling the LDP manuals with the software. As the LDP manuals mature,
   hopefully they will fulfill this goal more adequately.
   
   Matt Welsh, mdw@sunsite.unc.edu
   




-- 

Robert Kiesling
kiesling@terracom.net
..No writing gig too small...



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-08-24  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-08-24  4:00 UTC (permalink / raw)


Archive-Name: linux/faq/part3
Posting-Frequency: weekly


8. Frequently encountered error messages.

   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type has changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   
8.2 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels, this message reads, "lp1 reported invalid error
   status (on fire, eh?)"
   
   
8.3 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities. The new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs. See
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   
8.4 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   
8.5 GCC says Internal compiler error.

   If the fault is repeatable (i.e., it always happens at the same place
   in the same file--even after rebooting and trying again, using a
   stable kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version, though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile, you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see make says Error 139.
   
   
8.6 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see My machine runs very slowly
   when I run GCC / X / ....
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester--much better than
   DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with math emulation ( How do I
   upgrade/recompile my kernel?.) You may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use math
   emulation, or it may be able to work and still use the '387, with the
   math emulation compiled in but mainly unused.
   
   Much more information about this problem is available on the Web at
   http://www.bitwizard.nl/sig11/.
   
   
8.7 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manual page for
   chmod or a book on Unix for how to fix the problem.
   
   
8.8 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See ("I have screwed up
   my system and can't log in to fix it.") Note that utmp may also be
   found in /var/adm/utmp or /etc/utmp on some older systems.
   
   
8.9 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time file
   system checks. It will work fine with older kernels as well, so
   there's no need to keep the old update around.
   
   
8.10 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   
8.11 EXT2-fs: warning: mounting unchecked file system.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a file system that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root file system read-only
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root file system is still read-only
   and this will otherwise cause it to fail!
   
   
8.12 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a file system
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   
8.13 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a file system based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   
8.14 df says Cannot read table of mounted file systems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   
8.15 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered greater than
   1024, this is because the standard DOS disk geometry information
   format in the partition table can't cope with cylinder numbers with
   more than 10 bits. You should see "How can I get Linux to work
   with my disk?"
   
   
8.16 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately, if
   you've already installed your system, there's not much you can do
   about this, apart from copying the data off the partition, deleting
   and remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all the usual FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   * Create partition 1 in the normal way. A `p' listing will produce the
   mismatch complaint.
   
   * Type `u' to set sector mode and do `p' again. Copy down the number
   from the "End" column.
   
   * Delete partition 1.
   
   * While still in sector mode, re-create partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the `p' output. Set the last sector to the
   value you wrote down in the step above.
   
   * Type `u' to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors--they refer to the
   sectors on the first track apart from the Master Boot Record, and they
   are not used if you start the first partition in track 2.
   
   
8.17 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors,
   the last sector is wasted. Ignore the message.
   
   
8.18 mtools says cannot initialize drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manual page for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   determine which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers, please note that this is evil.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see How do I access files on my DOS
   partition or floppy? Note--you should never use mtools to access files
   on an msdosfs mounted partition or disk!
   
   
8.19 At the start of booting: Memory tight

   This means that you have an extra large kernel, which means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need . (See, "How
   do I upgrade/recompile my kernel?)"
   
   
8.20 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this commonly indicates of a
   hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one machine. Be sure that all
   electrical connections are clean and tight before placing the blame on
   the hard drive itself.
   
   
8.21 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk, and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   
   
9. The X Window System.

   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.2, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard--read the instructions that came with XFree86, in
   /usr/X11R6/lib/X11/etc. The file you probably need to look at most is
   README.Config.
   
   You should not use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is obsolete, and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   The Xterms in XFree86 3.1 and later versions fix this problem.
   
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least three months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear. (See "
   Feedback is invited.")
   
   
10.1 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix file system, which cannot
   use more than 64Mb per parition. This limitation is not present in the
   more advanced file systems that are now available, such as ext2fs (the
   2nd version of the Extended File System, the `standard' Linux file
   system).
   
   If you intend to use ext2fs you can ignore the message.
   
   
10.2 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug that made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   
   
11. How to get further assistance.

   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50,000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at kiesling@terracom.net.
   
   Read the appropriate Linux Documentation Project books--see "
   Where can I get the HOWTOs and other documentation?"
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send
   you these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manual pages (type "man man" if
   you don't know about manual pages. Try "man -k subject"--it often
   lists useful and relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and re-install
   it--perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert or fellow user reading it will have enough information
   and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (Red Hat, Slackware, Debian, or
       whatever) and what version of that release.
     * The exact and complete text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this, no one who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by readers, along
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   
   
12. Administrative information and acknowledgements.

   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to kiesling@terracom.net.
   
   If you wish to refer to a question(s) in the FAQ, it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patch files--I context diff is not my
   first language.
   
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an HTML World Wide
   Web page, PostScript, and as a USENET news posting.
   
   All of these formats are generated from SGML source using SGML Tools
   and the LinuxDoc DTD.
   
   The HTML version of this FAQ is available as
   http://sunsite.unc.edu/LDP/ at other sites.
   
   The Usenet version is posted regularly to comp.os.linux.announce,
   comp.answers, and news.answers.
   
   The most recent text, HTML, source, and PostScript versions are
   available from the Linux archives at sunsite.unc.edu, and from
   http://www.terracom.net/~kiesling
   
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled and maintained by Robert Kiesling
   kiesling@terracom.net, with assistance and comments from Linux
   activists all over the world.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, coordinated the
   HOWTOs and wrote substantial portions of many of them, Greg Hankins
   and Timothy Bynum, the former and current HOWTO maintainers, Lars
   Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, Marc-Michel Corsini, who wrote the original
   Linux FAQ, and Ian Jackson, the previous FAQ maintainer. Thanks also
   to Roman Maurer for his many updates and additions, especially with
   European Web sites, translations, and general miscellany.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to talk about!
   
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   not warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is Copyright (c) 1997,
   1998 by Robert Kiesling kiesling@terracom.net, under the
   copyright of the Linux Documentation Project. The full text of the LDP
   copyright is available via anonymous FTP from sunsite.unc.edu, in the
   directory /pub/Linux/docs/LDP, and is included below.
   
   Portions are Copyright (c) 1994, 1995, 1996 by Ian Jackson, the
   previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at
   kiesling@terracom.net. As the license below says, these
   restrictions are here to protect the contributors, not to restrict you
   as educators and learners.
   
   LINUX DOCUMENTATION PROJECT COPYING LICENSE
   
   Last modified 6 January 1997
   
   The following copyright license applies to all works by the Linux
   Documentation Project.
   
   Please read the license carefully---it is somewhat like the GNU
   General Public License, but there are several conditions in it that
   differ from what you may be used to. If you have any questions, please
   email the LDP coordinator, mdw@sunsite.unc.edu.
   
   The Linux Documentation Project manuals may be reproduced and
   distributed in whole or in part, subject to the following conditions:
   
   All Linux Documentation Project manuals are copyrighted by their
   respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN. * The copyright
   notice above and this permission notice must be preserved complete on
   all complete or partial copies. * Any translation or derivative work
   of Linux Installation and Getting Started must be approved by the
   author in writing before distribution. * If you distribute Linux
   Installation and Getting Started in part, instructions for obtaining
   the complete version of this manual must be included, and a means for
   obtaining a complete version provided. * Small portions may be
   reproduced as illustrations for reviews or quotes in other works
   without this permission notice if proper citation is given. * The GNU
   General Public License referenced below may be reproduced under the
   conditions given within it.
   
   Exceptions to these rules may be granted for academic purposes: Write
   to the author and ask. These restrictions are here to protect us as
   authors, not to restrict you as educators and learners. All source
   code in Linux Installation and Getting Started is placed under the GNU
   General Public License, available via anonymous FTP from the GNU
   archive site.
   
   PUBLISHING LDP MANUALS
   
   If you're a publishing company interested in distributing any of the
   LDP manuals, read on.
   
   By the license given in the previous section, anyone is allowed to
   publish and distribute verbatim copies of the Linux Documentation
   Project manuals. You don't need our explicit permission for this.
   However, if you would like to distribute a translation or derivative
   work based on any of the LDP manuals, you must obtain permission from
   the author, in writing, before doing so.
   
   All translations and derivative works of LDP manuals must be placed
   under the Linux Documentation License given in the previous section.
   That is, if you plan to release a translation of one of the manuals,
   it must be freely distributable by the above terms.
   
   You may, of course, sell the LDP manuals for profit. We encourage you
   to do so. Keep in mind, however, that because the LDP manuals are
   freely distributable, anyone may photocopy or distribute printed
   copies free of charge, if they wish to do so.
   
   We do not require to be paid royalties for any profit earned from
   selling LDP manuals. However, we would like to suggest that if you do
   sell LDP manuals for profit, that you either offer the author
   royalties, or donate a portion of your earnings to the author, the LDP
   as a whole, or to the Linux development community. You may also wish
   to send one or more free copies of the LDP manual that you are
   distributing to the author. Your show of support for the LDP and the
   Linux community will be very appreciated.
   
   We would like to be informed of any plans to publish or distribute LDP
   manuals, just so we know how they're becoming available. If you are
   publishing or planning to publish any LDP manuals, please send email
   to Matt Welsh (email mdw@sunsite.unc.edu).
   
   We encourage Linux software distributors to distribute the LDP manuals
   (such as the Installation and Getting Started Guide) with their
   software. The LDP manuals are intended to be used as the "official"
   Linux documentation, and we'd like to see mail-order distributors
   bundling the LDP manuals with the software. As the LDP manuals mature,
   hopefully they will fulfill this goal more adequately.
   
   Matt Welsh, mdw@sunsite.unc.edu
   




-- 

Robert Kiesling
kiesling@terracom.net
..No writing gig too small...



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-08-17  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-08-17  4:00 UTC (permalink / raw)


Archive-Name: linux/faq/part3
Posting-Frequency: weekly



8. Frequently encountered error messages.

   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type was changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   
8.2 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels, this message reads, "lp1 reported invalid error
   status (on fire, eh?)"
   
   
8.3 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities. The new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs. See
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   
8.4 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   
8.5 GCC says Internal compiler error.

   If the fault is repeatable (i.e., it always happens at the same place
   in the same file--even after rebooting and trying again, using a
   stable kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version, though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile, you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see make says Error 139.
   
   
8.6 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see My machine runs very slowly
   when I run GCC / X / ....
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester--much better than
   DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with math emulation ( How do I
   upgrade/recompile my kernel?.) You may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use math
   emulation, or it may be able to work and still use the '387, with the
   math emulation compiled in but mainly unused.
   
   Much more information about this problem is available on the Web at
   http://www.bitwizard.nl/sig11/.
   
   
8.7 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manual page for
   chmod or a book on Unix for how to fix the problem.
   
   
8.8 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See ("I have screwed up
   my system and can't log in to fix it.") Note that utmp may also be
   found in /var/adm/utmp or /etc/utmp on some older systems.
   
   
8.9 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time file
   system checks. It will work fine with older kernels as well, so
   there's no need to keep the old update around.
   
   
8.10 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   
8.11 EXT2-fs: warning: mounting unchecked file system.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a file system that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root file system read-only
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root file system is still read-only
   and this will otherwise cause it to fail!
   
   
8.12 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a file system
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   
8.13 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a file system based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   
8.14 df says Cannot read table of mounted file systems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   
8.15 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered greater than
   1024, this is because the standard DOS disk geometry information
   format in the partition table can't cope with cylinder numbers with
   more than 10 bits. You should see "How can I get Linux to work
   with my disk?"
   
   
8.16 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately, if
   you've already installed your system, there's not much you can do
   about this, apart from copying the data off the partition, deleting
   and remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all the usual FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   * Create partition 1 in the normal way. A `p' listing will produce the
   mismatch complaint.
   
   * Type `u' to set sector mode and do `p' again. Copy down the number
   from the "End" column.
   
   * Delete partition 1.
   
   * While still in sector mode, re-create partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the `p' output. Set the last sector to the
   value you wrote down in the step above.
   
   * Type `u' to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors--they refer to the
   sectors on the first track apart from the Master Boot Record, and they
   are not used if you start the first partition in track 2.
   
   
8.17 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors,
   the last sector is wasted. Ignore the message.
   
   
8.18 mtools says cannot initialize drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manual page for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   determine which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers, please note that this is evil.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see How do I access files on my DOS
   partition or floppy? Note--you should never use mtools to access files
   on an msdosfs mounted partition or disk!
   
   
8.19 At the start of booting: Memory tight

   This means that you have an extra large kernel, which means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need . (See, "How
   do I upgrade/recompile my kernel?)"
   
   
8.20 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this commonly indicates of a
   hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one machine. Be sure that all
   electrical connections are clean and tight before placing the blame on
   the hard drive itself.
   
   
8.21 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk, and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   
   
9. The X Window System.

   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.2, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard--read the instructions that came with XFree86, in
   /usr/X11R6/lib/X11/etc. The file you probably need to look at most is
   README.Config.
   
   You should not use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is obsolete, and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   The Xterms in XFree86 3.1 and later versions fix this problem.
   
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least three months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear. (See "
   Feedback is invited.")
   
   
10.1 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix file system, which cannot
   use more than 64Mb per parition. This limitation is not present in the
   more advanced file systems that are now available, such as ext2fs (the
   2nd version of the Extended File System, the `standard' Linux file
   system).
   
   If you intend to use ext2fs you can ignore the message.
   
   
10.2 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug that made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   
   
11. How to get further assistance.

   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50,000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at kiesling@terracom.net.
   
   Read the appropriate Linux Documentation Project books--see "
   Where can I get the HOWTOs and other documentation?"
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send
   you these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manual pages (type "man man" if
   you don't know about manual pages. Try "man -k subject"--it often
   lists useful and relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and re-install
   it--perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert or fellow user reading it will have enough information
   and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (Red Hat, Slackware, Debian, or
       whatever) and what version of that release.
     * The exact and complete text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this, no one who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by readers, along
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   
   
12. Administrative information and acknowledgements.

   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to kiesling@terracom.net.
   
   If you wish to refer to a question(s) in the FAQ, it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patch files--I context diff is not my
   first language.
   
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an HTML World Wide
   Web page, PostScript, and as a USENET news posting.
   
   All of these formats are generated from SGML source using SGML Tools
   and the LinuxDoc DTD.
   
   The HTML version of this FAQ is available as
   http://sunsite.unc.edu/LDP/ at other sites.
   
   The Usenet version is posted regularly to comp.os.linux.announce,
   comp.answers, and news.answers.
   
   The most recent text, HTML, source, and PostScript versions are
   available from the Linux archives at sunsite.unc.edu, and from
   http://www.terracom.net/~kiesling
   
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled and maintained by Robert Kiesling
   kiesling@terracom.net, with assistance and comments from Linux
   activists all over the world.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, coordinated the
   HOWTOs and wrote substantial portions of many of them, Greg Hankins
   and Timothy Bynum, the former and current HOWTO maintainers, Lars
   Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, Marc-Michel Corsini, who wrote the original
   Linux FAQ, and Ian Jackson, the previous FAQ maintainer. Thanks also
   to Roman Maurer for his many updates and additions, especially with
   European Web sites, translations, and general miscellany.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to talk about!
   
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   not warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is Copyright (c) 1997,
   1998 by Robert Kiesling kiesling@terracom.net, under the
   copyright of the Linux Documentation Project. The full text of the LDP
   copyright is available via anonymous FTP from sunsite.unc.edu, in the
   directory /pub/Linux/docs/LDP, and is included below.
   
   Portions are Copyright (c) 1994, 1995, 1996 by Ian Jackson, the
   previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at
   kiesling@terracom.net. As the license below says, these
   restrictions are here to protect the contributors, not to restrict you
   as educators and learners.
   
   LINUX DOCUMENTATION PROJECT COPYING LICENSE
   
   Last modified 6 January 1997
   
   The following copyright license applies to all works by the Linux
   Documentation Project.
   
   Please read the license carefully---it is somewhat like the GNU
   General Public License, but there are several conditions in it that
   differ from what you may be used to. If you have any questions, please
   email the LDP coordinator, mdw@sunsite.unc.edu.
   
   The Linux Documentation Project manuals may be reproduced and
   distributed in whole or in part, subject to the following conditions:
   
   All Linux Documentation Project manuals are copyrighted by their
   respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN. * The copyright
   notice above and this permission notice must be preserved complete on
   all complete or partial copies. * Any translation or derivative work
   of Linux Installation and Getting Started must be approved by the
   author in writing before distribution. * If you distribute Linux
   Installation and Getting Started in part, instructions for obtaining
   the complete version of this manual must be included, and a means for
   obtaining a complete version provided. * Small portions may be
   reproduced as illustrations for reviews or quotes in other works
   without this permission notice if proper citation is given. * The GNU
   General Public License referenced below may be reproduced under the
   conditions given within it.
   
   Exceptions to these rules may be granted for academic purposes: Write
   to the author and ask. These restrictions are here to protect us as
   authors, not to restrict you as educators and learners. All source
   code in Linux Installation and Getting Started is placed under the GNU
   General Public License, available via anonymous FTP from the GNU
   archive site.
   
   PUBLISHING LDP MANUALS
   
   If you're a publishing company interested in distributing any of the
   LDP manuals, read on.
   
   By the license given in the previous section, anyone is allowed to
   publish and distribute verbatim copies of the Linux Documentation
   Project manuals. You don't need our explicit permission for this.
   However, if you would like to distribute a translation or derivative
   work based on any of the LDP manuals, you must obtain permission from
   the author, in writing, before doing so.
   
   All translations and derivative works of LDP manuals must be placed
   under the Linux Documentation License given in the previous section.
   That is, if you plan to release a translation of one of the manuals,
   it must be freely distributable by the above terms.
   
   You may, of course, sell the LDP manuals for profit. We encourage you
   to do so. Keep in mind, however, that because the LDP manuals are
   freely distributable, anyone may photocopy or distribute printed
   copies free of charge, if they wish to do so.
   
   We do not require to be paid royalties for any profit earned from
   selling LDP manuals. However, we would like to suggest that if you do
   sell LDP manuals for profit, that you either offer the author
   royalties, or donate a portion of your earnings to the author, the LDP
   as a whole, or to the Linux development community. You may also wish
   to send one or more free copies of the LDP manual that you are
   distributing to the author. Your show of support for the LDP and the
   Linux community will be very appreciated.
   
   We would like to be informed of any plans to publish or distribute LDP
   manuals, just so we know how they're becoming available. If you are
   publishing or planning to publish any LDP manuals, please send email
   to Matt Welsh (email mdw@sunsite.unc.edu).
   
   We encourage Linux software distributors to distribute the LDP manuals
   (such as the Installation and Getting Started Guide) with their
   software. The LDP manuals are intended to be used as the "official"
   Linux documentation, and we'd like to see mail-order distributors
   bundling the LDP manuals with the software. As the LDP manuals mature,
   hopefully they will fulfill this goal more adequately.
   
   Matt Welsh, mdw@sunsite.unc.edu
   




-- 

Robert Kiesling
kiesling@terracom.net
..No writing gig too small...



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-08-10  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-08-10  4:00 UTC (permalink / raw)


Archive-Name: linux/faq/part3
Posting-Frequency: weekly


   english.au or swedish.au from ftp.funet.fi (in
   /pub/OS/Linux/PEOPLE/Linus/SillySounds). If you have a soundcard or
   the PC-speaker audio driver you can hear them by typing

   cat english.au >/dev/audio

   The difference isn't in the pronunciation of Linux but in the language
   Linus uses to say hello.
   
   For the benefit of those of you who don't have the equipment or
   inclination: Linus pronounces Linux approximately as Leenus, where the
   ee is as in feet but rather shorter and the u is like a much shorter
   version of the French eu sound in peur (pronouncing it as the u in put
   is probably passable).
   
   
   
8. Frequently encountered error messages.

   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type has changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   
8.2 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels this message reads lp1 reported invalid error status
   (on fire, eh?).
   
   
8.3 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities; the new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs; see
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   
8.4 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   
8.5 GCC says Internal compiler error.

   If the fault is repeatable (ie, it always happens at the same place in
   the same file--even after rebooting and trying again, using a stable
   kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see make says Error 139.
   
   
8.6 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see My machine runs very slowly
   when I run GCC / X / ....
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester--much better than
   DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with math emulation ( How do I
   upgrade/recompile my kernel?.) You may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use math
   emulation, or it may be able to work and still use the '387, with the
   math emulation compiled in but mainly unused.
   
   Much more information about this problem is available on the WWW at
   http://einstein.et.tudelft.nl/&nbspwolff/sig11/.
   
   
8.7 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manpage for
   chmod or a book on Unix for how to fix the problem.
   
   
8.8 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See Q6.11 `I have screwed up my
   system and can't log in to fix it.' for how to be able to do this.
   Note that utmp may also be found in /var/adm/utmp or /etc/utmp on some
   older systems.
   
   
8.9 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time file
   system checks. It will work fine with older kernels as well, so
   there's no need to keep the old update around.
   
   
8.10 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   
8.11 EXT2-fs: warning: mounting unchecked file system.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a file system that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root file system readonly
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root file system is still read-only
   and this will otherwise cause it to fail!
   
   
8.12 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a file system
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   
8.13 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a file system based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   
8.14 df says Cannot read table of mounted file systems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   
8.15 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered beyond 1024
   this is because standard DOS disk geometry information format in the
   partition table can't cope with cylinder numbers with more than 10
   bits. You should see Q4.1 `How can I get Linux to work with my large
   disk ?'.
   
   
8.16 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately if
   you've already installed your system there's not much you can do about
   this, apart from copying the data off the partition, deleting and
   remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all good FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   * Create partition 1 in the normal way. A p listing will produce the
   mismatch complaint.
   
   * Type u to set sector mode and do p again. Copy down the number from
   the "End" column.
   
   * Delete partition 1.
   
   * While still in sector mode recreate partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the p output. Set the last sector to the
   value you wrote down in the step above.
   
   * Type u to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors - they refer to the
   sectors on the first track apart from the Master Boot Record, which
   are not used if you start the first partition in track 2.
   
   
8.17 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors
   the last sector is wasted. Ignore the message.
   
   
8.18 mtools says cannot initialise drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manpage for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   discover which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers please note that this is *evil*.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see Q3.2 `How do I access files on my DOS
   partition or floppy ?'. Note--you should never use mtools to access
   files on an msdosfs mounted partition or disk !
   
   
8.19 At the start of booting: Memory tight

   This means that you have an extra large kernel that means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need (Q7.6 `How do I
   upgrade/recompile my kernel ?').
   
   
8.20 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this is a common indication
   of a hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one of my machines. Be sure that
   all electrical connections are clean and tight before placing the
   blame on the hard drive itself.
   
   
8.21 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   
   
9. The X Window System.

   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.2, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard to do--read the instructions that came with
   XFree86, in /usr/X11R6/lib/X11/etc. The file you probably most need to
   look at is README.Config.
   
   You should *not* use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is now obsolete and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   XFree86 3.1 fixes this problem.
   
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least 3 months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear (Q13.1
   `Feedback is invited').
   
   
10.1 Emacs just dumps core.

   You probably have a version of Emacs that was compiled to work with
   X11; this requires the X11 libraries to work. If you're using
   Slackware you can change the /usr/bin/emacs symbolic link to point to
   emacs-19.29-no-x11 instead (see man ln). This is in the file
   emac_nox.tgz on Slackware 3.0's E6 disk.
   
   
10.2 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix file system, which cannot
   use more than 64Mb per parition. This limitation is not present in the
   more advanced file systems now available, such as ext2fs (the 2nd
   version of the Extended File System, the `standard' Linux file
   system).
   
   If you intend to use ext2fs you can ignore the message.
   
   
10.3 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug which made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   
   
11. How to get further assistance.

   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions ?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at kiesling@terracom.net>.
   
   Read the appropriate Linux Documentation Project books--see Q2.1
   `Where can I get the HOWTOs and other documentation ?'.
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the mail-server@rtfm.mit.edu> can send
   you these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manpages (type man man if you don't
   know about manpages. Try man -k subject>-- it often lists useful and
   relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and reinstall it
   -- perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert and/or fellow user reading it will have enough
   information and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (MCC, Slackware, Debian or
       whatever) and what version of that release.
     * The *exact* and *complete* text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this noone who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by the readers
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   
   
12. Administrative information and acknowledgements.

   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to kiesling@terracom.net>.
   
   If you wish to refer to a question(s) in the FAQ it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patchfiles--I write the FAQ in a
   different internal format anyway, so I can't use a patchfile.
   
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an HTML World Wide
   Web page, PostScript, and as a USENET news posting.
   
   All of these formats are generated from SGML source using SGML Tools
   and the LinuxDoc DTD.
   
   The HTML version of this FAQ is available as
   http://sunsite.unc.edu/LDP/ at other sites.
   
   The Usenet version is posted regularly to comp.os.linux.announce,
   comp.answers, and news.answers.
   
   The most recent text, HTML, source, and PostScript versions are
   available from the Linux archives at sunsite.unc.edu, and from
   url="http://www.terracom.net/&nbspkiesling"
   name="http://www.terracom.net/&nbspkiesling">
   
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled and maintained by Robert Kiesling
   kiesling@terracom.net>, with assistance and comments from Linux
   activists all over the world.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, used to coordinate
   the HOWTOs, and has written substantial portions of many of them, Greg
   Hankins and Timothy Bynum, the former and current HOWTO maintainers,
   Lars Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, to Marc-Michel Corsini, who wrote the original
   Linux FAQ, and to Ian Jackson, the previous FAQ maintainer.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to talk about!
   
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   *not* warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is copyright (C) 1997,
   copyright of the Linux Documentation Project. The full text of the LDP
   copyright is available via anonymous FTP from sunsite.unc.edu, in the
   directory /pub/Linux/docs/LDP, and is included below.
   
   Portions are Copyright (c) 1994, 1995, 1996 by Ian Jackson, the
   previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at
   kiesling@terracom.net. As the license below says, these
   restrictions are here to protect the contributors, not to restrict you
   as educators and learners.
   
   LINUX DOCUMENTATION PROJECT COPYING LICENSE
   
   Last modified 6 January 1997
   
   The following copyright license applies to all works by the Linux
   Documentation Project.
   
   Please read the license carefully---it is somewhat like the GNU
   General Public License, but there are several conditions in it that
   differ from what you may be used to. If you have any questions, please
   email the LDP coordinator, mdw@sunsite.unc.edu.
   
   The Linux Documentation Project manuals may be reproduced and
   distributed in whole or in part, subject to the following conditions:
   
   All Linux Documentation Project manuals are copyrighted by their
   respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN. * The copyright
   notice above and this permission notice must be preserved complete on
   all complete or partial copies. * Any translation or derivative work
   of Linux Installation and Getting Started must be approved by the
   author in writing before distribution. * If you distribute Linux
   Installation and Getting Started in part, instructions for obtaining
   the complete version of this manual must be included, and a means for
   obtaining a complete version provided. * Small portions may be
   reproduced as illustrations for reviews or quotes in other works
   without this permission notice if proper citation is given. * The GNU
   General Public License referenced below may be reproduced under the
   conditions given within it.
   
   Exceptions to these rules may be granted for academic purposes: Write
   to the author and ask. These restrictions are here to protect us as
   authors, not to restrict you as educators and learners. All source
   code in Linux Installation and Getting Started is placed under the GNU
   General Public License, available via anonymous FTP from the GNU
   archive site.
   
   PUBLISHING LDP MANUALS
   
   If you're a publishing company interested in distributing any of the
   LDP manuals, read on.
   
   By the license given in the previous section, anyone is allowed to
   publish and distribute verbatim copies of the Linux Documentation
   Project manuals. You don't need our explicit permission for this.
   However, if you would like to distribute a translation or derivative
   work based on any of the LDP manuals, you must obtain permission from
   the author, in writing, before doing so.
   
   All translations and derivative works of LDP manuals must be placed
   under the Linux Documentation License given in the previous section.
   That is, if you plan to release a translation of one of the manuals,
   it must be freely distributable by the above terms.
   
   You may, of course, sell the LDP manuals for profit. We encourage you
   to do so. Keep in mind, however, that because the LDP manuals are
   freely distributable, anyone may photocopy or distribute printed
   copies free of charge, if they wish to do so.
   
   We do not require to be paid royalties for any profit earned from
   selling LDP manuals. However, we would like to suggest that if you do
   sell LDP manuals for profit, that you either offer the author
   royalties, or donate a portion of your earnings to the author, the LDP
   as a whole, or to the Linux development community. You may also wish
   to send one or more free copies of the LDP manual that you are
   distributing to the author. Your show of support for the LDP and the
   Linux community will be very appreciated.
   
   We would like to be informed of any plans to publish or distribute LDP
   manuals, just so we know how they're becoming available. If you are
   publishing or planning to publish any LDP manuals, please send email
   to Matt Welsh (email mdw@sunsite.unc.edu).
   
   We encourage Linux software distributors to distribute the LDP manuals
   (such as the Installation and Getting Started Guide) with their
   software. The LDP manuals are intended to be used as the "official"
   Linux documentation, and we'd like to see mail-order distributors
   bundling the LDP manuals with the software. As the LDP manuals mature,
   hopefully they will fulfill this goal more adequately.
   
   Matt Welsh, mdw@sunsite.unc.edu
   


-- 

Robert Kiesling
kiesling@terracom.net
..No writing gig too small...



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-08-04  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-08-04  4:00 UTC (permalink / raw)


Archive-Name: linux/faq/part3
Posting-Frequency: weekly

7.20 How should I pronounce Linux?

   This is a matter of religious debate, of course!
   
   If you want to hear Linus himself say how he pronounces it download
   english.au or swedish.au from ftp.funet.fi (in
   /pub/OS/Linux/PEOPLE/Linus/SillySounds). If you have a soundcard or
   the PC-speaker audio driver you can hear them by typing

   cat english.au >/dev/audio

   The difference isn't in the pronunciation of Linux but in the language
   Linus uses to say hello.
   
   For the benefit of those of you who don't have the equipment or
   inclination: Linus pronounces Linux approximately as Leenus, where the
   ee is as in feet but rather shorter and the u is like a much shorter
   version of the French eu sound in peur (pronouncing it as the u in put
   is probably passable).
   
   
   
8. Frequently encountered error messages.

   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type has changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   
8.2 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels this message reads lp1 reported invalid error status
   (on fire, eh?).
   
   
8.3 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities; the new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs; see
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   
8.4 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   
8.5 GCC says Internal compiler error.

   If the fault is repeatable (ie, it always happens at the same place in
   the same file--even after rebooting and trying again, using a stable
   kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see make says Error 139.
   
   
8.6 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see My machine runs very slowly
   when I run GCC / X / ....
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester--much better than
   DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with math emulation ( How do I
   upgrade/recompile my kernel?.) You may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use math
   emulation, or it may be able to work and still use the '387, with the
   math emulation compiled in but mainly unused.
   
   Much more information about this problem is available on the WWW at
   http://einstein.et.tudelft.nl/&nbspwolff/sig11/.
   
   
8.7 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manpage for
   chmod or a book on Unix for how to fix the problem.
   
   
8.8 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See Q6.11 `I have screwed up my
   system and can't log in to fix it.' for how to be able to do this.
   Note that utmp may also be found in /var/adm/utmp or /etc/utmp on some
   older systems.
   
   
8.9 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time filesystem
   checks. It will work fine with older kernels as well, so there's no
   need to keep the old update around.
   
   
8.10 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   
8.11 EXT2-fs: warning: mounting unchecked filesystem.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a filesystem that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root filesystem readonly
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root filesystem is still read-only
   and this will otherwise cause it to fail!
   
   
8.12 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a filesystem
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   
8.13 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a filesystem based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   
8.14 df says Cannot read table of mounted filesystems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   
8.15 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered beyond 1024
   this is because standard DOS disk geometry information format in the
   partition table can't cope with cylinder numbers with more than 10
   bits. You should see Q4.1 `How can I get Linux to work with my large
   disk ?'.
   
   
8.16 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately if
   you've already installed your system there's not much you can do about
   this, apart from copying the data off the partition, deleting and
   remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all good FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   * Create partition 1 in the normal way. A p listing will produce the
   mismatch complaint.
   
   * Type u to set sector mode and do p again. Copy down the number from
   the "End" column.
   
   * Delete partition 1.
   
   * While still in sector mode recreate partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the p output. Set the last sector to the
   value you wrote down in the step above.
   
   * Type u to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors - they refer to the
   sectors on the first track apart from the Master Boot Record, which
   are not used if you start the first partition in track 2.
   
   
8.17 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors
   the last sector is wasted. Ignore the message.
   
   
8.18 mtools says cannot initialise drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manpage for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   discover which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers please note that this is *evil*.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see Q3.2 `How do I access files on my DOS
   partition or floppy ?'. Note--you should never use mtools to access
   files on an msdosfs mounted partition or disk !
   
   
8.19 At the start of booting: Memory tight

   This means that you have an extra large kernel that means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need (Q7.6 `How do I
   upgrade/recompile my kernel ?').
   
   
8.20 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this is a common indication
   of a hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one of my machines. Be sure that
   all electrical connections are clean and tight before placing the
   blame on the hard drive itself.
   
   
8.21 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   
   
9. The X Window System.

   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.2, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard to do--read the instructions that came with
   XFree86, in /usr/X11R6/lib/X11/etc. The file you probably most need to
   look at is README.Config.
   
   You should *not* use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is now obsolete and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   XFree86 3.1 fixes this problem.
   
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least 3 months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear (Q13.1
   `Feedback is invited').
   
   
10.1 Emacs just dumps core.

   You probably have a version of Emacs that was compiled to work with
   X11; this requires the X11 libraries to work. If you're using
   Slackware you can change the /usr/bin/emacs symbolic link to point to
   emacs-19.29-no-x11 instead (see man ln). This is in the file
   emac_nox.tgz on Slackware 3.0's E6 disk.
   
   
10.2 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix filesystem, which cannot use
   more than 64Mb per parition. This limitation is not present in the
   more advanced filesystems now available, such as ext2fs (the 2nd
   version of the Extended Filesystem, the `standard' Linux filesystem).
   
   If you intend to use ext2fs you can ignore the message.
   
   
10.3 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug which made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   
   
11. How to get further assistance.

   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions ?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at kiesling@terracom.net>.
   
   Read the appropriate Linux Documentation Project books--see Q2.1
   `Where can I get the HOWTOs and other documentation ?'.
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the mail-server@rtfm.mit.edu> can send
   you these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manpages (type man man if you don't
   know about manpages. Try man -k subject>-- it often lists useful and
   relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and reinstall it
   -- perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert and/or fellow user reading it will have enough
   information and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (MCC, Slackware, Debian or
       whatever) and what version of that release.
     * The *exact* and *complete* text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this noone who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by the readers
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   
   
12. Administrative information and acknowledgements.

   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to kiesling@terracom.net>.
   
   If you wish to refer to a question(s) in the FAQ it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patchfiles--I write the FAQ in a
   different internal format anyway, so I can't use a patchfile.
   
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an HTML World Wide
   Web page, PostScript, and as a USENET news posting.
   
   All of these formats are generated from SGML source using SGML Tools
   and the LinuxDoc DTD.
   
   The HTML version of this FAQ is available as
   http://sunsite.unc.edu/LDP/ at other sites.
   
   The Usenet version is posted regularly to comp.os.linux.announce,
   comp.answers, and news.answers.
   
   The most recent text, HTML, source, and PostScript versions are
   available from the Linux archives at sunsite.unc.edu, and from
   url="http://www.terracom.net/&nbspkiesling"
   name="http://www.terracom.net/&nbspkiesling">
   
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled and maintained by Robert Kiesling
   kiesling@terracom.net>, with assistance and comments from Linux
   activists all over the world.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, used to coordinate
   the HOWTOs, and has written substantial portions of many of them, Greg
   Hankins and Timothy Bynum, the former and current HOWTO maintainers,
   Lars Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, to Marc-Michel Corsini, who wrote the original
   Linux FAQ, and to Ian Jackson, the previous FAQ maintainer.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to talk about!
   
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   *not* warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is copyright (C) 1997,
   copyright of the Linux Documentation Project. The full text of the LDP
   copyright is available via anonymous FTP from sunsite.unc.edu, in the
   directory /pub/Linux/docs/LDP, and is included below.
   
   Portions are Copyright (c) 1994, 1995, 1996 by Ian Jackson, the
   previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at
   kiesling@terracom.net. As the license below says, these
   restrictions are here to protect the contributors, not to restrict you
   as educators and learners.
   
   LINUX DOCUMENTATION PROJECT COPYING LICENSE
   
   Last modified 6 January 1997
   
   The following copyright license applies to all works by the Linux
   Documentation Project.
   
   Please read the license carefully---it is somewhat like the GNU
   General Public License, but there are several conditions in it that
   differ from what you may be used to. If you have any questions, please
   email the LDP coordinator, mdw@sunsite.unc.edu.
   
   The Linux Documentation Project manuals may be reproduced and
   distributed in whole or in part, subject to the following conditions:
   
   All Linux Documentation Project manuals are copyrighted by their
   respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN. * The copyright
   notice above and this permission notice must be preserved complete on
   all complete or partial copies. * Any translation or derivative work
   of Linux Installation and Getting Started must be approved by the
   author in writing before distribution. * If you distribute Linux
   Installation and Getting Started in part, instructions for obtaining
   the complete version of this manual must be included, and a means for
   obtaining a complete version provided. * Small portions may be
   reproduced as illustrations for reviews or quotes in other works
   without this permission notice if proper citation is given. * The GNU
   General Public License referenced below may be reproduced under the
   conditions given within it.
   
   Exceptions to these rules may be granted for academic purposes: Write
   to the author and ask. These restrictions are here to protect us as
   authors, not to restrict you as educators and learners. All source
   code in Linux Installation and Getting Started is placed under the GNU
   General Public License, available via anonymous FTP from the GNU
   archive site.
   
   PUBLISHING LDP MANUALS
   
   If you're a publishing company interested in distributing any of the
   LDP manuals, read on.
   
   By the license given in the previous section, anyone is allowed to
   publish and distribute verbatim copies of the Linux Documentation
   Project manuals. You don't need our explicit permission for this.
   However, if you would like to distribute a translation or derivative
   work based on any of the LDP manuals, you must obtain permission from
   the author, in writing, before doing so.
   
   All translations and derivative works of LDP manuals must be placed
   under the Linux Documentation License given in the previous section.
   That is, if you plan to release a translation of one of the manuals,
   it must be freely distributable by the above terms.
   
   You may, of course, sell the LDP manuals for profit. We encourage you
   to do so. Keep in mind, however, that because the LDP manuals are
   freely distributable, anyone may photocopy or distribute printed
   copies free of charge, if they wish to do so.
   
   We do not require to be paid royalties for any profit earned from
   selling LDP manuals. However, we would like to suggest that if you do
   sell LDP manuals for profit, that you either offer the author
   royalties, or donate a portion of your earnings to the author, the LDP
   as a whole, or to the Linux development community. You may also wish
   to send one or more free copies of the LDP manual that you are
   distributing to the author. Your show of support for the LDP and the
   Linux community will be very appreciated.
   
   We would like to be informed of any plans to publish or distribute LDP
   manuals, just so we know how they're becoming available. If you are
   publishing or planning to publish any LDP manuals, please send email
   to Matt Welsh (email mdw@sunsite.unc.edu).
   
   We encourage Linux software distributors to distribute the LDP manuals
   (such as the Installation and Getting Started Guide) with their
   software. The LDP manuals are intended to be used as the "official"
   Linux documentation, and we'd like to see mail-order distributors
   bundling the LDP manuals with the software. As the LDP manuals mature,
   hopefully they will fulfill this goal more adequately.
   
   Matt Welsh, mdw@sunsite.unc.edu
   





-- 

Robert Kiesling
kiesling@terracom.net
..No writing gig too small...



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-06-13  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-06-13  4:00 UTC (permalink / raw)



Archive-Name: linux/faq/part3
Posting-Frequency: monthly
   
   If you find that gzip complains when you try to uncompress a gzipped
   file you probably downloaded it in ASCII mode by mistake. You must
   download most things in binary mode - remember to type binary as a
   command in FTP before using get to get the file.
   
   ----------------------------------------------------------------------
   
7.16 What does VFS stand for?

   Virtual File System. It's the abstraction layer between the user and
   real filesystems like ext2, minix and msdos. Amongst other things, its
   job is to flush the read buffer when it detects a disk change on the
   floppy disk drive:

   VFS: Disk change detected on device 2/0

   ----------------------------------------------------------------------
   
7.17 What is a BogoMip?

   `BogoMips' is a contraction of `Bogus MIPS'. MIPS stands for
   (depending who you listen to) Millions of Instructions per Second, or
   Meaningless Indication of Processor Speed.
   
   The number printed at boot-time is the result of a kernel timing
   calibration, used for very short delay loops by some device drivers.
   
   As a very rough guide the BogoMips will be approximately:
     386SX              clock * 0.14
     386DX              clock * 0.18
     486Cyrix/IBM       clock * 0.33
     486SX/DX/DX2       clock * 0.50
     586                clock * 0.39

   If the number you're seeing is wildly lower than this you may have the
   Turbo button or CPU speed set incorrectly, or have some kind of
   caching problem (as described in Q6.5 `When I add more memory it slows
   to a crawl.'.)
   
   For values people have seen with other, rarer, chips, see the BogoMips
   Mini-HOWTO, on sunsite.unc.edu in /pub/Linux/docs/howto/mini/BogoMips.
   
   ----------------------------------------------------------------------
   
7.18 What is the Linux Journal and where can I get it?

   Linux Journal is a monthly magazine (printed on paper) that is
   available on newsstands and via subscription worldwide. Email <
   linux@ssc.com> for details. Their URL is http://www.ssc.com/.
   
   ----------------------------------------------------------------------
   
7.19 How many people use Linux?

   Linux is freely available, and no one is required to register their
   copies with any central authority, so it is difficult to know. Several
   businesses are now surviving solely on selling and supporting Linux,
   and very few Linux users use those businesses, relatively speaking.
   The Linux newsgroups are some of the most heavily read on the Net, so
   the number is likely in the hundreds of thousands, but firm numbers
   are hard to come by.
   
   However, one brave soul, Harald T. Alvestrand <
   Harald.T.Alvestrand@uninett.no>, has decided to try, and asks that if
   you use Linux, you send a message to < linux-counter@uninett.no> with
   one of the following subjects: `I use Linux at home', `I use Linux at
   work', or `I use Linux at home and at work'. He will also accept
   `third-party' registrations--ask him for details.
   
   Alternatively, you can register using the WWW forms found at
   http://domen.uninett.no/&nbsphta/linux/counter.html.
   
   He posts his counts to comp.os.linux.misc each month; alternatively
   look on aun.uninett.no in /pub/misc/linux-counter or at the web page
   above.
   
   ----------------------------------------------------------------------
   
7.20 How should I pronounce Linux?

   This is a matter of religious debate, of course!
   
   If you want to hear Linus himself say how he pronounces it download
   english.au or swedish.au from ftp.funet.fi (in
   /pub/OS/Linux/PEOPLE/Linus/SillySounds). If you have a soundcard or
   the PC-speaker audio driver you can hear them by typing

   cat english.au >/dev/audio

   The difference isn't in the pronunciation of Linux but in the language
   Linus uses to say hello. The English version was parodied very well by
   Jin Choi as "Hi, my name is Leenoos Torvahlds and I pronounce Leenooks
   as Leenooks."
   
   For the benefit of those of you who don't have the equipment or
   inclination: Linus pronounces Linux approximately as Leenus, where the
   ee is as in feet but rather shorter and the u is like a much shorter
   version of the French eu sound in peur (pronouncing it as the u in put
   is probably passable).
   
   When speaking English I pronounce it Lie-nucks (u as in bucket) ---
   this is an anglicised pronunciation based on the analogy with Linus'
   name, which in English is usually pronounced Lie-nus (u as in put). It
   is of course quite acceptable and common to modify the pronunciation
   of a proper noun when it changes languages.
   
   I think I can safely say that the pronunciation Linnucks (short i as
   in pit, short u as in bucket) is wrong in English, as it is not the
   original Swedish pronunciation, not a sensible direct anglicisation of
   it, and not based on the anglicised version of Linus' name.
   
   ======================================================================
   
8. Frequently encountered error messages.

   ----------------------------------------------------------------------
   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type has changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   ----------------------------------------------------------------------
   
8.2 During linking I get Undefined symbol mcount

   This is usually due to a bad interaction between a brokenness in SLS
   and the C library release notes. Your libc.a has been replaced by the
   profiling library. You should remove libc.a, libg.a and libc_p.a and
   once again install the new libraries (following the release notes, of
   course).
   
   ----------------------------------------------------------------------
   
8.3 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels this message reads lp1 reported invalid error status
   (on fire, eh?).
   
   ----------------------------------------------------------------------
   
8.4 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities; the new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs; see
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   ----------------------------------------------------------------------
   
8.5 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   ----------------------------------------------------------------------
   
8.6 GCC says Internal compiler error.

   If the fault is repeatable (ie, it always happens at the same place in
   the same file--even after rebooting and trying again, using a stable
   kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see Q9.7 `make says Error 139'.
   
   ----------------------------------------------------------------------
   
8.7 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see Q6.8 `My machine runs very
   slowly when I run GCC / X / ...' for more info.
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester --- much better
   than DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with maths emulation Q7.6 `How do I
   upgrade/recompile my kernel ?'; you may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use it, or
   it may be able to work and still use the 387, with the maths emulation
   compiled in but mainly unused.
   
   Much more information about this problem is available on the WWW at
   http://einstein.et.tudelft.nl/&nbspwolff/sig11/.
   
   ----------------------------------------------------------------------
   
8.8 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manpage for
   chmod or a book on Unix for how to fix the problem.
   
   ----------------------------------------------------------------------
   
8.9 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See Q6.11 `I have screwed up my
   system and can't log in to fix it.' for how to be able to do this.
   Note that utmp may also be found in /var/adm/utmp or /etc/utmp on some
   older systems.
   
   ----------------------------------------------------------------------
   
8.10 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time filesystem
   checks. It will work fine with older kernels as well, so there's no
   need to keep the old update around.
   
   ----------------------------------------------------------------------
   
8.11 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   ----------------------------------------------------------------------
   
8.12 EXT2-fs: warning: mounting unchecked filesystem.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a filesystem that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root filesystem readonly
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root filesystem is still read-only
   and this will otherwise cause it to fail!
   
   ----------------------------------------------------------------------
   
8.13 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a filesystem
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   ----------------------------------------------------------------------
   
8.14 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a filesystem based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   ----------------------------------------------------------------------
   
8.15 df says Cannot read table of mounted filesystems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   ----------------------------------------------------------------------
   
8.16 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered beyond 1024
   this is because standard DOS disk geometry information format in the
   partition table can't cope with cylinder numbers with more than 10
   bits. You should see Q4.1 `How can I get Linux to work with my large
   disk ?'.
   
   ----------------------------------------------------------------------
   
8.17 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately if
   you've already installed your system there's not much you can do about
   this, apart from copying the data off the partition, deleting and
   remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all good FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   1. Create partition 1 in the normal way. A p listing will produce the
   mismatch complaint.
   
   2. Type u to set sector mode and do p again. Copy down the number from
   the "End" column.
   
   3. Delete partition 1.
   
   4. While still in sector mode recreate partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the p output. Set the last sector to the
   value noted in 2. above.
   
   5. Type u to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors - they refer to the
   sectors on the first track apart from the Master Boot Record, which
   are not used if you start the first partition in track 2.
   
   ----------------------------------------------------------------------
   
8.18 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors
   the last sector is wasted. Ignore the message.
   
   ----------------------------------------------------------------------
   
8.19 mtools says cannot initialise drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manpage for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   discover which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers please note that this is *evil*.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see Q3.2 `How do I access files on my DOS
   partition or floppy ?'. Note--you should never use mtools to access
   files on an msdosfs mounted partition or disk !
   
   ----------------------------------------------------------------------
   
8.20 At the start of booting: Memory tight

   This means that you have an extra large kernel that means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need (Q7.6 `How do I
   upgrade/recompile my kernel ?').
   
   ----------------------------------------------------------------------
   
8.21 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this is a common indication
   of a hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one of my machines. Be sure that
   all electrical connections are clean and tight before placing the
   blame on the hard drive itself.
   
   ----------------------------------------------------------------------
   
8.22 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   ======================================================================
   
9. The X Window System.

   ----------------------------------------------------------------------
   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.2, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   ----------------------------------------------------------------------
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard to do--read the instructions that came with
   XFree86, in /usr/X11R6/lib/X11/etc. The file you probably most need to
   look at is README.Config.
   
   You should *not* use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is now obsolete and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   ----------------------------------------------------------------------
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   XFree86 3.1 fixes this problem.
   
   ----------------------------------------------------------------------
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   ======================================================================
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least 3 months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear (Q13.1
   `Feedback is invited').
   
   ----------------------------------------------------------------------
   
10.1 Emacs just dumps core.

   You probably have a version of Emacs that was compiled to work with
   X11; this requires the X11 libraries to work. If you're using
   Slackware you can change the /usr/bin/emacs symbolic link to point to
   emacs-19.29-no-x11 instead (see man ln). This is in the file
   emac_nox.tgz on Slackware 3.0's E6 disk.
   
   ----------------------------------------------------------------------
   
10.2 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix filesystem, which cannot use
   more than 64Mb per parition. This limitation is not present in the
   more advanced filesystems now available, such as ext2fs (the 2nd
   version of the Extended Filesystem, the `standard' Linux filesystem).
   
   If you intend to use ext2fs you can ignore the message.
   
   ----------------------------------------------------------------------
   
10.3 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug which made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   ----------------------------------------------------------------------
   
10.4 My keyboard goes all funny after I switch VC's.

   This is a bug in kernel versions before 0.99pl14-alpha-n. Sometimes
   Linux loses track of what modifier keys (Shift, Alt, Control etc.) are
   pressed or not, and believes that one or more are pressed when they
   are not. The solution is to press and release each of the modifier
   keys (without pressing any other keys)--this will ensure that Linux
   knows what state the keyboard is actually in.
   
   This problem often occurs when switching out of X windows; it can
   sometimes be avoided by releasing Ctrl and Alt very quickly after
   pressing the F-key of the VC you are switching to.
   
   ======================================================================
   
11. How to get further assistance.

   ----------------------------------------------------------------------
   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions ?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at < kiesling@terracom.net>.
   
   Read the appropriate Linux Documentation Project books--see Q2.1
   `Where can I get the HOWTOs and other documentation ?'.
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the < mail-server@rtfm.mit.edu> can send you
   these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manpages (type man man if you don't
   know about manpages. Try man -k <subject>-- it often lists useful and
   relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and reinstall it
   -- perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   ----------------------------------------------------------------------
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert and/or fellow user reading it will have enough
   information and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (MCC, Slackware, Debian or
       whatever) and what version of that release.
     * The *exact* and *complete* text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this noone who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by the readers
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   ----------------------------------------------------------------------
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   ======================================================================
   
12. Administrative information and acknowledgements.

   ----------------------------------------------------------------------
   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to < kiesling@terracom.net>.
   
   If you wish to refer to a question(s) in the FAQ it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patchfiles--I write the FAQ in a
   different internal format anyway, so I can't use a patchfile.
   
   ----------------------------------------------------------------------
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an Emacs Info
   document, an HTML World Wide Web page, PostScript and as a USENET news
   posting.
   
   The ASCII, Emacs Info, HTML and posted versions and a Lout typesetter
   file (from which the PostScript is produced) are generated
   automatically by a Perl script which takes as input a file in the
   Bizarre Format with No Name.
   
   The output files linux-faq.ascii, .info and .ps and a tarfile
   linux-faq.source.tar.gz, containing the BFNN source and Perl script
   converter, are available in the docs directories of the major Linux
   FTP sites.
   
   The HTML version of this FAQ is available as
   http://www.cl.cam.ac.uk/users/iwj10/linux-faq/index.html and is
   mirrored at www.li.org and other sites.
   
   The USENET version is posted regularly to comp.os.linux.announce,
   comp.os.linux.answers, comp.answers and news.answers.
   
   ----------------------------------------------------------------------
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled by Robert Kiesling < kiesling@terracom.net>, with
   assistance and comments from others too numerous to mention.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, used to coordinate
   the HOWTOs, and has written substantial portions of many of them, Greg
   Hankins and Timothy Bynum, the former and current HOWTO maintainers,
   Lars Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, to Marc-Michel Corsini, who wrote the original
   Linux FAQ, and to Ian Jackson, the previous FAQ maintainer.
   
   Thanks also to the many people who have sent comments and suggestions.
   They are too numerous to list here but their contributions are
   invaluable.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to write about!
   
   ----------------------------------------------------------------------
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   *not* warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is copyright (C) 1997 by
   Robert Kiesling < kiesling@terracom.net>. Portions are Copyright 1994,
   1995, 1996 by Ian Jackson, the previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at <
   kiesling@terracom.net>. These restrictions are here to protect the
   contributors, not to restrict you as educators and learners.

-- 

Robert Kiesling

kiesling@terracom.net



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Linux Frequently Asked Questions with Answers (Part 3 of 3)
@ 1998-05-19  4:00 kiesling
  0 siblings, 0 replies; 8+ messages in thread
From: kiesling @ 1998-05-19  4:00 UTC (permalink / raw)



Archive-Name: linux/faq/part3
Posting-Frequency: monthly


   Linux is freely available, and no one is required to register their
   copies with any central authority, so it is difficult to know. Several
   businesses are now surviving solely on selling and supporting Linux,
   and very few Linux users use those businesses, relatively speaking.
   The Linux newsgroups are some of the most heavily read on the Net, so
   the number is likely in the hundreds of thousands, but firm numbers
   are hard to come by.
   
   However, one brave soul, Harald T. Alvestrand <
   Harald.T.Alvestrand@uninett.no>, has decided to try, and asks that if
   you use Linux, you send a message to < linux-counter@uninett.no> with
   one of the following subjects: `I use Linux at home', `I use Linux at
   work', or `I use Linux at home and at work'. He will also accept
   `third-party' registrations--ask him for details.
   
   Alternatively, you can register using the WWW forms found at
   http://domen.uninett.no/&nbsphta/linux/counter.html.
   
   He posts his counts to comp.os.linux.misc each month; alternatively
   look on aun.uninett.no in /pub/misc/linux-counter or at the web page
   above.
   
   ----------------------------------------------------------------------
   
7.20 How should I pronounce Linux?

   This is a matter of religious debate, of course!
   
   If you want to hear Linus himself say how he pronounces it download
   english.au or swedish.au from ftp.funet.fi (in
   /pub/OS/Linux/PEOPLE/Linus/SillySounds). If you have a soundcard or
   the PC-speaker audio driver you can hear them by typing

   cat english.au >/dev/audio

   The difference isn't in the pronunciation of Linux but in the language
   Linus uses to say hello. The English version was parodied very well by
   Jin Choi as "Hi, my name is Leenoos Torvahlds and I pronounce Leenooks
   as Leenooks."
   
   For the benefit of those of you who don't have the equipment or
   inclination: Linus pronounces Linux approximately as Leenus, where the
   ee is as in feet but rather shorter and the u is like a much shorter
   version of the French eu sound in peur (pronouncing it as the u in put
   is probably passable).
   
   When speaking English I pronounce it Lie-nucks (u as in bucket) ---
   this is an anglicised pronunciation based on the analogy with Linus'
   name, which in English is usually pronounced Lie-nus (u as in put). It
   is of course quite acceptable and common to modify the pronunciation
   of a proper noun when it changes languages.
   
   I think I can safely say that the pronunciation Linnucks (short i as
   in pit, short u as in bucket) is wrong in English, as it is not the
   original Swedish pronunciation, not a sensible direct anglicisation of
   it, and not based on the anglicised version of Linus' name.
   
   ======================================================================
   
8. Frequently encountered error messages.

   ----------------------------------------------------------------------
   
8.1 Unknown terminal type linux and similar.

   In an early 1.3.x kernel the default console terminal type has changed
   from console to linux. You must edit /etc/termcap to change the line
   reading:

   console|con80x25:\

   to
   linux|console|con80x25:\

   (there may be an additional dumb in there--if so it should be
   removed.)
   
   In order to get the editor to work you may need say TERM=console (for
   bash and ksh) or setenv TERM console (csh, tcsh) first.
   
   Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
   programs you should upgrade your terminfo, which is part of ncurses.
   
   ----------------------------------------------------------------------
   
8.2 During linking I get Undefined symbol mcount

   This is usually due to a bad interaction between a brokenness in SLS
   and the C library release notes. Your libc.a has been replaced by the
   profiling library. You should remove libc.a, libg.a and libc_p.a and
   once again install the new libraries (following the release notes, of
   course).
   
   ----------------------------------------------------------------------
   
8.3 lp1 on fire

   This is a joke/traditional error message indicating that some sort of
   error is being reported by your printer, but that the error status
   isn't a valid one. It may be that you have some kind of I/O or IRQ
   conflict - check your cards' settings. Some people report that they
   get this message when their printer is switched off. Hopefully it
   isn't really on fire ...
   
   In newer kernels this message reads lp1 reported invalid error status
   (on fire, eh?).
   
   ----------------------------------------------------------------------
   
8.4 INET: Warning: old style ioctl... called!

   You are trying to use the old network configuration utilities; the new
   ones can be found on ftp.linux.org.uk in
   /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid).
   
   Note that they cannot be used just like the old-style programs; see
   the NET-2 HOWTO for instructions on how to set up networking
   correctly.
   
   ----------------------------------------------------------------------
   
8.5 ld: unrecognized option '-m486'

   You have an old version of ld. Install a newer binutils package--this
   will contain an updated ld. Look on tsx-11.mit.edu in
   /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz.
   
   ----------------------------------------------------------------------
   
8.6 GCC says Internal compiler error.

   If the fault is repeatable (ie, it always happens at the same place in
   the same file--even after rebooting and trying again, using a stable
   kernel) you have discovered a bug in GCC. See the GCC Info
   documentation (type Control-h i in Emacs, and select GCC from the
   menu) for details on how to report this--make sure you have the latest
   version though.
   
   Note that this is probably not a Linux-specific problem; unless you
   were compiling a program many other Linux users also compile you
   should not post your bug report to any of the comp.os.linux groups.
   
   If the problem is not repeatable you are very probably experiencing
   memory corruption--see Q9.7 `make says Error 139'.
   
   ----------------------------------------------------------------------
   
8.7 make says Error 139

   Your compiler driver (gcc) dumped core. You probably have a corrupted,
   buggy or old version of GCC--get the latest release. Alternatively you
   may be running out of swap space--see Q6.8 `My machine runs very
   slowly when I run GCC / X / ...' for more info.
   
   If this doesn't fix the problem you are probably having problems with
   memory or disk corruption. Check that the clock rate, wait states and
   refresh timing for your SIMMs and cache are correct (hardware manuals
   are sometimes wrong, too). If so you may have some dodgy SIMMs or a
   faulty motherboard or hard disk or controller.
   
   Linux, like any Unix, is a very good memory tester --- much better
   than DOS-based memory test programs.
   
   Reportedly some clone x87 maths coprocessors can cause problems; try
   compiling a kernel with maths emulation Q7.6 `How do I
   upgrade/recompile my kernel ?'; you may need to use the no387 kernel
   command line flag on the LILO prompt to force the kernel to use it, or
   it may be able to work and still use the 387, with the maths emulation
   compiled in but mainly unused.
   
   Much more information about this problem is available on the WWW at
   http://einstein.et.tudelft.nl/&nbspwolff/sig11/.
   
   ----------------------------------------------------------------------
   
8.8 shell-init: permission denied when I log in.

   Your root directory and all the directories up to your home directory
   must be readable and executable by everybody. See the manpage for
   chmod or a book on Unix for how to fix the problem.
   
   ----------------------------------------------------------------------
   
8.9 No utmp entry. You must exec ... when I log in.

   Your /var/run/utmp is screwed up. You should have
   > /var/run/utmp

   in your /etc/rc.local or /etc/rc.d/*. See Q6.11 `I have screwed up my
   system and can't log in to fix it.' for how to be able to do this.
   Note that utmp may also be found in /var/adm/utmp or /etc/utmp on some
   older systems.
   
   ----------------------------------------------------------------------
   
8.10 Warning--bdflush not running.

   Modern kernels use a better strategy for writing cached disk blocks.
   In addition to the kernel changes, this involves replacing the old
   update program which used to write everything every 30 seconds with a
   more subtle daemon (actually a pair), known as bdflush.
   
   Get bdflush-n.n.tar.gz from the same place as the kernel source code
   (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and
   install it; it should be started before the usual boot-time filesystem
   checks. It will work fine with older kernels as well, so there's no
   need to keep the old update around.
   
   ----------------------------------------------------------------------
   
8.11 Warning: obsolete routing request made.

   This is nothing to worry about; it just means that the version of
   route you have is a little out of date compared to the kernel. You can
   make the message go away by getting a new version of route from the
   same place as the kernel source code (Q7.6 `How do I upgrade/recompile
   my kernel ?').
   
   ----------------------------------------------------------------------
   
8.12 EXT2-fs: warning: mounting unchecked filesystem.

   You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
   program) with the -a option to get it to clear the `dirty' flag, and
   then cleanly unmount the partition during each shutdown.
   
   The easiest way to do this is to get the latest fsck, umount and
   shutdown commands, available in Rik Faith's util-linux package (Q2.5
   `Where can I get Linux material by FTP?'). You have to make sure that
   your /etc/rc* scripts use them correctly.
   
   NB: don't try to check a filesystem that's mounted read-write--this
   includes the root partition if you don't see

   VFS: mounted root ... read-only

   at boot time. You must arrange to mount the root filesystem readonly
   to start with, check it if necessary, and then remount it read-write.
   Read the documentation that comes with util-linux to find out how to
   do this.
   
   Note that you need to specify the -n option to mount to get it not to
   try to update /etc/mtab, since the root filesystem is still read-only
   and this will otherwise cause it to fail!
   
   ----------------------------------------------------------------------
   
8.13 EXT2-fs warning: maximal count reached.

   This message is issued by the kernel when it mounts a filesystem
   that's marked as clean, but whose `number of mounts since check'
   counter has reached the predefined value. The solution is to get the
   latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the
   time of writing) from the usual sites (Q2.5 `Where can I get Linux
   material by FTP ?').
   
   The maximal number of mounts value can be examined and changed using
   the tune2fs program from this package.
   
   ----------------------------------------------------------------------
   
8.14 EXT2-fs warning: checktime reached.

   Kernels from 1.0 onwards support checking a filesystem based on the
   elapsed time since the last check as well as by the number of mounts.
   Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs
   warning: maximal count reached').
   
   ----------------------------------------------------------------------
   
8.15 df says Cannot read table of mounted filesystems.

   There is probably something wrong with your /etc/mtab or /etc/fstab
   files. If you have a reasonably new version of mount, /etc/mtab should
   be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*),
   using something like

   rm -f /etc/mtab*

   Some versions of SLS have an entry for the root partition in /etc/mtab
   made in /etc/rc* by using rdev. This is incorrect--the newer versions
   of mount do this automatically.
   
   Other versions of SLS have a line in /etc/fstab that looks like:
    /dev/sdb1   /root   ext2   defaults

   This is wrong. /root should read simply /.
   
   ----------------------------------------------------------------------
   
8.16 fdisk says Partition X has different physical/logical ...

   If the partition number (X, above) is 1 this is the same problem as
   Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'.
   
   If the partition begins or ends on a cylinder numbered beyond 1024
   this is because standard DOS disk geometry information format in the
   partition table can't cope with cylinder numbers with more than 10
   bits. You should see Q4.1 `How can I get Linux to work with my large
   disk ?'.
   
   ----------------------------------------------------------------------
   
8.17 fdisk: Partition 1 does not start on cylinder boundary

   The version of fdisk that comes with many Linux systems creates
   partitions that fail its own validity checking. Unfortunately if
   you've already installed your system there's not much you can do about
   this, apart from copying the data off the partition, deleting and
   remaking it, and copying the data back.
   
   You can avoid the problem by getting the latest version of fdisk, from
   Rik Faith's util-linux package (available on all good FTP sites).
   Alternatively, if you are creating a new partition 1 that starts in
   the first cylinder, you can do the following to get a partition that
   fdisk likes.
   
   1. Create partition 1 in the normal way. A p listing will produce the
   mismatch complaint.
   
   2. Type u to set sector mode and do p again. Copy down the number from
   the "End" column.
   
   3. Delete partition 1.
   
   4. While still in sector mode recreate partition 1. Set the first
   sector to match the number of sectors per track. This is the sector
   number in the first line of the p output. Set the last sector to the
   value noted in 2. above.
   
   5. Type u to reset cylinder mode and continue with other partitions.
   
   Ignore the message about unallocated sectors - they refer to the
   sectors on the first track apart from the Master Boot Record, which
   are not used if you start the first partition in track 2.
   
   ----------------------------------------------------------------------
   
8.18 fdisk says partition n has an odd number of sectors.

   The PC disk partitioning scheme works in 512-byte sectors, but Linux
   uses 1K blocks. If you have a partition with an odd number of sectors
   the last sector is wasted. Ignore the message.
   
   ----------------------------------------------------------------------
   
8.19 mtools says cannot initialise drive XYZ

   This means that mtools is having trouble accessing the drive. This can
   be due to several things.
   
   Often this is due to the permissions on floppy drive devices
   (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools
   must have the appropriate access. See the manpage for chmod for
   details.
   
   Most versions of mtools distributed with Linux systems (not the
   standard GNU version) use the contents of a file /etc/mtools to
   discover which devices and densities to use, in place of having this
   information compiled into the binary. Mistakes in this file often
   cause problems. There is often no documentation about
   this--distribution packagers please note that this is *evil*.
   
   For the easiest way to access your DOS files (especially those on a
   hard disk partition) see Q3.2 `How do I access files on my DOS
   partition or floppy ?'. Note--you should never use mtools to access
   files on an msdosfs mounted partition or disk !
   
   ----------------------------------------------------------------------
   
8.20 At the start of booting: Memory tight

   This means that you have an extra large kernel that means that Linux
   has to do some special memory-management magic to be able to boot
   itself from the BIOS. It isn't related to the amount of physical
   memory in your machine. Ignore the message, or compile a kernel
   containing only the drivers and features you need (Q7.6 `How do I
   upgrade/recompile my kernel ?').
   
   ----------------------------------------------------------------------
   
8.21 My syslog says `end_request: I/O error, ...'.

   Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ.
   
   This error message, and messages like it, almost always indicates a
   hardware error with a hard drive.
   
   Theodore T'so, tytso@mit.edu, noted that this is a common indication
   of a hard drive defect. The only way to avoid further data loss is to
   completely shut own the system. You must also make sure that the
   whatever data is on the drive is backed up, and restore it to a
   non-defective hard drive.
   
   This error message may also indicate a bad connection to the drive,
   especially with homebrew systems. If you install an IDE drive
   yourself, ALWAYS use new cables. This probably isn't a bad idea with
   SCSI drives, too.
   
   This error also seemed to coincide with a grounding problem between
   the system board and the chassis on one of my machines. Be sure that
   all electrical connections are clean and tight before placing the
   blame on the hard drive itself.
   
   ----------------------------------------------------------------------
   
8.22 You don't exist. Go away.

   This is not a viral infection :-). It comes from various programs such
   as write, talk and wall, if your invoking uid doesn't correspond to a
   valid user (probably due to /etc/passwd being corrupted), or if the
   session (pseudoterminal, specifically) you're using isn't properly
   registered in the utmp file (probably because you invoked it in a
   funny way).
   
   ======================================================================
   
9. The X Window System.

   ----------------------------------------------------------------------
   
9.1 Does Linux support X Windows?

   Yes. Linux uses XFree86 (the current version is 3.3.1, which is based
   on X11R6). You need to have a video card which is supported by
   XFree86. See the Linux XFree86 HOWTO for more details.
   
   Most Linux distributions nowadays come with an X installation.
   
   However, you can install or upgrade your own, from
   /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read
   the XFree86 HOWTO for installation instructions.
   
   ----------------------------------------------------------------------
   
9.2 Where can I get an XF86Config for my system?

   See the Linux XFree86 HOWTO.
   
   You'll need to put together your own XF86Config file, because it
   depends on the exact combination of video card and monitor you have.
   It's not that hard to do--read the instructions that came with
   XFree86, in /usr/X11R6/lib/X11/etc. The file you probably most need to
   look at is README.Config.
   
   You should *not* use the sample XF86Config.eg file which is included
   with newer versions of XFree86 verbatim, because the wrong video clock
   settings can damage your monitor.
   
   For a quick start, you may run the program xf86config. Note that
   ConfigXF86 is now obsolete and you shouldn't use it.
   
   Please don't post to comp.os.linux.x asking for an XF86Config, and
   please don't answer such requests.
   
   ----------------------------------------------------------------------
   
9.3 xterm logins show up strangely in who, finger.

   The xterm that comes with XFree86 2.1 and earlier doesn't correctly
   understand the format that Linux uses for the /var/adm/utmp file,
   where the system records who is logged in. It therefore doesn't set
   all the information correctly.
   
   XFree86 3.1 fixes this problem.
   
   ----------------------------------------------------------------------
   
9.4 I can't get X Windows to work right.

   Read the XFree86 HOWTO--note the question and answer section.
   
   Try reading comp.windows.x.i386unix--specifically read the the FAQ for
   that group.
   
   Please don't post X Windows or XFree86 related questions to
   comp.os.linux.x unless they are Linux-specific.
   
   ======================================================================
   
10. Questions applicable to very out-of-date software.

   The questions in this section are only relevant to users of software
   that is at least 3 months old.
   
   Please let me know if you find the answer to a problem you had here,
   as unused questions in this section will eventually disappear (Q13.1
   `Feedback is invited').
   
   ----------------------------------------------------------------------
   
10.1 Emacs just dumps core.

   You probably have a version of Emacs that was compiled to work with
   X11; this requires the X11 libraries to work. If you're using
   Slackware you can change the /usr/bin/emacs symbolic link to point to
   emacs-19.29-no-x11 instead (see man ln). This is in the file
   emac_nox.tgz on Slackware 3.0's E6 disk.
   
   ----------------------------------------------------------------------
   
10.2 fdisk says cannot use nnn sectors of this partition.

   Originally Linux only supported the Minix filesystem, which cannot use
   more than 64Mb per parition. This limitation is not present in the
   more advanced filesystems now available, such as ext2fs (the 2nd
   version of the Extended Filesystem, the `standard' Linux filesystem).
   
   If you intend to use ext2fs you can ignore the message.
   
   ----------------------------------------------------------------------
   
10.3 GCC sometimes uses huge amounts of virtual memory and thrashes.

   Older versions of GCC had a bug which made them use lots of memory if
   you tried to compile a program which had a large static data table in
   it.
   
   You can either upgrade your version of GCC to at least version 2.5, or
   add more swap if necessary and just grin and bear it; it'll work in
   the end.
   
   ----------------------------------------------------------------------
   
10.4 My keyboard goes all funny after I switch VC's.

   This is a bug in kernel versions before 0.99pl14-alpha-n. Sometimes
   Linux loses track of what modifier keys (Shift, Alt, Control etc.) are
   pressed or not, and believes that one or more are pressed when they
   are not. The solution is to press and release each of the modifier
   keys (without pressing any other keys)--this will ensure that Linux
   knows what state the keyboard is actually in.
   
   This problem often occurs when switching out of X windows; it can
   sometimes be avoided by releasing Ctrl and Alt very quickly after
   pressing the F-key of the VC you are switching to.
   
   ======================================================================
   
11. How to get further assistance.

   ----------------------------------------------------------------------
   
11.1 You still haven't answered my question!

   Please read all of this answer before posting. I know it's a bit long,
   but you may be about to make a fool of yourself in front of 50000
   people and waste hundreds of hours of their time. Don't you think it's
   worth it to spend some of your time reading and following these
   instructions ?
   
   If you think an answer is incomplete or inaccurate, please e-mail
   Robert Kiesling at < kiesling@terracom.net>.
   
   Read the appropriate Linux Documentation Project books--see Q2.1
   `Where can I get the HOWTOs and other documentation ?'.
   
   If you're a Unix newbie, read the FAQ for comp.unix.questions, and
   those for any of the other comp.unix.* groups that may be relevant.
   
   Linux is a Unix clone, so almost everything you read there will apply
   to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
   /pub/usenet/news.answers (the < mail-server@rtfm.mit.edu> can send you
   these files, if you don't have FTP access). There are mirrors of
   rtfm's FAQ archives on various sites - check the Introduction to
   *.answers posting, posted, or look in news-answers/introduction in the
   directory above.
   
   Check the relevant HOWTO for the subject in question, if there is one,
   or an appropriate old-style sub-FAQ document. Check the FTP sites.
   
   Try experimenting--that's the best way to get to know Unix and Linux.
   
   Read the documentation. Check the manpages (type man man if you don't
   know about manpages. Try man -k <subject>-- it often lists useful and
   relevant manpages.
   
   Check the Info documentation (type C-h i, i.e. Control H followed by I
   in Emacs)--NB: this isn't just for Emacs; for example the GCC
   documentation lives here as well.
   
   There will also often be a README file with a package that gives
   installation and/or usage instructions.
   
   Make sure that you don't have a corrupted or out-of-date copy of the
   program in question. If possible, download it again and reinstall it
   -- perhaps you made a mistake the first time.
   
   Read comp.os.linux.announce--this often contains very important
   information for all Linux users.
   
   General X-Windows questions belong in comp.windows.x.i386unix, not in
   comp.os.linux.x. But read the group first (including the FAQ), before
   you post!
   
   Only if you have done all of these things and are still stuck should
   you post to the appropriate comp.os.linux.* newsgroup. Make sure you
   read the next question, Q12.2 `What to put in a request for help',
   first.
   
   ----------------------------------------------------------------------
   
11.2 What to put in a request for help.

   Please read carefully the following advice about how to write your
   posting or email. Taking heed of it will greatly increase the chances
   that an expert and/or fellow user reading it will have enough
   information and motivation to reply.
   
   This advice applies both to postings asking for advice and to personal
   email sent to experts and fellow users.
   
   Make sure you give full details of the problem, including:
     * What program, exactly, you are having problems with. Include the
       version number if known and say where you got it. Many standard
       commands tell you their version number if you give them a
       --version option.
     * Which Linux release you're using (MCC, Slackware, Debian or
       whatever) and what version of that release.
     * The *exact* and *complete* text of any error messages printed.
     * Exactly what behaviour you were expecting, and exactly what
       behaviour you observed. A transcript of an example session is a
       good way of showing this.
     * The contents of any configuration files used by the program in
       question and any related programs.
     * What version of the kernel and of the shared libraries you are
       using. The kernel version can be found by typing uname -a, and the
       shared library version by typing ls -l /lib/libc.so.4.
     * Details of what hardware you're running on, if it seems
       appropriate.
       
   You are in little danger of making your posting too long unless you
   include large chunks of source code or uuencoded files, so err on the
   side of giving too much information.
   
   Use a clear, detailed Subject line. Don't put things like `doesn't
   work', `Linux', `help' or `question' in it--we already know that! Save
   the space for the name of the program, a fragment of the error
   message, summary of the unusual behaviour, etc.
   
   If you are reporting an `unable to handle kernel paging request'
   message, follow the instructions in the Linux kernel sources README
   for turning the numbers into something more meaningful. If you don't
   do this noone who reads your post will be able to do it for you, as
   the mapping from numbers to function names varies from one kernel to
   another.
   
   Put a summary paragraph at the top of your posting.
   
   At the bottom of your posting, ask for responses by email and say
   you'll post a summary. Back this up by using Followup-To: poster.
   Then, do actually post a summary in a few days or a week or so. Don't
   just concatenate the replies you got--summarise. Putting the word
   SUMMARY in your summary's Subject line is also a good idea. Consider
   submitting the summary to comp.os.linux.announce.
   
   Make sure your posting doesn't have an inappropriate References header
   line. This marks your article as part of the thread of the article
   referred to, which will often cause it to be junked by the readers
   with the rest of a boring thread.
   
   You might like to say in your posting that you've read this FAQ and
   the appropriate HOWTOs--this may make people less likely to skip your
   posting.
   
   Remember that you should not post email sent to you personally without
   the sender's permission.
   
   ----------------------------------------------------------------------
   
11.3 I want to mail someone about my problem.

   Try to find the author or developer of whatever program or component
   is causing you difficulty. If you have a contact point for your Linux
   distribution, you should use it.
   
   Please put everything in your email that you would put in a posting
   asking for help.
   
   Finally, remember that despite the fact that most of the Linux
   community are very helpful and responsive to emailed questions, you'll
   be asking for help from an unpaid volunteer, so you have no right to
   expect an answer.
   
   ======================================================================
   
12. Administrative information and acknowledgements.

   ----------------------------------------------------------------------
   
12.1 Feedback is invited.

   Please send me your comments on this FAQ.
   
   I accept submissions for the FAQ in any format; All contributions,
   comments, and corrections are gratefully received.
   
   Please send them to < kiesling@terracom.net>.
   
   If you wish to refer to a question(s) in the FAQ it's most useful for
   me if you do so by the question heading, rather than the number, as
   the question numbers are generated automatically and I don't see them
   in the source file I edit.
   
   I prefer comments in English to patchfiles--I write the FAQ in a
   different internal format anyway, so I can't use a patchfile.
   
   ----------------------------------------------------------------------
   
12.2 Formats in which this FAQ is available.

   This document is available as an ASCII text file, an Emacs Info
   document, an HTML World Wide Web page, PostScript and as a USENET news
   posting.
   
   The ASCII, Emacs Info, HTML and posted versions and a Lout typesetter
   file (from which the PostScript is produced) are generated
   automatically by a Perl script which takes as input a file in the
   Bizarre Format with No Name.
   
   The output files linux-faq.ascii, .info and .ps and a tarfile
   linux-faq.source.tar.gz, containing the BFNN source and Perl script
   converter, are available in the docs directories of the major Linux
   FTP sites.
   
   The HTML version of this FAQ is available as
   http://www.cl.cam.ac.uk/users/iwj10/linux-faq/index.html and is
   mirrored at www.li.org and other sites.
   
   The USENET version is posted regularly to comp.os.linux.announce,
   comp.os.linux.answers, comp.answers and news.answers.
   
   ----------------------------------------------------------------------
   
12.3 Authorship and acknowledgements.

   This FAQ is compiled by Robert Kiesling < kiesling@terracom.net>, with
   assistance and comments from others too numerous to mention.
   
   Special thanks are due to Matt Welsh, who moderated
   comp.os.linux.announce and comp.os.linux.answers, used to coordinate
   the HOWTOs, and has written substantial portions of many of them, Greg
   Hankins and Timothy Bynum, the former and current HOWTO maintainers,
   Lars Wirzenius and Mikko Rauhala, the former and current moderators of
   comp.os.linux.announce, to Marc-Michel Corsini, who wrote the original
   Linux FAQ, and to Ian Jackson, the previous FAQ maintainer.
   
   Thanks also to the many people who have sent comments and suggestions.
   They are too numerous to list here but their contributions are
   invaluable.
   
   Last but not least, thanks to Linus Torvalds and the other
   contributors to Linux for giving us something to write about!
   
   ----------------------------------------------------------------------
   
12.4 Disclaimer and Copyright.

   Note that this document is provided `as is'. The information in it is
   *not* warranted to be correct. Use it at your own risk.
   
   Linux Frequently Asked Questions with Answers is copyright (C) 1997 by
   Robert Kiesling < kiesling@terracom.net>. Portions are Copyright 1994,
   1995, 1996 by Ian Jackson, the previous Linux FAQ maintainer.
   
   Linux Frequently Asked Questions with Answers may be reproduced and
   distributed in its entirety (including this authorship, copyright, and
   permission notice), provided that no charge is made for the document
   itself, without the author's consent. Portions may be reproduced for
   such purposes as reviews, advertising, and derivative works like
   translations, with the author's consent.
   
   Note that this restriction is not intended to prohibit charging for
   the service of printing or copying a document supplied by your
   customer.
   
   Exceptions to these rules may be granted. I would be happy to answer
   any questions about this copyright. Email me at <
   kiesling@terracom.net>. These restrictions are here to protect the
   contributors, not to restrict you as educators and learners.






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-08-31  4:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-28  4:00 Linux Frequently Asked Questions with Answers (Part 3 of 3) kiesling
  -- strict thread matches above, loose matches on Subject: below --
1998-08-31  4:00 kiesling
1998-08-24  4:00 kiesling
1998-08-17  4:00 kiesling
1998-08-10  4:00 kiesling
1998-08-04  4:00 kiesling
1998-06-13  4:00 kiesling
1998-05-19  4:00 kiesling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox