Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to make a backup box from my production machine. I installed Slackware 10.2 from a CD and was able to bring it up fine. I then copied /boot, /etc, /var, /root folder from my original box, changed the lilo etc, and it too came up fine with the same logo, root passwd, etc. However I am having trouble with the network cards. The cards are different, so I got into the modules.conf file and uncommented the 3C509 part since thats what I'm using. On restarting, I saw some error messages that said "Can't open /lib/modules/2.4.26/modules.dep for writing" I tried to look under the /lib/modules, however all I see is 2.4.31. The command uname -r gives me 2.4.26, however I don't see a folder for that. I'm new to Linux and well totally confused. What am I doing wrong, or what should I do to correct this? Please help!! Thanks in advance
Do I understand correctly that you did a regular install from Slackware 10.2 disk and then copied some, but not all of the directories from another machine over to it? In particular you copied the /boot directory but not the /lib directory? If so, I think you got a mismatch in versions between your kernel, which is in your /boot directory and the modules for it which are in the /lib/modules directory.
If I got this right, what you are trying to do sounds tricky to me. But if you still want to try it, I would suggest either not copying over the /boot directory (in which case your two systems will be running different kernels), or else in addition to everything else, copy over the /lib/modules/2.4.26 directory from your other machine.
dxqcanada -- I'm not sure what you mean by kernel source tree
blackhole54 -- You're correct, since I did not copy the modules directory. However I had googled on the error message and I found a command:
Code:
mkdir /lib/modules/`uname -r` && depmod -a
which seemed to create a folder wtih some files in it, and upon restarting again, it solved the error messages. But now, I have another problem regarding network cards. I have 4 installed. Three of them are 3Com and one is a Netgear. None of them seem to work. My "ifconfig -a" gives the following result:
Code:
dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
gre0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1476 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
tunl0 Link encap:IPIP Tunnel HWaddr
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
I have manually gone in rc.inet1.conf and given them static IP along with netmask. I have also tried to "route -v add default gw 192.168.137.254", however I get a "SIOCADDRT:Network is unreachable" error message. I have no clue on how to proceed. I had tried using netconfig, but that didn't help either. Any ideas, suggestions would be helpful. Thanks a lot!!
Unless I am missing something, it looks to me like all you did was create a directory for the modules of your running kernel, but didn't populate it with any actual modules. The depmod command probably added a couple of files. With no modules, I think these files would be very short!
In particular, the modules for your network cards should be in /lib/modules/2.4.26/net. Do you have such a directory?
No I do not have a "net" directory under /lib/modules/2.4.26. Can I just copy that from the /lib/modules/2.4.31/net directory and reboot the machine or there are different files for it? If so, where can I get those? Thanks!
No I do not have a "net" directory under /lib/modules/2.4.26. Can I just copy that from the /lib/modules/2.4.31/net directory and reboot the machine or there are different files for it? If so, where can I get those? Thanks!
The reason different versions of the kernel have different directories in /lib/modules is because in general you can not simply copy modules from one version of the kernel to another. (There my be times when it works by sheer luck.) If you insist on using a version of the kernel from another machine, I see no choice but to copy the modules over also. At least the modules that you need to use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.