home *** CD-ROM | disk | FTP | other *** search
/ Caldera Network Desktop 1.0 / caldera-network-desktop-1.0.bin / doc / linux-faq / linux-faq.ascii next >
Text File  |  1995-09-10  |  111KB  |  2,517 lines

  1.             LINUX FREQUENTLY ASKED QUESTIONS WITH ANSWERS
  2.                             10 Sep 1995
  3.                 Ian Jackson <ijackson@nyx.cs.du.edu>
  4.  
  5. This is the list of Frequently Asked Questions about Linux, the free Unix
  6. for 386/486/586 [see Q1.1 `What is Linux ?' for more details].  It should
  7. be read in conjunction with the HOWTO documents, which are available in
  8.  
  9. * ftp.funet.fi (128.214.6.100) : /pub/OS/Linux/doc/HOWTO
  10. * tsx-11.mit.edu (18.172.1.2) : /pub/linux/docs/HOWTO
  11. * sunsite.unc.edu (152.2.22.81) : /pub/Linux/docs/HOWTO
  12.  
  13. and mirror sites thereof -- see Q2.5 `Where can I get Linux material by
  14. FTP ?'.  See Q2.1 `Where can I get the HOWTOs and other documentation ?'
  15. for a list of the HOWTOs and more information.  The INFO-SHEET and
  16. META-FAQ, found in the same place, also list other sources of Linux
  17. information.
  18.  
  19. The Linux Documentation Project documentation is available on
  20. sunsite.unc.edu in /pub/Linux/docs/LDP.  These documents (more are in
  21. preparation) are invaluable to the newcomer or for use as a reference
  22. work.
  23.  
  24. Please check out these documents and this FAQ, especially Q12.1 `You still
  25. haven't answered my question !', before posting your question to a
  26. newsgroup.
  27.  
  28. See Q13.2 `Formats in which this FAQ is available' for details of where to
  29. get the PostScript, Emacs Info, HTML (WWW) and plain ASCII versions of
  30. this document.
  31.  
  32. A new version of this document appears approximately monthly.  If this
  33. copy is more than a month old it may be out of date.
  34.  
  35. ===============================================================================
  36.  
  37. Index
  38.  
  39.  Section 1.  Introduction and General Information
  40.  Q1.1        What is Linux ?
  41.  Q1.2        What software does it support ?
  42.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  43.  Q1.4        What ports to other processors are there ?
  44.  Q1.5        How much hard disk space does Linux need ?
  45.  Q1.6        Is Linux PD ?  Copyrighted ?
  46.  
  47.  Section 2.  Network sources and resources
  48.  Q2.1        Where can I get the HOWTOs and other documentation ?
  49.  Q2.2        Where should I look on the World Wide Web for Linux stuff ?
  50.  Q2.3        What newsgroups are there for Linux ?
  51.  Q2.4        How do I install Linux ?
  52.  Q2.5        Where can I get Linux material by FTP ?
  53.  Q2.6        I don't have FTP access.  Where do I get Linux ?
  54.  Q2.7        I don't have Usenet access.  Where do I get information ?
  55.  Q2.8        What's mailing lists are there ?
  56.  Q2.9        Are the newsgroups archived anywhere ?
  57.  
  58.  Section 3.  Compatibility with other operating systems
  59.  Q3.1        Can Linux share my disk with DOS ?  OS/2 ?  386BSD ?  Minix ?
  60.  Q3.2        How do I access files on my DOS partition or floppy ?
  61.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  62.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  63.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  64.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  65.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  66.  Q3.8        How can I share a swap partition between Linux and MS Windows ?
  67.  
  68.  Section 4.  Linux's handling of filesystems, disks and drives
  69.  Q4.1        How can I get Linux to work with my large disk ?
  70.  Q4.2        How can I undelete files ?
  71.  Q4.3        Is there a defragmenter for ext2fs etc. ?
  72.  Q4.4        How do I format and create a filesystem on a floppy ?
  73.  Q4.5        I get nasty messages about inodes, blocks, and the suchlike
  74.  Q4.6        My swap area isn't working.
  75.  Q4.7        How do I remove LILO so my system boots DOS again ?
  76.  Q4.8        Why can't I use fdformat except as root ?
  77.  Q4.9        Is there something like Stacker or Doublespace for Linux ?
  78.  Q4.10       My ext2fs partitions are checked each time I reboot.
  79.  Q4.11       My root filesystem is read-only !
  80.  Q4.12       I have a huge /proc/kcore !  Can I delete it ?
  81.  Q4.13       My AHA1542C doesn't work with Linux.
  82.  
  83.  Section 5.  Porting, compiling and obtaining programs
  84.  Q5.1        What is ld.so and where do I get it ?
  85.  Q5.2        Has anyone ported / compiled / written XXX for Linux ?
  86.  Q5.3        How do I port XXX to Linux ?
  87.  Q5.4        Can I use code or a compiler compiled for a 486 on my 386 ?
  88.  Q5.5        What does gcc -O6 do ?
  89.  Q5.6        Where are <linux/*.h> and <asm/*.h> ?
  90.  Q5.7        I get errors when I try to compile the kernel.
  91.  Q5.8        How do I make a shared library ?
  92.  Q5.9        How do I make my executables smaller ?
  93.  Q5.10       Does Linux support threads or lightweight processes ?
  94.  Q5.11       Where can I get `lint' for Linux ?
  95.  Q5.12       Where can I find `kermit' for Linux ?
  96.  
  97.  Section 6.  Solutions to common miscellaneous problems
  98.  Q6.1        Setuid scripts don't seem to work.
  99.  Q6.2        Free memory as reported by free keeps shrinking.
  100.  Q6.3        When I add more memory it slows to a crawl.
  101.  Q6.4        Some programs (e.g. xdm) won't let me log in.
  102.  Q6.5        Some programs let me log in with no password.
  103.  Q6.6        My machine runs very slowly when I run GCC / X / ...
  104.  Q6.7        I can only log in as root.
  105.  Q6.8        My screen is all full of weird characters instead of letters.
  106.  Q6.9        I have screwed up my system and can't log in to fix it.
  107.  Q6.10       Emacs just dumps core.
  108.  Q6.11       I've discovered a huge security hole in rm !
  109.  Q6.12       lpr and/or lpd aren't working.
  110.  Q6.13       Timestamps on files on msdos partitions are set incorrectly.
  111.  Q6.14       How do I get LILO to boot the vmlinux file ?
  112.  
  113.  Section 7.  How do I do this or find out that ... ?
  114.  Q7.1        How can I get scrollback in text mode ?
  115.  Q7.2        How do I switch virtual consoles ?  How do I enable them ?
  116.  Q7.3        How do I set the timezone ?
  117.  Q7.4        What version of Linux and what machine name am I using ?
  118.  Q7.5        How can I enable or disable core dumps ?
  119.  Q7.6        How do I upgrade/recompile my kernel ?
  120.  Q7.7        Can I have more than 3 serial ports by sharing interrupts ?
  121.  Q7.8        How do I make a bootable floppy ?
  122.  Q7.9        How do I remap my keyboard to UK, French, etc. ?
  123.  Q7.10       How do I get NUM LOCK to default to on ?
  124.  Q7.11       How can I have more than 128Mb of swap ?
  125.  
  126.  Section 8.  Miscellaneous information and questions answered
  127.  Q8.1        What's all this about ELF ?
  128.  Q8.2        What is a .gz file ? And a .tgz ? And ... ?
  129.  Q8.3        What does VFS stand for ?
  130.  Q8.4        What is a BogoMip ?
  131.  Q8.5        What is the Linux Journal and where can I get it ?
  132.  Q8.6        How many people use Linux ?
  133.  Q8.7        How should I pronounce Linux ?
  134.  
  135.  Section 9.  Frequently encountered error messages
  136.  Q9.1        Unknown terminal type linux and similar
  137.  Q9.2        During linking I get Undefined symbol _mcount
  138.  Q9.3        lp1 on fire
  139.  Q9.4        INET: Warning: old style ioctl(IP_SET_DEV) called!
  140.  Q9.5        ld: unrecognized option '-m486'
  141.  Q9.6        GCC says Internal compiler error
  142.  Q9.7        make says Error 139
  143.  Q9.8        shell-init: permission denied when I log in.
  144.  Q9.9        No utmp entry.  You must exec ... when I log in.
  145.  Q9.10       Warning - bdflush not running
  146.  Q9.11       Warning: obsolete routing request made.
  147.  Q9.12       EXT2-fs: warning: mounting unchecked filesystem
  148.  Q9.13       EXT2-fs warning: maximal count reached
  149.  Q9.14       EXT2-fs warning: checktime reached
  150.  Q9.15       df says Cannot read table of mounted filesystems
  151.  Q9.16       fdisk says Partition X has different physical/logical ...
  152.  Q9.17       fdisk: Partition 1 does not start on cylinder boundary
  153.  Q9.18       fdisk says partition n has an odd number of sectors
  154.  Q9.19       mtools says cannot initialise drive XYZ
  155.  Q9.20       At the start of booting: Memory tight
  156.  
  157.  Section 10. The X Window System
  158.  Q10.1       Does Linux support X Windows ?
  159.  Q10.2       Where can I get an XF86Config for my system ?
  160.  Q10.3       xterm logins show up strangely in who, finger
  161.  Q10.4       I can't get X Windows to work right.
  162.  
  163.  Section 11. Questions applicable to very out-of-date software
  164.  Q11.1       fdisk says cannot use nnn sectors of this partition
  165.  Q11.2       GCC sometimes uses huge amounts of virtual memory and thrashes
  166.  Q11.3       My keyboard goes all funny after I switch VC's.
  167.  
  168.  Section 12. How to get further assistance
  169.  Q12.1       You still haven't answered my question !
  170.  Q12.2       What to put in a request for help
  171.  Q12.3       I want to mail someone about my problem.
  172.  
  173.  Section 13. Administrative information and acknowledgements
  174.  Q13.1       Feedback is invited
  175.  Q13.2       Formats in which this FAQ is available
  176.  Q13.3       Authorship and acknowledgements
  177.  Q13.4       Disclaimer and Copyright
  178.  
  179. ===============================================================================
  180.  
  181. Section 1.  Introduction and General Information
  182.  
  183.  Q1.1        What is Linux ?
  184.  Q1.2        What software does it support ?
  185.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  186.  Q1.4        What ports to other processors are there ?
  187.  Q1.5        How much hard disk space does Linux need ?
  188.  Q1.6        Is Linux PD ?  Copyrighted ?
  189.  
  190. -------------------------------------------------------------------------------
  191.  
  192. Question 1.1.  What is Linux ?
  193.  
  194. Linux is a Unix clone written from scratch by Linus Torvalds with
  195. assistance from a loosely-knit team of hackers across the Net.  It aims
  196. towards POSIX compliance.
  197.  
  198. It has all the features you would expect in a modern fully-fledged Unix,
  199. including true multitasking, virtual memory, shared libraries, demand
  200. loading, shared copy-on-write executables, proper memory management and
  201. TCP/IP networking.
  202.  
  203. It runs mainly on 386/486/586-based PCs, using the hardware facilities of
  204. the 386 processor family (TSS segments et al) to implement these features.
  205. Ports to other architectures are underway [Q1.4 `What ports to other
  206. processors are there ?'].
  207.  
  208. See the Linux INFO-SHEET [Q2.1 `Where can I get the HOWTOs and other
  209. documentation ?'] for more details.
  210.  
  211. The Linux kernel is distributed under the GNU General Public License - see
  212. Q1.6 `Is Linux PD ?  Copyrighted ?' for more details.
  213.  
  214. -------------------------------------------------------------------------------
  215.  
  216. Question 1.2.  What software does it support ?
  217.  
  218. Linux has GCC, Emacs, X-Windows, all the standard Unix utilities, TCP/IP
  219. (including SLIP and PPP) and all the hundreds of programs that people have
  220. compiled or ported for it.
  221.  
  222. There is a DOS emulator (look on tsx-11.mit.edu in
  223. /pub/linux/ALPHA/dosemu) which can run DOS itself and some (but not all)
  224. DOS applications.
  225.  
  226. An iBCS2 (Intel Binary Compatibility Standard) emulator for SVR4 ELF and
  227. SVR3.2 COFF binaries is at a fairly advanced stage of development.  See
  228. the file /pub/linux/BETA/ibcs2/README on tsx-11.mit.edu.
  229.  
  230. Work is progressing on an emulator for Microsoft Windows binaries [Q3.6
  231. `Can I run Microsoft Windows programs under Linux ?']; alternatively, I'm
  232. told that the DOS emulator team have been having some success getting MS
  233. Windows to run inside dosemu - there will be an announcement if and when
  234. they get it working.
  235.  
  236. For more information see the INFO-SHEET, which is one of the the HOWTOs
  237. [Q2.1 `Where can I get the HOWTOs and other documentation ?'].  See also
  238. Q5.3 `How do I port XXX to Linux ?'.
  239.  
  240. Some companies have commercial software available, including Motif.  They
  241. announce their availability in comp.os.linux.announce --- try searching
  242. the archives [Q2.9 `Are the newsgroups archived anywhere ?'].
  243.  
  244. -------------------------------------------------------------------------------
  245.  
  246. Question 1.3.  Does it run on my computer ?  What hardware is supported ?
  247.  
  248. You need a 386, 486 or 586, with at least 2Mb of RAM and a single floppy,
  249. to try it out.  To do anything useful more RAM and a hard disk are
  250. required.
  251.  
  252. VESA local bus and PCI are both supported.
  253.  
  254. There are problems with machines using MCA (IBM's proprietary bus), mainly
  255. to do with the hard disk controller.  There is a developers' release for
  256. PS/2 ESDI drives on invaders.dcrl.nd.edu in /pub/misc/linux.  Certain
  257. kinds of SCSI controllers also work, I understand.  Work is in progress to
  258. create a suitable version of the Slackware distribution.  I'm afraid I
  259. don't have any further details; you could try asking Arindam Banerji
  260. <axb@defender.dcrl.nd.edu>.
  261.  
  262. Linux is reported to run on 386 family based laptops, with X on most of
  263. them.
  264.  
  265. For details of exactly which PC's, video cards, disk controllers, etc.
  266. work see the INFO-SHEET and the Hardware HOWTO [Q2.1 `Where can I get the
  267. HOWTOs and other documentation ?'].
  268.  
  269. Linux will never run on a 286, because it requires task-switching and
  270. memory management facilities not found on 286 processors.
  271.  
  272. Linux does not currently support multiprocessor machines, though some
  273. experienced developers are working on the problem.
  274.  
  275. -------------------------------------------------------------------------------
  276.  
  277. Question 1.4.  What ports to other processors are there ?
  278.  
  279. A project has been underway for a while to port Linux to suitable
  280. 68000-series based systems such as Amigas and Ataris.  This has now
  281. reached beta test quality and there is an X server.  There is a
  282. linux-680x0 mailing list [Q2.8 `What's mailing lists are there ?'], and a
  283. Linux/68K FAQ at
  284. http://pfah.informatik.uni-kl.de:8000/pers/jmayer/linux68k-faq and on
  285. tsx-11.mit.edu in /pub/linux/680x0/FAQ.gz; further information is at
  286. http://www-users.informatik.rwth-aachen.de/~hn/linux68k.html.  There is a
  287. mailing list for the Atari port - mail <majordomo@phil.uni-sb.de> with a
  288. body containing only subscribe atarix - and an ftp area on
  289. ftp.phil.uni-sb.de in /pub/atari/linux.
  290.  
  291. Information about a port to 68K-based Macintoshes can be found in the
  292. MacLinux FAQ, available on www.ibg.uu.se in /pub/maclinux/FAQ.txt.  Other
  293. stuff may be in the same directory.  There is a mailing list.  Rumour has
  294. it that this project is dead.
  295.  
  296. There is a port to the PowerPC.  As of the 7th of July it is rather
  297. fragmentary and cannot recompile itself, and only supports Motorola 1603
  298. boards.  Work on Motorola Ultra, PowerStack, RS/6000 and NuBus machines
  299. continues.  If you wish to contribute to the project join the linux-ppc
  300. mailing list [Q2.8 `What's mailing lists are there ?'].  There is a FAQ on
  301. liber.stanford.edu in /pub/linuxppc/linux-ppc-FAQ or on the WWW at
  302. http://liber.stanford.edu/linuxppc/linux-ppc-FAQ.html.
  303.  
  304. Both Linus and Jim Paradis <paradis@sousa.amt.ako.dec.com> or
  305. <jrp@world.std.com> are working on ports to the 64-bit DEC AXP (the
  306. Alpha).  Again, there is a mailing list at vger.rutgers.edu.
  307.  
  308. Ralf Baechle is working on a port to the MIPS, initially for the R4600 on
  309. Deskstation Tyne machines.  The Linux/MIPS FAQ is available on the WWW and
  310. in the MIPS port area on ftp.waldorf-gmbh.de in /pub/linux/mips.  There is
  311. also a MIPS channel on the Linux Activists mailserver and a linux-mips
  312. mailing list [Q2.8 `What's mailing lists are there ?'].  Interested people
  313. may mail their questions and offers of assistance to
  314. <linux@waldorf-gmbh.de>.
  315.  
  316. There are currently two ports of Linux to the ARM family of processors
  317. ongoing; one of these is to the ARM3 as fitted to the Acorn A5000, and
  318. includes I/O drivers for the 82710/11 as appropriate, and the other is to
  319. the ARM610 as fitted to the Acorn Risc PC.  The Risc PC port is currently
  320. in its early to middle stages, owing to the need to rewrite much of the
  321. memory handling.  The A5000 port is in restricted beta testing; a release
  322. is likely fairly soon.  For more up to date information watch the
  323. newsgroup comp.sys.acorn.misc, or look on the WWW at
  324. http://whirligig.ecs.soton.ac.uk/~rmk92/armlinux.html; if you want to
  325. volunteer you should contact Martin Ebourne <mje@soton.ac.uk>.
  326.  
  327. David Miller is working on a port to the Sparc.  It is at a very early
  328. stage; people who are willing to dedicate lots of time and have access to
  329. Sparc boxes for testing should get in touch with <davem@caip.rutgers.edu>.
  330.  
  331. None of the above ports will be capable of running Linux/386 binaries.
  332.  
  333. Linux port to the Aleph 1 486 card (*not* the second processor card for
  334. the Risc PC yet, but the original PC-on-a-podule card) has been completed
  335. and appears stable.  Full details on this version, and updates on general
  336. ports in progress, can be found on the WWW at
  337. http://www.ph.kcl.ac.uk/~amb/linux.html.
  338.  
  339. -------------------------------------------------------------------------------
  340.  
  341. Question 1.5.  How much hard disk space does Linux need ?
  342.  
  343. 10Mb for a very minimal installation, suitable for trying it out and not
  344. much else.
  345.  
  346. You can squeeze a more complete installation including X Windows into
  347. 80Mb.  Installating the whole of Slackware 1.2 takes around 200Mb,
  348. including some space for user files and spool areas.
  349.  
  350. -------------------------------------------------------------------------------
  351.  
  352. Question 1.6.  Is Linux PD ?  Copyrighted ?
  353.  
  354. The Linux kernel copyright belongs to Linus Torvalds.  He has placed it
  355. under the GNU General Public Licence, which basically means that you may
  356. freely copy, change and distribute it, but that you may not impose any
  357. restrictions on further distribution, and that you must make the source
  358. code available.  This is not the same as Public Domain (see the Copyright
  359. FAQ, available on rtfm.mit.edu in
  360. /pub/usenet/news.answers/law/Copyright-FAQ, for details).
  361.  
  362. Full details are in the file COPYING in the Linux kernel sources (probably
  363. in /usr/src/linux on your system).
  364.  
  365. The licences of the utilities and programs which come with the
  366. installations vary; much of the code is from the GNU Project at the Free
  367. Software Foundation, and is also under the GPL.
  368.  
  369. Note that discussion about the merits or otherwise of the GPL should be
  370. posted to gnu.misc.discuss and not to the comp.os.linux groups.
  371.  
  372. ===============================================================================
  373.  
  374. Section 2.  Network sources and resources
  375.  
  376.  Q2.1        Where can I get the HOWTOs and other documentation ?
  377.  Q2.2        Where should I look on the World Wide Web for Linux stuff ?
  378.  Q2.3        What newsgroups are there for Linux ?
  379.  Q2.4        How do I install Linux ?
  380.  Q2.5        Where can I get Linux material by FTP ?
  381.  Q2.6        I don't have FTP access.  Where do I get Linux ?
  382.  Q2.7        I don't have Usenet access.  Where do I get information ?
  383.  Q2.8        What's mailing lists are there ?
  384.  Q2.9        Are the newsgroups archived anywhere ?
  385.  
  386. -------------------------------------------------------------------------------
  387.  
  388. Question 2.1.  Where can I get the HOWTOs and other documentation ?
  389.  
  390. Look in the following places, and on sites that mirror them.
  391.  
  392. * ftp.funet.fi (128.214.6.100) : /pub/OS/Linux/doc/HOWTO
  393. * tsx-11.mit.edu (18.172.1.2) : /pub/linux/docs/HOWTO
  394. * sunsite.unc.edu (152.2.22.81) : /pub/Linux/docs/HOWTO
  395.  
  396. For a complete list of Linux FTP sites see Q2.5 `Where can I get Linux
  397. material by FTP ?'.
  398.  
  399. If you don't have access to FTP try using the FTP-by-mail servers at
  400. ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  401. ftp-mailer@informatik.tu-muenchen.de.
  402.  
  403. A complete list of HOWTO's is available in the file HOWTO.INDEX in the
  404. docs/HOWTO directory at the FTP sites, but here is a (possibly incomplete)
  405. list:
  406.  
  407.      Linux INFO-SHEET                        Linux META-FAQ
  408.      Bootdisk HOWTO                          Busmouse HOWTO
  409.      CDROM HOWTO                             Commercial HOWTO
  410.      Danish HOWTO                            Distribution HOWTO
  411.      DOSEMU HOWTO                            ELF HOWTO
  412.      Ethernet HOWTO                          Firewall HOWTO
  413.      Ftape HOWTO                             German HOWTO
  414.      HAM HOWTO                               Hardware HOWTO
  415.      Installation HOWTO                      Japanese Extensions HOWTO
  416.      Kernel HOWTO                            Keystroke HOWTO
  417.      Mail HOWTO                              MGR HOWTO
  418.      NET-2 HOWTO                             News HOWTO
  419.      NIS HOWTO (NIS=Sun's YP)                PCI HOWTO
  420.      PCMCIA HOWTO                            Printing HOWTO
  421.      Printing Usage HOWTO                    PPP HOWTO
  422.      SCSI HOWTO                              SCSI-Programming HOWTO
  423.      Serial HOWTO                            Sound HOWTO
  424.      Term HOWTO                              Tips HOWTO
  425.      UPS HOWTO                               UUCP HOWTO
  426.      XFree86 HOWTO
  427.  
  428. More of these documents are always in preparation.  You should check in
  429. nearby directories on the FTP sites if you can't find the answer in one of
  430. the HOWTOs.  There are also several mini-HOWTOs on sunsite.unc.edu in the
  431. /pub/Linux/docs/HOWTO/mini directory.
  432.  
  433. The file WRITING contains information on how to write a new HOWTO.
  434.  
  435. The HOWTOs are coordinated by Greg Hankins, <gregh@cc.gatech.edu>.
  436.  
  437. The `books' produced by the Linux Documentation Project are available in
  438. /pub/Linux/docs/LDP on sunsite.unc.edu.  Please read them if you are new
  439. to Unix and Linux.  Here is a list of those released so far:
  440.  
  441. * The Linux Documentation Project manifesto
  442. * Installation and Getting Started Guide
  443. * The Kernel Hacker's Guide
  444. * Network Administration Guide
  445. * Linux System Administrator's Guide
  446.  
  447. -------------------------------------------------------------------------------
  448.  
  449. Question 2.2.  Where should I look on the World Wide Web for Linux stuff ?
  450.  
  451. Matt Welsh maintains the Linux Documentation Project Home Page, at
  452. http://sunsite.unc.edu/mdw/linux.html.
  453.  
  454. This page refers to all the FAQs and HOWTOs, both those which are
  455. available in HTML (WWW) format, like this FAQ, and those which aren't.
  456.  
  457. -------------------------------------------------------------------------------
  458.  
  459. Question 2.3.  What newsgroups are there for Linux ?
  460.  
  461. There are ten international Usenet newsgroups devoted to Linux.
  462.  
  463. comp.os.linux.announce is the moderated announcements group; you should
  464. read this if you intend to use Linux.  Submissions for that group should
  465. be emailed to linux-announce@news.ornl.gov.
  466.  
  467. comp.os.linux.answers contains all the FAQs, HOWTOs and other important
  468. documentation.  You should subscribe to this too.
  469.  
  470. Also worth reading are the other groups in the comp.os.linux.* hierarchy
  471. -- you may find that many common problems are too recent to find in this
  472. FAQ but are answered in the newsgroups.  These groups are
  473. comp.os.linux.setup, comp.os.linux.hardware, comp.os.linux.networking,
  474. comp.os.linux.x, comp.os.linux.development.apps,
  475. comp.os.linux.development.system, comp.os.linux.advocacy and
  476. comp.os.linux.misc.
  477.  
  478. Remember that since Linux is a Unix clone, most all of the material in
  479. comp.unix.* and comp.windows.x.* groups will be relevant.  Apart from
  480. hardware considerations, and some obscure or very technical low-level
  481. issues, you'll find that these groups are the right place to start.
  482.  
  483. Please read Q12.1 `You still haven't answered my question !' before
  484. posting, and make sure you post to the right newsgroup -- see `Welcome to
  485. the comp.os.linux.* hierarchy' which is posted every two weeks to
  486. comp.os.linux.announce, comp.os.linux.answers and other groups.
  487.  
  488. Crossposting between different comp.os.linux.* groups is rarely a good
  489. idea.
  490.  
  491. There may well be Linux groups local to your institution or area - check
  492. there first.
  493.  
  494. The groups comp.os.linux.development, comp.os.linux.admin and
  495. comp.os.linux.help were superseded in a recent newsgroup reorganisation.
  496. You should no longer use them.
  497.  
  498. See also Q2.7 `I don't have Usenet access.  Where do I get information ?'.
  499.  
  500. Other regional and local newsgroups also exist - you may find the traffic
  501. more manageable there.  The French Linux newsgroup is fr.comp.os.linux;
  502. The German one is de.comp.os.linux.  In Australia, try
  503. aus.computers.linux.  In Croatia there is the moderated group
  504. hr.comp.linux.m.
  505.  
  506. -------------------------------------------------------------------------------
  507.  
  508. Question 2.4.  How do I install Linux ?
  509.  
  510. There are several pre-packaged releases of Linux available, including the
  511. MCC-Interim release, the TAMU release and the Slackware release.  Each
  512. contains the software you need to run Linux, ready to install and use.
  513. The exact details of which software is included and how to install them
  514. vary from release to release.
  515.  
  516. You should read the Installation HOWTO for more details on how to go about
  517. installing Slackware.  If you prefer a small, clean distribution to one
  518. with everything but the kitchen sink you might like to try the MCC-Interim
  519. release.
  520.  
  521. All of those releases are available via anonymous FTP from the Linux
  522. archive sites [Q2.5 `Where can I get Linux material by FTP ?'].  There are
  523. also a large number of other releases which are distributed less globally,
  524. which suit special local and national requirements (for example, better
  525. internationalisation support).
  526.  
  527. -------------------------------------------------------------------------------
  528.  
  529. Question 2.5.  Where can I get Linux material by FTP ?
  530.  
  531. There are three main archive sites for Linux:
  532.  
  533. * ftp.funet.fi (Finland, 128.214.6.100) : /pub/OS/Linux
  534. * sunsite.unc.edu (US, 152.2.22.81) : /pub/Linux
  535. * tsx-11.mit.edu (US, 18.172.1.2) : /pub/linux
  536.  
  537. The MCC-Interim release is available from ftp.mcc.ac.uk (UK, 130.88.200.7)
  538. in /pub/linux; the TAMU release is available from net.tamu.edu (US,
  539. 128.194.177.1) in /pub/linux.
  540.  
  541. The contents of these sites is mirrored (copied, usually approximately
  542. daily) by a number of other sites.  Please use one close to you -- that
  543. will be faster for you and easier on the network.
  544.  
  545. * src.doc.ic.ac.uk : /packages/Linux (UK)
  546. * sunacm.swan.ac.uk : /pub/Linux (UK)
  547. * ftp.ibp.fr : /pub/linux (France)
  548. * ftp.cc.gatech.edu : /pub/linux (US - southeast: Suranet)
  549. * wuarchive.wustl.edu : /systems/linux (US)
  550. * mrcnext.cso.uiuc.edu : /pub/linux (US)
  551. * ftp.cdrom.com : /pub/linux (US)
  552. * ftp.informatik.tu-muenchen.de : /pub/comp/os/linux (Germany)
  553. * ftp.ibr.cs.tu-bs.de : /pub/os/linux (Germany)
  554. * ftp.dfv.rwth-aachen.de : /pub/linux (Germany)
  555. * ftp.informatik.rwth-aachen.de : /pub/Linux (Germany)
  556. * bond.edu.au : /pub/OS/Linux (Australia)
  557. * monu1.cc.monash.edu.au : /pub/linux (Australia)
  558. * ftp.dstc.edu.au : /pub/Linux (Australia: Queensland)
  559. * ftp.sun.ac.za : /pub/linux (South Africa)
  560. * ftp.inf.utfsm.cl : /pub/Linux (Chile)
  561. * ftp.zel.fer.hr : /pub/Linux (Croatia)
  562.  
  563. Not all of these mirror all of the other `source' sites, and some have
  564. material not available on the `source' sites.
  565.  
  566. -------------------------------------------------------------------------------
  567.  
  568. Question 2.6.  I don't have FTP access.  Where do I get Linux ?
  569.  
  570. The easiest thing is probably to find a friend with FTP access.  If there
  571. is a Linux users group near you they may be able to help.
  572.  
  573. If you have a reasonably good email connection you could try the
  574. FTP-by-mail servers at ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  575. ftp-mailer@informatik.tu-muenchen.de.
  576.  
  577. Linux is also available via traditional mail on diskette, CD-ROM and tape.
  578. The Installation HOWTO, and the file /pub/Linux/docs/distributions on
  579. sunsite.unc.edu, contain information on these distributions.
  580.  
  581. You could also try Zane Healy <healyzh@holonet.net>'s list of Linux BBS's,
  582. which is posted regularly (1st and 15th of each month) to
  583. comp.os.linux.announce and occasionally to the Fidonet and RIME UNIX
  584. echoes.
  585.  
  586. -------------------------------------------------------------------------------
  587.  
  588. Question 2.7.  I don't have Usenet access.  Where do I get information ?
  589.  
  590. A digest of comp.os.linux.announce is available at the
  591. majordomo@vger.rugters.edu listserver [Q2.8 `What's mailing lists are
  592. there ?'], as the list namedlinux-announce-digest.  You are strongly
  593. advised to subscribe to this list, as it carries important information and
  594. documentation about Linux.
  595.  
  596. Digests of postings to the old set of comp.os.linux.* groups are available
  597. by subscribing to the bidirectional gateway at
  598. linux-*-request@news-digests.mit.edu, where * is one of announce,
  599. development, help, misc or admin.
  600.  
  601. Please remember to use the -request addresses for your subscription and
  602. unsubscription messages; mail to the other address is posted to the
  603. newsgroup !
  604.  
  605. -------------------------------------------------------------------------------
  606.  
  607. Question 2.8.  What's mailing lists are there ?
  608.  
  609. The Linux developers now mainly use the Majordomo server at
  610. <majordomo@vger.rutgers.edu>.  Send a message with lists in the body to
  611. get a list of the lists there; add a line with help to get the standard
  612. Majordomo help file which has instructions for subscribing and
  613. unsubscribing.
  614.  
  615. Note that most of these lists are used by the developers of Linux to talk
  616. about technical issues and future developments.  These are not intended
  617. for new users' questions.
  618.  
  619. There is a linux-newbie list where `no question is too stupid';
  620. unfortunately it seems that few of the experienced users read that
  621. channel.  It does have very low volume.
  622.  
  623. There is also an old listserver on niksula.hut.fi; most of the lists on
  624. vger were once `channels' on niksula.  The mailing list software there is
  625. weird and flakey, and the list-owner mail is redirected to /dev/null
  626. because the person who used to run the list doesn't any more.
  627.  
  628. The niksula server will send you its help file if you send an empty mail
  629. message to linux-activists-request@niksula.hut.fi.
  630.  
  631. If you want to unsubscribe from it send a mail message like this
  632.   From: you@domain.org
  633.   To: linux-activists-request@niksula.hut.fi
  634.   Subject: irrelevant
  635.  
  636.   X-Mn-Admin: leave CHANNEL
  637. to leave a channel called CHANNEL.  Do *not* put an X-Mn-Key line in your
  638. message - that will cause it to be posted to the list.
  639.  
  640. Note that you *must* remember to unsubscribe from niksula *before* you
  641. change your email address, as due to a design flaw in the list server it
  642. is virtually impossible to get yourself unsubscribed after such a change.
  643.  
  644. The ANNOUNCE list on niksula is a digest of postings to
  645. comp.os.linux.announce, for the benefit of those without Usenet access.
  646. However since niksula.hut.fi is slow and overloaded I'd recommend
  647. subscribing to the MIT digestifier instead [Q2.7 `I don't have Usenet
  648. access.  Where do I get information ?'].
  649.  
  650. -------------------------------------------------------------------------------
  651.  
  652. Question 2.9.  Are the newsgroups archived anywhere ?
  653.  
  654. sunsite.unc.edu contains archives of comp.os.linux.announce, in
  655. /pub/Linux/docs/linux-announce.archive.  These are mirrored from /usenet
  656. on src.doc.ic.ac.uk.
  657.  
  658. There is an `easy to access' archive of comp.os.linux.announce on the
  659. World Wide Web at http://www.leo.org/archiv/linux/archiv/ann_index.html.
  660. It supports searching and browsing.
  661.  
  662. I do not know of any (current) archives of the other groups in the
  663. comp.os.linux hierarchy.
  664.  
  665. ===============================================================================
  666.  
  667. Section 3.  Compatibility with other operating systems
  668.  
  669.  Q3.1        Can Linux share my disk with DOS ?  OS/2 ?  386BSD ?  Minix ?
  670.  Q3.2        How do I access files on my DOS partition or floppy ?
  671.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  672.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  673.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  674.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  675.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  676.  Q3.8        How can I share a swap partition between Linux and MS Windows ?
  677.  
  678. -------------------------------------------------------------------------------
  679.  
  680. Question 3.1.  Can Linux share my disk with DOS ?  OS/2 ?  386BSD ?  Minix ?
  681.  
  682. Yes.  Linux uses the standard PC partitioning scheme, so it can share your
  683. disk with other operating systems.  Note, however, that many of these
  684. other operating systems are rather cranky: DOS FDISK and FORMAT can
  685. sometimes overwrite data in a Linux partition because they sometimes
  686. incorrectly use partition data from the partition's boot sector rather
  687. than the partition table.
  688.  
  689. Linux can read and write the files on your DOS and OS/2 FAT partitions and
  690. floppies using either the DOS filesystem type built into the kernel or
  691. mtools.
  692.  
  693. See Q1.2 `What software does it support ?' for details and status of the
  694. emulators for DOS, MS Windows and System V programs.
  695.  
  696. See also Q3.5 `Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems
  697. ?'.
  698.  
  699. -------------------------------------------------------------------------------
  700.  
  701. Question 3.2.  How do I access files on my DOS partition or floppy ?
  702.  
  703. Use the DOS filesystem, i.e. type, for example:
  704.         mkdir /dos
  705.         mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  706. If it's a floppy, don't forget to umount it before ejecting it !
  707.  
  708. You can use the conv=text/binary/auto, umask=nnn, uid=nnn and gid=nnn
  709. options to control the automatic line-ending conversion, permissions and
  710. ownerships of the files in the DOS filesystem as they appear under Linux.
  711. If you mount your DOS filesystem by putting it in your /etc/fstab you can
  712. record the options (comma-separated) there, instead of defaults.
  713.  
  714. Alternatively you can use `mtools', available in both binary and source
  715. form on the FTP sites -- see Q2.5 `Where can I get Linux material by FTP
  716. ?'.
  717.  
  718. A kernel patch (known as the fd-patches) is available which allows
  719. floppies with nonstandard numbers of tracks and/or sectors to be used;
  720. this patch is included in the 1.1 alpha testing kernel series.
  721.  
  722. -------------------------------------------------------------------------------
  723.  
  724. Question 3.3.  Can I use my Stacked/DBLSPC/etc. DOS drive ?
  725.  
  726. Not very easily.  You can access them from within the DOS emulator [Q1.2
  727. `What software does it support ?'], but it's harder to do as a normal
  728. filesystem under Linux or using mtools.  There is a module available for
  729. the Linux kernel which can do read-only access of the compressed volume.
  730. Look on sunsite.unc.edu in /pub/Linux/system/Filesystems, for the ths
  731. package.
  732.  
  733. -------------------------------------------------------------------------------
  734.  
  735. Question 3.4.  Can I access OS/2 HPFS partitions from Linux ?
  736.  
  737. Yes, but it's only read-only at the moment.  To use it you must compile a
  738. kernel with support for it enabled [Q7.6 `How do I upgrade/recompile my
  739. kernel ?'].  Then you can mount it using the mount command, for example:
  740.         mkdir /hpfs
  741.         mount -t hpfs /dev/hda5 /hpfs
  742.  
  743. -------------------------------------------------------------------------------
  744.  
  745. Question 3.5.  Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  746.  
  747. I'm told that there is a primitive, alpha test read-only Amiga filesystem
  748. on sunsite.unc.edu in /pub/Linux/patches/amigaffs.tar.Z.  More information
  749. is in affs-readme in the tarfile.
  750.  
  751. Recent kernels contain support for the UFS filesystem used by System V and
  752. Coherent.
  753.  
  754. There is a set of user-level programs that provides read-only access to
  755. the Macintosh hierarchical filing system (HFS). It is available on
  756. sunsite.unc.edu in /pub/Linux/utils/disk-management/hfs0_36.tgz.  This is
  757. being turned into a kernel module, which is available on sunsite.
  758.  
  759. The 1.3.x alpha test kernel series now has support for mounting Windows
  760. for Workgroups networked filesystems, using Samba.  Information is
  761. available at http://lake.canberra.edu.au/samba/samba.html.
  762.  
  763. There is no support for the rest of those yet; I have not heard of any
  764. recent work on providing some.
  765.  
  766. -------------------------------------------------------------------------------
  767.  
  768. Question 3.6.  Can I run Microsoft Windows programs under Linux ?
  769.  
  770. Not yet.  There is a project, known as WINE, to build an MS Windows
  771. emulator for Linux, but it is not ready for users yet.  Don't ask about it
  772. unless you think you can contribute; look out for the status reports in
  773. comp.emulators.ms-windows.wine.
  774.  
  775. In the meantime if you need to run MS Windows programs your best bet is
  776. probably to reboot when you want to switch environments.  LILO (the Linux
  777. bootloader) has the facility for a boot menu --- see its documentation for
  778. more details.
  779.  
  780. -------------------------------------------------------------------------------
  781.  
  782. Question 3.7.  How can I boot Linux from OS/2's Boot Manager ?
  783.  
  784. 1. Create a partition using OS/2's FDISK (Not Linux's fdisk).
  785.  
  786. 2. Format the partition under OS/2, either with FAT or HPFS.  This is so
  787. that OS/2 knows about the partition being formatted.  (This step is not
  788. necessary with OS/2 "warp" 3.0.)
  789.  
  790. 3. Add the partition to the Boot Manager.
  791.  
  792. 4. Boot Linux, and create a filesystem on the partition using mkfs -t ext2
  793. or mke2fs.  At this point you may, if you like, use Linux's fdisk to
  794. change the partition type code of the new partition to type 83 (Linux
  795. Native) -- this may help some automated installation scripts find the
  796. right partition to use.
  797.  
  798. 5. Install Linux on the partition.
  799.  
  800. 6. Install LILO on the Linux partition -- NOT on the master boot record of
  801. the hard drive.  This installs LILO as a second-stage boot loader on the
  802. Linux partition itself, to start up the kernel specified in the LILO
  803. config file.  To do this you should put
  804.    boot = /dev/hda2
  805. (where /dev/hda2 is the *partition* you want to boot off) in your
  806. /etc/lilo/config or /etc/lilo.config file.
  807.  
  808. 7. Make sure that it is the Boot Manager partition that is marked active,
  809. so that you can use Boot Manager to choose what to boot.
  810.  
  811. -------------------------------------------------------------------------------
  812.  
  813. Question 3.8.  How can I share a swap partition between Linux and MS Windows ?
  814.  
  815. See the Mini-HOWTO on the subject by H. Peter Anvin, <hpa@eecs.nwu.edu>.
  816. It is available on sunsite.unc.edu in /pub/Linux/docs.
  817.  
  818. ===============================================================================
  819.  
  820. Section 4.  Linux's handling of filesystems, disks and drives
  821.  
  822.  Q4.1        How can I get Linux to work with my large disk ?
  823.  Q4.2        How can I undelete files ?
  824.  Q4.3        Is there a defragmenter for ext2fs etc. ?
  825.  Q4.4        How do I format and create a filesystem on a floppy ?
  826.  Q4.5        I get nasty messages about inodes, blocks, and the suchlike
  827.  Q4.6        My swap area isn't working.
  828.  Q4.7        How do I remove LILO so my system boots DOS again ?
  829.  Q4.8        Why can't I use fdformat except as root ?
  830.  Q4.9        Is there something like Stacker or Doublespace for Linux ?
  831.  Q4.10       My ext2fs partitions are checked each time I reboot.
  832.  Q4.11       My root filesystem is read-only !
  833.  Q4.12       I have a huge /proc/kcore !  Can I delete it ?
  834.  Q4.13       My AHA1542C doesn't work with Linux.
  835.  
  836. -------------------------------------------------------------------------------
  837.  
  838. Question 4.1.  How can I get Linux to work with my large disk ?
  839.  
  840. If your disk is an IDE or EIDE drive you should read the Large-IDE
  841. mini-HOWTO.  Some controllers do translation between `physical'
  842. cylinders/heads/sectors and `logical' ones.
  843.  
  844. SCSI disks are accessed by linear block numbers; the BIOS invents some
  845. `logical' cylinders/heads/sectors fiction to support DOS.
  846.  
  847. DOS will usually not be able to access partitions which extend beyond 1024
  848. logical cylinders, and will make booting a Linux kernel from such
  849. partitions using LILO problematic at best.
  850.  
  851. You can still use such partitions for Linux or other operating systems
  852. that access the controller directly.
  853.  
  854. I'd recommend creating at least one Linux partition entirely under the
  855. 1024-logical-cylinder limit and booting off that; the other partitions
  856. will then be OK.
  857.  
  858. -------------------------------------------------------------------------------
  859.  
  860. Question 4.2.  How can I undelete files ?
  861.  
  862. In general, this is very hard to do on Unices because of their
  863. multitasking nature.  Undelete functionality for the ext2fs is being
  864. worked on, but don't hold your breath.
  865.  
  866. There are a number of packages available that work by providing new
  867. commands for deletion and sometimes copying that move deleted files into a
  868. `wastebasket' directory instead; they can then be recovered until cleaned
  869. out automatically by background processing.
  870.  
  871. Alternatively you can search the raw disk device which holds the
  872. filesystem in question.  This is hard work, and you will need to be root
  873. to do this.
  874.  
  875. -------------------------------------------------------------------------------
  876.  
  877. Question 4.3.  Is there a defragmenter for ext2fs etc. ?
  878.  
  879. Yes.  There is a Linux filesystem defragmenter for minix, old-style, ext2,
  880. and xia filesystems available on sunsite.unc.edu in
  881. system/Filesystems/defrag-0.6.tar.gz.
  882.  
  883. Users of the ext2 filesystem can probably do without defrag since ext2
  884. contains extra code to keep fragmentation reduced even in very full
  885. filesystems.
  886.  
  887. -------------------------------------------------------------------------------
  888.  
  889. Question 4.4.  How do I format and create a filesystem on a floppy ?
  890.  
  891. For a 3.5 inch high density floppy:
  892.    fdformat /dev/fd0H1440
  893.    mkfs -t ext2 -m 0 /dev/fd0H1440 1440
  894. For a 5.25 inch floppy use fd0h1200 and 1200 as appropriate.  For the `B'
  895. drive use fd1 instead of fd0.  Full details of which floppy devices do
  896. what can be found in the Linux Device List [Q2.1 `Where can I get the
  897. HOWTOs and other documentation ?'].  You may have to run mke2fs directly
  898. instead of mkfs -t ext2.  The -m 0 option tells mkfs.ext2 not to reserve
  899. any space on the disk for the superuser --- usually the last 10% is
  900. reserved for root.
  901.  
  902. The first command low-level formats the floppy; the second creates an
  903. empty filesystem on it.  After doing this you can mount the floppy like a
  904. hard disk partition and simply cp and mv files, etc.
  905.  
  906. -------------------------------------------------------------------------------
  907.  
  908. Question 4.5.  I get nasty messages about inodes, blocks, and the suchlike
  909.  
  910. You probably have a corrupted filesystem, probably caused by not shutting
  911. Linux down properly before turning off the power or resetting.  You need
  912. to use a recent shutdown program to do this --- for example, the one
  913. included in the util-linux package, available on sunsite and tsx-11.
  914.  
  915. If you're lucky the program fsck (or e2fsck or xfsck as appropriate if you
  916. don't have the automatic fsck front-end) will be able to repair your
  917. filesystem; if you're unlucky the filesystem is trashed and you'll have to
  918. reinitialise it with mkfs (or mke2fs, mkxfs etc.) it and restore from a
  919. backup.
  920.  
  921. NB: don't try to check a filesystem that's mounted read-write - this
  922. includes the root partition if you don't see
  923.    VFS: mounted root ... read-only
  924. at boot time.
  925.  
  926. -------------------------------------------------------------------------------
  927.  
  928. Question 4.6.  My swap area isn't working.
  929.  
  930. When you boot (or enable swapping manually) you should see
  931.         Adding Swap: NNNNk swap-space
  932.  
  933. If you don't see any messages at all you are probably missing swapon -av
  934. (the command to enable swapping) in your /etc/rc.local or /etc/rc.d/* (the
  935. system startup scripts), or have forgotten to make the right entry in
  936. /etc/fstab:
  937.         /dev/hda2       none       swap       sw
  938. for example.
  939.  
  940. If you see
  941.         Unable to find swap-space signature
  942. you have forgotten to run mkswap.  See the manpage for details; it works
  943. much like mkfs.
  944.  
  945. Check the Installation HOWTO for detailed instructions of how to set up a
  946. swap area.
  947.  
  948. -------------------------------------------------------------------------------
  949.  
  950. Question 4.7.  How do I remove LILO so my system boots DOS again ?
  951.  
  952. Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR (which is not
  953. documented).  This will restore a standard MS-DOS Master Boot Record.  If
  954. you have DR-DOS 6.0, go into FDISK in the normal way and then select the
  955. `Re-write Master Boot Record' option.
  956.  
  957. If you don't have DOS 5 or DR-DOS you need to have the boot sector that
  958. LILO saved when you first installed it.  You did keep that file, didn't
  959. you ?  It's probably called boot.0301 or some such.  Type
  960.    dd if=boot.0301 of=/dev/hda bs=445 count=1
  961. (or sda if you're using a SCSI disk).  This may also wipe out your
  962. partition table, so beware !  If you're desperate, you could use
  963.    dd if=/dev/zero of=/dev/hda bs=512 count=1
  964. which will erase your partition table and boot sector completely: you can
  965. then reformat the disk using your favourite software; however this will
  966. render the contents of your disk inaccessible --- you'll lose it all
  967. unless you're an expert.
  968.  
  969. Note that the DOS MBR boots whichever (single!) partition is flagged as
  970. `active'; you may need to use fdisk to set and clear the active flags on
  971. partitions appropriately.
  972.  
  973. -------------------------------------------------------------------------------
  974.  
  975. Question 4.8.  Why can't I use fdformat except as root ?
  976.  
  977. The system call to format a floppy may only be done as root, regardless of
  978. the permissions of /dev/fd0*.  If you want any user to be able to format a
  979. floppy try getting the fdformat2 program; this works around the problems
  980. by being setuid to root.
  981.  
  982. -------------------------------------------------------------------------------
  983.  
  984. Question 4.9.  Is there something like Stacker or Doublespace for Linux ?
  985.  
  986. Currently none of the Linux filesystems can do compression in the
  987. filesystem.
  988.  
  989. There is a transparently uncompressing C library, which is a drop-in
  990. replacement for the standard C library.  It allows programs to read
  991. compressed (ie, GNU zipped) files as if they were not compressed.  You
  992. install it, and then you can compress files using gzip and have programs
  993. still find them.  Look on sunsite.unc.edu in /pub/Linux/libs.  The author
  994. is Alain Knaff <Alain.Knaff@imag.fr>.
  995.  
  996. There is a compressing block device driver that can provide
  997. filesystem-independant on the fly disk compression in the kernel.  It is
  998. called `DouBle'.  There is a source only distribution on sunsite.unc.edu
  999. in /pub/Linux/kernel/patches/diskdrives; the author is Jean-Marc Verbavatz
  1000. <jmv@receptor.mgh.harvard.edu>.  Note that since this compresses inodes
  1001. (administrative information) and directories as well as file contents any
  1002. corruption is quite likely to be serious.
  1003.  
  1004. There is also a package available called tcx (Transparently Compressed
  1005. Executables) which allows you to keep infrequently used executables
  1006. compressed and only uncompress them temporarily while you use them.
  1007. You'll find it on the Linux FTP sites [Q2.5 `Where can I get Linux
  1008. material by FTP ?']; it was also announced in comp.os.linux.announce.
  1009. Note - this is not the same as gzexe, which is an inferior implementation
  1010. of the same concept.
  1011.  
  1012. -------------------------------------------------------------------------------
  1013.  
  1014. Question 4.10.  My ext2fs partitions are checked each time I reboot.
  1015.  
  1016. See Q9.12 `EXT2-fs: warning: mounting unchecked filesystem'.
  1017.  
  1018. -------------------------------------------------------------------------------
  1019.  
  1020. Question 4.11.  My root filesystem is read-only !
  1021.  
  1022. Remount it.  If /etc/fstab is correct you can simply mount -n -o remount
  1023. /. If /etc/fstab is wrong you must give the device name and posibly the
  1024. type too: e.g. mount -n -o remount -t ext2 /dev/hda2 /.  To understand why
  1025. you got into this state see Q9.12 `EXT2-fs: warning: mounting unchecked
  1026. filesystem'.
  1027.  
  1028. -------------------------------------------------------------------------------
  1029.  
  1030. Question 4.12.  I have a huge /proc/kcore !  Can I delete it ?
  1031.  
  1032. None of the files in /proc are really there - they're all "pretend" files
  1033. made up by the kernel, to give you information about the system, and don't
  1034. take up any hard disk space.
  1035.  
  1036. /proc/kcore is like an "alias" for the memory in your computer; its size
  1037. is the same as the amount of RAM you have, and if you ask to read it as a
  1038. file the kernel does memory reads.
  1039.  
  1040. -------------------------------------------------------------------------------
  1041.  
  1042. Question 4.13.  My AHA1542C doesn't work with Linux.
  1043.  
  1044. The option to allow disks with more than 1024 cylinders is only required
  1045. as a workaround for a DOS misfeature and should be turned *off* under
  1046. Linux.  For older Linux kernels you need to turn off most of the "advanced
  1047. BIOS" options - all but the one about scanning the bus for bootable
  1048. devices.
  1049.  
  1050. ===============================================================================
  1051.  
  1052. Section 5.  Porting, compiling and obtaining programs
  1053.  
  1054.  Q5.1        What is ld.so and where do I get it ?
  1055.  Q5.2        Has anyone ported / compiled / written XXX for Linux ?
  1056.  Q5.3        How do I port XXX to Linux ?
  1057.  Q5.4        Can I use code or a compiler compiled for a 486 on my 386 ?
  1058.  Q5.5        What does gcc -O6 do ?
  1059.  Q5.6        Where are <linux/*.h> and <asm/*.h> ?
  1060.  Q5.7        I get errors when I try to compile the kernel.
  1061.  Q5.8        How do I make a shared library ?
  1062.  Q5.9        How do I make my executables smaller ?
  1063.  Q5.10       Does Linux support threads or lightweight processes ?
  1064.  Q5.11       Where can I get `lint' for Linux ?
  1065.  Q5.12       Where can I find `kermit' for Linux ?
  1066.  
  1067. -------------------------------------------------------------------------------
  1068.  
  1069. Question 5.1.  What is ld.so and where do I get it ?
  1070.  
  1071. ld.so is the dynamic library loader.  Each binary using shared libraries
  1072. used to have about 3K of start-up code to find and load the shared
  1073. libraries.  Now that code has been put in a special shared library,
  1074. /lib/ld.so, where all binaries can look for it, so that it wastes less
  1075. disk space, and can be upgraded more easily.
  1076.  
  1077. It can be obtained from tsx-11.mit.edu in /pub/linux/packages/GCC and
  1078. mirror sites thereof.  The latest version at the time of writing is
  1079. ld.so.1.7.3.tar.gz.
  1080.  
  1081. -------------------------------------------------------------------------------
  1082.  
  1083. Question 5.2.  Has anyone ported / compiled / written XXX for Linux ?
  1084.  
  1085. First, look in the Linux Software Map (LSM) --- it's in the docs directory
  1086. on sunsite.unc.edu, and on the other FTP sites.  A search engine is
  1087. available on the WWW at http://siva.cshl.org/lsm/lsm.html.
  1088.  
  1089. Check the FTP sites (see Q2.5 `Where can I get Linux material by FTP ?')
  1090. first --- search the find-ls or INDEX files for appropriate strings.
  1091. Check the Linux Projects Map (LPM), on ftp.ix.de in
  1092. /pub/Linux/docs/Projects-Map.gz.
  1093.  
  1094. If you don't find anything, you could either download the sources to the
  1095. program yourself and compile them -- see Q5.3 `How do I port XXX to Linux
  1096. ?' -- or, if it's a large package which may require some porting, post a
  1097. message to the newsgroup comp.os.linux.development.apps.
  1098.  
  1099. If you compile a largeish program please upload it to one or more of the
  1100. FTP sites and post a message to comp.os.linux.announce (submit your
  1101. posting to <linux-announce@news.ornl.gov.edu>).
  1102.  
  1103. If you're looking for an application-type program the chances are someone
  1104. has already written a free verson.  Try reading the FAQ in
  1105. comp.sources.wanted for instructions on how to find sources.
  1106.  
  1107. You should also check the Projects-FAQ, available in
  1108. /pub/Linux/docs/faqs/Projects-FAQ on sunsite.unc.edu.
  1109.  
  1110. -------------------------------------------------------------------------------
  1111.  
  1112. Question 5.3.  How do I port XXX to Linux ?
  1113.  
  1114. In general Unix programs need very little porting.  Simply follow the
  1115. installation instructions.  If you don't know and don't know how to find
  1116. out the answers to some of the questions asked during or by the
  1117. installation procedure you can guess, but this tends to produce buggy
  1118. programs.  In this case you're probably better off asking someone else to
  1119. do the port.
  1120.  
  1121. If you have a BSD-ish program you should try using -I/usr/include/bsd and
  1122. -lbsd on the appropriate parts of the compilation lines.
  1123.  
  1124. -------------------------------------------------------------------------------
  1125.  
  1126. Question 5.4.  Can I use code or a compiler compiled for a 486 on my 386 ?
  1127.  
  1128. Yes.
  1129.  
  1130. The -m486 option to GCC, which is used to compile binaries for 486
  1131. machines, merely changes certain optimisations.  This makes for slightly
  1132. larger binaries which run somewhat faster on a 486.  They still work fine
  1133. on a 386, though, with little performance hit.
  1134.  
  1135. GCC can be configured for a 386 or 486; the only difference is that
  1136. configuring it for a 386 makes -m386 the default and configuring for a 486
  1137. makes -m486 the default; in either case these can be overriden on a
  1138. per-compilation basis or by editing /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  1139.  
  1140. There is an alpha version of GCC that knows how to do optimisation well
  1141. for the 586, but it is quite unreliable, especially at high optimisation
  1142. settings.  I'd recommend using the ordinary 486 GCC instead.  The Pentium
  1143. GCC can be found on tsx-11.mit.edu in /pub/linux/ALPHA/pentium-gcc.
  1144.  
  1145. -------------------------------------------------------------------------------
  1146.  
  1147. Question 5.5.  What does gcc -O6 do ?
  1148.  
  1149. Currently the same as -O2 (GCC 2.5) or -O3 (GCC 2.6, 2.7); any number
  1150. greater than that currently does the same thing.  The Makefiles of newer
  1151. kernels use -O2, you should probably do the same.
  1152.  
  1153. -------------------------------------------------------------------------------
  1154.  
  1155. Question 5.6.  Where are <linux/*.h> and <asm/*.h> ?
  1156.  
  1157. These are in the directories /usr/include/linux and /usr/include/asm.
  1158.  
  1159. However they should be symbolic links to your kernel sources in
  1160. /usr/src/linux and not real directories.
  1161.  
  1162. If you don't have the kernel sources download them --- see Q7.6 `How do I
  1163. upgrade/recompile my kernel ?'.
  1164.  
  1165. Then use rm to remove any garbage, and ln to create the links:
  1166.    rm -rf /usr/include/linux /usr/include/asm
  1167.    ln -sf /usr/src/linux/include/linux /usr/include/linux
  1168.    ln -sf /usr/src/linux/include/asm /usr/include/asm
  1169.  
  1170. Nowadays /usr/src/linux/include/asm is a symbolic link to an
  1171. architecture-specific asm-<arch> directory - if you have a freshly
  1172. unpacked kernel source tree you must use make symlinks.
  1173.  
  1174. -------------------------------------------------------------------------------
  1175.  
  1176. Question 5.7.  I get errors when I try to compile the kernel.
  1177.  
  1178. Make sure that /usr/include/linux and /usr/include/asm aren't actual
  1179. directories but instead symbolic links to /usr/src/linux/include/linux and
  1180. /usr/src/linux/include/asm respectively.
  1181.  
  1182. If necessary, delete them using rm and then use ln -s to make the links as
  1183. in Q5.6 `Where are <linux/*.h> and <asm/*.h> ?'.
  1184.  
  1185. Remember that when you apply a patch to the kernel you must use the -p0 or
  1186. -p1 option: otherwise the patch may be misapplied.  See the manpage for
  1187. patch for details.
  1188.  
  1189. If you're using a kernel more recent than 1.1.44 you should find that
  1190. there are new directories /usr/src/linux/include/asm-i386.  The directory
  1191. asm there should be removed, as should the directory asm.  The symlinks
  1192. Makefile target will make these be symbolic links to asm-i36 and
  1193. arch/i386/boot respectively.  The easiest way to make sure all this gets
  1194. done is not to try to patch 1.1.44 to make 1.1.45, but to download
  1195. linux-1.1.45.tar.gz instead.
  1196.  
  1197. ld: unrecognised option `-qmagic' means you should get a newer linker,
  1198. from tsx-11.mit.edu in /pub/linux/packages/GCC, in the file
  1199. binutils-2.5.2l.17.bin.tar.gz.
  1200.  
  1201. -------------------------------------------------------------------------------
  1202.  
  1203. Question 5.8.  How do I make a shared library ?
  1204.  
  1205. For ELF,
  1206.    gcc -fPIC -c *.c
  1207.    gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.1.0 *.o
  1208.  
  1209. For a.out, get tools-n.nn.tar.gz from tsx-11.mit.edu, in
  1210. /pub/linux/packages/GCC/src.  It comes with documentation that will tell
  1211. you what to do.  Note that a.out shared libraries are a very tricky
  1212. business.
  1213.  
  1214. -------------------------------------------------------------------------------
  1215.  
  1216. Question 5.9.  How do I make my executables smaller ?
  1217.  
  1218. The most common cause of large executables is the -g compiler flag.  This
  1219. produces (as well as debugging information in the output file) a program
  1220. which is statically linked, i.e. one which includes a copy of the C
  1221. library instead of using a dynamically linked copy.
  1222.  
  1223. Other things that are worth investigating are -O and -O2 which enable
  1224. optimisation (check the GCC documentation) and -s (or the strip command)
  1225. which strip the symbol information from the resulting binary (making
  1226. debugging totally impossible).
  1227.  
  1228. You may wish to use -N on very small executables (less than 8K with the
  1229. -N), but you shouldn't do this unless you understand its performance
  1230. implications, and definitely never with daemons.
  1231.  
  1232. -------------------------------------------------------------------------------
  1233.  
  1234. Question 5.10.  Does Linux support threads or lightweight processes ?
  1235.  
  1236. As well as the Unix multiprocessing model involving heavyweight processes,
  1237. which is of course part of the standard Linux kernel, there are several
  1238. implementations of lightweight processes or threads, most of which are
  1239. generic packages for any Unix:
  1240.  
  1241. * In sipb.mit.edu:/pub/pthread or ftp.ibp.fr:/pub/unix/threads/pthreads.
  1242.   Documentation isn't in the package, but is available on the World Wide
  1243.   Web at http://www.mit.edu:8001/people/proven/home_page.html.
  1244. * In ftp.cs.washington.edu:/pub/qt-001.tar.Z is QuickThreads.  More
  1245.   information can be found in the technical report, available on the same
  1246.   site as /tr/1993/05/UW-CSE-93-05-06.PS.Z.
  1247. * In gummo.doc.ic.ac.uk:/rex is lwp, a very minimal implementation.
  1248. * In ftp.cs.fsu.edu:/pub/PART, an Ada implementation.  This is useful
  1249.   mainly because it has a lot of PostScript papers that you'll find useful
  1250.   in learning more about threads.  This is not directly useable under
  1251.   Linux.
  1252.  
  1253. Please contact the authors of the packages in question for details.
  1254.  
  1255. -------------------------------------------------------------------------------
  1256.  
  1257. Question 5.11.  Where can I get `lint' for Linux ?
  1258.  
  1259. Roughly equivalent functionality is built into the GNU C compiler (gcc)
  1260. which is used by Linux systems.  Use the -Wall option to turn on most of
  1261. the useful extra warnings.  Check the GCC manual for more details (type
  1262. control-h followed by i in Emacs and select the entry for GCC).
  1263.  
  1264. There is a freely available program called `lclint' that does much the
  1265. same thing as traditional lint.  The announcement and source code are
  1266. available at on larch.lcs.mit.edu in /pub/Larch/lclint; on the World Wide
  1267. Web look at http://larch-www.lcs.mit.edu:8001/larch/lclint.html.
  1268.  
  1269. -------------------------------------------------------------------------------
  1270.  
  1271. Question 5.12.  Where can I find `kermit' for Linux ?
  1272.  
  1273. Kermit has a restrictive copyright which has forced most distribution
  1274. maintainers to remove it, or to move the package containing it into an
  1275. obscure directory.
  1276.  
  1277. The source code is available on kermit.columbia.edu in
  1278. /kermit/archives/cku190.tar.gz; Linux binaries are available in
  1279. /kermit/bin/ckuker.linux and /kermit/bin/ckuker.linuxtcp.
  1280.  
  1281. ===============================================================================
  1282.  
  1283. Section 6.  Solutions to common miscellaneous problems
  1284.  
  1285.  Q6.1        Setuid scripts don't seem to work.
  1286.  Q6.2        Free memory as reported by free keeps shrinking.
  1287.  Q6.3        When I add more memory it slows to a crawl.
  1288.  Q6.4        Some programs (e.g. xdm) won't let me log in.
  1289.  Q6.5        Some programs let me log in with no password.
  1290.  Q6.6        My machine runs very slowly when I run GCC / X / ...
  1291.  Q6.7        I can only log in as root.
  1292.  Q6.8        My screen is all full of weird characters instead of letters.
  1293.  Q6.9        I have screwed up my system and can't log in to fix it.
  1294.  Q6.10       Emacs just dumps core.
  1295.  Q6.11       I've discovered a huge security hole in rm !
  1296.  Q6.12       lpr and/or lpd aren't working.
  1297.  Q6.13       Timestamps on files on msdos partitions are set incorrectly.
  1298.  Q6.14       How do I get LILO to boot the vmlinux file ?
  1299.  
  1300. -------------------------------------------------------------------------------
  1301.  
  1302. Question 6.1.  Setuid scripts don't seem to work.
  1303.  
  1304. That's right.  This feature has been deliberately disabled in the Linux
  1305. kernel because setuid scripts are almost always a security hole.  If you
  1306. want to know why read the FAQ for comp.unix.questions.
  1307.  
  1308. -------------------------------------------------------------------------------
  1309.  
  1310. Question 6.2.  Free memory as reported by free keeps shrinking.
  1311.  
  1312. The `free' figure printed by free doesn't include memory used as a disk
  1313. buffer cache - shown in the `buffers' column.  If you want to know how
  1314. much memory is really free add the `buffers' amount to `free' - newer
  1315. versions of free print an extra line with this info.
  1316.  
  1317. The disk buffer cache tends to grow soon after starting Linux up, as you
  1318. load more programs and use more files and the contents get cached.  It
  1319. will stabilise after a while.
  1320.  
  1321. -------------------------------------------------------------------------------
  1322.  
  1323. Question 6.3.  When I add more memory it slows to a crawl.
  1324.  
  1325. This is quite a common symptom of a failure to cache the additional
  1326. memory.  The exact problem depends on your motherboard.
  1327.  
  1328. Sometimes you have to enable caching of certain regions in your BIOS
  1329. setup.  Look in the CMOS setup and see if there is an option to cache the
  1330. new memory area which is currently switched off.  This is apparently most
  1331. common on a 486.
  1332.  
  1333. Sometimes the RAMs have to be in certain sockets to be cached.
  1334.  
  1335. Sometimes you have to set jumpers to enable the caching.
  1336.  
  1337. Some motherboards don't cache all the RAM if you have more RAM per amount
  1338. of cache than they expect.  Usually a full 256K cache will solve this
  1339. problem.
  1340.  
  1341. If in doubt, check your motherboard manual.  If you still can't fix it
  1342. because the documentation is inadequate you might like to post a message
  1343. to comp.os.linux.hardware giving *all* the details - make, model number,
  1344. date code, etc. so that other Linux users can avoid it.
  1345.  
  1346. -------------------------------------------------------------------------------
  1347.  
  1348. Question 6.4.  Some programs (e.g. xdm) won't let me log in.
  1349.  
  1350. You are probably using non-shadow-password programs but are using shadow
  1351. passwords.
  1352.  
  1353. If so, you have to get or compile a shadow password version of the
  1354. program(s) in question.  The shadow password suite can be found in
  1355. (amongst other places):
  1356.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  1357. This is the source code; you will probably find the binaries in
  1358. .../linux/binaries/usr.bin.
  1359.  
  1360. -------------------------------------------------------------------------------
  1361.  
  1362. Question 6.5.  Some programs let me log in with no password.
  1363.  
  1364. You probably have the same problem as in Q6.4 `Some programs (e.g. xdm)
  1365. won't let me log in.', with an added wrinkle:
  1366.  
  1367. If you are using shadow passords you should put an asterisk in the
  1368. password field of /etc/passwd for each account, so that if a program
  1369. doesn't know about the shadow passwords it won't think it's a passwordless
  1370. account and let anyone in.
  1371.  
  1372. -------------------------------------------------------------------------------
  1373.  
  1374. Question 6.6.  My machine runs very slowly when I run GCC / X / ...
  1375.  
  1376. You may not have any swap enabled.  You need to enable swapping to allow
  1377. Linux to page out bits of data programs aren't using at the moment to disk
  1378. to make more room for other programs and data.  If you don't Linux has to
  1379. keep data in memory and throw away in-memory copies of programs (which are
  1380. paged straight from the filesystem) and so less and less program is in
  1381. memory and everything runs very slowly.
  1382.  
  1383. See the Installation HOWTO and the Installation and Getting Started Guide
  1384. [Q2.1 `Where can I get the HOWTOs and other documentation ?'] for details
  1385. of how to set up a swap partition or swapfile; see also Q4.6 `My swap area
  1386. isn't working.'.
  1387.  
  1388. Alternatively you may have too little real memory.  If you have less RAM
  1389. than all the programs you're running at once use Linux will use your hard
  1390. disk instead and thrash horribly.  The solution in this case is to not run
  1391. so many things at once or to buy more memory.  You can also reclaim some
  1392. memory by compiling and using a kernel with less options configured.  See
  1393. Q7.6 `How do I upgrade/recompile my kernel ?'.
  1394.  
  1395. You can tell how much memory and/or swap you're using by using the free
  1396. command, or by typing
  1397.     cat /proc/meminfo
  1398.  
  1399. If your kernel is configured with a ramdisk this is probably wasted space
  1400. and will cause things to go slowly.  Use LILO or rdev to tell the kernel
  1401. not to allocate a ramdisk (see the LILO documentation or type man rdev).
  1402.  
  1403. -------------------------------------------------------------------------------
  1404.  
  1405. Question 6.7.  I can only log in as root.
  1406.  
  1407. You probably have some permission problems, or you have a file
  1408. /etc/nologin.
  1409.  
  1410. If the latter put rm -f /etc/nologin in your /etc/rc.local or /etc/rc.d/*
  1411. scripts.
  1412.  
  1413. Otherwise check the permissions on your shell, and any filenames which
  1414. appear in error messages, and also the directories containing these files
  1415. all the way up the tree, up to and including the root directory.
  1416.  
  1417. -------------------------------------------------------------------------------
  1418.  
  1419. Question 6.8.  My screen is all full of weird characters instead of letters.
  1420.  
  1421. You probably sent some binary data to your screen by mistake.  Type echo
  1422. ^V^[c (that's e c h o space control-V escape c return) to fix it.  Many
  1423. Linux distributions have a command reset that does this.
  1424.  
  1425. -------------------------------------------------------------------------------
  1426.  
  1427. Question 6.9.  I have screwed up my system and can't log in to fix it.
  1428.  
  1429. Reboot from an emergency floppy or floppy pair, for example the Slackware
  1430. boot- and root-disk pair (in the install subdirectory of the Slackware
  1431. mirrors) or the MCC installation boot floppy.  There are also two diy
  1432. rescue disk creation packages on sunsite.unc.edu in
  1433. /pub/Linux/system/Recovery.  These are better as they'll have your own
  1434. kernel on them, so that you don't run the risk of missing devices,
  1435. filesystems, etc.
  1436.  
  1437. Get to a shell prompt and mount your hard disk with something like
  1438.    mount -t ext2 /dev/hda1 /mnt
  1439.  
  1440. Then your filesystem is available under the directory /mnt and you can fix
  1441. the problem.  Remember to unmount your hard disk before rebooting (cd back
  1442. down to / first or it will say it's busy).
  1443.  
  1444. -------------------------------------------------------------------------------
  1445.  
  1446. Question 6.10.  Emacs just dumps core.
  1447.  
  1448. You probably have the X version of Emacs that comes with SLS.  It doesn't
  1449. work without the X libraries.  The solution is to install X Windows or get
  1450. a newer Emacs binary without any X Windows support.
  1451.  
  1452. -------------------------------------------------------------------------------
  1453.  
  1454. Question 6.11.  I've discovered a huge security hole in rm !
  1455.  
  1456. No you haven't.  You are obviously new to Unix and need to read a good
  1457. book on it to find out how things work.  Clue: ability to delete files
  1458. under Unix depends on permission to write the directory they are in.
  1459.  
  1460. -------------------------------------------------------------------------------
  1461.  
  1462. Question 6.12.  lpr and/or lpd aren't working.
  1463.  
  1464. Check the Printing HOWTO [Q2.1 `Where can I get the HOWTOs and other
  1465. documentation ?'].
  1466.  
  1467. -------------------------------------------------------------------------------
  1468.  
  1469. Question 6.13.  Timestamps on files on msdos partitions are set incorrectly.
  1470.  
  1471. There is a bug in the program clock (often found in /sbin) - it miscounts
  1472. a timezone offset, confusing seconds with minutes or some such.  Get a new
  1473. version of it.
  1474.  
  1475. -------------------------------------------------------------------------------
  1476.  
  1477. Question 6.14.  How do I get LILO to boot the vmlinux file ?
  1478.  
  1479. In kernel versions 1.1.80 and later the compressed kernel image, which is
  1480. what you have to give to LILO, has been moved to arch/i386/boot/zImage.
  1481. The vmlinux file in the root directory is the uncompressed kernel, and you
  1482. shouldn't try to boot it.
  1483.  
  1484. This change has been made to make it easier to build the versions for
  1485. several different processors from the same source tree.
  1486.  
  1487. ===============================================================================
  1488.  
  1489. Section 7.  How do I do this or find out that ... ?
  1490.  
  1491.  Q7.1        How can I get scrollback in text mode ?
  1492.  Q7.2        How do I switch virtual consoles ?  How do I enable them ?
  1493.  Q7.3        How do I set the timezone ?
  1494.  Q7.4        What version of Linux and what machine name am I using ?
  1495.  Q7.5        How can I enable or disable core dumps ?
  1496.  Q7.6        How do I upgrade/recompile my kernel ?
  1497.  Q7.7        Can I have more than 3 serial ports by sharing interrupts ?
  1498.  Q7.8        How do I make a bootable floppy ?
  1499.  Q7.9        How do I remap my keyboard to UK, French, etc. ?
  1500.  Q7.10       How do I get NUM LOCK to default to on ?
  1501.  Q7.11       How can I have more than 128Mb of swap ?
  1502.  
  1503. -------------------------------------------------------------------------------
  1504.  
  1505. Question 7.1.  How can I get scrollback in text mode ?
  1506.  
  1507. With the default US keymap you can use Shift with the PageUp and PageDown
  1508. keys (NB: these must be the grey ones, not the ones on the numeric keypad
  1509. !).  With other keymaps check the maps in /usr/lib/keytables; you can
  1510. remap the scroll up and down keys to be whatever you like --- for example,
  1511. in order to remap them to keys that exist on an 84-key AT keyboard.
  1512.  
  1513. You can't increase the amount of scrollback, because of the way it is
  1514. implemented using the video memory to store the scrollback text, though
  1515. you may be able to get more scrollback in each virtual console by reducing
  1516. the total number of VC's --- see <linux/tty.h>.
  1517.  
  1518. -------------------------------------------------------------------------------
  1519.  
  1520. Question 7.2.  How do I switch virtual consoles ?  How do I enable them ?
  1521.  
  1522. In text mode, press Left Alt-F1 to Alt-F12 to select the consoles tty1 to
  1523. tty12; Right Alt-F1 gives tty13 and so on.  To switch out of X windows you
  1524. must press Ctrl-Alt-F1 etc; Alt-F5 or whatever will switch back.
  1525.  
  1526. If you want to use a VC for ordinary login you need to list it in
  1527. /etc/inittab, which controls which terminals and virtual consoles have
  1528. login prompts.  NB: X needs at least one free VC in order to start.
  1529.  
  1530. Kernels earlier than around 1.1.70 have a compiled-in limit on the number
  1531. of consoles, for which the default is 8.  See NR_CONSOLES in
  1532. linux/include/linux/tty.h.
  1533.  
  1534. -------------------------------------------------------------------------------
  1535.  
  1536. Question 7.3.  How do I set the timezone ?
  1537.  
  1538. Change directory to /usr/lib/zoneinfo; get the timezone package if you
  1539. don't have this directory.  The source can be found on sunsite.unc.edu in
  1540. /pub/Linux/system/Admin/timesrc-1.2.tar.gz.
  1541.  
  1542. Then make a symbolic link named localtime pointing to one of the files in
  1543. this directory (or a subdirectory), and one called posixrules pointing to
  1544. localtime.  For example:
  1545.    ln -sf US/Mountain localtime
  1546.    ln -sf localtime posixrules
  1547. This change will take effect immediately - try date.
  1548.  
  1549. Don't try to use the TZ variable - leave it unset.
  1550.  
  1551. You should also make sure that your Linux kernel clock is set to the
  1552. correct GMT time - type date -u and check that the correct universal time
  1553. is displayed.
  1554.  
  1555. -------------------------------------------------------------------------------
  1556.  
  1557. Question 7.4.  What version of Linux and what machine name am I using ?
  1558.  
  1559. Type:
  1560.    uname -a
  1561.  
  1562. -------------------------------------------------------------------------------
  1563.  
  1564. Question 7.5.  How can I enable or disable core dumps ?
  1565.  
  1566. Since 0.99pl14 Linux has had corefiles turned off by default for all
  1567. processes.
  1568.  
  1569. You can turn them on or off by using the ulimit command in bash, the limit
  1570. command in tcsh, or the rlimit command in ksh.  See the manpage for the
  1571. shell for more details.
  1572.  
  1573. That command affects all programs run from that shell (directly or
  1574. indirectly), not the whole system.
  1575.  
  1576. If you wish to enable or disable coredumping for all processes by default
  1577. you can change the default setting in <linux/sched.h> - see the definition
  1578. of INIT_TASK, and look also in <linux/resource.h>.
  1579.  
  1580. -------------------------------------------------------------------------------
  1581.  
  1582. Question 7.6.  How do I upgrade/recompile my kernel ?
  1583.  
  1584. See the Kernel HOWTO or the README which comes with the kernel release on
  1585. ftp.funet.fi, in /pub/OS/Linux/PEOPLE/Linus and mirrors thereof.  Try to
  1586. get it from a closer site if possible; ftp.funet.fi is a very busy site
  1587. and therefore slow -- see Q2.5 `Where can I get Linux material by FTP ?'.
  1588. You may already have a version of the kernel source code installed on your
  1589. system, but if you got it as part of a standard distribution it is likely
  1590. to be somewhat out of date (this is not a problem if you only want a
  1591. custom-configured kernel, but it probably is if you need to upgrade.)
  1592.  
  1593. Remember that to make the new kernel boot you must run LILO after copying
  1594. the kernel into your root partition -- the Makefile in recent kernels has
  1595. a special zlilo target for this; try make zlilo.
  1596.  
  1597. Kernel version numbers with an odd minor version (ie, 1.1.x, 1.3.x) are
  1598. the testing releases; stable production kernels have even minor versions
  1599. (1.0.x, 1.2.x).  If you want to try the testing kernels you should
  1600. probably subscribe to the linux-kernel mailing list [Q2.8 `What's mailing
  1601. lists are there ?'].
  1602.  
  1603. Russel Nelson posts summaries of what changes in recent kernel patches to
  1604. comp.os.linux.development, and these are archived on ftp.emlist.com in
  1605. /pub/kchanges.
  1606.  
  1607. -------------------------------------------------------------------------------
  1608.  
  1609. Question 7.7.  Can I have more than 3 serial ports by sharing interrupts ?
  1610.  
  1611. Yes, but you won't be able to use simultaneously two ordinary ports which
  1612. share an interrupt (without some trickery).  This is a limitation of the
  1613. ISA bus architecture.
  1614.  
  1615. See the Serial HOWTO for information about possible solutions to and
  1616. workarounds for this problem.
  1617.  
  1618. -------------------------------------------------------------------------------
  1619.  
  1620. Question 7.8.  How do I make a bootable floppy ?
  1621.  
  1622. Make a filesystem on it with bin, etc and lib directories -- everything
  1623. you need.  Install a kernel on it and arrange to have LILO boot it from
  1624. the floppy (see the LILO documentation, in lilo.u.*.ps).
  1625.  
  1626. If you build the kernel (or tell LILO to tell the kernel) to have a
  1627. ramdisk the same size as the floppy the ramdisk will be loaded at
  1628. boot-time and mounted as root in place of the floppy.
  1629.  
  1630. -------------------------------------------------------------------------------
  1631.  
  1632. Question 7.9.  How do I remap my keyboard to UK, French, etc. ?
  1633.  
  1634. For recent kernels, get /pub/Linux/system/Keyboards/kbd-0.90.tar.gz from
  1635. sunsite.unc.edu.  Make sure you get the appropriate version; you have to
  1636. use the right keyboard-mapping package to go with your kernel version.
  1637. 0.90 should work with kernel versions from 1.0.
  1638.  
  1639. For older kernels you have to edit the top-level kernel Makefile, in
  1640. /usr/src/linux.
  1641.  
  1642. You may find more helpful information in the Keystroke HOWTO, on
  1643. sunsite.unc.edu in /pub/Linux/docs/HOWTO/Keystroke-HOWTO.
  1644.  
  1645. -------------------------------------------------------------------------------
  1646.  
  1647. Question 7.10.  How do I get NUM LOCK to default to on ?
  1648.  
  1649. Use the setleds program, for example (in /etc/rc.local or one of the
  1650. /etc/rc.d/* files):
  1651.    for t in 1 2 3 4 5 6 7 8
  1652.    do
  1653.         setleds +num < /dev/tty$t > /dev/null
  1654.    done
  1655.  
  1656. setleds is part of the kbd package (see Q7.9 `How do I remap my keyboard
  1657. to UK, French, etc. ?').
  1658.  
  1659. Alternatively, patch your kernel.  You need to arrange for KBD_DEFLEDS to
  1660. be defined to (1 << VC_NUMLOCK) when compiling drivers/char/keyboard.c.
  1661.  
  1662. -------------------------------------------------------------------------------
  1663.  
  1664. Question 7.11.  How can I have more than 128Mb of swap ?
  1665.  
  1666. Use several swap partitions or swapfiles - Linux supports up to 16 swap
  1667. areas, each of up to 128Mb.
  1668.  
  1669. Very old kernels only supported swap area sizes up to 16Mb.
  1670.  
  1671. ===============================================================================
  1672.  
  1673. Section 8.  Miscellaneous information and questions answered
  1674.  
  1675.  Q8.1        What's all this about ELF ?
  1676.  Q8.2        What is a .gz file ? And a .tgz ? And ... ?
  1677.  Q8.3        What does VFS stand for ?
  1678.  Q8.4        What is a BogoMip ?
  1679.  Q8.5        What is the Linux Journal and where can I get it ?
  1680.  Q8.6        How many people use Linux ?
  1681.  Q8.7        How should I pronounce Linux ?
  1682.  
  1683. -------------------------------------------------------------------------------
  1684.  
  1685. Question 8.1.  What's all this about ELF ?
  1686.  
  1687. See the ELF HOWTO by Daniel Barlow - note, this is not the file
  1688. move-to-elf, which is a blow-by-blow account of how to upgrade to ELF.
  1689.  
  1690. Linux is switching to a different format for executables, object files and
  1691. object code libraries, known as `ELF' (the old format is called `a.out').
  1692. This will have many advantages, including better support for shared
  1693. libraries and dynamic linking.
  1694.  
  1695. Both a.out and ELF binaries can coexist on a system.  However, they use
  1696. different shared C libraries, both of which will have to be installed to
  1697. do this.
  1698.  
  1699. -------------------------------------------------------------------------------
  1700.  
  1701. Question 8.2.  What is a .gz file ? And a .tgz ? And ... ?
  1702.  
  1703. .gz (and .z) files have been compressed using GNU gzip.  You need to use
  1704. gunzip (which is as a symlink to the gzip command which comes with most
  1705. Linux installations) to unpack the file.
  1706.  
  1707. .taz and .tz are tarfiles (made with Unix tar) compressed using standard
  1708. Unix compress.
  1709.  
  1710. .tgz (or .tpz) is a tarfile compressed with gzip.
  1711.  
  1712. .lsm is a Linux Software Map entry, in the form of a short text file.
  1713. Details about the LSM and the LSM itself are available in the docs
  1714. subdirectory on sunsite.unc.edu.
  1715.  
  1716. The file command can often tell you what a file is.
  1717.  
  1718. If you find that gzip complains when you try to uncompress a gzipped file
  1719. you probably downloaded it in ASCII mode by mistake.  You must download
  1720. most things in binary mode - remember to type binary as a command in FTP
  1721. before using get to get the file.
  1722.  
  1723. -------------------------------------------------------------------------------
  1724.  
  1725. Question 8.3.  What does VFS stand for ?
  1726.  
  1727. Virtual File System.  It's the abstraction layer between the user and real
  1728. filesystems like ext2, minix and msdos.  Amongst other things, its job is
  1729. to flush the read buffer when it detects a disk change on the floppy disk
  1730. drive:
  1731.    VFS: Disk change detected on device 2/0
  1732.  
  1733. -------------------------------------------------------------------------------
  1734.  
  1735. Question 8.4.  What is a BogoMip ?
  1736.  
  1737. `BogoMips' is a contraction of `Bogus MIPS'.  MIPS stands for (depending
  1738. who you listen to) Millions of Instructions per Second, or Meaningless
  1739. Indication of Processor Speed.
  1740.  
  1741. The number printed at boot-time is the result of a kernel timing
  1742. calibration, used for very short delay loops by some device drivers.
  1743.  
  1744. As a very rough guide the BogoMips will be approximately:
  1745.      386SX              clock * 0.14
  1746.      386DX              clock * 0.18
  1747.      486Cyrix/IBM       clock * 0.33
  1748.      486SX/DX/DX2       clock * 0.50
  1749.      586                clock * 0.39
  1750.  
  1751. If the number you're seeing is wildly lower than this you may have the
  1752. Turbo button or CPU speed set incorrectly, or have some kind of caching
  1753. problem [as described in Q6.3 `When I add more memory it slows to a
  1754. crawl.'.]
  1755.  
  1756. For values people have seen with other, rarer, chips, see the BogoMips
  1757. Mini-HOWTO, on sunsite.unc.edu in /pub/Linux/docs/howto/mini/BogoMips.
  1758.  
  1759. -------------------------------------------------------------------------------
  1760.  
  1761. Question 8.5.  What is the Linux Journal and where can I get it ?
  1762.  
  1763. Linux Journal is a monthly magazine (printed on paper) that is available
  1764. on newsstands and via subscription worldwide. Email <linux@ssc.com> for
  1765. details.  They are on the Web at http://www.ssc.com/.
  1766.  
  1767. -------------------------------------------------------------------------------
  1768.  
  1769. Question 8.6.  How many people use Linux ?
  1770.  
  1771. Linux is freely available, and no one is required to register their copies
  1772. with any central authority, so it is difficult to know.  Several
  1773. businesses are now surviving solely on selling and supporting Linux, and
  1774. very few Linux users use those businesses, relatively speaking.  The Linux
  1775. newsgroups are some of the most heavily read on the Net, so the number is
  1776. likely in the hundreds of thousands, but firm numbers are hard to come by.
  1777.  
  1778. However, one brave soul, Harald T. Alvestrand
  1779. <Harald.T.Alvestrand@uninett.no>, has decided to try, and asks that if you
  1780. use Linux, you send a message to <linux-counter@uninett.no> with one of
  1781. the following subjects: `I use Linux at home', `I use Linux at work', or
  1782. `I use Linux at home and at work'.  He will also accept `third-party'
  1783. registrations - ask him for details.
  1784.  
  1785. He posts his counts to comp.os.linux.misc each month; alternatively look
  1786. on aun.uninett.no in /pub/misc/linux-counter.
  1787.  
  1788. -------------------------------------------------------------------------------
  1789.  
  1790. Question 8.7.  How should I pronounce Linux ?
  1791.  
  1792. This is a matter of religious debate, of course !
  1793.  
  1794. If you want to hear Linus himself say how he pronounces it download
  1795. english.au or swedish.au from ftp.funet.fi (in
  1796. /pub/OS/Linux/PEOPLE/Linus/SillySounds).  If you have a soundcard or the
  1797. PC-speaker audio driver you can hear them by typing
  1798.    cat english.au >/dev/audio
  1799. The difference isn't in the pronunciation of Linux but in the language
  1800. Linus uses to say hello.  The English version was parodied very well by
  1801. Jin Choi as "Hi, my name is Leenoos Torvahlds and I pronounce Leenooks as
  1802. Leenooks."
  1803.  
  1804. For the benefit of those of you who don't have the equipment or
  1805. inclination: Linus pronounces Linux approximately as Leenus, where the ee
  1806. is as in feet but rather shorter and the u is like a much shorter version
  1807. of the French eu sound in peur (pronouncing it as the u in put is probably
  1808. passable).
  1809.  
  1810. When speaking English I pronounce it Lie-nucks (u as in bucket) --- this
  1811. is an anglicised pronunciation based on the analogy with Linus' name,
  1812. which in English is usually pronounced Lie-nus (u as in put).  It is of
  1813. course quite acceptable and common to modify the pronunciation of a proper
  1814. noun when it changes languages.
  1815.  
  1816. I think I can safely say that the pronunciation Linnucks (short i as in
  1817. pit, short u as in bucket) is wrong in English, as it is not the original
  1818. Swedish pronunciation, not a sensible direct anglicisation of it, and not
  1819. based on the anglicised version of Linus' name.
  1820.  
  1821. ===============================================================================
  1822.  
  1823. Section 9.  Frequently encountered error messages
  1824.  
  1825.  Q9.1        Unknown terminal type linux and similar
  1826.  Q9.2        During linking I get Undefined symbol _mcount
  1827.  Q9.3        lp1 on fire
  1828.  Q9.4        INET: Warning: old style ioctl(IP_SET_DEV) called!
  1829.  Q9.5        ld: unrecognized option '-m486'
  1830.  Q9.6        GCC says Internal compiler error
  1831.  Q9.7        make says Error 139
  1832.  Q9.8        shell-init: permission denied when I log in.
  1833.  Q9.9        No utmp entry.  You must exec ... when I log in.
  1834.  Q9.10       Warning - bdflush not running
  1835.  Q9.11       Warning: obsolete routing request made.
  1836.  Q9.12       EXT2-fs: warning: mounting unchecked filesystem
  1837.  Q9.13       EXT2-fs warning: maximal count reached
  1838.  Q9.14       EXT2-fs warning: checktime reached
  1839.  Q9.15       df says Cannot read table of mounted filesystems
  1840.  Q9.16       fdisk says Partition X has different physical/logical ...
  1841.  Q9.17       fdisk: Partition 1 does not start on cylinder boundary
  1842.  Q9.18       fdisk says partition n has an odd number of sectors
  1843.  Q9.19       mtools says cannot initialise drive XYZ
  1844.  Q9.20       At the start of booting: Memory tight
  1845.  
  1846. -------------------------------------------------------------------------------
  1847.  
  1848. Question 9.1.  Unknown terminal type linux and similar
  1849.  
  1850. In an early 1.3.x kernel the default console terminal type has changed
  1851. from console to linux.  You must edit /etc/termcap to change the line
  1852. reading:
  1853.    console|con80x25:\
  1854. to
  1855.    linux|console|con80x25:\
  1856. (there may be an additional dumb in there - if so it should be removed.)
  1857.  
  1858. In order to get the editor to work you may need say TERM=console (for bash
  1859. and ksh) or setenv TERM console (csh, tcsh) first.
  1860.  
  1861. Some programs use /usr/lib/terminfo instead of /etc/termcap.  For these
  1862. programs you should upgrade your terminfo, which is part of ncurses.
  1863.  
  1864. -------------------------------------------------------------------------------
  1865.  
  1866. Question 9.2.  During linking I get Undefined symbol _mcount
  1867.  
  1868. This is usually due to a bad interaction between a brokenness in SLS and
  1869. the C library release notes.  Your libc.a has been replaced by the
  1870. profiling library.  You should remove libc.a, libg.a and libc_p.a and once
  1871. again install the new libraries (following the release notes, of course).
  1872.  
  1873. -------------------------------------------------------------------------------
  1874.  
  1875. Question 9.3.  lp1 on fire
  1876.  
  1877. This is a joke/traditional error message indicating that some sort of
  1878. error is being reported by your printer, but that the error status isn't a
  1879. valid one.  It may be that you have some kind of I/O or IRQ conflict -
  1880. check your cards' settings.  Some people report that they get this message
  1881. when their printer is switched off.  Hopefully it isn't really on fire ...
  1882.  
  1883. In newer kernels this message reads lp1 reported invalid error status (on
  1884. fire, eh?).
  1885.  
  1886. -------------------------------------------------------------------------------
  1887.  
  1888. Question 9.4.  INET: Warning: old style ioctl(IP_SET_DEV) called!
  1889.  
  1890. You are trying to use the old network configuration utilities; the new
  1891. ones can be found on tsx-11.mit.edu in
  1892. /pub/linux/packages/net/net-2/binaries.
  1893.  
  1894. Note that they cannot be used just like the old-style programs; see the
  1895. NET-2 HOWTO for instructions on how to set up networking correctly.
  1896.  
  1897. -------------------------------------------------------------------------------
  1898.  
  1899. Question 9.5.  ld: unrecognized option '-m486'
  1900.  
  1901. You have an old version of ld.  Install a newer binutils package -- this
  1902. will contain an updated ld.  Look on tsx-11.mit.edu in
  1903. /pub/linux/packages/GCC for binutils.tar.z.
  1904.  
  1905. -------------------------------------------------------------------------------
  1906.  
  1907. Question 9.6.  GCC says Internal compiler error
  1908.  
  1909. If the fault is repeatable (ie, it always happens at the same place in the
  1910. same file --- even after rebooting and trying again, using a stable
  1911. kernel) you have discovered a bug in GCC.  See the GCC Info documentation
  1912. (type Control-h i in Emacs, and select GCC from the menu) for details on
  1913. how to report this -- make sure you have the latest version though.
  1914.  
  1915. Note that this is probably not a Linux-specific problem; unless you were
  1916. compiling a program many other Linux users also compile you should not
  1917. post your bug report to any of the comp.os.linux groups.
  1918.  
  1919. If the problem is not repeatable you are very probably experiencing memory
  1920. corruption --- see Q9.7 `make says Error 139'.
  1921.  
  1922. -------------------------------------------------------------------------------
  1923.  
  1924. Question 9.7.  make says Error 139
  1925.  
  1926. Your compiler driver (gcc) dumped core.  You probably have a corrupted,
  1927. buggy or old version of GCC --- get the latest release.  Alternatively you
  1928. may be running out of swap space --- see Q6.6 `My machine runs very slowly
  1929. when I run GCC / X / ...' for more info.
  1930.  
  1931. If this doesn't fix the problem you are probably having problems with
  1932. memory or disk corruption.  Check that the clock rate, wait states and
  1933. refresh timing for your SIMMs and cache are correct (hardware manuals are
  1934. sometimes wrong, too).  If so you may have some dodgy SIMMs or a faulty
  1935. motherboard or hard disk or controller.
  1936.  
  1937. Linux, like any Unix, is a very good memory tester --- much better than
  1938. DOS-based memory test programs.
  1939.  
  1940. Reportedly some clone x87 maths coprocessors can cause problems; try
  1941. compiling a kernel with maths emulation [Q7.6 `How do I upgrade/recompile
  1942. my kernel ?']; you may need to use the no387 kernel command line flag on
  1943. the LILO prompt to force the kernel to use it, or it may be able to work
  1944. and still use the 387, with the maths emulation compiled in but mainly
  1945. unused.
  1946.  
  1947. -------------------------------------------------------------------------------
  1948.  
  1949. Question 9.8.  shell-init: permission denied when I log in.
  1950.  
  1951. Your root directory and all the directories up to your home directory must
  1952. be readable and executable by everybody.  See the manpage for chmod or a
  1953. book on Unix for how to fix the problem.
  1954.  
  1955. -------------------------------------------------------------------------------
  1956.  
  1957. Question 9.9.  No utmp entry.  You must exec ... when I log in.
  1958.  
  1959. Your /var/adm/utmp is screwed up.  You should have
  1960.    > /var/adm/utmp
  1961. in your /etc/rc.local or /etc/rc.d/*.  See Q6.9 `I have screwed up my
  1962. system and can't log in to fix it.' for how to be able to do this.
  1963.  
  1964. -------------------------------------------------------------------------------
  1965.  
  1966. Question 9.10.  Warning - bdflush not running
  1967.  
  1968. Modern kernels use a better strategy for writing cached disk blocks.  In
  1969. addition to the kernel changes, this involves replacing the old update
  1970. program which used to write everything every 30 seconds with a more subtle
  1971. daemon (actually a pair), known as bdflush.
  1972.  
  1973. Get bdflush-n.n.tar.gz from the same place as the kernel source code [Q7.6
  1974. `How do I upgrade/recompile my kernel ?'] and compile and install it; it
  1975. should be started before the usual boot-time filesystem checks.  It will
  1976. work fine with older kernels as well, so there's no need to keep the old
  1977. update around.
  1978.  
  1979. -------------------------------------------------------------------------------
  1980.  
  1981. Question 9.11.  Warning: obsolete routing request made.
  1982.  
  1983. This is nothing to worry about; it just means that the version of route
  1984. you have is a little out of date compared to the kernel.  You can make the
  1985. message go away by getting a new version of route from the same place as
  1986. the kernel source code [Q7.6 `How do I upgrade/recompile my kernel ?'].
  1987.  
  1988. -------------------------------------------------------------------------------
  1989.  
  1990. Question 9.12.  EXT2-fs: warning: mounting unchecked filesystem
  1991.  
  1992. You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end
  1993. program) with the -a option to get it to clear the `dirty' flag, and then
  1994. cleanly unmount the partition during each shutdown.
  1995.  
  1996. The easiest way to do this is to get the latest fsck, umount and shutdown
  1997. commands, available in Rik Faith's util-linux package [Q2.5 `Where can I
  1998. get Linux material by FTP ?'].  You have to make sure that your /etc/rc*
  1999. scripts use them correctly.
  2000.  
  2001. NB: don't try to check a filesystem that's mounted read-write - this
  2002. includes the root partition if you don't see
  2003.    VFS: mounted root ... read-only
  2004. at boot time.  You must arrange to mount the root filesystem readonly to
  2005. start with, check it if necessary, and then remount it read-write.  Read
  2006. the documentation that comes with util-linux to find out how to do this.
  2007.  
  2008. Note that you need to specify the -n option to mount to get it not to try
  2009. to update /etc/mtab, since the root filesystem is still read-only and this
  2010. will otherwise cause it to fail !
  2011.  
  2012. -------------------------------------------------------------------------------
  2013.  
  2014. Question 9.13.  EXT2-fs warning: maximal count reached
  2015.  
  2016. This message is issued by the kernel when it mounts a filesystem that's
  2017. marked as clean, but whose `number of mounts since check' counter has
  2018. reached the predefined value.  The solution is to get the latest version
  2019. of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the time of writing)
  2020. from the usual sites [Q2.5 `Where can I get Linux material by FTP ?'].
  2021.  
  2022. The maximal number of mounts value can be examined and changed using the
  2023. tune2fs program from this package.
  2024.  
  2025. -------------------------------------------------------------------------------
  2026.  
  2027. Question 9.14.  EXT2-fs warning: checktime reached
  2028.  
  2029. Kernels from 1.0 onwards support checking a filesystem based on the
  2030. elapsed time since the last check as well as by the number of mounts.  Get
  2031. the latest version of the ext2fs utilities [see Q9.13 `EXT2-fs warning:
  2032. maximal count reached'].
  2033.  
  2034. -------------------------------------------------------------------------------
  2035.  
  2036. Question 9.15.  df says Cannot read table of mounted filesystems
  2037.  
  2038. There is probably something wrong with your /etc/mtab or /etc/fstab files.
  2039. If you have a reasonably new version of mount, /etc/mtab should be emptied
  2040. or deleted at boot time (in /etc/rc.local or /etc/rc.d/*), using something
  2041. like
  2042.    rm -f /etc/mtab*
  2043.  
  2044. Some versions of SLS have an entry for the root partition in /etc/mtab
  2045. made in /etc/rc* by using rdev.  This is incorrect -- the newer versions
  2046. of mount do this automatically.
  2047.  
  2048. Other versions of SLS have a line in /etc/fstab that looks like:
  2049.     /dev/sdb1   /root   ext2   defaults
  2050. This is wrong.  /root should read simply /.
  2051.  
  2052. -------------------------------------------------------------------------------
  2053.  
  2054. Question 9.16.  fdisk says Partition X has different physical/logical ...
  2055.  
  2056. If the partition number (X, above) is 1 this is the same problem as Q9.17
  2057. `fdisk: Partition 1 does not start on cylinder boundary'.
  2058.  
  2059. If the partition begins or ends on a cylinder numbered beyond 1024 this is
  2060. because standard DOS disk geometry information format in the partition
  2061. table can't cope with cylinder numbers with more than 10 bits.  You should
  2062. see Q4.1 `How can I get Linux to work with my large disk ?'.
  2063.  
  2064. -------------------------------------------------------------------------------
  2065.  
  2066. Question 9.17.  fdisk: Partition 1 does not start on cylinder boundary
  2067.  
  2068. The version of fdisk that comes with many Linux systems creates partitions
  2069. that fail its own validity checking.  Unfortunately if you've already
  2070. installed your system there's not much you can do about this, apart from
  2071. copying the data off the partition, deleting and remaking it, and copying
  2072. the data back.
  2073.  
  2074. You can avoid the problem by getting the latest version of fdisk, from Rik
  2075. Faith's util-linux package (available on all good FTP sites).
  2076. Alternatively, if you are creating a new partition 1 that starts in the
  2077. first cylinder, you can do the following to get a partition that fdisk
  2078. likes.
  2079.  
  2080. 1. Create partition 1 in the normal way.  A p listing will produce the
  2081. mismatch complaint.
  2082.  
  2083. 2. Type u to set sector mode and do p again.  Copy down the number from
  2084. the "End" column.
  2085.  
  2086. 3. Delete partition 1.
  2087.  
  2088. 4. While still in sector mode recreate partition 1.  Set the first sector
  2089. to match the number of sectors per track.  This is the sector number in
  2090. the first line of the p output.  Set the last sector to the value noted in
  2091. 2. above.
  2092.  
  2093. 5. Type u to reset cylinder mode and continue with other partitions.
  2094.  
  2095. Ignore the message about unallocated sectors - they refer to the sectors
  2096. on the first track apart from the Master Boot Record, which are not used
  2097. if you start the first partition in track 2.
  2098.  
  2099. -------------------------------------------------------------------------------
  2100.  
  2101. Question 9.18.  fdisk says partition n has an odd number of sectors
  2102.  
  2103. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses
  2104. 1K blocks.  If you have a partition with an odd number of sectors the last
  2105. sector is wasted.  Ignore the message.
  2106.  
  2107. -------------------------------------------------------------------------------
  2108.  
  2109. Question 9.19.  mtools says cannot initialise drive XYZ
  2110.  
  2111. This means that mtools is having trouble accessing the drive.  This can be
  2112. due to several things.
  2113.  
  2114. Often this is due to the permissions on floppy drive devices (/dev/fd0*
  2115. and /dev/fd1*) being incorrect --- the user running mtools must have the
  2116. appropriate access.  See the manpage for chmod for details.
  2117.  
  2118. Most versions of mtools distributed with Linux systems (not the standard
  2119. GNU version) use the contents of a file /etc/mtools to discover which
  2120. devices and densities to use, in place of having this information compiled
  2121. into the binary.  Mistakes in this file often cause problems.  There is
  2122. often no documentation about this --- distribution packagers please note
  2123. that this is *evil*.
  2124.  
  2125. For the easiest way to access your DOS files (especially those on a hard
  2126. disk partition) see Q3.2 `How do I access files on my DOS partition or
  2127. floppy ?'.  Note - you should never use mtools to access files on an
  2128. msdosfs mounted partition or disk !
  2129.  
  2130. -------------------------------------------------------------------------------
  2131.  
  2132. Question 9.20.  At the start of booting: Memory tight
  2133.  
  2134. This means that you have an extra large kernel that means that Linux has
  2135. to do some special memory-management magic to be able to boot itself from
  2136. the BIOS.  It isn't related to the amount of physical memory in your
  2137. machine.  Ignore the message, or compile a kernel containing only the
  2138. drivers and features you need [Q7.6 `How do I upgrade/recompile my kernel
  2139. ?'].
  2140.  
  2141. ===============================================================================
  2142.  
  2143. Section 10.  The X Window System
  2144.  
  2145.  Q10.1       Does Linux support X Windows ?
  2146.  Q10.2       Where can I get an XF86Config for my system ?
  2147.  Q10.3       xterm logins show up strangely in who, finger
  2148.  Q10.4       I can't get X Windows to work right.
  2149.  
  2150. -------------------------------------------------------------------------------
  2151.  
  2152. Question 10.1.  Does Linux support X Windows ?
  2153.  
  2154. Yes.  Linux uses XFree86 (the current version is 3.1.1, which is based on
  2155. X11R6).  You need to have a video card which is supported by XFree86.  See
  2156. the Linux XFree86 HOWTO for more details.
  2157.  
  2158. Some of the Linux releases -- MCC, for example -- don't come with X
  2159. Windows already included; however you can easily download and install it
  2160. from /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites.
  2161. Read the XFree86 HOWTO for installation instructions.
  2162.  
  2163. Other releases -- Slackware, Debian, TAMU and SLS, for example -- come
  2164. with X Windows already included
  2165.  
  2166. -------------------------------------------------------------------------------
  2167.  
  2168. Question 10.2.  Where can I get an XF86Config for my system ?
  2169.  
  2170. See the Linux XFree86 HOWTO.
  2171.  
  2172. You'll need to put together your own XF86Config file, because it depends
  2173. on the exact combination of video card and monitor you have.  It's not
  2174. that hard to do -- read the instructions that came with XFree86, in
  2175. /usr/X11R6/lib/X11/etc.  The file you probably most need to look at is
  2176. README.Config.
  2177.  
  2178. For a quick start you may run the program xf86config.  Note that
  2179. ConfigXF86 is now obsolete and you shouldn't use it.
  2180.  
  2181. Please don't post to comp.os.linux.x asking for an XF86Config, and please
  2182. don't answer such requests - especially not in the group.
  2183.  
  2184. -------------------------------------------------------------------------------
  2185.  
  2186. Question 10.3.  xterm logins show up strangely in who, finger
  2187.  
  2188. The xterm that comes with XFree86 2.1 and earlier doesn't correctly
  2189. understand the format that Linux uses for the /var/adm/utmp file, where
  2190. the system records who is logged in.  It therefore doesn't set all the
  2191. information correctly.
  2192.  
  2193. XFree86 3.1 fixes this problem.
  2194.  
  2195. -------------------------------------------------------------------------------
  2196.  
  2197. Question 10.4.  I can't get X Windows to work right.
  2198.  
  2199. Read the XFree86 HOWTO - note the question and answer section.
  2200.  
  2201. Try reading comp.windows.x.i386unix -- specifically read the the FAQ for
  2202. that group.
  2203.  
  2204. Please don't post X Windows or XFree86 related questions to
  2205. comp.os.linux.x unless they are Linux-specific.
  2206.  
  2207. ===============================================================================
  2208.  
  2209. Section 11.  Questions applicable to very out-of-date software
  2210.  
  2211.  Q11.1       fdisk says cannot use nnn sectors of this partition
  2212.  Q11.2       GCC sometimes uses huge amounts of virtual memory and thrashes
  2213.  Q11.3       My keyboard goes all funny after I switch VC's.
  2214.  
  2215. The questions in this section are only relevant to users of software that
  2216. is at least 3 months old.
  2217.  
  2218. Please let me know if you find the answer to a problem you had here, as
  2219. unused questions in this section will eventually disappear [Q13.1
  2220. `Feedback is invited'].
  2221.  
  2222. -------------------------------------------------------------------------------
  2223.  
  2224. Question 11.1.  fdisk says cannot use nnn sectors of this partition
  2225.  
  2226. Originally Linux only supported the Minix filesystem, which cannot use
  2227. more than 64Mb per parition.  This limitation is not present in the more
  2228. advanced filesystems now available, such as ext2fs (the 2nd version of the
  2229. Extended Filesystem) and xiafs (Qi Xia's filesystem).
  2230.  
  2231. If you intend to use ext2fs or xiafs you can ignore the message.
  2232.  
  2233. -------------------------------------------------------------------------------
  2234.  
  2235. Question 11.2.  GCC sometimes uses huge amounts of virtual memory and thrashes
  2236.  
  2237. Older versions of GCC had a bug which made them use lots of memory if you
  2238. tried to compile a program which had a large static data table in it.
  2239.  
  2240. You can either upgrade your version of GCC to at least version 2.5, or add
  2241. more swap if necessary and just grin and bear it; it'll work in the end.
  2242.  
  2243. -------------------------------------------------------------------------------
  2244.  
  2245. Question 11.3.  My keyboard goes all funny after I switch VC's.
  2246.  
  2247. This is a bug in kernel versions before 0.99pl14-alpha-n.  Sometimes Linux
  2248. loses track of what modifier keys (Shift, Alt, Control etc.) are pressed
  2249. or not, and believes that one or more are pressed when they are not.  The
  2250. solution is to press and release each of the modifier keys (without
  2251. pressing any other keys) --- this will ensure that Linux knows what state
  2252. the keyboard is actually in.
  2253.  
  2254. This problem often occurs when switching out of X windows; it can
  2255. sometimes be avoided by releasing Ctrl and Alt very quickly after pressing
  2256. the F-key of the VC you are switching to.
  2257.  
  2258. ===============================================================================
  2259.  
  2260. Section 12.  How to get further assistance
  2261.  
  2262.  Q12.1       You still haven't answered my question !
  2263.  Q12.2       What to put in a request for help
  2264.  Q12.3       I want to mail someone about my problem.
  2265.  
  2266. -------------------------------------------------------------------------------
  2267.  
  2268. Question 12.1.  You still haven't answered my question !
  2269.  
  2270. Please read all of this answer before posting.  I know it's a bit long,
  2271. but you may be about to make a fool of yourself in front of 50000 people
  2272. and waste hundreds of hours of their time.  Don't you think it's worth it
  2273. to spend some of your time reading and following these instructions ?
  2274.  
  2275. If you think an answer is incomplete or inaccurate, please mail Ian
  2276. Jackson at <ijackson@nyx.cs.du.edu>.
  2277.  
  2278. Read the appropriate Linux Documentation Project books - see Q2.1 `Where
  2279. can I get the HOWTOs and other documentation ?'.
  2280.  
  2281. If you're a Unix newbie read the FAQ for comp.unix.questions, and those
  2282. for any of the other comp.unix.* groups that may be relevant.
  2283.  
  2284. Linux is a Unix clone, so almost everything you read there will apply to
  2285. Linux.  Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
  2286. /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send you these
  2287. files, for those who don't have FTP access).  There are mirrors of rtfm's
  2288. FAQ artchives on various sites - check the Introduction to *.answers
  2289. posting, posted, or look in news-answers/introduction in the directory
  2290. above.
  2291.  
  2292. Check the relevant HOWTO for the subject in question, if there is one, or
  2293. an appropriate old-style sub-FAQ document.  Check the FTP sites.
  2294.  
  2295. Try experimenting --- that's the best way to get to know Unix and Linux.
  2296.  
  2297. Read the documentation.  Check the manpages (type man man if you don't
  2298. know about manpages.  Try man -k <subject> --- it often lists useful and
  2299. relevant manpages.
  2300.  
  2301. Check the Info documentation (type C-h i, i.e. Control H followed by I in
  2302. Emacs) --- NB: this isn't just for Emacs; for example the GCC
  2303. documentation lives here as well.
  2304.  
  2305. There will also often be a README file with a package giving installation
  2306. and/or usage instructions.
  2307.  
  2308. Make sure that you don't have a corrupted or out-of-date copy of the
  2309. program in question.  If possible, download it again and reinstall it ---
  2310. perhaps you made a mistake the first time.
  2311.  
  2312. Read comp.os.linux.announce --- this often contains very important
  2313. information for all Linux users.
  2314.  
  2315. General X-Windows questions belong in comp.windows.x.i386unix, not in
  2316. comp.os.linux.x.  But read the group first (including the FAQ), before you
  2317. post !
  2318.  
  2319. Only if you have done all of these things and are still stuck should you
  2320. post to the appropriate comp.os.linux.* newsgroup.  Make sure you read the
  2321. next question, Q12.2 `What to put in a request for help', first.
  2322.  
  2323. -------------------------------------------------------------------------------
  2324.  
  2325. Question 12.2.  What to put in a request for help
  2326.  
  2327. Please read carefully the following advice about how to write your posting
  2328. or email.  Taking heed of it will greatly increase the chances that an
  2329. expert and/or fellow user reading it will have enough information and
  2330. motivation to reply.
  2331.  
  2332. This advice applies both to postings asking for advice and to personal
  2333. email sent to experts and fellow users.
  2334.  
  2335. Make sure you give full details of the problem, including:
  2336.  
  2337. * What program, exactly, you are having problems with.  Include the
  2338.   version number if known and say where you got it.  Many standard
  2339.   commands tell you their version number if you give them a --version
  2340.   option.
  2341.  
  2342. * Which Linux release you're using (MCC, Slackware, Debian or whatever)
  2343.   and what version of that release.
  2344.  
  2345. * The *exact* and *complete* text of any error messages printed.
  2346.  
  2347. * Exactly what behaviour you were expecting, and exactly what behaviour
  2348.   you observed.  A transcript of an example session is a good way of
  2349.   showing this.
  2350.  
  2351. * The contents of any configuration files used by the program in question
  2352.   and any related programs.
  2353.  
  2354. * What version of the kernel and of the shared libraries you are using.
  2355.   The kernel version can be found by typing uname -a, and the shared
  2356.   library version by typing ls -l /lib/libc.so.4.
  2357.  
  2358. * Details of what hardware you're running on, if it seems appropriate.
  2359.  
  2360. You are in little danger of making your posting too long unless you
  2361. include large chunks of source code or uuencoded files, so err on the side
  2362. of giving too much information.
  2363.  
  2364. Use a clear, detailed Subject line.  Don't put things like `doesn't work',
  2365. `Linux', `help' or `question' in it --- we already knew that ! Save the
  2366. space for the name of the program, a fragment of the error message,
  2367. summary of the unusual behaviour, etc.
  2368.  
  2369. If you are reporting an `unable to handle kernel paging request' message,
  2370. follow the instructions in the Linux kernel sources README for turning the
  2371. numbers into something more meaningful.  If you don't do this noone who
  2372. reads your post will be able to do it for you, as the mapping from numbers
  2373. to function names varies from one kernel to another.
  2374.  
  2375. Put a summary paragraph at the top of your posting.
  2376.  
  2377. At the bottom of your posting, ask for responses by email and say you'll
  2378. post a summary.  Back this up by using Followup-To: poster.  Then, do
  2379. actually post a summary in a few days or a week or so.  Don't just
  2380. concatenate the replies you got --- summarise.  Putting the word SUMMARY
  2381. in your summary's Subject line is also a good idea.  Consider submitting
  2382. the summary to comp.os.linux.announce.
  2383.  
  2384. Make sure your posting doesn't have an inappropriate References header
  2385. line.  This marks your article as part of the thread of the article
  2386. referred to, which will often cause it to be junked by the readers with
  2387. the rest of a boring thread.
  2388.  
  2389. You might like to say in your posting that you've read this FAQ and the
  2390. appropriate HOWTOs - this may make people less likely to skip your
  2391. posting.
  2392.  
  2393. Remember that you should not post email sent to you personally without the
  2394. sender's permission.
  2395.  
  2396. -------------------------------------------------------------------------------
  2397.  
  2398. Question 12.3.  I want to mail someone about my problem.
  2399.  
  2400. Try to find the author or developer of whatever program or component is
  2401. causing you difficulty.  If you have a contact point for the Linux
  2402. distribution you are using you should use it.
  2403.  
  2404. Please put everything in your email that you would put in a posting asking
  2405. for help.
  2406.  
  2407. Finally, remember that despite the fact that most of the Linux community
  2408. are very helpful and responsive to emailed questions you'll be asking for
  2409. help from an unpaid volunteer, so you have no right to expect an answer.
  2410.  
  2411. ===============================================================================
  2412.  
  2413. Section 13.  Administrative information and acknowledgements
  2414.  
  2415.  Q13.1       Feedback is invited
  2416.  Q13.2       Formats in which this FAQ is available
  2417.  Q13.3       Authorship and acknowledgements
  2418.  Q13.4       Disclaimer and Copyright
  2419.  
  2420. -------------------------------------------------------------------------------
  2421.  
  2422. Question 13.1.  Feedback is invited
  2423.  
  2424. Please send me your comments on this FAQ.
  2425.  
  2426. I accept submissions for the FAQ in any format;  All contributions
  2427. comments and corrections are gratefully received.
  2428.  
  2429. Please send them to <ijackson@nyx.cs.du.edu>.
  2430.  
  2431. If you wish to refer to a question(s) in the FAQ it's most useful for me
  2432. if you do so by the question heading, rather than the number, as the
  2433. question numbers are generated automatically and I don't see them in the
  2434. source file I edit.
  2435.  
  2436. I prefer comments in English to patchfiles - I write the FAQ in a
  2437. different internal format anyway, so I can't use a patchfile.
  2438.  
  2439. -------------------------------------------------------------------------------
  2440.  
  2441. Question 13.2.  Formats in which this FAQ is available
  2442.  
  2443. This document is available as an ASCII text file, an Emacs Info document,
  2444. an HTML World Wide Web page, PostScript and as a USENET news posting.
  2445.  
  2446. The ASCII, Emacs Info, HTML and posted versions and a Lout typesetter file
  2447. (from which the PostScript is produced) are generated automatically by a
  2448. Perl script which takes as input a file in the Bizarre Format with No
  2449. Name.
  2450.  
  2451. The output files linux-faq.ascii, .info and .ps and a tarfile
  2452. linux-faq.source.tar.gz, containing the BFNN source and Perl script
  2453. converter, are available in the docs directories of the major Linux FTP
  2454. sites.
  2455.  
  2456. The HTML version of this FAQ is available as
  2457. http://www.cl.cam.ac.uk/users/iwj10/linux-faq/index.html and is mirrored
  2458. at www.li.org and other sites.
  2459.  
  2460. The USENET version is posted regularly to comp.os.linux.announce,
  2461. comp.os.linux.answers, comp.answers and news.answers.
  2462.  
  2463. -------------------------------------------------------------------------------
  2464.  
  2465. Question 13.3.  Authorship and acknowledgements
  2466.  
  2467. This FAQ was compiled by Ian Jackson <ijackson@nyx.cs.du.edu>, with
  2468. assistance and comments from others too numerous to mention.  It was
  2469. loosely based on the original Linux FAQ by Marc-Michel Corsini.
  2470.  
  2471. Special thanks are due to Matt Welsh, who moderates comp.os.linux.announce
  2472. and comp.os.linux.answers, used to coordinate the HOWTOs and has written
  2473. substantial portions of many of them, to Greg Hankins, who currently
  2474. coordinates the HOWTOS, and to Marc-Michel Corsini.  Thanks also to the
  2475. contributors to the previous Linux FAQ, and to those sent me comments
  2476. about this FAQ, and who answered questions on the newsgroup.
  2477.  
  2478. Last but not least, thanks to Linus Torvalds and the other contributors to
  2479. Linux for giving us something to write about !
  2480.  
  2481. -------------------------------------------------------------------------------
  2482.  
  2483. Question 13.4.  Disclaimer and Copyright
  2484.  
  2485. Note that this document is provided as is.  The information in it is *not*
  2486. warranted to be correct; you use it at your own risk.
  2487.  
  2488. Linux Frequently Asked Questions with Answers is Copyright 1994, 1995 by
  2489. Ian Jackson <ijackson@nyx.cs.du.edu>.
  2490.  
  2491. It may be reproduced and distributed in its entirety (including this
  2492. authorship, copyright and permission notice) provided that either:
  2493.  
  2494. * the distribution is not commercial (commercial means any situation in
  2495.   which you benefit financially - directly or indirectly such as by
  2496.   inclusion in a publication which carries commercial advertising), or
  2497. * the distribution is in machine-readable form (ie, a form intended to be
  2498.   easily processed by a computer).
  2499.  
  2500. Note that this restriction is not intended to prohibit charging for the
  2501. service of printing or copying a document supplied by your customer.
  2502.  
  2503. Any distribution of a partial copy or extract, a translation or a
  2504. derivative work must be approved by me before distribution.  Email me -
  2505. I'll probably be happy to oblige !
  2506.  
  2507. Exceptions to these rules may be granted, and I shall be happy to answer
  2508. any questions about this copyright --- write to Ian Jackson, Churchill
  2509. College, Cambridge, CB3 0DS, United Kingdom or email
  2510. <ijackson@nyx.cs.du.edu>.  These restrictions are here to protect the
  2511. contributors, not to restrict you as educators and learners.
  2512.  
  2513. Ian Jackson asserts the right to be identified as the author of this work,
  2514. and claims the moral rights of paternity and integrity, in accordance with
  2515. the Copyright, Designs and Patents Act, 1988.
  2516.  
  2517.