LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-12-2006, 10:25 AM   #1
ChrisR(SQL DBA)
Member
 
Registered: Sep 2004
Posts: 43

Rep: Reputation: 15
Why 2 versions?


Howdy all. Im brand spanking new to the *nix world, so please be gentle. I installed CentOS 4 on my PC the other day that I also have Windows installed on. No problems so far, I can still access both OS's. I had even configured the boot loader to boot to Windows by default to make life easier for my wife. But then I run the Up2Date OS updater. Now I have 2 different Linux versions I can run, and Windows is no longer the default.

Version 1: CentOS(2.6.9-42.0.3.EL)
Version 2: Centos-4 i386(2.6.9-42.EL)

I boot to either one and they both act the same. Is this normal? Is there a way to change the boot loader back to Windows default? Is there a good newbie site that is searchable to pick up on basics?
 
Old 11-12-2006, 10:32 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
They are the same OS but with different kernels. It appears to have updated your ernel and updated the entries on the boot loader. The update system leaves the older ones intact in case there are problems with the new kernel - that way, you can go back and fix them without having to get too esoteric
 
Old 11-12-2006, 10:33 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Version 1: CentOS(2.6.9-42.0.3.EL)
Version 2: Centos-4 i386(2.6.9-42.EL)
You'll notice the above version is greater. You'll have to edit your bootloader's config to either move Windows entry to the top or, every time you update your kernel (that's why you have two versions: the updated one, and the older one -- updating a kernel won't remove the old one, in case the newer one wouldn't work), edit the bootloader config to make Windows default. It's like this:

- you have configured two bootable systems (number 2 is default):

1) Linux
2) Windows

- then you update your kernel, adding another Linux kernel to the system; now the list is automatically re-created like this:

1) Linux 1
2) Linux 2
3) Windows

..and there, the default option is still 2 but it's not Windows anymore. Solution: Move the Windows section in the bootloader config (/etc/lilo.conf or /boot/grub/menu.lst depending on which on you use) to be the topmost, and set default to be the first entry (number zero I guess). Then updating the kernel, which adds new entry, won't change the default to another choice, since default is zero which is always Windows if it's the topmost. If Windows is the last entry, it's number grows by one every time a new entry is added before it, so the "default" value will be different since it's number won't change along with the wanted section that "goes downwards" every time.

Last edited by b0uncer; 11-12-2006 at 10:34 AM.
 
Old 11-12-2006, 10:34 AM   #4
ChrisR(SQL DBA)
Member
 
Registered: Sep 2004
Posts: 43

Original Poster
Rep: Reputation: 15
I didn't note what version I was using before the update. So how do I know which one is the updated kernel? Also, is there a way to change my boot loader back as the new kernel wiped out my settings?
 
Old 11-12-2006, 10:37 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Thats because when you upgraded your system, a newer kernel was installed. The older kernel is not routinely uninstalled just in case you have problems with the new one. If the new kernel works fine for you, then all you need to do is uninstall the old kernel by doing,
Code:
$rpm -qa | grep -i kernel
a list of installed kernels will be listed. Pick the version you want to uninstall and do something like
Code:
#rpm -e kernel-version
in this instance you want to keep the one ending in 2.6.9-42.0.3.EL.

As for Windows being default, just edit your /boot/grub/menu.lst or /boot/grub/grub.conf and make Windows the default.

Edit: I had too many tabs opened so didn't realise others had already helped out. Anyway the kernel you need to uninstall is the on ending in 2.6.9-42.EL.

Last edited by reddazz; 11-12-2006 at 10:40 AM.
 
Old 11-12-2006, 10:39 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by ChrisR(SQL DBA)
Is there a good newbie site that is searchable to pick up on basics?
You are at it!!!
When you updated your system, it obviously installed another kernel--and then offered you a choice. If you don't see any difference between the two, then just stay with one of them and ignore the other.

To get the default back to Windows: Open a terminal and do this:
Code:
su    (gives you root powers)
<root pasword>
cd /boot/grub
ls    (you should see a file named "grub.conf" OR "menu.lst".
Open this with an editor, e.g.:
gedit menu.lst
(find the line that says "default=#"--change # to the number of the entry that you want to be the default (counting from zero). If Windows is the 3rd entry, then it would be "default=2".))
While you are looking at this file, you can also disable entries for things you do not plan to use--like that extra kernel. Just add "#" in front of each relevant line.

Last edited by pixellany; 11-12-2006 at 10:40 AM.
 
Old 11-12-2006, 10:42 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
This has got to be a new record---4 other replies while I was typing mine. Let's stop for air while OP catches up.....
 
Old 11-12-2006, 12:25 PM   #8
ChrisR(SQL DBA)
Member
 
Registered: Sep 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks to all! I'm booked up for the next several hours, so I'll take a crack at all this later.

As someone commented, apparently I found a good source of knowledge here, lots of replies in a short time.

Thanks again!
 
  


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
What can you REALLY do with these versions? limeylew Linux - Software 4 05-06-2006 01:23 PM
gcc versions compatibility with kernel versions.. mahesh_manthapuri SUSE / openSUSE 1 03-22-2006 12:28 AM
Versions Eugney Slackware 1 01-06-2006 05:46 AM
Versions joint SUSE / openSUSE 5 01-03-2006 03:33 PM
4 qt versions? cratos Linux - Software 1 12-14-2003 02:44 PM

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

All times are GMT -5. The time now is 03:02 PM.

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