Computing.Net > Forums > Linux > hangs on boot after eth0 fail

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

hangs on boot after eth0 fail

Reply to Message Icon

Name: totty (by allan_totty)
Date: March 9, 2004 at 05:12:11 Pacific
OS: Mandrake 9.2/w2k
CPU/Ram: C1500 256/512
Comment:

Hi,

I've done a few searches on this and read at least 30 posts from this site and others, but it all goes a bit over my head.
I've just completed my first linux install which didnt go too badly. (couldnt resize my ntfs partition as small as I would have liked and the mouse wouldnt configure correctly, next job)

The problem is on boot eth0 failes and then starting pcmcia appears and it freezes.

Which is likely to have caused the freeze ?

In the long term I'd like to get both working but for now until I learn what I'm doing disabaling them would do if that would make it boot.

I'd be very gratefull for step by step instructions, but even just some rough pointers would be a big help.

ifcfg-eth0
ONBOOT =no ???

ifconfig eth0 ???

/etc/modules.conf
alias eth0 off ???


Thanks

Allan



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: March 9, 2004 at 06:58:51 Pacific
Reply:

Try booting and at te lilo/grub boot prompt (where ou would generally just press enter to start loading linux) type:
linux nopcmcia
and see if that helps....


0

Response Number 2
Name: totty (by allan_totty)
Date: March 9, 2004 at 07:48:33 Pacific
Reply:

Hi 3Dave,

I wasnt aware of it giving a boot prompt, I thought it was just a menu selection. I'll give it a go tonight.
If I remember correctly I did have to use knoppix nopcmcia noscsi
on this laptop with DSL (alothough not with knoppix)

Cheers

Allan


0

Response Number 3
Name: totty (by allan_totty)
Date: March 9, 2004 at 14:52:32 Pacific
Reply:

I've just gave it a try, it still froze at the same place.


0

Response Number 4
Name: 3Dave
Date: March 10, 2004 at 01:34:31 Pacific
Reply:

How long does it freeze for? Does your numlock button still work? Could it be trying to get a DHCP lease for an IP address and timing out after a minute or so? Are you able to boot into single use mode? At the boot prompt (hit ESC if you can't see it straight away) try typing:
linux 1 nopcmcia noscsi
If you can't boot your system like that, use a boot disk to edit your startup and disable pcmcia and network (remove the symbolic links /etc/rc.d/rc5.d/S??pcmcia etc)


0

Response Number 5
Name: totty (by allan_totty)
Date: March 10, 2004 at 03:28:08 Pacific
Reply:

I left it for 15 min last night and it still didnt progress any further. I'm not sure about the mum lock but I'll give it a try (to see if its crashed or just waiting).
I could bring it into work where it would be able to get a DHCP lease and see if that got it past it.
I've never tried single user mode but I can get to the prompt from the failsafe option in whichever boot loader I chose (I've forgot which). I don't have a boot disk but I can probably do the editing from the failsafe boot? Whats my editor options ? Is it vi ? I hate vi but I'm familure with it.

Thanks

Allan


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: March 10, 2004 at 04:06:29 Pacific
Reply:

15 minutes is too long for waiting for DHCP, it is generally only 30-60 seconds.

Failsafe is possibly the same as single user mode. If you can boot that and log in as root, do it. Once in you shouldn't have to edit any files (for a change!=o), either type mcc for the mandrake control centre and from there you can disable services automatically starting at boot time or delete the links to the startup scripts by hand from /etc/rc.d/rc5.d and /etc/rc.d/rc3.d

vi is probably one of the best text editors to become familiar with as it is installed on just about every *nix system out there but can be daunting for a newbie. I personally prefer emacs....the other big editor but you'll find it just as confusing! The best thing to do is start off by using something simple like mcedit (a little like DOS edit and does not require your X GUI to run) until you feel comfortable opening, editing, saving and closing without saving (very useful sometimes!!) with vi/emacs. After a while you'll be glad you did.

Quick emacs tutorial:

to edit/create a file:
emacs /path/to/file

to save and quit:
Ctrl&X Ctrl&C y

to quit and NOT save:
Ctrl&X Ctrl&C n yes

to save and not quit:
Ctrl&X Ctrl&S

to save in different location:
Ctrl&X Ctrl&W

to search:
Ctrl&S

Don't worry about cutting and pasting....start off doing everything by hand until you get the swing of things. Note that all of the commands above (except search) begin with Ctrl&X telling emacs that the next keypress will be a command. You don't need to let go of Ctrl between keystrokes.

Hope that helps....


0

Response Number 7
Name: totty (by allan_totty)
Date: March 10, 2004 at 15:24:48 Pacific
Reply:

Earlyer tonight I found that by pressing i at the right point during boot I could say y or n to each stage. n to both network and pcmcia got me to the desktop, the mouse still didnt work but I'll look into that once the bootings fully sorted.
I'll give your suggestions a try tomorrow, its getting a bit late here now.
I learnt vi when I used to do some basic AIX admin, editing users .profile files.
I used to use emacs/xemacs in uni on sun's for latex and parrallel C coding, but I couldnt remember any comands, I needed the reminder.

Cheers

Allan


0

Response Number 8
Name: Kvetch
Date: March 10, 2004 at 19:08:16 Pacific
Reply:

When the Interactive mode starts up on boot press I and say no to loading eth0. Login and make sure didn't set a host name. This might be causing a problem if you are on DHCP. Sometimes they hang when trying to resolve the name. You can change this in X-Xindows under Network settings


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: hangs on boot after eth0 fail

hangs on boot www.computing.net/answers/linux/hangs-on-boot/26520.html

Problem on booting www.computing.net/answers/linux/problem-on-booting/26108.html

Hang on Boot www.computing.net/answers/linux/hang-on-boot/27057.html