home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / LINUX / FAQ.TXT (.txt) < prev    next >
Text File  |  1997-04-19  |  25KB  |  631 lines

  1. Slackware FAQ, last revised:  14 May 1996
  2.  
  3. These are questions people ask me quite often. Hopefully now that they're
  4. answered here that won't be the case. :^)
  5.  
  6. -----
  7.  
  8. Q: After installation, my ethernet, CDROM drive, and/or other hardware that I
  9.    thought Linux supported doesn't work.  Why?
  10.  
  11. A: Probably because the kernel you're running doesn't contain the support. 
  12.    To fix the problem, you'll have to install a kernel that does.  There might
  13.    a suitable kernel in the /kernels directory on the CDROM, or you can compile
  14.    a custom kernel for your machine.  This isn't too difficult -- see the 
  15.    instructions below about compiling a new kernel.  
  16.  
  17.    You can also try loading the device driver in the form of a kernel module.
  18.    There are drivers for nearly all the hardware supported by Linux in the
  19.    /modules directory on the CDROM, or in your /lib/modules directory if you've
  20.    installed the modules.tgz package.  Take a look at your /etc/rc.d/rc.modules
  21.    file for examples of how to load these.
  22.  
  23. -----
  24.  
  25. Q: Why can't Linux install on my EIDE hard drive?
  26.  
  27. A: If you are using any of the various "Disk Manager" programs included with 
  28.    many EIDE drives, you won't be able to use the drive for Linux until you
  29.    remove it.  These programs are a hack to let DOS use more than 512MB, and
  30.    render the drive unusable for any other OS.  (Not just Linux... even OS/2
  31.    has trouble with these)
  32.  
  33.    The usual method for fixing the problem is to back up everything on the
  34.    drive, wipe the boot record (FDISK /MBR), reformat, and then reinstall
  35.    everything.
  36.  
  37.    NOTE:  Some of the newer 1.3.x kernels claim to be able to work around some
  38.    of these programs, so you might want to give one of those a try to see if
  39.    they work.
  40.  
  41. -----
  42.  
  43. Q: When I installed Slackware, the system could see my CD-ROM just fine.  But,
  44.    when I try to boot using LILO or the bootdisk the system doesn't find the
  45.    CD-ROM drive anymore!  How can I fix this?
  46.  
  47. A: The problem is probably that you used a bootkernel disk with support for your
  48.    CD-ROM drive, but didn't install a kernel with support.  
  49.  
  50.    If you're ready to try compiling a kernel, you can easily solve this problem
  51.    by compiling a custom kernel (see the section about compiling a Linux kernel)
  52.    or, you can load the CDROM driver in the form of a kernel module.  You can
  53.    do this by editing the /etc/rc.d/rc.modules file to load the module for your
  54.    CDROM drive the next time you boot.  
  55.  
  56.    Here's the section of the file that loads CDROM drive modules:
  57.  
  58.  # These modules add CD-ROM drive support.  Most of these drivers will probe
  59.  # for the I/O address and IRQ of the drive automatically if the parameters
  60.  # to configure them are omitted. Typically the I/O address will be specified
  61.  # in hexadecimal, e.g.: cm206=0x300,11
  62.  #
  63.  #/sbin/modprobe aztcd aztcd=<I/O address>
  64.  #/sbin/modprobe cdu31a cdu31a_port=<I/O address> cdu31a_irq=<interrupt>
  65.  #/sbin/modprobe cm206 cm206=<I/O address>,<IRQ>
  66.  #/sbin/modprobe gscd gscd=<I/O address>
  67.  #/sbin/modprobe mcd mcd=<I/O address>,<IRQ>
  68.  #/sbin/modprobe mcdx mcdx=<I/O address>,<IRQ>
  69.  #/sbin/modprobe optcd optcd=<I/O address>
  70.  # Below, this last number is "1" for SoundBlaster Pro, or "0" for a clone.
  71.  #/sbin/modprobe sbpcd sbpcd=<I/O address>,1
  72.  #/sbin/modprobe sonycd535 sonycd535=<I/O address>
  73.  #/sbin/modprobe sjcd sjcd=<I/O address>
  74.  
  75.    To use one of these, edit out the '#' in front of the line for your CDROM
  76.    drive.  If you know the I/O address and/or IRQ for your board, fill it in on
  77.    the line.  For example, you might change the sbpcd line to look like this if
  78.    you've got a SoundBlaster CDROM at 0x300:
  79.  
  80. /sbin/modprobe sbpcd sbpcd=0x300,1
  81.  
  82.    If you need to access your CDROM drive so that you can get the modules
  83.    package installed, use the same bootkernel disk you installed the system 
  84.    with to get into your machine.  Use a command like this on the LILO prompt,
  85.    but replace the root device name with the one you used on your machine:
  86.  
  87.    mount root=/dev/hda1
  88.  
  89.    Once you're logged in, install the modules package:
  90.  
  91.    installpkg /cdrom/slakware/a*/modules.tgz
  92.  
  93. -----
  94.  
  95. Q: Why isn't my Sony CDU-31/33a detected by Linux anymore?  It used to work!
  96.  
  97. A: From the source code:
  98.  
  99.  + * WARNING -   All autoprobes have been removed from the driver.
  100.  + *             You MUST configure the CDU31A via a LILO config
  101.  + *             at boot time or in lilo.conf.  I have the
  102.  + *             following in my lilo.conf:
  103.  + *
  104.  + *                append="cdu31a=0x1f88,0,PAS"
  105.  + *
  106.  + *             The first number is the I/O base address of the
  107.  + *             card.  The second is the interrupt (0 means none).
  108.  + *             The third should be "PAS" if on a Pro-Audio
  109.  + *             spectrum, or nothing if on something else.
  110.  
  111. You can also use this option with Loadlin:
  112.  
  113. C:\LOADLIN\LOADLIN C:\LINUX\VMLINUZ root=/dev/hda1 cdu31a=0x1f88,0,PAS
  114.  
  115. Or, on the bootkernel LILO: prompt.  Examples:
  116.  
  117. LILO: ramdisk cdu31a=0x1f88,0,PAS
  118.  
  119. LILO: mount root=/dev/sda1 cdu31a=0x1f88,0,PAS ro
  120.  
  121. -----
  122.  
  123. Q: I can't get the kernel to see a CDROM connected to a Soundblaster 16 IDE!
  124.  
  125. A: First, be sure you're using the proper kernel -- the one needed in this
  126.    case is the IDE/ATAPI CDROM type, not the SBPCD type.  Then, if you still
  127.    have problems, use the secondary IDE channel (IRQ 15 0x170), and make sure
  128.    the drive is set as master (jumper in the back) and not as slave (a common
  129.    default).
  130.  
  131. -----
  132.  
  133. Q: I can't get the disks made by RAWRITE to boot!
  134.  
  135. A: First, check that you're using the right size image.  If you use an image
  136.    meant for a 1.44 MB floppy on a 1.2 MB floppy (or vice-versa) you'll likely
  137.    see the message "LI" and the boot process will hang.
  138.  
  139.    Another possibility is a BIOS problem -- a user has reported to me that
  140.    RAWRITE fails on his machine unless he first does "dir a:" on an MS-DOS
  141.    floppy.  Apparently this is caused by the BIOS improperly initializing
  142.    address 0000:0526 (number of sectors) to 11h instead of 12h.  Using "dir"
  143.    on the device fixes that value.  The affected machine in this case was using
  144.    "Mr. BIOS" from Unicore Software. 
  145.  
  146. -----
  147.  
  148. Q: I was able to install fine, but the installed system won't boot!
  149.  
  150. A: Slackware uses stripped down kernels to do the actual installation -- in
  151.    other words, the kernels don't have any more drivers than needed to control
  152.    only the device needed to complete the installation.  The kernels that are
  153.    installed to the system are more full featured, with more ethernet, mouse,
  154.    filesystem, and other drivers.  Sometimes this can lead to hangs at boot
  155.    time when the kernel misidentifies an piece of hardware that's unusual or
  156.    at a non-standard port/IRQ.
  157.  
  158.    When this happens, you need to try a different kernel.  First, use the
  159.    bootdisk that worked during installation to get your system started.  To
  160.    do this, boot the disk and enter something like this at the LILO prompt:
  161.  
  162.    mount root=/dev/sda2
  163.  
  164.    (if /dev/sda2 is your root Linux partition, otherwise use the appropriate
  165.    device name for your system)
  166.  
  167.    Once you've got the system running, install or compile a different kernel.
  168.    Try to include only the device drivers you need for your hardware.  
  169.  
  170.    Instructions on compiling the kernel can be found in your kernel source
  171.    directory (if you installed the kernel source, that is).  The kernel
  172.    source is usually found in /usr/src/linux.
  173.  
  174.    Briefly, this is the method for building a new kernel:
  175.  
  176.    cd /usr/src/linux
  177.    make config   (then answer the questions about what you need)
  178.    make dep ; make clean ; make zImage
  179.  
  180.    If the zImage is successfully built, see an answer below which explains
  181.    how to install it with LILO or Loadlin, or make a new bootdisk from it.
  182.    Once you've done that, you might want to clean up /usr/src/linux by cd'ing
  183.    into it and doing another 'make clean'.
  184.  
  185.    Good luck!  If you can handle this, you're well on your way to becoming a
  186.    Linux guru.
  187.  
  188. -----
  189.  
  190. Q: Why do I get "network unreachable" under Slackware?
  191.  
  192. A: There are a couple of possibilities. For most users, things work right out
  193.    of the box. However, if you're running into this problem here are two
  194.    workarounds you can try:
  195.  
  196.