home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / faqs / linux-fa.inf / linux-fa
Encoding:
Text File  |  1995-09-10  |  114.1 KB  |  2,680 lines

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