View previous topic :: View next topic |
Author |
Message |
derwuh n00b
Joined: 16 Apr 2005 Posts: 47
|
Posted: Tue Apr 19, 2005 10:24 pm Post subject: [solved]/etc/init.d/net.eth0 has syntax errors not executing |
|
|
Just recently got kernel upgraded for my pci lan card. but upon boot i get the following error message
/etc/init.d/net.eth0 has syntax errors, not executing
Problem starting needed services, "netmount" not started
i checked and
net.eth0 is BLANK
Last edited by derwuh on Tue Apr 26, 2005 8:10 pm; edited 1 time in total |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 19, 2005 10:35 pm Post subject: |
|
|
Sounds like you've got a syntax error in /etc/conf.d/net. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
derwuh n00b
Joined: 16 Apr 2005 Posts: 47
|
Posted: Tue Apr 19, 2005 10:52 pm Post subject: |
|
|
I haven't a clue about proper syntax within that file. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 19, 2005 10:55 pm Post subject: |
|
|
Can you post its contents then? Please make sure to include that in [code] tags so it's readable. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
derwuh n00b
Joined: 16 Apr 2005 Posts: 47
|
Posted: Tue Apr 19, 2005 11:09 pm Post subject: |
|
|
well is there a way to flat out reset network configurations, because that is alot to copy and i have no choice but to copy it all by hand. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 19, 2005 11:14 pm Post subject: |
|
|
Back that file up first (copy it to somewhere, or rename it) then delete it and re-create it as an empty file. That will cause it to fall back to its default configuration, which is DHCP-assigned on all interfaces. Code: | cp /etc/conf.d/net /root/net-backup
rm -f /etc/conf.d/net
touch /etc/conf.d/net | In case this still didn't fix things, move it back and try to re-emerge baselayout via Code: | emerge --oneshot baselayout | That will cause a lot of files to be updated though, so you'll have to be careful.
As to copying by hand - you can install Gentoo just fine by chrooting from a X-based LiveCD such as Knoppix. It's easier and you'll have access to a browser... _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
wjholden l33t
Joined: 01 Mar 2004 Posts: 826 Location: Augusta, GA
|
Posted: Tue Apr 19, 2005 11:22 pm Post subject: |
|
|
Dude, my /etc/conf.d/net can be reduced to three lines:
Code: | # /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
iface_eth0="dhcp" |
For /etc/init.d/net.eth0, what I would recommend is copy whatever the LiveCD has on it. Should work fine. Backups are good though. |
|
Back to top |
|
|
derwuh n00b
Joined: 16 Apr 2005 Posts: 47
|
Posted: Tue Apr 19, 2005 11:24 pm Post subject: |
|
|
did not work the emerge command attempted to snag tar files off ftp which obviously didn't go either because it won't recognize my connection
i don't know what inspired me to make this linux box but it has been the biggest pain in the behind thanks anyways man |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 19, 2005 11:25 pm Post subject: |
|
|
destuxor wrote: | Dude, my /etc/conf.d/net can be reduced to three lines:
Code: | # /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
iface_eth0="dhcp" |
For /etc/init.d/net.eth0, what I would recommend is copy whatever the LiveCD has on it. Should work fine. Backups are good though. | You can cut those too. An empty file behaves exactly the same. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
derwuh n00b
Joined: 16 Apr 2005 Posts: 47
|
Posted: Tue Apr 19, 2005 11:25 pm Post subject: |
|
|
how do you copy something off the livecd |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 19, 2005 11:33 pm Post subject: |
|
|
Using the cp command, usually. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
derwuh n00b
Joined: 16 Apr 2005 Posts: 47
|
Posted: Tue Apr 19, 2005 11:34 pm Post subject: |
|
|
I mean as far as the dir to specify the cdrom drive once the cd is in |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 19, 2005 11:37 pm Post subject: |
|
|
Something like Code: | cp /etc/conf.d/net /mnt/gentoo/etc/conf.d | ?
Still, derwuh wrote: | i checked and
net.eth0 is BLANK | That's not normal. It should either not exist at all, or contain stuff. You could try copying net.eth0 off the LiveCD too. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
wjholden l33t
Joined: 01 Mar 2004 Posts: 826 Location: Augusta, GA
|
Posted: Tue Apr 19, 2005 11:49 pm Post subject: |
|
|
Ok insert the LiveCD and do something like this:
Code: | mount /mnt/cdrom
cd /tmp/
mkdir livecd
cd livecd
tar -xvjf /mnt/cdrom/stages/stage3-athlon-xp-2005.0.tar.bz2
gzip /etc/init.d/net.eth0
mv /etc/init.d/net.eth0.gz /root/
cp /tmp/livecd/etc/init.d/net.eth0 /etc/init.d/
cd
rm -rf /tmp/livecd |
Apparently there's a way to use tar to extract a single file from an archive but it isn't working for me...it's just a minute of your time extracting anyways. If you follow my directions you'll have a Gunzipped copy of the oringinal file in /root/ in case you need it, but you won't need it if your network starts working and then you can do "emerge --newuse -Duv world" or something to that extent (the "newuse" option is the one that will try to overwrite config files). Oh, and it's a good practice to make backups of all your /etc/ config files in case you accidentally trash 'em using etc-update. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 19, 2005 11:54 pm Post subject: |
|
|
Ah, I misunderstood (thought from the "boot from LiveCD" standpoint). Your way is of course better.
As to etc-update - ew! Don't use that broken thing. Use dispatch-conf. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
|