home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 2 / CD ACTUAL VOL 2.iso / docs / linux.faq / linux-fa.asc < prev   
Encoding:
Text File  |  1995-09-10  |  105.6 KB  |  2,441 lines

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