LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-25-2005, 12:27 PM   #91
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15

you want me to edit all occurences of /sbin/iptables to read /usr/local/sbin/iptables in the file /etc/inet.d/iptables ? (which - a iptables returns /usr/local/sbin/iptables )
 
Old 02-25-2005, 12:34 PM   #92
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
thats done..
 
Old 02-25-2005, 12:36 PM   #93
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
No..

I'll make a couple of changes here and email the corrected one to you..

Please check if the dir /var/lib/iptables exists, I'm not sure if the iptables package created one or not, since it didn't give an /etc/init.d/iptables script eihter..

If not, do mkdir -p /var/lib/iptables
 
Old 02-25-2005, 12:42 PM   #94
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
whoops <sound of wrong end of stick being firmly grasped>...

yes the /var/lib/iptables dir exists (but is empty)
 
Old 02-25-2005, 12:52 PM   #95
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
do runlevel to check which runlevel you are in
Should be 2.
Check the symlinks in /etc/rc2.d
Are any red?
If so, you need to decide if they can be deleted as not needed, or the /etc/init.d file is missing/renamed..

Once all's ok, check the links in /etc/lilo.conf
Make sure the current kernel is default and the new kernel is an option, eg linux.new
Do lilo -R linux.new to force the new kernel to be used after the next reboot.
This is on the rare case Mr Murphy is sober. Then someone remote can merely push the reset button and you're back to the current kernel..
 
Old 02-25-2005, 01:34 PM   #96
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
run level 2
all symlinks are intact
the old grub boot seems to point at /vmlinuz (which had got changed to vmlinuz.old yesterday when i was trying to configure the 2.6.8 kernel - that got named vmlinuz, but i have switched it back to the old one )...

ill set lilo.conf to point to that also as the default (the unused default points to /boot/vmlinuz which is the new one. I'll make that the linux.new entry.

I presume if this works, ill just switch em over?
 
Old 02-25-2005, 01:45 PM   #97
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
in lilo.conf I have reduced delay =10 and timeout=15 to speeed up reboot in unattended mode...

and have put:
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

# image=/vmlinuz.old
# label=LinuxOLD
# read-only
# optional
# restricted
# alias=2

image=/boot/vmlinuz
label=linux.new
read-only
# restricted
# alias=3


lilo -R linux.new
gives me
Fatal: No image "linux.new" is defined
..how do i tell it about linux.new (i thought it was just the label line) ??
 
Old 02-25-2005, 01:46 PM   #98
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You've got a choice to do the change now, or do it later..
Mine is to do it later, so fewer changes until it's confirmed working.. but we work with what's now!

So long as there are 2 lilo.conf entries..
One for each kernel, and the default is the current kernel..
 
Old 02-25-2005, 01:48 PM   #99
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Be careful of symlinks..
Make each entry the actual /boot file rather than a symlink..

At the beginning, Default = must be the name for the current kernel

Last edited by peter_robb; 02-25-2005 at 01:49 PM.
 
Old 02-25-2005, 01:57 PM   #100
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
changed lilo.conf entry to :

<snip>
default=Linux

image=/boot/vmlinuz-2.4.18-bf2.4
label=Linux
read-only
# restricted
# alias=1

image=/boot/vmlinuz-2.6.10-mm3-250405
label=linux.new
read-only
# restricted
# alias=3
</snip>

..but am stil getting :
lilo -R linux.new
Fatal: No image "linux.new" is defined
 
Old 02-25-2005, 02:01 PM   #101
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Hehehe

Have to save it first... lilo -v

 
Old 02-25-2005, 02:05 PM   #102
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
oh yeh - id forgotten that bit1...

Writing boot sector.
/boot/boot.0300 exists - no boot sector backup copy made.

done me lilo - R linux.new
well.... time for a shutdown -r ?
 
Old 02-25-2005, 02:11 PM   #103
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
...and if it worx (he says optimistically) what do i need to change to make this the default boot kernel?
 
Old 02-25-2005, 02:12 PM   #104
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Not quite...

The last couple of checks.. and only because of the distance..

/lib/modules has the new modules?
depmod -a shows what?
and lilo -l shows what?
 
Old 02-25-2005, 02:18 PM   #105
wooshyFox
Member
 
Registered: Feb 2005
Distribution: debian sarge
Posts: 113

Original Poster
Rep: Reputation: 15
depmod -a says nothing...

lilo -l says...
Ignoring entry 'lba32'

Warning: LINEAR is deprecated in favor of LBA32: LINEAR specifies 24-bit
disk addresses below the 1024 cylinder limit; LBA32 specifies 32-bit disk
addresses not subject to cylinder limits on systems with EDD bios extensions;
use LINEAR only if you are aware of its limitations.

Added Linux *
Added linux.new
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables module config swmok Linux - Networking 3 04-17-2005 08:42 AM
trouble with iptables module wazilian Linux - Networking 0 09-24-2004 02:55 PM
trouble with iptables module wazilian Linux - Networking 0 09-24-2004 02:55 PM
iptables module error? hotrodowner Linux - Networking 1 04-02-2003 08:07 AM
IPTABLES module won't load TruckStuff Linux - General 1 05-10-2002 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration