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