]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - release/texts/TROUBLE.TXT
This commit was generated by cvs2svn to compensate for changes in r58582,
[FreeBSD/FreeBSD.git] / release / texts / TROUBLE.TXT
1 ===============
2 Troubleshooting
3 ===============
4
5  Table of Contents:
6
7    Repairing an Existing FreeBSD Installation
8
9    Common Installation Problems, Q&A
10
11    Common Hardware Problems, Q&A
12
13 Repairing an Existing FreeBSD Installation
14 ------------------------------------------
15
16 FreeBSD releases 2.2.1 and later feature a "Fixit" option in the top
17 menu of the boot floppy.  To use it, you will also need either a
18 fixit.flp image floppy, generated in the same fashion as the boot
19 floppy, or the 2nd CDROM from Walnut Creek CDROM's FreeBSD
20 distribution.
21
22 To invoke fixit, simply boot the kern.flp floppy, choose the "Fixit"
23 item and insert the fixit floppy or CDROM when asked.  You will then
24 be placed into a shell with a wide variety of commands available (in
25 the /stand and /mnt2/stand directories) for checking, repairing and
26 examining file systems and their contents.  Some UNIX administration
27 experience *is* required to use the fixit option!
28
29 Common Installation Problems, Q&A
30 ---------------------------------
31
32 Q: I go to boot from the hard disk for the first time after installing
33    FreeBSD, the kernel loads and probes my hardware, but stops with
34    messages like:
35
36      changing root device to wd1s1a
37      panic: cannot mount root
38
39    What is wrong?  What can I do?
40
41 Q: What is this 'bios_drive:interface(unit,partition)kernel_name' thing
42    that is displayed with the boot help?
43
44 A: There is a longstanding problem in the case where the boot disk is
45    not the first disk in the system.  The BIOS uses a different numbering
46    scheme to FreeBSD, and working out which numbers correspond to which
47    is difficult to get right.
48
49    In the case where the boot disk is not the first disk in the system,
50    FreeBSD can need some help finding it.  There are two common situations
51    here, and in both of these cases, you need to tell FreeBSD where the 
52    root filesystem is.  You do this by specifying the BIOS disk number, 
53    the disk type and the FreeBSD disk number for that type.
54
55    The first situation is where you have two IDE disks, each configured as
56    the master on their respective IDE busses, and wish to boot FreeBSD from
57    the second disk.  The BIOS sees these as disk 0 and disk 1, while 
58    FreeBSD sees them as wd0 and wd2.
59
60    FreeBSD is on BIOS disk 1, of type 'wd' and the FreeBSD disk number
61    is 2, so you would say:
62
63      1:wd(2,a)kernel
64
65    Note that if you have a slave on the primary bus, the above is not
66    necessary (and is effectively wrong).
67
68    The second situation involves booting from a SCSI disk when you have
69    one or more IDE disks in the system.  In this case, the FreeBSD disk
70    number is lower than the BIOS disk number.  If you have two IDE disks
71    as well as the SCSI disk, the SCSI disk is BIOS disk 2, type 'da' and
72    FreeBSD disk number 0, so you would say:
73
74      2:da(0,a)kernel
75
76    To tell FreeBSD that you want to boot from BIOS disk 2, which is
77    the first SCSI disk in the system.  If you only had one IDE disk,
78    you would use '1:' instead.
79
80    Once you have determined the correct values to use, you can put the
81    command exactly as you would have typed it in the /boot.config file
82    using a standard text editor.
83    Unless instructed otherwise, FreeBSD will use the contents of this
84    file as the default response to the 'boot:' prompt.
85
86 Q: I go to boot from the hard disk for the first time after installing
87    FreeBSD, but the Boot Manager prompt just prints `F?' at the boot menu
88    each time but the boot won't go any further.
89
90 A: The hard disk geometry was set incorrectly in the Partition editor when
91    you installed FreeBSD.  Go back into the partition editor and specify
92    the actual geometry of your hard disk.  You must reinstall FreeBSD
93    again from the beginning with the correct geometry.
94
95    If you are failing entirely in figuring out the correct geometry for
96    your machine, here's a tip:  Install a small DOS partition at the
97    beginning of the disk and install FreeBSD after that.  The install
98    program will see the DOS partition and try to infer the correct
99    geometry from it, which usually works.
100
101    The following tip is no longer recommended, but is left here
102    for reference:
103
104      If you are setting up a truly dedicated FreeBSD server or work-
105      station where you don't care for (future) compatibility with DOS,
106      Linux or another operating system, you've also got the option to use
107      the entire disk (`A' in the partition editor), selecting the
108      non-standard option where FreeBSD occupies the entire disk from
109      the very first to the very last sector.  This will leave all geometry
110      considerations aside, but is somewhat limiting unless you're never
111      going to run anything other than FreeBSD on a disk.
112
113
114 Known Hardware Problems, Q & A
115 ------------------------------
116
117 Q: mcd0 keeps thinking that it has found a device and this stops my Intel
118    EtherExpress card from working.
119
120 A: Use the UserConfig utility (see HARDWARE.TXT) and disable the probing of
121    the mcd0 and mcd1 devices.  Generally speaking, you should only leave
122    the devices that you will be using enabled in your kernel.
123
124
125 Q: FreeBSD claims to support the 3Com PCMCIA card, but my card isn't
126    recognized when it's plugged into my laptop.
127
128 A: There are a couple of possible problems.  First of all, FreeBSD does
129    not support multi-function cards, so if you have a combo
130    ethernet/modem card (such as the 3C562), it won't work.  The
131    default driver for the 3C589 card was written just like all of the
132    other drivers in FreeBSD, and depend on the card's own configuration
133    data stored in NVRAM to work.  You must correctly configure FreeBSD's
134    driver to match the IRQ, port, and IOMEM stored in NVRAM.
135        Unfortunately, the only program capable of reading them is the
136    3COM supplied DOS program.  This program must be run on a absolutely
137    clean system (no other drivers must be running), and the program will
138    whine about CARD-Services not being found, but it will continue.
139    This is necessary to read the NVRAM values.  You want to know the
140    IRQ, port, and IOMEM values (the latter is called the CIS tuple by
141    3COM).  The first two can be set in the program, the third is
142    un-settable, and can only be read.  Once you have these values, set
143    them in UserConfig and your card will be recognized.
144
145
146 Q: FreeBSD finds my PCMCIA network card, but no packets appear to
147    be sent even though it claims to be working.
148
149 A: Many PCMCIA cards have the ability to use either the 10-Base2 (BNC)
150    or 10-BaseT connectors for connecting to the network.  The driver is
151    unable to 'auto-select' the correct connector, so you must tell it
152    which connector to use. In order to switch between the two
153    connectors, the link flags must be set.  Depending on the model of
154    the card, '-link0 link1' or 'link0 -link1' will choose the correct
155    network connector.  You can set these in sysinstall by using the
156    'Extra options to ifconfig:' field in the network setup screen.
157
158
159 Q: The system finds my ed network card, but I keep getting device 
160    timeout errors.
161
162 A: Your card is probably on a different IRQ from what is specified in the
163    kernel configuration.  The ed driver does not use the `soft' configuration
164    by default (values entered using EZSETUP in DOS), but it will use the
165    software configuration if you specify `?' in the IRQ field of your kernel
166    config file.  
167
168    Either move the jumper on the card to a hard configuration setting
169    (altering the kernel settings if necessary), or specify the IRQ as
170    `-1' in UserConfig or `?' in your kernel config file.  This will
171    tell the kernel to use the soft configuration.
172
173    Another possibility is that your card is at IRQ 9, which is shared
174    by IRQ 2 and frequently a cause of problems (especially when you
175    have a VGA card using IRQ 2! :).  You should not use IRQ 2 or 9 if at
176    all possible.
177
178
179 Q: I have a Matsushita/Panasonic drive but it isn't recognized by the
180    system.
181
182 A: Make certain that the I/O port that the matcd driver is set to is
183    correct for the host interface card you have.  (Some SoundBlaster DOS
184    drivers report a hardware I/O port address for the CD-ROM interface
185    that is 0x10 lower than it really is.)
186
187    If you are unable to determine the settings for the card by examining 
188    the board or documentation, you can use UserConfig to change the 'port'
189    address (I/O port) to -1 and start the system.  This setting causes the
190    driver to look at a number of I/O ports that various manufacturers
191    use for their Matsushita/Panasonic/Creative CD-ROM interfaces.
192    Once the driver locates the address, you should run UserConfig again
193    and specify the correct address.  Leaving the 'port' parameter set to -1
194    increases the amount of time that it takes the system to boot, and
195    this could interfere with other devices.
196
197    The double-speed Matsushita CR-562 and CR-563 are the only drives
198    that are supported.
199    
200
201 Q: I booted the install floppy on my IBM ThinkPad (tm) laptop, and the
202    keyboard is all messed up.
203
204 A: Older IBM laptops use a non-standard keyboard controller, so you must
205    tell the keyboard driver (atkbd0) to go into a special mode which works
206    on the ThinkPads.  Change the atkbd0 'Flags' to 0x4 in UserConfig and
207    it should work fine.  (Look in the Input Menu for 'Keyboard'.)
208
209
210 Q: When I try to boot the install floppy, I see the following message 
211    and nothing seems to be happening.  I cannot enter anything from
212    the keyboard either.
213
214      Keyboard: no
215
216 A: Due to lack of space, full support for old XT/AT (84-key) keyboards 
217    is no longer available in the bootblocks.  Some notebook computers may
218    also have this type of keyboard.  If you are still using this kind of 
219    hardware, you will see the above message appears when you boot from 
220    the CD-ROM or an install floppy.
221
222    As soon as you see this message, hit the space bar, and you will see
223    the prompt:
224
225      >> FreeBSD/i386 BOOT
226      Default: x:xx(x,x)/boot/loader 
227      boot:
228
229    Then enter `-Dh', and things should proceed normally.
230
231
232 Q: I have a Matsushita/Panasonic CR-522, a Matsushita/Panasonic CR-523 or
233    a TEAC CD55a drive, but it is not recognized even when the correct I/O
234    port is set.
235
236 A: These CD-ROM drives are currently not supported by FreeBSD.  The command
237    sets for these drives are not compatible with the double-speed CR-562
238    and CR-563 drives.
239    
240    The single-speed CR-522 and CR-523 drives can be identified by their
241    use of a CD-caddy. 
242
243
244 Q: I'm trying to install from a tape drive but all I get is something like:
245         sa0(aha0:1:0) NOT READY csi 40,0,0,0
246    on the screen.  Help!
247
248 A: There's a limitation in the current sysinstall that the tape MUST
249    be in the drive while sysinstall is started or it won't be detected.
250    Try again with the tape in the drive the whole time.
251
252
253 Q: I've installed FreeBSD onto my system, but it hangs when booting from 
254    the hard drive with the message: ``Changing root to /dev/da0a''.
255
256 A: This problem may occur in a system with a 3com 3c509 Ethernet adaptor.
257    The ep0 device driver appears to be sensitive to probes for other
258    devices that also use address 0x300.  Boot your FreeBSD system by power
259    cycling the machine (turn off and on).  At the ``Boot:'' prompt specify
260    the ``-c''.  This will invoke UserConfig (see Section 1. above).  Use
261    the ``disable'' command to disable the device probes for all devices
262    at address 0x300 except the ep0 driver.   On exit, your machine should
263    successfully boot FreeBSD.
264
265
266 Q: My system hangs during boot, right after the "fd0: [my floppy drive]"
267    line.
268
269 A: This is not actually a hang, simply a very LONG "wdc0" probe that
270    often takes a long time to complete on certain systems (where there
271    usually _isn't_ a WD controller).  Be patient, your system will boot!
272    To eliminate the problem, boot with the -c flag and eliminate the wdc0
273    device, or compile a custom kernel.
274
275
276 Q: My system can not find my Intel EtherExpress 16 card.
277
278 A: You must set your Intel EtherExpress 16 card to be memory mapped at
279    address 0xD0000, and set the amount of mapped memory to 32K using
280    the Intel supplied softset.exe program.
281
282
283 Q: When installing on an EISA HP Netserver, my on-board AIC-7xxx
284    SCSI controller isn't detected.
285
286 A: This is a known problem, and will hopefully be fixed in the future.
287    In order to get your system installed at all, boot with the -c
288    option into UserConfig, but _don't_ use the pretty visual mode but
289    the plain old CLI mode.  Type
290
291         eisa 12
292         quit
293
294    there at the prompt.  (Instead of `quit', you might also type
295    `visual', and continue the rest of the configuration session in
296    visual mode.)  While it's recommended to compile a custom kernel,
297    dset(8) now also understands to save this value.
298
299    Refer to the FAQ topic 3.16 for an explanation of the problem, and
300    for how to continue.  Remember that you can find the FAQ on your
301    local system in /usr/share/doc/FAQ, provided you have installed the
302    `doc' distribution.
303
304
305 Q: I have a Panasonic AL-N1 or Rios Chandler Pentium machine and I find
306    that the system hangs before ever getting into the installation
307    now.
308
309 A: Your machine doesn't like the new i586_copyout and i586_copyin code
310    for some reason.  To disable this, boot the installation boot floppy
311    and when it comes to the very first menu (the choice to drop into
312    kernel UserConfig mode or not) choose the command-line interface
313    ("expert mode") version and type the following at it:
314
315         flags npx0 1
316
317    Then proceed normally to boot.  This will be saved into your kernel,
318    so you only need to do it once.
319
320
321 Q: I have this CMD640 IDE controller that is said to be broken.
322
323 A: Yes, it is.  FreeBSD does not support this controller except through
324    the legacy 'wdc' driver.
325
326
327 Q: On a Compaq Aero notebook, I get the message "No floppy devices found!
328    Please check ..." when trying to install from floppy.
329
330 A: With Compaq being always a little different from other systems, they
331    do not announce their floppy drive in the CMOS RAM of an Aero notebook.
332    Therefore, the floppy disk driver assumes there is no drive configured.
333    Go to the UserConfig screen, and set the Flags value of the fdc0 device
334    to 0x1.  This pretends the existence of the first floppy drive (as a
335    1.44 MB drive) to the driver without asking the CMOS at all.
336
337
338 Q: When I go to boot my Intel AL440LX ("Atlanta") -based system from the
339    hard disk the first time, it stops with a "Read Error" message.
340
341 A: There appears to be a bug in the BIOS on at least some of these boards,
342    this bug results in the FreeBSD bootloader thinking that it is booting
343    from a floppy disk.
344    This is only a problem if you are not using the BootEasy boot manager.
345    Slice the disk in 'compatible' mode and install BootEasy during the
346    FreeBSD installation to avoid the bug, or upgrade the BIOS (see Intel's
347    website for details).
348
349 Q: When installing on an Dell Poweredge XE, Dell proprietary RAID controller
350    DSA (Dell SCSI Array) isn't recognized.
351
352 A: Configure DSA to use AHA-1540 emulation using EISA configuration utility.
353    After that FreeBSD detects DSA as Adaptec AHA-1540 SCSI controller, with
354    irq 11 and port 340. Under emulation mode system will use DSA RAID disks,
355    but you cannot use DSA specific features such as watching RAID health.
356
357
358 Q: My Ethernet adapter is detected as an AMD PCnet-FAST (or similar) but
359    it doesn't work.  (Eg. onboard Ethernet on IBM Netfinity 5xxx or 7xxx)
360
361 A: The 'lnc' driver is currently faulty, and will often not work correctly
362    with the PCnet-FAST and PCnet-FAST+.  You need to install a different
363    Ethernet adapter.
364
365
366 Q: I have an IBM EtherJet PCI card, it is detected by the 'fxp' driver 
367    correctly, but the lights on the card don't come on and it doesn't
368    connect to the network.
369
370 A: We don't understand why this happens.  Neither do IBM (we asked them).
371    The card is a standard Intel EtherExpress Pro/100 with an IBM label
372    on it, and these cards normally work just fine.  You may see these
373    symptoms only in some IBM Netfinity servers.  The only solution is to
374    install a different Ethernet adapter.
375
376
377 Q: When I configure the network during installation on an IBM Netfinity
378    3500, the system freezes.
379
380 A: There is a problem with the onboard Ethernet in the Netfinity 3500
381    which we have not been able to identify at this time.  It may be
382    related to the SMP features of the system being misconfigured.  You
383    will have to install another Ethernet adapter and avoid attempting
384    to configure the onboard adapter at any time.
385
386 Q: When I install to my AMI RAID controller and reboot, the kernel 
387    cannot mount root, even though the AMI controller was detected.
388
389 A: On some systems, the AMI controller doesn't work as the driver expects
390    when it has been booted from.  This results in the array being
391    unreadable.  The only current workaround is to boot from another disk.
392
393 [ Please send hardware tips for this Q&A section to jkh@freebsd.org ]