LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2012, 06:44 AM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
Debian 6.0 AMD 64 Kernel Switch


Well I'm running a Debian 6.0 AMD64 machine and I'm wondering how to switch it to another Kernel. I am currently hosting game servers and I want to use a pre-compiled kernel for Debian 6.0 64-bit one of my friends made for me.

I have the following files with me,

linux-headers-3.0.0-ub-100hz.deb
linux-image-3.0.0-ub-100hz.deb


Now I need to know how do I switch to them. I've searched a lot of guides but many haven't helped. I also want to retain the old kernel just so if anything goes wrong to switch back to what I had.

Also, I know about the dpkg -i .deb file command but I don't know what I should do this for both files? And that many guides stated something like /boot/grub/menu.conf to change.

Any help regarding it? Thank you.
 
Old 02-16-2012, 07:03 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
You can install the image and you will still have the current kernel at boot grub will show you both and you can pick which one to boot. If you are not going to compile any kernels then you don't need the headers.

Regards
 
Old 02-16-2012, 07:04 AM   #3
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ukiuki View Post
You can install the image and you will still have the current kernel at boot grub will show you both and you can pick which one to boot. If you are not going to compile any kernels then you don't need the headers.

Regards

Yeah but since what I use is a Xen VPS, I wont see the option.

Anyway to directly activate?
 
Old 02-16-2012, 10:24 AM   #4
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
And if I have to set it to auto ?
 
Old 02-16-2012, 12:23 PM   #5
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Code:
dpkg -i KernelImageName.deb
was successful and now I can see my image located in /boot .

However update-grub failed with the following:
Code:
 update-grub
Searching for GRUB installation directory ... found: /boot/grub
warning: grub-probe can't find drive for /dev/xvda1.
grub-probe: error: cannot find a GRUB drive for /dev/xvda1.  Check your device.map.
While my /boot/grub/grb.conf looks like this :

Code:
default=0
timeout=10
title vmlinuz-2.6.32-5-amd64
root (hd0,0) 
kernel /boot/vmlinuz-2.6.32-5-amd64 console=hvc0 root=/dev/xvda1 ro
initrd /boot/initrd.img-2.6.32-5-amd64
What should I do? Haven't tried restarting but does this mean it has been installed?
 
Old 02-16-2012, 03:23 PM   #6
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Yes looks like it is installed, did you run update-grub as root? Aren't you using the Xen VPS?
 
Old 02-16-2012, 11:22 PM   #7
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Quote:
update-grub
Gave me errors which I fixed using this guide posted right here.

http://www.hosthop.com/hop/knowledge...orkaround.html

After which the system didn't boot at all and showed this at console:

Quote:
Can't access TTY; job control turned off
 
Old 02-17-2012, 06:21 AM   #8
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Was the kernel compiled in different computer? Did you give to your friend your current kernel config to compile it with your machine parameters?

Regards
 
  


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
how to switch from amd to intel without reinstalling? zogthegreat Linux - Hardware 2 05-06-2009 08:15 PM
Skype for debian amd 64??? phoenix_wolf Linux - Software 1 02-26-2008 04:11 PM
AMD Sempron 2600 debian installs 386 kernel by default MrInept Debian 12 11-11-2005 05:14 PM
thread switch results in kernel stack switch superstition Linux - General 1 05-17-2005 11:48 PM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:53 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