home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR8 / TDE32.ZIP / LINUX.FAQ < prev    next >
Text File  |  1993-11-13  |  61KB  |  1,413 lines

  1. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.answers,news.answers
  2. From: ijackson@nyx.cs.du.edu (Ian Jackson)
  3. Subject: Linux Frequently Asked Questions with Answers
  4. Message-ID: <ijackson-linux-faq2-9-1993@nyx.cs.du.edu>
  5. Date: Thu, 21 Oct 1993 09:21:37 GMT
  6. Approved: Jonathan I. Kamens <news-answers-request@mit.edu>,
  7.           Matt Welsh <linux-announce-request@tc.cornell.edu>
  8. Expires: Thu, 25 Nov 1993 09:21:37 GMT
  9. Lines: 1401
  10. Xref: doc.ic.ac.uk comp.os.linux.announce:1320 comp.os.linux.help:6404 comp.answers:2384 news.answers:13700
  11.  
  12. Archive-Name: linux/faq
  13. Last-Modified: 21 Oct 1993
  14.  
  15. This is the list of Frequently Asked Questions about Linux, the free Unix
  16. for 386/486 [see Q1.1 `What is Linux ?' for more details].  It should be
  17. read in conjunction with the HOWTO documents, which are available in
  18.    nic.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  19.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  20.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  21. and mirror sites thereof -- see Q2.4 `Where can I get Linux material by
  22. FTP ?'.  See Q2.1 `Where can I get the HOWTOs and other documentation ?'
  23. for a list of the HOWTOs and more information.  The INFO-SHEET and
  24. META-FAQ, found in the same place, also list other sources of Linux
  25. information.
  26.  
  27. The Linux Documentation Project documentation is available on
  28. sunsite.unc.edu in /pub/Linux/docs/LDP.  These documents (more are in
  29. preparation) are invaluable to the newcomer or for use as a reference
  30. work.
  31.  
  32. Please check out these documents and this FAQ, especially Q9.1 `You still
  33. haven't answered my question !', before posting your question to the
  34. newsgroup comp.os.linux.help.
  35.  
  36. You can skip to a particular question by searching for `Question n.n'.
  37. See Q10.2 `Formats in which this FAQ is available' for details of where to
  38. get the PostScript and Emacs Info versions of this document.
  39.  
  40. ===============================================================================
  41.  
  42. Index
  43.  
  44.  Section 1.  Introduction and General Information
  45.  Q1.1        What is Linux ?
  46.  Q1.2        What software does it support ?
  47.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  48.  Q1.4        How much hard disk space does Linux need ?
  49.  Q1.5        Is Linux PD ?  Copyrighted ?
  50.  Q1.6        How should I pronounce Linux ?
  51.  
  52.  Section 2.  Network sources and resources
  53.  Q2.1        Where can I get the HOWTOs and other documentation ?
  54.  Q2.2        What newsgroups are there for Linux ?
  55.  Q2.3        How do I install Linux ?
  56.  Q2.4        Where can I get Linux material by FTP ?
  57.  Q2.5        I don't have FTP access.  Where do I get Linux ?
  58.  Q2.6        I don't have Usenet access.  Where do I get information ?
  59.  Q2.7        What's this mailing list thing at niksula.hut.fi ?
  60.  Q2.8        Are the newsgroups archived anywhere ?
  61.  
  62.  Section 3.  Compatibility with other operating systems
  63.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  64.  Q3.2        How do I access files on my DOS partition or floppy ?
  65.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  66.  Q3.4        Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ?
  67.  
  68.  Section 4.  Linux's handling of filesystems, disks and drives
  69.  Q4.1        How do I format and create a filesystem on a floppy ?
  70.  Q4.2        I get nasty messages about inodes, blocks, and the suchlike
  71.  Q4.3        My swap area isn't working.
  72.  Q4.4        How can I have more than 16Mb of swap ?
  73.  Q4.5        How do I remove LILO so my system boots DOS again ?
  74.  Q4.6        Why can't I use fdformat except as root ?
  75.  Q4.7        Is there something like Stacker or Doublespace for Linux ?
  76.  
  77.  Section 5.  Porting, compiling and obtaining programs
  78.  Q5.1        Has anyone ported / compiled / written XXX for Linux ?
  79.  Q5.2        How do I port XXX to Linux ?
  80.  Q5.3        Can I use code or a compiler compiled for a 486 on my 386 ?
  81.  Q5.4        GCC sometimes uses huge amounts of virtual memory and thrashes
  82.  Q5.5        What does gcc -O6 do ?
  83.  Q5.6        Where are <linux/*.h> and <asm/*.h> ?
  84.  Q5.7        I get errors when I try to compile the kernel.
  85.  
  86.  Section 6.  Miscellaneous questions and problems
  87.  Q6.1        Free memory as reported by free keeps shrinking.
  88.  Q6.2        What is a BogoMip ?
  89.  Q6.3        How do I set the timezone ?
  90.  Q6.4        What version of Linux and what machine name am I using ?
  91.  Q6.5        When I add more memory it slows to a crawl.
  92.  Q6.6        Some programs (e.g. xdm) won't let me log in.
  93.  Q6.7        Some programs let me log in with no password.
  94.  Q6.8        My machine runs very slowly when I run GCC / X / ...
  95.  Q6.9        I can only log in as root.
  96.  Q6.10       How do I stop producing core files ?
  97.  Q6.11       My screen is all full of weird characters instead of letters.
  98.  Q6.12       What is a .gz file ? And a .tgz ? And ... ?
  99.  Q6.13       I have screwed up my system and can't log in to fix it.
  100.  Q6.14       How do I upgrade my kernel ?
  101.  Q6.15       Can I have more than 3 serial ports by sharing interrupts ?
  102.  Q6.16       Emacs just dumps core.
  103.  Q6.17       How do I make a bootable floppy ?
  104.  Q6.18       How do I remap my keyboard to UK, French, etc. ?
  105.  
  106.  Section 7.  Frequently Encountered Error messages
  107.  Q7.1        INET: Warning: old style ioctl(IP_SET_DEV) called!
  108.  Q7.2        ld: unrecognized option '-m486'
  109.  Q7.3        GCC says Internal compiler error
  110.  Q7.4        make says Error 139
  111.  Q7.5        df says Cannot read table of mounted filesystems
  112.  Q7.6        shell-init: permission denied when I log in.
  113.  Q7.7        No utmp entry.  You must exec ... when I log in.
  114.  Q7.8        EXT2-fs: warning: mounting unchecked filesystem
  115.  Q7.9        fdisk says cannot use nnn sectors of this partition
  116.  Q7.10       fdisk says partition n has an odd number of sectors
  117.  
  118.  Section 8.  X Windows
  119.  Q8.1        Does Linux support X Windows ?
  120.  Q8.2        Where can I get an XConfig for my video card and monitor ?
  121.  Q8.3        I can't get my mouse to work with X Windows.
  122.  
  123.  Section 9.  How to get further assistance
  124.  Q9.1        You still haven't answered my question !
  125.  Q9.2        What to put in a posting to comp.os.linux.help
  126.  
  127.  Section 10. Administrative information and acknowledgements
  128.  Q10.1       Feedback is invited
  129.  Q10.2       Formats in which this FAQ is available
  130.  Q10.3       Authorship and acknowledgements
  131.  
  132. ===============================================================================
  133.  
  134. Section 1.  Introduction and General Information
  135.  
  136.  Q1.1        What is Linux ?
  137.  Q1.2        What software does it support ?
  138.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  139.  Q1.4        How much hard disk space does Linux need ?
  140.  Q1.5        Is Linux PD ?  Copyrighted ?
  141.  Q1.6        How should I pronounce Linux ?
  142.  
  143. -------------------------------------------------------------------------------
  144.  
  145. Question 1.1.  What is Linux ?
  146.  
  147. Linux is a Unix clone for 386/486-based PCs written from scratch by Linus
  148. Torvalds with assistance from a loosely-knit team of hackers across the
  149. Net.  It aims towards POSIX compliance.
  150.  
  151. It has all the features you would expect in a modern fully-fledged Unix,
  152. including true multitasking, virtual memory, shared libraries, demand
  153. loading, shared copy-on-write executables, proper memory management and
  154. TCP/IP networking.
  155.  
  156. It uses the hardware features of the 386 processor family (TSS segments et
  157. al) to implement these features.
  158.  
  159. Linux is still considered to be in beta testing; due to the rapid pace of
  160. development new bugs are often introduced.  Despite this, Linux is very
  161. stable if you don't always immediately use the latest alpha-release kernel
  162. software.
  163.  
  164. See the Linux INFO-SHEET [Q2.1 `Where can I get the HOWTOs and other
  165. documentation ?'] for more details.
  166.  
  167. It is distributed under the GNU General Public License - see Q1.5 `Is
  168. Linux PD ?  Copyrighted ?' for more details.
  169.  
  170. -------------------------------------------------------------------------------
  171.  
  172. Question 1.2.  What software does it support ?
  173.  
  174. Linux has GCC, Emacs, X-Windows, TCP/IP, all the standard Unix utilities
  175. and all the hundreds of programs that people have compiled or ported for
  176. it.
  177.  
  178. There is a DOS emulator and work is progressing on a facilities to allow
  179. SVR4 ELF, SVR3.2 COFF and Microsoft Windows binaries to be run under Linux
  180. and X Windows.
  181.  
  182. For more information see the INFO-SHEET, which is one of the the HOWTOs
  183. --- see above, or Q2.1 `Where can I get the HOWTOs and other documentation
  184. ?'.  See also Q5.2 `How do I port XXX to Linux ?'.
  185.  
  186. -------------------------------------------------------------------------------
  187.  
  188. Question 1.3.  Does it run on my computer ?  What hardware is supported ?
  189.  
  190. You need a 386 or 486, with at least 2Mb of RAM and a single floppy, to
  191. try it out.  To do anything useful more RAM and a hard disk are required.
  192.  
  193. Linux doesn't currently work on machines using MCA (IBM's proprietary
  194. bus), because of lack of available documentation.  You may be able to it
  195. to work if you your hard disk is on certain kinds of controller (some SCSI
  196. controllers work, I understand), but you're on your own.
  197.  
  198. It should work with VESA local bus machines, provided that the local bus
  199. cards really are equivalent to the equivalent ISA ones.  Linux is reported
  200. to run on 386/486-based laptops, with X on most of them.
  201.  
  202. For details of exactly which PC's, video cards, disk controllers, etc.
  203. work see the INFO-SHEET and the Hardware Compatibility List [Q2.1 `Where
  204. can I get the HOWTOs and other documentation ?'].
  205.  
  206. Linux will never run on a 286, because it uses task-switching and memory
  207. management facilities only found on 386/486 processors.
  208.  
  209. A project is underway to port Linux to suitable 68000-series based
  210. systems, but this is still at a very early stage of development.  Don't
  211. post asking about it unless you think you can contribute to it, and don't
  212. hold your breath.
  213.  
  214. -------------------------------------------------------------------------------
  215.  
  216. Question 1.4.  How much hard disk space does Linux need ?
  217.  
  218. 10Mb for a very minimal installation, suitable for trying it out and not
  219. much else.
  220.  
  221. You can squeeze a more complete installation including X Windows into
  222. 80Mb.  The SLS 1.03 distribution (which I would recommend you stay well
  223. clear of - it has a number of serious and annoying bugs) takes around
  224. 100Mb.
  225.  
  226. -------------------------------------------------------------------------------
  227.  
  228. Question 1.5.  Is Linux PD ?  Copyrighted ?
  229.  
  230. The Linux kernel is copyrighted by Linus Torvalds.  He has placed it under
  231. the GNU General Public Licence, which basically means that you may freely
  232. copy, change and distribute it, but that you may not impose any
  233. restrictions on further distribution.
  234.  
  235. Full details are in the file COPYING in the Linux kernel sources (probably
  236. in /usr/src/linux on your system).
  237.  
  238. The copyright of the utilities and programs which come with the
  239. installations vary; much of the code is from the GNU Project at the Free
  240. Software Foundation, and is also under the GPL.
  241.  
  242. Note that discussion about the merits or otherwise of the GPL should be
  243. posted to gnu.misc.discuss and not to the comp.os.linux groups.
  244.  
  245. -------------------------------------------------------------------------------
  246.  
  247. Question 1.6.  How should I pronounce Linux ?
  248.  
  249. Linus says: `li' is pronounced with a short (ee) sound: compare prInt,
  250. mInImal etc.  `nux' is also short, non-diphtong, like in pUt.  It's partly
  251. due to Minix: Linux was just my working name for the thing, and as I wrote
  252. it to replace Minix on my system, the result is what it is...  Linus'
  253. minix became Linux.
  254.  
  255. I originally intended it to be called freax (although buggix was one
  256. contender after I got fed up with some of the more persistent bugs :) and
  257. I think the kernel makefiles up to version 0.11 had something to that
  258. effect (`Makefile for the freax kernel' in a comment).  But arl called the
  259. linux directory at nic.funet.fi pub/OS/Linux, and the name stuck.  Maybe
  260. just as well: freax doesn't sound too good either (freax is obviosly free
  261. + freak + the obligatory -x).
  262.  
  263. (Rik Faith's note for English speakers: Linux --- `LIH-nuhks'.)
  264.  
  265. ===============================================================================
  266.  
  267. Section 2.  Network sources and resources
  268.  
  269.  Q2.1        Where can I get the HOWTOs and other documentation ?
  270.  Q2.2        What newsgroups are there for Linux ?
  271.  Q2.3        How do I install Linux ?
  272.  Q2.4        Where can I get Linux material by FTP ?
  273.  Q2.5        I don't have FTP access.  Where do I get Linux ?
  274.  Q2.6        I don't have Usenet access.  Where do I get information ?
  275.  Q2.7        What's this mailing list thing at niksula.hut.fi ?
  276.  Q2.8        Are the newsgroups archived anywhere ?
  277.  
  278. -------------------------------------------------------------------------------
  279.  
  280. Question 2.1.  Where can I get the HOWTOs and other documentation ?
  281.  
  282. Look in the following places, and on sites that mirror them.
  283.    nic.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  284.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  285.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  286. For a complete list of Linux FTP sites see Q2.3 `How do I install Linux
  287. ?'.
  288.  
  289. If you don't have access to FTP try using one of the FTP-by-mail servers,
  290. such as mail-server@rtfm.mit.edu or ftpmail@decwrl.dec.com.
  291.  
  292. A complete list of HOWTO's is available in the file HOWTO.INDEX in the
  293. docs/HOWTO directory at the FTP sites, but here is an incomplete and
  294. somewhat provisional list:
  295.  
  296.           Installation HOWTO            Mail HOWTO
  297.           Linux INFO-SHEET              UUCP HOWTO
  298.           Linux META-FAQ                SCSI HOWTO
  299.           NET-2 HOWTO                   Printing HOWTO
  300.           Ethernet HOWTO                Hardware Comaptibility List
  301.           News HOWTO
  302.  
  303. More of these documents are in preparation; many of them are being updated
  304. from existing documents containing very similar information.  You should
  305. check for one of those documents in nearby directories on the FTP sites as
  306. well as looking for one of the new-style HOWTOs.
  307.  
  308. The HOWTO.INDEX also contains information on how to write a new HOWTO.
  309.  
  310. The HOWTOs are managed by Matt Welsh, <mdw@sunsite.unc.edu>.
  311.  
  312. The `books' produced by the Linux Documentation Project are available in
  313. /pub/Linux/docs/LDP on sunsite.unc.edu.  Please read them if you are new
  314. to Unix and Linux, especially the Installation and Getting Started Guide.
  315.  
  316. -------------------------------------------------------------------------------
  317.  
  318. Question 2.2.  What newsgroups are there for Linux ?
  319.  
  320. There are five Usenet newsgroups devoted to Linux.
  321.  
  322. comp.os.linux.announce is the moderated announcements group; you should
  323. read this if you intend to use Linux.  Submissions for that group should
  324. be emailed to linux-announce@tc.cornell.edu.
  325.  
  326. comp.os.linux.help, comp.os.linux.development, comp.os.linux.admin and
  327. comp.os.linux.misc are also worth reading -- you will find that many
  328. common problems are too recent to find in this FAQ but are answered in the
  329. newsgroups.
  330.  
  331. Since Linux is a Unix clone, many of the comp.unix.* and comp.windows.x.*
  332. groups will also contain relevant material.
  333.  
  334. Please read Q9.1 `You still haven't answered my question !' before
  335. posting, and make sure you post to the right newsgroup.  Crossposting is
  336. rarely a good idea.
  337.  
  338. See also Q2.6 `I don't have Usenet access.  Where do I get information ?'.
  339.  
  340. -------------------------------------------------------------------------------
  341.  
  342. Question 2.3.  How do I install Linux ?
  343.  
  344. There are several pre-packaged releases of Linux available, including the
  345. MCC-Interim release, the TAMU release and the SLS release.  Each contains
  346. the software you need to run linux, ready to install and use.  The exact
  347. details of which software is included and how to install them vary from
  348. release to release.
  349.  
  350. You should read the Installation HOWTO for more details on how to go about
  351. installing Linux.  Note, though, that despite its heavy emphasis on the
  352. SLS release I would not recommend using SLS for any new Linux
  353. installation; you should consider using MCC-Interim, TAMU or Slackware
  354. instead.
  355.  
  356. All of these releases are available via anonymous FTP from the Linux
  357. archive sites [Q2.4 `Where can I get Linux material by FTP ?'].
  358.  
  359. -------------------------------------------------------------------------------
  360.  
  361. Question 2.4.  Where can I get Linux material by FTP ?
  362.  
  363. There are three main archive sites for Linux:
  364.    nic.funet.fi (128.214.6.100)   /pub/OS/Linux
  365.    tsx-11.mit.edu (18.172.1.2)    /pub/linux
  366.    sunsite.unc.edu (152.2.22.81)  /pub/Linux
  367. The MCC-Interim release is available from:
  368.    ftp.mcc.ac.uk (130.88.200.7)   /pub/linux
  369.  
  370. The contents of these sites is mirrored (copied, usually approximately
  371. daily) by a number of other sites.  Please use one close to you -- that
  372. will be faster for you and easier on the network.
  373.    src.doc.ic.ac.uk                     wuarchive.wustl.edu
  374.                                         ftp.eecs.umich.edu
  375.    ftp.informatik.tu-muenchen.de
  376.    ftp.ibr.cs.tu-bs.de                  monu1.cc.monash.edu.au
  377.    ftp.dfv.rwth-aachen.de               kuis.kyoto-u.ac.jp
  378.    ftp.informatik.rwth-aachen.de        cair.kaist.ac.kr
  379. Not all of these mirror all of the other `source' sites.
  380.  
  381. -------------------------------------------------------------------------------
  382.  
  383. Question 2.5.  I don't have FTP access.  Where do I get Linux ?
  384.  
  385. The easiest thing is probably to find a friend with FTP access.  If there
  386. is a Linux users group near you they may be able to help.
  387.  
  388. If you have a reasonably good email connection you could try the
  389. FTP-by-mail servers at mail-server@rtfm.mit.edu or ftpmail@decwrl.dec.com,
  390. or, if you're in Europe, ftp-mailer@informatik.tu-muenchen.de.
  391.  
  392. Linux is also available via traditional mail on diskette, CD-ROM and tape.
  393. The Installation HOWTO, and the file /pub/Linux/docs/distributions on
  394. sunsite.unc.edu, contains information on these distributions.
  395.  
  396. You could also try Zane Healy <healyzh@holonet.net>'s list of Linux BBS's,
  397. which is posted regularly (1st and 15th of each month) to
  398. comp.os.linux.announce and occasionally to the Fidonet and RIME UNIX
  399. echoes.
  400.  
  401. -------------------------------------------------------------------------------
  402.  
  403. Question 2.6.  I don't have Usenet access.  Where do I get information ?
  404.  
  405. Digests of postings to the comp.os.linux.* groups are available by
  406. subscribing to the bidirectional gateway at
  407. linux-*-request@news-digests.mit.edu, where * is one of announce,
  408. development, help, misc or admin.
  409.  
  410. You are strongly advised to subscribe to at least
  411. linux-announce-request@news-digests.mit.edu, as this carries important
  412. information and documentation about Linux.
  413.  
  414. Please remember to use the -request addresses for your subscription and
  415. unsubscription messages; mail to the other address is posted to the
  416. newsgroup !
  417.  
  418. -------------------------------------------------------------------------------
  419.  
  420. Question 2.7.  What's this mailing list thing at niksula.hut.fi ?
  421.  
  422. It's a multi-channel mailing list, mainly used by the developers of Linux
  423. to talk about technical issues and future developments.  Most of the
  424. channels are not intended for new users to ask their questions on.
  425.  
  426. The ANNOUNCE channel is a digest of postings to comp.os.linux.announce,
  427. for the benefit of those without Usenet access.  However since
  428. niksula.hut.fi is slow and overloaded I'd recommend subscribing to the MIT
  429. digestifier instead [Q2.6 `I don't have Usenet access.  Where do I get
  430. information ?'].
  431.  
  432. There is also a NEWBIE channel where `no question is too stupid';
  433. unfortunately it seems that few of the experienced users read that
  434. channel, probably because of all the `stupid' questions !
  435.  
  436. If you want to subscribe to one or more of the channels at the
  437. multi-channel list, send an empty mail message to
  438. linux-activists-request@niksula.hut.fi and you'll receive the instructions
  439. for operating the list subscription software.
  440.  
  441. If you want to unsubscribe send a mail message like this
  442.   From: you@domain.org
  443.   To: linux-activists-request@niksula.hut.fi
  444.   Subject: irrelevant
  445.  
  446.   X-Mn-Admin: leave CHANNEL
  447. to leave a channel called CHANNEL.  Do *not* put an X-Mn-Key line in your
  448. message - that will cause it to be posted to the list.
  449.  
  450. Note that you *must* remember to unsubscribe *before* you change your
  451. email address, as due to a design flaw in the list server it is virtually
  452. impossible to get yourself unsubscribed after such a change.
  453.  
  454. -------------------------------------------------------------------------------
  455.  
  456. Question 2.8.  Are the newsgroups archived anywhere ?
  457.  
  458. Yes.  nic.funet.fi and tsx-11.mit.edu contain archives of both
  459. comp.os.linux and comp.os.linux.announce, in their Linux areas.  The
  460. comp.os.linux.announce archives are mirrored from /usenet on
  461. src.doc.ic.ac.uk (which also contains an archive of comp.os.linux).
  462.  
  463. ===============================================================================
  464.  
  465. Section 3.  Compatibility with other operating systems
  466.  
  467.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  468.  Q3.2        How do I access files on my DOS partition or floppy ?
  469.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  470.  Q3.4        Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ?
  471.  
  472. -------------------------------------------------------------------------------
  473.  
  474. Question 3.1.  Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  475.  
  476. Yes.  Linux uses the standard PC partitioning scheme, so it can share your
  477. disk with other operating systems.  NB, though, if you use OS/2 you have
  478. to use OS/2's fdisk to create Linux partitions if you don't want OS/2's
  479. fdisk to mess them up later.  Then you can use Linux's fdisk to change the
  480. type to Linux.  See the Installation HOWTO for more details.
  481.  
  482. Linux can read and write the files on your DOS and OS/2 FAT partitions and
  483. floppies using either the DOS filesystem type built into the kernel or
  484. mtools.  There is a DOS emulator which can run DOS itself and some (but
  485. not all) DOS applications.
  486.  
  487. Linux can also access Minix filesystems.
  488.  
  489. -------------------------------------------------------------------------------
  490.  
  491. Question 3.2.  How do I access files on my DOS partition or floppy ?
  492.  
  493. Use the DOS filesystem, i.e. type, for example:
  494.         mkdir /dos
  495.         mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  496.  
  497. You can use the conv=text/binary/auto, umask=nnn, uid=nnn and gid=nnn
  498. options to control the automatic line-ending conversion, permissions and
  499. ownerships of the files in the DOS filesystem as they appear under Linux.
  500.  
  501. Alternatively you can use `mtools', available in both binary and source
  502. form on the FTP sites -- see Q2.3 `How do I install Linux ?'.
  503.  
  504. -------------------------------------------------------------------------------
  505.  
  506. Question 3.3.  Can I use my Stacked/DBLSPC/etc. DOS drive ?
  507.  
  508. Not easily.  You can access them from within the DOS emulator, but not as
  509. a normal filesystem under Linux or using mtools.
  510.  
  511. -------------------------------------------------------------------------------
  512.  
  513. Question 3.4.  Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ?
  514.  
  515. There is no support for those yet.
  516.  
  517. ===============================================================================
  518.  
  519. Section 4.  Linux's handling of filesystems, disks and drives
  520.  
  521.  Q4.1        How do I format and create a filesystem on a floppy ?
  522.  Q4.2        I get nasty messages about inodes, blocks, and the suchlike
  523.  Q4.3        My swap area isn't working.
  524.  Q4.4        How can I have more than 16Mb of swap ?
  525.  Q4.5        How do I remove LILO so my system boots DOS again ?
  526.  Q4.6        Why can't I use fdformat except as root ?
  527.  Q4.7        Is there something like Stacker or Doublespace for Linux ?
  528.  
  529. -------------------------------------------------------------------------------
  530.  
  531. Question 4.1.  How do I format and create a filesystem on a floppy ?
  532.  
  533. For a 3.5 inch high density floppy:
  534.    fdformat /dev/fd0H1440
  535.    mke2fs /dev/fd0H1440 1440
  536. For a 5.25 floppy inch use fd0h1200 and 1200 as appropriate.  For the `B'
  537. drive use fd1 instead of fd0.  Full details of which floppy devices do
  538. what can be found in the Linux Device List [Q2.1 `Where can I get the
  539. HOWTOs and other documentation ?'].
  540.  
  541. The first command low-level formats the floppy; the second creates an
  542. empty filesystem on it.  After doing this you can mount the floppy like a
  543. hard disk partition and simply cp and mv files, etc.
  544.  
  545. -------------------------------------------------------------------------------
  546.  
  547. Question 4.2.  I get nasty messages about inodes, blocks, and the suchlike
  548.  
  549. You probably have a corrupted filesystem, probably caused by not shutting
  550. Linux down properly before turning off the power or resetting.
  551.  
  552. If you're lucky the program fsck (or e2fsck or xfsck as appropriate if you
  553. don't have the fsutils package) will be able to repair your filesystem; if
  554. you're unlucky the filesystem is trashed and you'll have to reinitialise
  555. it with mkfs (or mke2fs, mkxfs etc.) it and restore from a backup.
  556.  
  557. NB don't try to check a filesystem that's mounted read-write - this
  558. includes the root partition if you don't see
  559.    VFS: mounted root ... read-only
  560. at boot time.
  561.  
  562. -------------------------------------------------------------------------------
  563.  
  564. Question 4.3.  My swap area isn't working.
  565.  
  566. When you boot (or enable swapping manually) you should see
  567.         Adding Swap: NNNNk swap-space
  568.  
  569. If you don't see any messages at all you are probably missing swapon -av
  570. (the command to enable swapping) in your /etc/rc or /etc/rc.local (the
  571. system startup scripts), or have forgotten to make the right entry in
  572. /etc/fstab:
  573.         /dev/hda2       none       swap       sw
  574. for example.
  575.  
  576. If you see
  577.         Unable to find swap-space signature
  578. you have forgotten to run mkswap.  See the manpage for details; it works
  579. much like mkfs.
  580.  
  581. Check the Installation HOWTO for detailed instructions of how to set up a
  582. swap area.
  583.  
  584. -------------------------------------------------------------------------------
  585.  
  586. Question 4.4.  How can I have more than 16Mb of swap ?
  587.  
  588. You have to set up more than one swap partition or swapfile.  Linux only
  589. supports swap area sizes up to 16Mb, but you can set up and configure
  590. several swap areas and Linux will use them all.
  591.  
  592. -------------------------------------------------------------------------------
  593.  
  594. Question 4.5.  How do I remove LILO so my system boots DOS again ?
  595.  
  596. Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR.  This will
  597. restore a standard MS-DOS Master Boot Record.  If you have DR-DOS 6.0, go
  598. into FDISK in the normal way and then select the `Re-write Master Boot
  599. Record' option.
  600.  
  601. If you don't have DOS 5 or DR-DOS you need to have the boot sector that
  602. LILO saved when you first installed it.  You did keep that file, didn't
  603. you ?  It's probably called boot.0301 or some such.  Type
  604.         dd if=boot.0301 of=/dev/hda
  605. (or sda if you're using a SCSI disk).  This will also wipe out your
  606. partition table, so beware !
  607.  
  608. Note that the DOS MBR boots whichever (single!) partition is flagged as
  609. `active'; you may need to use fdisk to set and clear the active flags on
  610. partitions appropriately.
  611.  
  612. -------------------------------------------------------------------------------
  613.  
  614. Question 4.6.  Why can't I use fdformat except as root ?
  615.  
  616. The system call to format a floppy may only be done as root, regardless of
  617. the permissions of /dev/fd0*.  If you want any user to be able to format a
  618. floppy try getting the fdformat2 program; this works around this by being
  619. setuid to root.
  620.  
  621. -------------------------------------------------------------------------------
  622.  
  623. Question 4.7.  Is there something like Stacker or Doublespace for Linux ?
  624.  
  625. No, none of the Linux filesystems currently support any (transparent)
  626. compression.
  627.  
  628. Unless you're a wizard and want to try writing it yourself you're best bet
  629. is probably to simply compress the file using a program like GNU gzip and
  630. uncompress it again when you want to use it.
  631.  
  632. There is a package available called tcx (Transparently Compressed
  633. Executables) which allows you to keep infrequently used executables
  634. compressed and only uncompress them temporarily while you use them.
  635. You'll find it on the Linux FTP sites [Q2.4 `Where can I get Linux
  636. material by FTP ?']; it was also announced in comp.os.linux.announce.
  637.  
  638. ===============================================================================
  639.  
  640. Section 5.  Porting, compiling and obtaining programs
  641.  
  642.  Q5.1        Has anyone ported / compiled / written XXX for Linux ?
  643.  Q5.2        How do I port XXX to Linux ?
  644.  Q5.3        Can I use code or a compiler compiled for a 486 on my 386 ?
  645.  Q5.4        GCC sometimes uses huge amounts of virtual memory and thrashes
  646.  Q5.5        What does gcc -O6 do ?
  647.  Q5.6        Where are <linux/*.h> and <asm/*.h> ?
  648.  Q5.7        I get errors when I try to compile the kernel.
  649.  
  650. -------------------------------------------------------------------------------
  651.  
  652. Question 5.1.  Has anyone ported / compiled / written XXX for Linux ?
  653.  
  654. First, look in the Linux Software Map --- it's in the docs directory on
  655. sunsite.unc.edu, and on the other FTP sties.
  656.  
  657. Check the FTP sites (see Q2.1 `Where can I get the HOWTOs and other
  658. documentation ?') first --- search the find-ls or INDEX files for
  659. appropriate strings.
  660.  
  661. If you don't find anything, you could either download the sources to the
  662. program yourself and compile them -- see Q5.2 `How do I port XXX to Linux
  663. ?' -- or, if it's a large package which may require some porting, post a
  664. message to the newsgroup.
  665.  
  666. If you compile a largeish program please upload it to one or more of the
  667. FTP sites and post a message to comp.os.linux.announce (submit your
  668. posting to linux-announce@tc.cornell.edu).
  669.  
  670. If you're looking for an application-type program the chances are someone
  671. has already written a free verson.  Try reading the FAQ in
  672. comp.sources.wanted for instructions on how to find sources.
  673.  
  674. -------------------------------------------------------------------------------
  675.  
  676. Question 5.2.  How do I port XXX to Linux ?
  677.  
  678. In general Unix programs need very little porting.  Simply follow the
  679. installation instructions.  If you don't know and don't know how to find
  680. out the answers to some of the questions asked during or by the
  681. installation procedure you can guess, but this tends to produce buggy
  682. programs.  In this case you're probably better off asking someone else to
  683. do the port.
  684.  
  685. If you have a BSD-ish program you should try using -I/usr/include/bsd and
  686. -lbsd on the appropriate parts of the compilation lines.
  687.  
  688. -------------------------------------------------------------------------------
  689.  
  690. Question 5.3.  Can I use code or a compiler compiled for a 486 on my 386 ?
  691.  
  692. Yes.
  693.  
  694. The -m486 option to GCC, which is used to compile binaries for 486
  695. machines, merely makes GCC change certain optimisations.  This makes for
  696. slightly larger binaries which run somewhat faster on a 486.  They still
  697. work fine on a 386, though, with little performance hit.
  698.  
  699. This applies to GCC, as well.  GCC can be configured for a 386 or 486; the
  700. only difference is that configuring it for a 386 makes -m386 the default
  701. and configuring for a 486 makes -m486 the default; in either case these
  702. can be overriden on a per-compilation basis or by editing
  703. /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  704.  
  705. -------------------------------------------------------------------------------
  706.  
  707. Question 5.4.  GCC sometimes uses huge amounts of virtual memory and thrashes
  708.  
  709. GCC has a bug which makes it use lots of memory if you try to compile a
  710. program which has a large static data table in it.  Add more swap if
  711. necessary and just grin and bear it; it'll work in the end.
  712.  
  713. This bug will be fixed when GCC 2.5 comes out.
  714.  
  715. -------------------------------------------------------------------------------
  716.  
  717. Question 5.5.  What does gcc -O6 do ?
  718.  
  719. The same as -O2; any number greater than 2 works just like 2.  It's put
  720. there for luck, I think.
  721.  
  722. -------------------------------------------------------------------------------
  723.  
  724. Question 5.6.  Where are <linux/*.h> and <asm/*.h> ?
  725.  
  726. These are in the directories /usr/include/linux and /usr/include/asm.
  727.  
  728. However they should be symbolic links to your kernel sources in
  729. /usr/src/linux and not real directories.
  730.  
  731. If you don't have the kernel sources download them --- see Q6.14 `How do I
  732. upgrade my kernel ?'.
  733.  
  734. Then use ln to create the links:
  735.         ln -sf /usr/src/linux/include/linux /usr/include/linux
  736.         ln -sf /usr/src/linux/include/asm /usr/include/asm
  737.  
  738. -------------------------------------------------------------------------------
  739.  
  740. Question 5.7.  I get errors when I try to compile the kernel.
  741.  
  742. Make sure that /usr/include/linux and /usr/include/asm aren't actual
  743. directories but instead symbolic links to /usr/src/linux/include/linux and
  744. /usr/src/linux/include/asm respectively.
  745.  
  746. If necessary, delete them using rm and then use ln -s to make the links as
  747. in Q5.6 `Where are <linux/*.h> and <asm/*.h> ?'.
  748.  
  749. ===============================================================================
  750.  
  751. Section 6.  Miscellaneous questions and problems
  752.  
  753.  Q6.1        Free memory as reported by free keeps shrinking.
  754.  Q6.2        What is a BogoMip ?
  755.  Q6.3        How do I set the timezone ?
  756.  Q6.4        What version of Linux and what machine name am I using ?
  757.  Q6.5        When I add more memory it slows to a crawl.
  758.  Q6.6        Some programs (e.g. xdm) won't let me log in.
  759.  Q6.7        Some programs let me log in with no password.
  760.  Q6.8        My machine runs very slowly when I run GCC / X / ...
  761.  Q6.9        I can only log in as root.
  762.  Q6.10       How do I stop producing core files ?
  763.  Q6.11       My screen is all full of weird characters instead of letters.
  764.  Q6.12       What is a .gz file ? And a .tgz ? And ... ?
  765.  Q6.13       I have screwed up my system and can't log in to fix it.
  766.  Q6.14       How do I upgrade my kernel ?
  767.  Q6.15       Can I have more than 3 serial ports by sharing interrupts ?
  768.  Q6.16       Emacs just dumps core.
  769.  Q6.17       How do I make a bootable floppy ?
  770.  Q6.18       How do I remap my keyboard to UK, French, etc. ?
  771.  
  772. -------------------------------------------------------------------------------
  773.  
  774. Question 6.1.  Free memory as reported by free keeps shrinking.
  775.  
  776. The `free' figure printed by free doesn't include memory used as a disk
  777. buffer cache - shown in the `buffers' column.  If you want to know how
  778. much memory is really free add the `buffers' amount to `free'.
  779.  
  780. The disk buffer cache tends to grow soon after starting Linux up, as you
  781. load more programs and use more files and the contents get cached.  It
  782. will stabilise after a while.
  783.  
  784. -------------------------------------------------------------------------------
  785.  
  786. Question 6.2.  What is a BogoMip ?
  787.  
  788. `BogoMips' is a contraction of `Bogus MIPS'.  MIPS stands for (depending
  789. who you listen to) Millions of Instructions per Second, or Meaningless
  790. Indication of Processor Speed.
  791.  
  792. The number printed at boot-time is the result of a kernel timing
  793. calibration, used for delay loops by some device drivers.
  794.  
  795. As a very approximate guide for a 486DX (not clock doubled), the BogoMips
  796. will be approximately the clock rate * 0.5; for a 386DX (no coprocessor)
  797. it will be more like the clock rate * 0.24 - 1.9.
  798.  
  799. If the number you're seeing is wildly lower than this you may have the
  800. Turbo button or CPU speed set incorrectly, or have some kind of caching
  801. problem [as described in Q6.5 `When I add more memory it slows to a
  802. crawl.'.]
  803.  
  804. -------------------------------------------------------------------------------
  805.  
  806. Question 6.3.  How do I set the timezone ?
  807.  
  808. Change directory to /usr/local/zoneinfo (get the timezone package if you
  809. don't have this directory).
  810.  
  811. Then make a symbolic link named localtime pointing to one of the files in
  812. this directory (or a subdirectory), and one called posixrules pointing to
  813. localtime.  For example:
  814.    ln -sf US/Mountain localtime
  815.    ln -sf localtime posixrules
  816. This change will take effect immediately - try date.
  817.  
  818. Don't try to use the TZ variable - leave it unset.
  819.  
  820. -------------------------------------------------------------------------------
  821.  
  822. Question 6.4.  What version of Linux and what machine name am I using ?
  823.  
  824. Type:
  825.    uname -a
  826.  
  827. -------------------------------------------------------------------------------
  828.  
  829. Question 6.5.  When I add more memory it slows to a crawl.
  830.  
  831. This is quite a common symptom of a failure to cache the additional
  832. memory.  The exact problem depends on your motherboard.
  833.  
  834. Sometimes you have to enable caching of certain regions in your BIOS
  835. setup.  Look in the CMOS setup and see if there is an option to cache the
  836. new memory area which is currently switched off.  This is apparently most
  837. common on a 486.
  838.  
  839. Sometimes the RAMs have to be in certain sockets to be cached.
  840.  
  841. Sometimes you have to set jumpers to enable the caching.
  842.  
  843. Some motherboards don't cache all the RAM if you have more RAM per amount
  844. of cache than they expect.  Usually a full 256K cache will solve this
  845. problem.
  846.  
  847. If in doubt, check your motherboard manual.  If you still can't fix it
  848. because the documentation is inadequate you might like to post a message
  849. giving *all* the details - make, model number, date code, etc. so that
  850. other Linux users can avoid it.
  851.  
  852. -------------------------------------------------------------------------------
  853.  
  854. Question 6.6.  Some programs (e.g. xdm) won't let me log in.
  855.  
  856. You are probably using non-shadow-password programs but are using shadow
  857. passwords.
  858.  
  859. If so, you have to get or compile a shadow password version of the
  860. program(s) in question.  The shadow password suite can be found in
  861. (amongst other places):
  862.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  863. This is the source code; you will probably find the binaries in
  864. .../linux/binaries/usr.bin.
  865.  
  866. -------------------------------------------------------------------------------
  867.  
  868. Question 6.7.  Some programs let me log in with no password.
  869.  
  870. You probably have the same problem as in Q6.6 `Some programs (e.g. xdm)
  871. won't let me log in.', with an added wrinkle:
  872.  
  873. If you are using shadow passords you should put an asterisk in the
  874. password field of /etc/passwd for each account, so that if a program
  875. doesn't know about the shadow passwords it won't think it's a passwordless
  876. account and let anyone in.
  877.  
  878. -------------------------------------------------------------------------------
  879.  
  880. Question 6.8.  My machine runs very slowly when I run GCC / X / ...
  881.  
  882. You probably don't have any swap enabled.  You need to enable swapping to
  883. allow Linux to page out bits of data programs aren't using at the moment
  884. to disk to make more room for other programs and data.  If you don't Linux
  885. has to keep data in memory and throw away in-memory copies of programs
  886. (which are paged straight from the filesystem) and so less and less
  887. program is in memory and everything runs very slowly.
  888.  
  889. See the Installation HOWTO and the Installation and Getting Started Guide
  890. [Q2.1 `Where can I get the HOWTOs and other documentation ?'] for details
  891. of how to set up a swap area; see also Q4.3 `My swap area isn't working.'.
  892.  
  893. Alternatively you may have too little real memory.  If you have less RAM
  894. than all the programs you're running at once use Linux will use your hard
  895. disk instead and thrash horribly.  The solution in this case is to not run
  896. so many things at once or to buy more memory.  You can also reclaim some
  897. memory by compiling and using a kernel with less options configured.  See
  898. Q6.14 `How do I upgrade my kernel ?'.
  899.  
  900. -------------------------------------------------------------------------------
  901.  
  902. Question 6.9.  I can only log in as root.
  903.  
  904. You probably have some permission problems, or you have a file
  905. /etc/nologin.
  906.  
  907. If the latter put rm -f /etc/nologin in your /etc/rc or /etc/rc.local.
  908.  
  909. Otherwise check the permissions on your shell, and any filenames which
  910. appear in error messages, and also the directories containing these files
  911. all the way back up the tree to the root directory.
  912.  
  913. -------------------------------------------------------------------------------
  914.  
  915. Question 6.10.  How do I stop producing core files ?
  916.  
  917. If you use bash put
  918.    ulimit -c 0
  919. in your .shrc or .bashrc; if you use tcsh put
  920.    limit coredumpsize 0
  921. in your .cshrc.  For other shells check the shell's manpage.
  922.  
  923. -------------------------------------------------------------------------------
  924.  
  925. Question 6.11.  My screen is all full of weird characters instead of letters.
  926.  
  927. You probably sent some binary data to your screen by mistake.  Type echo
  928. ^V^O (that's E C H O space control-V control-O return) to fix it.
  929.  
  930. -------------------------------------------------------------------------------
  931.  
  932. Question 6.12.  What is a .gz file ? And a .tgz ? And ... ?
  933.  
  934. .gz (and .z) files have been compressed using GNU gzip.  You have to get a
  935. copy of gunzip (included in the gzip distribution and with most Linux
  936. installations) to unpack the file.
  937.  
  938. .taz and .tz are tarfiles (made with Unix tar) compressed using standard
  939. Unix compress.
  940.  
  941. .tgz (or .tpz) is a tarfile compressed with gzip.
  942.  
  943. The file command can often tell you what a file is.
  944.  
  945. If you find that gzip complains when you try to uncompress a gzipped file
  946. you probably downloaded it in ASCII mode by mistake.  You must download
  947. things in binary mode - remember to type binary as a command in FTP before
  948. using get to get the file.
  949.  
  950. -------------------------------------------------------------------------------
  951.  
  952. Question 6.13.  I have screwed up my system and can't log in to fix it.
  953.  
  954. Reboot from an emergency floppy, for example the SLS a1 disk or the MCC
  955. installation boot floppy.  Get to a shell prompt and mount your hard disk
  956. with something like
  957.         mount -t ext2 /dev/hda1 /mnt
  958.  
  959. Then your filesystem is available under the directory /mnt and you can fix
  960. the problem.  Remember to unmount your hard disk before rebooting (cd back
  961. down to / first or it will say it's busy).
  962.  
  963. -------------------------------------------------------------------------------
  964.  
  965. Question 6.14.  How do I upgrade my kernel ?
  966.  
  967. See the README which comes with the kernel release, in
  968.         nic.funet.fi:/pub/OS/Linux/PEOPLE/Linus
  969. and mirrors thereof.  Try to get it from a closer site if possible;
  970. nic.funet.fi is a very busy site and therefore slow -- see Q2.3 `How do I
  971. install Linux ?'.
  972.  
  973. Remember that to make the new kernel boot you must run LILO after copying
  974. the kernel into your root partition.
  975.  
  976. -------------------------------------------------------------------------------
  977.  
  978. Question 6.15.  Can I have more than 3 serial ports by sharing interrupts ?
  979.  
  980. Not without some trickery.  This is a limitation of the ISA bus
  981. architecture.
  982.  
  983. See the Serial HOWTO for information about how to work around this
  984. problem.
  985.  
  986. -------------------------------------------------------------------------------
  987.  
  988. Question 6.16.  Emacs just dumps core.
  989.  
  990. You probably have the X version of Emacs that comes with SLS.  It doesn't
  991. work without the X libraries.  The solution is to install X Windows or get
  992. a newer Emacs binary without any X Windows support.
  993.  
  994. -------------------------------------------------------------------------------
  995.  
  996. Question 6.17.  How do I make a bootable floppy ?
  997.  
  998. Make a filesystem on it with bin, etc and lib directories -- everything
  999. you need.  Install a kernel on it and arrange to have LILO boot it from
  1000. the floppy (see the LILO documentation, in lilo.u.*.ps).
  1001.  
  1002. If you build the kernel (or tell LILO to tell the kernel) to have a
  1003. ramdisk the same size as the floppy the ramdisk will be loaded at
  1004. boot-time and mounted as root in place of the floppy.
  1005.  
  1006. -------------------------------------------------------------------------------
  1007.  
  1008. Question 6.18.  How do I remap my keyboard to UK, French, etc. ?
  1009.  
  1010. For recent kernels, get kbd*.tar.gz from the same place as you got the
  1011. kernel source.  Make sure you get the appropriate version; you have to use
  1012. the right keyboard-mapping package to go with your kernel version.  The
  1013. latest at the time of writing is kbd-0.81.tar.gz, for kernel version
  1014. 0.99pl12.
  1015.  
  1016. For older kernels you have to edit the top-level kernel Makefile, in
  1017. /usr/src/linux.
  1018.  
  1019. ===============================================================================
  1020.  
  1021. Section 7.  Frequently Encountered Error messages
  1022.  
  1023.  Q7.1        INET: Warning: old style ioctl(IP_SET_DEV) called!
  1024.  Q7.2        ld: unrecognized option '-m486'
  1025.  Q7.3        GCC says Internal compiler error
  1026.  Q7.4        make says Error 139
  1027.  Q7.5        df says Cannot read table of mounted filesystems
  1028.  Q7.6        shell-init: permission denied when I log in.
  1029.  Q7.7        No utmp entry.  You must exec ... when I log in.
  1030.  Q7.8        EXT2-fs: warning: mounting unchecked filesystem
  1031.  Q7.9        fdisk says cannot use nnn sectors of this partition
  1032.  Q7.10       fdisk says partition n has an odd number of sectors
  1033.  
  1034. -------------------------------------------------------------------------------
  1035.  
  1036. Question 7.1.  INET: Warning: old style ioctl(IP_SET_DEV) called!
  1037.  
  1038. You are trying to use the old network configuration utilities; the new
  1039. ones can be found on tsx-11.mit.edu in
  1040. /pub/linux/packages/net/net-2/binaries.
  1041.  
  1042. Note that they cannot be used just like the old-style programs; see the
  1043. NET-2 HOWTO for instructions on how to set up networking correctly.
  1044.  
  1045. -------------------------------------------------------------------------------
  1046.  
  1047. Question 7.2.  ld: unrecognized option '-m486'
  1048.  
  1049. You have an old version of ld.  Install a newer binutils package -- this
  1050. will contain an updated ld:
  1051.    tsx-11.mit.edu:/pub/linux/packages/GCC/binutils.tar.z
  1052.  
  1053. -------------------------------------------------------------------------------
  1054.  
  1055. Question 7.3.  GCC says Internal compiler error
  1056.  
  1057. If the fault is repeatable (ie, it always happens at the same place in the
  1058. same file) you have discovered a bug in GCC.  See the GCC Info
  1059. documentation (type Control-h i in Emacs, and select GCC from the menu)
  1060. for details on how to report this.
  1061.  
  1062. Note that this is probably not a Linux-specific problem; unless you were
  1063. compiling a program many other Linux users also compile you should not
  1064. post your bug report to any of the comp.os.linux groups.
  1065.  
  1066. If the problem is not repeatable you are very probably experiencing memory
  1067. corruption --- see Q7.4 `make says Error 139'.
  1068.  
  1069. -------------------------------------------------------------------------------
  1070.  
  1071. Question 7.4.  make says Error 139
  1072.  
  1073. Your compiler driver (gcc) dumped core.  You probably have a buggy or old
  1074. version of GCC --- get the latest release.
  1075.  
  1076. If this doesn't fix the problem you are probably having problems with
  1077. memory corruption.  Check that the clock rate, wait states and refresh
  1078. timing for your SIMMs are correct.  If so you may have some dodgy SIMMs.
  1079. Linux, like any Unix, is a very good memory tester.
  1080.  
  1081. -------------------------------------------------------------------------------
  1082.  
  1083. Question 7.5.  df says Cannot read table of mounted filesystems
  1084.  
  1085. There is probably something wrong with your /etc/mtab or /etc/fstab files.
  1086. If you have a reasonably new version of mount, /etc/mtab should be emptied
  1087. or deleted at boot time (in /etc/rc or /etc/rc.local), using something
  1088. like
  1089.    rm -f /etc/mtab*
  1090.  
  1091. Some versions of SLS have an entry for the root partition in /etc/mtab
  1092. made in /etc/rc by using rdev.  This is incorrect -- the newer versions of
  1093. mount do this automatically.
  1094.  
  1095. Other versions of SLS have a line in /etc/fstab that looks like:
  1096.     /dev/sdb1   /root   ext2   defaults
  1097. This is wrong.  /root should read simply /.
  1098.  
  1099. -------------------------------------------------------------------------------
  1100.  
  1101. Question 7.6.  shell-init: permission denied when I log in.
  1102.  
  1103. Your root directory and all the directories up to your home directory must
  1104. be readable and executable by everybody.  See the manpage for chmod or a
  1105. book on Unix for how to fix the problem.
  1106.  
  1107. -------------------------------------------------------------------------------
  1108.  
  1109. Question 7.7.  No utmp entry.  You must exec ... when I log in.
  1110.  
  1111. Your /etc/utmp is screwed up.  You should have
  1112.    > /etc/utmp
  1113. in your /etc/rc or /etc/rc.local.  See Q6.13 `I have screwed up my system
  1114. and can't log in to fix it.' for how to be able to do this.
  1115.  
  1116. -------------------------------------------------------------------------------
  1117.  
  1118. Question 7.8.  EXT2-fs: warning: mounting unchecked filesystem
  1119.  
  1120. You need to run e2fsck (or fsck -t ext2 if you have the fsutils package)
  1121. with the -a option to get it to clear the `dirty' flag, and then cleanly
  1122. unmount the partition during each shutdown.
  1123.  
  1124. The easiest way to do this is to get the bootutils package, available on
  1125. sunsite and tsx-11.
  1126.  
  1127. NB don't try to check a filesystem that's mounted read-write - this
  1128. includes the root partition if you don't see
  1129.    VFS: mounted root ... read-only
  1130. at boot time.
  1131.  
  1132. -------------------------------------------------------------------------------
  1133.  
  1134. Question 7.9.  fdisk says cannot use nnn sectors of this partition
  1135.  
  1136. Originally Linux only supported the Minix filesystem, which cannot use
  1137. more than 64Mb per parition.  This limitation is not present in the more
  1138. advanced filesystems now available, such as ext2fs (the 2nd version of the
  1139. Extended Filesystem) and xiafs (Qi Xia's filesystem).
  1140.  
  1141. If you intend to use ext2fs or xiafs you can ignore the message.
  1142.  
  1143. -------------------------------------------------------------------------------
  1144.  
  1145. Question 7.10.  fdisk says partition n has an odd number of sectors
  1146.  
  1147. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses
  1148. 1K blocks.  If you have a partition with an odd number of sectors the last
  1149. sector is wasted.  Ignore the message.
  1150.  
  1151. ===============================================================================
  1152.  
  1153. Section 8.  X Windows
  1154.  
  1155.  Q8.1        Does Linux support X Windows ?
  1156.  Q8.2        Where can I get an XConfig for my video card and monitor ?
  1157.  Q8.3        I can't get my mouse to work with X Windows.
  1158.  
  1159. -------------------------------------------------------------------------------
  1160.  
  1161. Question 8.1.  Does Linux support X Windows ?
  1162.  
  1163. Yes.  You need to have a video card which is supported by XFree86 (or XS3
  1164. for S3-based cards).  See the FAQs referred to below for more details.
  1165.  
  1166. Some of the Linux releases -- MCC, for example -- don't come with X
  1167. Windows already included; however you can easily download and install it
  1168. from /pub/Linux/X11/Xfree86-1.3 on sunsite.unc.edu and its mirror sites.
  1169. There is a README file there with more information.  Other releases --
  1170. TAMU, Slackware and SLS, for example -- come with X Windows already
  1171. included
  1172.  
  1173. Once you have unpacked it onto your system (either as part of the
  1174. installation of a release or after downloading it separately as above)
  1175. some documentation can be found in /usr/X386/lib/X11/etc.
  1176.  
  1177. You should also check the Frequently Asked Questions list for
  1178. comp.windows.x.i386unix, which is available on rtfm.mit.edu in
  1179. /pub/usenet/news.answers/Intel-Unix-X-Faq, and the more general FAQ on X
  1180. in x-faq in the same directory.
  1181.  
  1182. Please don't post X Windows related questions to comp.os.linux.help.
  1183.  
  1184. -------------------------------------------------------------------------------
  1185.  
  1186. Question 8.2.  Where can I get an XConfig for my video card and monitor ?
  1187.  
  1188. It's not that hard to roll your own.
  1189.  
  1190. Read the instructions that came with XFree86-1.3, in
  1191. /usr/X386/lib/X11/etc.  The files you probably need to look at are the
  1192. README, and ModeDB.txt which contains sample XConfig extracts for various
  1193. monitors and cards.
  1194.  
  1195. If your monitor isn't listed try the VESA standard timings.
  1196.  
  1197. Near the end of VideoModes.doc there is a section on moving and resizing
  1198. the image, in case that's all that needs fixing; this file also gives
  1199. complete details of how to calculate the timings from scratch.
  1200.  
  1201. If none of this helps try reading comp.windows.x.i386unix -- specifically
  1202. the FAQ for that group (see Q8.1 `Does Linux support X Windows ?').
  1203. Please don't post your X Windows related question to comp.os.linux.help.
  1204.  
  1205. -------------------------------------------------------------------------------
  1206.  
  1207. Question 8.3.  I can't get my mouse to work with X Windows.
  1208.  
  1209. You probably have the wrong mouse type in the XConfig, or are using the
  1210. wrong device in /dev.
  1211.  
  1212. You can check that you have the right device in /dev by using cat.  Type
  1213. cat /dev/whatever (while X isn't running !) and you should see characters
  1214. come out, either continuously or when you move the mouse.  If none of the
  1215. plausible devices work and you have a busmouse, make sure that your kernel
  1216. was compiled with busmouse support enabled and that it detected the
  1217. busmouse at boot-time (it prints a message when it does).
  1218.  
  1219. Note that the protocol used (which is what you specify in the XConfig
  1220. file) is not necessarily named after the manufacturer of the mouse.  For
  1221. example, many Logitech mice use Microsoft or Mouse Systems protocols.
  1222.  
  1223. Also, there is not really any such thing as a 3-button
  1224. Microsoft-compatible mouse.  If you have a 3 button mouse which claims to
  1225. be Microsoft compatible there will probably be a way to switch it into 3
  1226. button mode, which may well use the Mouse Systems protocol or an extension
  1227. to the Microsoft protocol.  Check your mouse manual and experiment.
  1228.  
  1229. Please don't post X Windows related questions to comp.os.linux.help.
  1230.  
  1231. ===============================================================================
  1232.  
  1233. Section 9.  How to get further assistance
  1234.  
  1235.  Q9.1        You still haven't answered my question !
  1236.  Q9.2        What to put in a posting to comp.os.linux.help
  1237.  
  1238. -------------------------------------------------------------------------------
  1239.  
  1240. Question 9.1.  You still haven't answered my question !
  1241.  
  1242. Please read all of this answer before posting.  I know it's a bit long,
  1243. but you may be about to make a fool of yourself in front of 50000 people
  1244. and waste hundreds of hours of their time.  Don't you think it's worth it
  1245. to spend some of your time reading and following these instructions ?
  1246.  
  1247. If you think an answer is incomplete or inaccurate, please mail Ian
  1248. Jackson at <ijackson@nyx.cs.du.edu>.
  1249.  
  1250. Read the Installation and Getting Started Guide [Q2.1 `Where can I get the
  1251. HOWTOs and other documentation ?'].
  1252.  
  1253. If you're a Unix newbie read the FAQ for comp.unix.questions, and those
  1254. for any of the other comp.unix.* groups that may be relevant.
  1255.  
  1256. Linux is a Unix clone, so almost everything you read there will apply to
  1257. Linux.  Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
  1258. /pub/usenet/news.answers.
  1259.  
  1260. Check the relevant HOWTO for the subject in question, if there is one, or
  1261. an appropriate old-style sub-FAQ document.  Check the FTP sites.
  1262.  
  1263. Try experimenting --- that's the best way to get to know Unix and Linux.
  1264.  
  1265. Read the documentation.  Check the manpages (type man man if you don't
  1266. know about manpages) and the Info documentation (type C-h i, i.e. Control
  1267. H followed by I in Emacs) --- NB this isn't just for Emacs; for example
  1268. the GCC documentation lives here as well.  There will also often be a
  1269. README file with a package giving installation and/or usage instructions.
  1270.  
  1271. Make sure that you don't have a corrupted or out-of-date copy of the
  1272. program in question.  If possible, download it again and reinstall it ---
  1273. perhaps you made a mistake the first time.
  1274.  
  1275. Read comp.os.linux.announce --- this sometimes contains very important
  1276. information for all Linux users.
  1277.  
  1278. X-Windows questions belong in comp.windows.x.i386unix, not in
  1279. comp.os.linux.help.  But read the group first (including the FAQ), before
  1280. you post !
  1281.  
  1282. Only if you have done all of these things and are still stuck should you
  1283. post to comp.os.linux.help; alternatively you could send email to
  1284. linux-support@sunsite.unc.edu.  Make sure you read the next question, Q9.2
  1285. `What to put in a posting to comp.os.linux.help', first.
  1286.  
  1287. -------------------------------------------------------------------------------
  1288.  
  1289. Question 9.2.  What to put in a posting to comp.os.linux.help
  1290.  
  1291. Please read carefully the following advice about how to write your
  1292. posting.  Taking heed of it will greatly increase the chances that an
  1293. expert and/or fellow user reading your posting will have enough
  1294. information and motivation to reply.
  1295.  
  1296. Make sure you give full details of the problem, including
  1297.  
  1298. * What program, exactly, you are having problems with.  Include the
  1299.   version number if known and say where you got it.  Many standard
  1300.   commands tell you their version number if you give them a --version
  1301.   option.
  1302.  
  1303. * Which Linux release you're using (MCC, SLS, whatever).
  1304.  
  1305. * The *exact* and *complete* text of any error messages printed.
  1306.  
  1307. * Exactly what behaviour you were expecting, and exactly what behaviour
  1308.   you observed.  A transcript of an example session is a good way of
  1309.   showing this.
  1310.  
  1311. * The contents of any configuration files used by the program in question
  1312.   and any related programs.
  1313.  
  1314. * What version of the kernel and of the shared libraries you are using.
  1315.   The kernel version can be found by typing uname -a, and the shared
  1316.   library version by typing ls -l /lib/libc.so.4.
  1317.  
  1318. * Details of what hardware you're running on, if it seems appropriate.
  1319.  
  1320. You are in little danger of making your posting too long unless you
  1321. include large chunks of source code or uuencoded files, so err on the side
  1322. of giving too much information.
  1323.  
  1324. Use a clear, detailed Subject line.  Don't put things like `doesn't work',
  1325. `Linux', `help' or `question' in it --- we already knew that ! Save the
  1326. space for the name of the program, a fragment of the error message,
  1327. summary of the unusual behaviour, etc.
  1328.  
  1329. If you are reporting an `unable to handle kernel paging request' message,
  1330. follow the instructions in the Linux kernel sources README for turning the
  1331. numbers into something more meaningful.  If you don't do this noone who
  1332. reads your post will be able to do it for you, as the mapping from numbers
  1333. to function names varies from one kernel to another.
  1334.  
  1335. Put a summary paragraph at the top of your posting.
  1336.  
  1337. At the bottom of your posting, ask for responses by email and say you'll
  1338. post a summary.  Back this up by using Followup-To: poster.  Then, do
  1339. actually post a summary in a few days or a week or so.  Don't just
  1340. concatenate the replies you got --- summarise.  Putting the word SUMMARY
  1341. in your summary's Subject line is also a good idea.
  1342.  
  1343. Make sure your posting doesn't have an inappropriate References header
  1344. line.  This marks your article as part of the thread of the article
  1345. referred to, which will often cause it to be junked by the readers with
  1346. the rest of a boring thread.  If you use (t)rn you must make sure that
  1347. when you post you use the lowercase f key; using uppercase F and deleting
  1348. the quoted text doesn't do the same thing.  However Some versions of trn
  1349. 2.x have a bug which produces this effect effen if you use f.  If this
  1350. applies to your version you can edit out the References line in the
  1351. message before you post, or just use plain Pnews to make a new posting.
  1352. You should always read the header before posting anyway.
  1353.  
  1354. Finally, remember that you should not post email sent to you personally
  1355. without the sender's permission.
  1356.  
  1357. ===============================================================================
  1358.  
  1359. Section 10.  Administrative information and acknowledgements
  1360.  
  1361.  Q10.1       Feedback is invited
  1362.  Q10.2       Formats in which this FAQ is available
  1363.  Q10.3       Authorship and acknowledgements
  1364.  
  1365. -------------------------------------------------------------------------------
  1366.  
  1367. Question 10.1.  Feedback is invited
  1368.  
  1369. Please send me your comments on this FAQ.
  1370.  
  1371. I accept submissions for the FAQ in any format;  All contributions
  1372. comments and corrections are gratefully received.
  1373.  
  1374. Please send them to <ijackson@nyx.cs.du.edu>.
  1375.  
  1376. -------------------------------------------------------------------------------
  1377.  
  1378. Question 10.2.  Formats in which this FAQ is available
  1379.  
  1380. This document is available as ASCII text, an Emacs Info document and
  1381. PostScript.
  1382.  
  1383. The ASCII and Emacs Info versions and a Lout typesetter file (from which
  1384. the PostScript is produced) are generated automatically by a Perl script
  1385. which takes as input a file in the Bizarre Format with No Name.
  1386.  
  1387. The output files linux-faq.ascii, .info and .ps and a tarfile
  1388. linux-faq.source.tar.gz, containing the BFNN source and Perl script
  1389. converter, are available in the docs directories of the major Linux FTP
  1390. sites.
  1391.  
  1392. -------------------------------------------------------------------------------
  1393.  
  1394. Question 10.3.  Authorship and acknowledgements
  1395.  
  1396. This FAQ was compiled by Ian Jackson <ijackson@nyx.cs.du.edu>, with
  1397. assistance and comments from others too numerous to mention.  It was
  1398. loosely based on the original Linux FAQ by Marc-Michel Corsini.
  1399.  
  1400. Special thanks are due to Matt Welsh, who coordinates the HOWTOs and has
  1401. written substantial portions of many of them, and to Marc-Michel Corsini.
  1402. Thanks also to the contributors to the previous Linux FAQ, and to those
  1403. sent me comments about this FAQ, and who answered questions on the
  1404. newsgroup.
  1405.  
  1406. Last but not least, thanks to Linus Torvalds and the other contributors to
  1407. Linux for giving us something to write about !
  1408.  
  1409. -- 
  1410. Ian Jackson, at home  <ijackson@nyx.cs.du.edu> or <iwj10@cus.cam.ac.uk>
  1411. PGP2 public key available on server.  Urgent email: <iwj10@phx.cam.ac.uk>
  1412. 2 Lexington Close, Cambridge, CB4 3LS, England;  phone: +44 223 64238
  1413.