LJ Archive CD

Best of Technical Support

Various

Issue #94, February 2002

Our experts answer your technical questions.

Restoring /dev

Since becomming a subscriber in 1998, I have been using the tips in the Best of Technical Support column. Sometimes I laugh at basic problems, thinking “this will never happen to me”--until now.

I am using Red Hat 5.0. A bad shell script accidentally removed my /dev! I shut down my Linux system and rebooted before restoring /dev from backup. So, I cannot restore the /dev from tape using my rescue diskette, because /dev/st0 is gone. What are the steps to recreate a basic /dev directory using my rescue diskette? After that, how do I restore the /dev with tar?

—Rene, rene.diependaele@ibbbs.be

Your rescue media also should have the default minimal set of devices, and you could copy them to your now-empty /dev directory with cp -av /dev/* /mnt/dev/ (if your disk is mounted under /mnt). Then you can boot your system with linux init=/bin/bash at the LILO prompt, and you will need very few devices.

—Marc Merlin, marc_bts@valinux.com

Then, to restore st0, do a mknod /mnt/dev/st0 c 9 0.

—Christopher Wingert, cwingert@qualcomm.com

Extra RAM Makes System Flaky

I have a Soyo K7V Dragon with a 1,400MHz Athlon with BIOS settings for “optimized defaults”. I installed 1.5GB Nanya PC2100 memory and Red Hat 7.2. The system boots and runs but crashes sporadically. No messages in syslog, just “restart....” When I remove 512MB of the 1.5GB, the system runs fine.

I've tried dozens of combinations of distributions, kernels and BIOS settings, as well as several disk configurations (hardware RAID, software RAID, no RAID, disk on Promise controller only, disks on Via controller only) to no avail. The distribution kernels do not recognize the via8233 southbridge. I made appropriate modification to via82cxxx.c and recompiled the kernels. The southbridge is found, but the system still crashes.

I finally replaced the memory, but the problem persists. The 512MB DDR sits burning a hole in my desk. It was expensive ($199/stick). Of course, it's cheaper now, but I'd still like to get this system running to its potential.

—Jim Peterman, jptr@msn.com

Did you replace all the sticks or just one? If only one, you might want to replace them all.

—Christopher Wingert, cwingert@qualcomm.com

It is possible that you have a defective memory slot on your motherboard, or that it's not reliably able to power more than two slots of RAM.

—Marc Merlin, marc_bts@valinux.com

PCMCIA Card Doesn't Work with 2.4

I've been receiving Linux Journal for a couple of years now and follow most of the technical things in there. But now I have a technical question I can't solve concerning the Teles PCMCIA/S0 card and kernel 2.4. I searched the Internet, newsgroups, etc., for solutions but found none. What I did find in the newsgroups are other people that have the same problem. Maybe you can help us out here.

When I used kernel 2.2.x I always used the Teles PCMCIA/S0 card. No problem at all. When compiling a new kernel, I also needed the extra PCMCIA card services and a patch downloaded from home.wtal.de/petig/ISDN, and everything worked fine. However, from kernel 2.4 this patch cannot be used anymore—it just won't compile. In the documentation of the kernel sources for 2.4, it says that they support the Teles PCMCIA/S0 card. But, whatever I try I can't get it to work. It always complains about not having the right I/O address, even when I use the IRQ and I/O that I used with the 2.2.x kernel release. The second thing is when inserting the card, I always get the message that the kernel looks for module teles_cs.o. This was the one from the home.wtal.de/petig/ISDN site.

Is there any way you can help me and all the people that want to use this ISDN card? I'm now using the standard Red Hat 7.1 version with all the patches applied.

—Andre Seesink, a.seesink@chello.nl

You might want to verify that the IRQ and I/O address you specify are still valid. Sometimes when you boot other OSes, I/O ports/IRQs on some Plug-and-Play devices are moved automagically.

—Christopher Wingert, cwingert@qualcomm.com

I haven't had much luck with the kernel PCMCIA support myself. David Hinds (the pcmcia-cs author) recommended that I try disabling PCMCIA in the kernel (you'll have to recompile your kernel with PCMCIA disabled), and that I try using the standalone pcmcia-cs package. My problems have gone away since I've done that. Yours may too.

—Marc Merlin, marc_bts@valinux.com

Unsupported Filesystem

I am using Red Hat 7.1 with Windows 2000 on my system. The primary partition is FAT16 (hdb1), and the secondary partition is NTFS (hdb2). Linux is installed on a second hard drive, which is connected as the secondary slave (hdd). While trying to mount the NTFS partition, I keep getting the following error:

The kernel does not support the ntfs fs.

The version of the kernel is 2.4.2-2. All my data resides on the NTFS partition. I would like to use Linux as the primary OS, without changing the partition structure.

—Nigel Pereira, pnigel1@hotmail.com

In order to mount and access this partition, you'll have to compile the ntfs support in your kernel, since it is not available by default. The process of configuring and compiling the kernel is documented in the Kernel HOWTO that usually can be found in your distribution or at the linuxdoc site (www.linuxdoc.org/HOWTO/Kernel-HOWTO.html). Be careful though to keep the last working version so you can boot back if something goes wrong. Your best solution would be to migrate that partition to FAT32, but if you require NTFS, then you will need to compile yourself a new kernel. Enable experimental code to see the option for NTFS. Whatever you do, do not enable write support. It is guaranteed to hose your partition.

—Ben Ford, ben@kalifornia.com

I Have No FontTastic, and I Must Use WordPerfect

I am running Red Hat 7.0; I installed WordPerfect Office 2000, and I get the following message every time I attempt to open/run any WordPerfect Office 2000 products:

Unable to add FontTastic font server to the font
path. The font server is probably not installed or
not running. Correct the problem and try again.

I've gone to the Corel web site, sent them messages and still haven't resolved the problem. Is there any reader or staff member at Linux Journal able to help me?

—James H. Birdsong, jbirdsong@orbitworld.net

For some reason the WordPerfect team at Corel decided they needed their own font server. Unfortunately, this has some issues with XFree86 4. This is a known issue; search the Corel newsgroups for the solution.

—Ben Ford, ben@kalifornia.com

Two Questions, One Answer

How can I move my MP3 files from FAT32 to Linux's ext2?

—Cougar, cougaram@home.com

When I was using Mandrake, it would recognize and mount my windows drives that I have on a separate hard drive just fine. Now that I am using Red Hat 7.2, my windows drives are not listed, and I cannot mount them. Is there anything I can do to mount /dev/hda? Right now it is installed on dev/hdb.

—Glen Kingston, gkingstun@yahoo.com

You have to mount your Windows partition in Linux. To figure out what your Windows partition is use fdisk -l /dev/hda. Look for your Windows partition (FAT32 or NTFS), then mount your partition. For example, if your Windows partition is /dev/hda1, do the following as root:

mkdir /dos
mount /dev/hda1 /dos

Your Windows partition will appear under the /dos/ directory.

—Christopher Wingert, cwingert@qualcomm.com

LJ Archive CD