15. Troubleshooting
Much can go wrong and this is the start of a growing list of symptoms, problems and solutions:
15.1 During Installation
Locating Disks
- Symptoms
-
Cannot find disk
- Problem
-
How to find what drive letter corresponds to what disk/partition
- Solution
-
Remember Linux does not use drive letters but device names. More information can be found in Drive names.
- Symptoms
-
Cannot partition disk
- Problem
-
Most likely wrong input to the command line for
fdiskor similar tool. - Solution
-
Remember to use
/dev/hdarather than justhda. Also do not use numbers behindhda, those indicate partitions.
Formatting
- Symptoms
-
Cannot format disk.
- Problem
-
Strictly speaking you format partitions not disks.
- Solution
-
Make sure you add the partition number after the device name of the disk, for instance
/dev/hda1to the command line.
15.2 During Booting
Booting fails
- Symptoms
-
Number keep scrolling up the screen.
- Problem
-
Possibly corrupt disk.
- Solution
-
Try another disk, you might have to reinstall. Check for loose cables and possible data corruption.
- Symptoms
-
Get
LIand then it hangs. - Problem
-
You use LILO to load Linux but LILO cannot find your root.
- Solution
-
Read the LILO HOWTO.
- Symptoms
-
Kernel panics, something about missing root file system.
- Problem
-
The kernel does not know where the root partition is.
- Solution
-
Use
rdevor (if applicable) LILO to add information to the kernel image where your root is.
Getting into Single User Mode
- Symptoms
-
System boots but get into a root shell in single user mode.
- Problem
-
Something went wrong in the later stages of booting and the system has come far enough to let you open a shell to repair the system.
- Solution
-
Locate the problems from the boot log. Note that file system can be in read-only mode. Remount read-write if you have to. Often the reason is that the
/etc/fstabcontained an entry that was mismapped such as trying to mount a swap partition as your normal file space.
15.3 During Running
Swap
- Symptoms
-
Short on memory
- Problem
-
Swap space is not available
- Solution
-
Type free and check the output. If you get
then system is running normal. If the line withtotal used free shared buffers cached Mem: 46920 30136 16784 7480 11788 5764 -/+ buffers/cache: 12584 34336 Swap: 128484 9176 119308Swap:contains zeros you have either not mounted the swap space (partition or swap file) (seeswapon(8)) or not formatted the swap space (seemkswap(8)).
Partitions
- Symptoms
-
No room amidst plenty 1
- Problem
-
Partitionitis:Underdimensioned partition sizes has caused overflow in some areas
- Solution
-
Examine your partition usage using
df(1)and locate problem areas. Normally the problem can be solved by removing old junk but you might have to repartition your system, see section Repartitioning.
- Symptoms
-
No room amidst plenty 2
- Problem
-
Running out of i-nodes has caused overflow in some ares, often in areas with many small files such as news spool.
- Solution
-
Examine your partition usage using
df -iand locate problem areas. Normally the problem is solved by reformatting using a higher number of i-nodes, seemkfs(8)and related man pages.
Next Previous Contents