home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / docs / linux.faq / linux-fa.inf / linux-fa
Encoding:
Text File  |  1996-07-11  |  121.2 KB  |  2,836 lines

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