LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Disabling network (https://www.linuxquestions.org/questions/mandriva-30/disabling-network-544524/)

DesignerX 04-09-2007 08:59 AM

Disabling network
 
I installed mandriva one 2007 it worked fine until I set the "connect on startup" option when configuring my internet connection (which also worked fine).

Now on boot the system halts (I can only reboot with ctl+alt+del)

How can I disable the option or disable the loading of the network drivers ???

thx.

jiml8 04-09-2007 09:08 AM

in /etc/rc.d there are 5 directories, rc1.d through rc5.d. Each of these directories corresponds to a startup level. Level 5 is the one most commonly used, brings up multi-user with networking and a graphical display.

Each of these directories is filled with links to various startup scripts. All links start with a letter, then a two-digit number, then a name which corresponds to the name of the script. One of these links will have the name "network". Delete that link to stop the network from starting.

Also in the directory rc.d is a directory init.d. This is the directory that contains all the startup scripts.

PTrenholme 04-09-2007 10:06 AM

You should be able to select the run level into which you boot from the initial boot screen.

I don't know which boot manager Mandriva uses, but -- if it's GRUB -- all you need to do is
1) press the Escape key when the GRUB message is displayed,
2) select the system to which you want to boot from the menu,
3) press "e" to edit the boot commands,
4) select the "kernel=" line,
5) press "e" again,
6) press the "End" key to go to the end of the line,
7) type " 3" (without the quotes) and the Enter key,
8) press "b" to boot.

That should boot you to a command line in run level 3 where you can log in as "root" and fix your problem. (Look at man chkconfig for instructions on how to change which services start during boot at various run levels.) If the system still hangs, try run level 1 instead of 3.

The chkconfig --list network command should tell you the run levels where the network service is started:
Code:

$ /sbin/chkconfig --list network
network        0:off  1:off  2:on    3:on    4:on    5:on    6:off

If Mandrivia uses the typical run level settings, you want to change the settings for run level 5, using chkconfig --level 5 network off

<edit>
Note: I don't use Mandriva, so my comments may not apply to that distribution.
</edit>

DesignerX 04-09-2007 10:11 AM

it works
 
thx, it works now.

ernie 04-09-2007 02:57 PM

Good, but what fixed it? That information may help others


All times are GMT -5. The time now is 06:42 AM.