-
Senior Member
registered user
Making modules persistant at boot -STILL OPEN
I had a lot of probs trying to keep my ethernet modules loaded at boot and not having to manually modprobe them after...
OR# Place your local directives here.
alias eth0 nvnet
# This line loads the part of the modprobe configuration managed with
# update-modules( and built from the contents of /etc/modprobe.d/.
include /lib/modules/modprobe.conf
So I did as instructed and
# more modprobe.conf
# This file is automatically generated by update-modules, please do not
# edit it directly.
# If you want to change or add anything here please read /etc/modprobe.conf,
# the files in /etc/modprobe.d/ and the manpage for update-modules(.
#
However this didnt work....
Its a real mess all the servers fail at boot like DCHP and BIND etc.
So I just went back and ignored the directiver NOT to edit the file and it seems to be working....
Can anyone explain this or is this a relict of the liveCD on the HD install.
Or will it screw up later ???
-
Senior Member
registered user
Re: Making modules persistant at boot
Originally Posted by
gowator
I had a lot of probs trying to keep my ethernet modules loaded at boot and not having to manually modprobe them after...
OR# Place your local directives here.
alias eth0 nvnet
# This line loads the part of the modprobe configuration managed with
# update-modules(
and built from the contents of /etc/modprobe.d/.
include /lib/modules/modprobe.conf
So I did as instructed and
# more modprobe.conf
# This file is automatically generated by update-modules, please do not
# edit it directly.
# If you want to change or add anything here please read /etc/modprobe.conf,
# the files in /etc/modprobe.d/ and the manpage for update-modules(
.
#
However this didnt work....
Its a real mess all the servers fail at boot like DCHP and BIND etc.
So I just went back and ignored the directiver NOT to edit the file and it seems to be working....
Can anyone explain this or is this a relict of the liveCD on the HD install.
Or will it screw up later ???
You should add that line (alias eth0 nvnet) to the file /etc/modutils/aliases then use the update-modules program to update the /etc/modules.conf file and have the information used in the next reboot or if you rmmod nvnet then insmod nvnet the new information should be used. You should also add the nvnet to a new line in the /etc/modules file, all these steps as root.
-
Senior Member
registered user
update-modules
Stephen, thanks again :d
Actually I did run the update modules, it just didn't change the file its meant to....
In actual fact this example is from the first machine but its actually the second machine thats really important.
Perhaps it would be easier to explain what Im trying to do !!!
For reasons so complex and intertwined I think I forgot myself it becuame imperative to get rid of my old server/gateway/router which was running SME server (modified REDHAT)
Perhaps the main reason being is it does what its meant to well but it is a pain to convince it to do something extra and at the momnet I need to install vtun....
I had a spare machine, A celeron 400 with 64MB RAM.... (I bought my dad a new PC for XMAS and liberated his old one) that desperately needed a real OS installing and Id been very impressed with knoppix so off I went. Meanwhile Id used the existing WinBlows install for configuring some wireless cards and it had both ethernet and wireless NIC's in....
So off we go, it runs from the Cd which is a good sign although KDE is a bit challenging! So I try an knoppix-install.
This keeps failing, RIGHT at the beginning on the script. Instead of opening the pop-up it lists out std out. Not detered I dismiss this as lack of memory and try the older knx-hdinstall ... from RL3 which successfully installs
The first thing I need is two NIC's and since the MAC add is locked on my DSL modem I have to take them out of my running server.... or at least one of them, the second is unreliable so I replace that too. (Its just the RJ45 connection that is unreliable)
So now we have 3 NIC's, one of which isn'ty supported or detected because its 802.11G (NG WG-311)
Now the hardware detection at boot is gone I have to load the modules by hand which I do taking care to note the order. The 3c59x is loaded first then the tulip for the netgear ...
netcard detect then finds the 3c as card0 and the ng as card1
eth0 gets a static ip in a class C RFC range, eth1 I l leave and config with wlcardconfig to access the DSL.
This creates ppp0, which with the right credentials connects
Next I set up a DHCP server on eth0 and use the knoppix installed dhcp3-server. It takes a bit of editing the module config in webmin but its working and allocating IP's.
Next I add a bind server - again a little editing but basically working.
I create an init.d script for ddclient (dynamic dns) which starts at S99_
Everything looks fine so I configure IP tables through webmin...
Everything is open except the internal network is NAT'd to the external.
Basically works... except the dhcp clients are not replacing the default route but adding to it. This is on the client side so it can bve dealt with later. (For some reason Im getting two default GW's)
I add the files into the # Place your local directives here.
part of /etc/modprobe.conf and run update modules and reboot.
The modules aren't found and so all the services that rely on them fail.....
Meanwhile I have no mail server and without the router running I don't even have internet access .....
Meanwhile I wreck my belkin wireless router/switch by pulling the power out while its resetting to factory defaults !! Now I have no wireless access point.
So I get it up, reconfigure everything and setup the wireless card using the linuxant driverloader. This goes as eth2.
However linuxant know something I don't.... eth2 comes up at boot except of course its not eth2 but eth0....
This of course thouroughly confuses the services the rely on IP's....
Darn it.
So I rmmod driverloader, then modprobe 3c95x, tulip,driverloader...
Everything is fine except it screws my firewall ... now fixed
Oh yeah eth0 192.168.2.1/255.255.255.0 eth1 no IP -> ppp0 and eth2 192.168.0.1/255.255.255.0
Present situation is everything is more or less working except I need to reconfigure qmail and still need the vtun server.
Except I daren't reboot.....
Its not exactly quick in X or for reboots and between getting everything working I have no internet. I spent all day and all night Saturday doing this and then most of
since the linuxant install worked I figure its just me forgetting something.
Im not used to debian and this project is proving a bit of a bridge to far except I have to do it.
I can't find a easy way to assign init scripts ... (aka chkconfig in RH derivatives) so Im using SYS V and having to write them by hand the linking from rcx.d.
ANYTHING YOU CAN SPOT IM DOING STUPID PLEASE SAY !!!!
-
Senior Member
registered user
-
Senior Member
registered user
Well, I don't know enough about the loading of kernel modules to say what is wrong but once I've decided what hardware I'm going to use I usually compile a new kernel with the drivers directly included. For stuff that always would be in use anyway it is just as efficient as the module approach and you don't have to worry about loading anything at boot time.
-
Senior Member
registered user
hmmmm
strange.....
I once bought 10 NIC's at once....
identical netgear ones....
over the last 2-3 years i seem to have given them away!!!!
Now Im struggling to find two identical cards (which would be ideal since it saves memory)
but also compiling the drivers in kinda locks stuff down.... and my hardware seems to move around boxes quite often....
BUT last night I dreamt I got the box again with 10 identical NIC's in.....
I guessI was thinking the same thing!!!!
However it makes a lot of sense!!!!
Im going to give it a thought!!!!!!
-
Senior Member
registered user
So I rmmod driverloader, then modprobe 3c95x, tulip,driverloader...
Well that's certainly a complicated enough setup. This is probably not the most elegant way to try it but if it works like you say in the line above the you may want to try adding to this to the file /etc/init.d/bootmisc.sh near the bottom:
Code:
rmmod driverloader
modprobe 3c59x
modprobe tulip
modprobe driverloader
And you may want to not have the interfaces automatically come up on boot so in the /etc/network/interfaces file you would just have the line auto lo instead of the auto lo eth0 eth1 then below the lines above in the bootmisc.sh you would have:
Code:
ifup eth0
ifup eth1
ifup ppp0
To bring each of the interfaces up with the settings in the interfaces file that you have for them BTW can you post that so we can see it if this does not work. And while I'm thinking about it are the modules listed in the correct order in the /etc/modules file so they load one after the other like you seem to need them too.
-
Senior Member
registered user
-
Senior Member
registered user
VERY CLOSE
Well, I RTFM'd more....
Its the move to Deb and unfamilair stuff thats giving me grief on what I guess might be considered an 'advanced' topic.
Problem is its not advanced to me in Mandrake... but im determied to get it working with Knoppix/Deb.
I updated the aliases file in the modprobe.d and update modules and it seems to have worked!!!!
Hooray.....
Now its just messing about with the init dir's I hope!!!!
Similar Threads
-
By bigrobot in forum General Support
Replies: 0
Last Post: 11-30-2004, 08:38 AM
-
By wicking in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 08-06-2004, 07:50 PM
-
By dmedici in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 10-19-2003, 01:06 AM
-
By sauertopf in forum Customising & Remastering
Replies: 0
Last Post: 08-27-2003, 09:45 AM
-
By am389683 in forum General Support
Replies: 1
Last Post: 08-05-2003, 10:12 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W
$3472.00
Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 64GB 2x10G SFP+ 2x2200W
$3180.00
Supermicro 4U 4x Nvidia GPU AI Server 2.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W
$1382.00
Supermicro 4U 4x Nvidia GPU AI Server 3.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W
$1732.00
Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...
$689.99
Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...
$489.99
Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$619.99
Intel Core i7-6700 3.40 GHz QUAD Core (4 Core) Desktop Processor 8MB LGA 1151
$59.99
Dell Optiplex 7060 SFF 8th Gen Core i7 3.2GHZ 32GB 512GB Win 11 Pro
$249.00
HP Z820 8-Core 2.60GHz E5-2670 128GB RAM No HDD No OS
$235.90