LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-18-2011, 05:02 PM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Kernel Upgrade


I have a data in existing kernel & I need to update a new kernel version so afer the upgration , how can I access the data from the previous kernel.

Thanks
 
Old 01-18-2011, 05:05 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
What do you mean that you have "data in existing kernel"? The kernel doesn't store any data, so I am not sure I understand what you are asking. Are you talking about migrating your existing kernel configuration to a new kernel?
 
Old 01-18-2011, 05:06 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
I'm not sure what you mean by data. Do you mean that you have customised the kernel configuration? You can use your old settings by copying over your old .config file and running make oldconfig. This is from the README file with the kernel sources:
Code:
        "make oldconfig"   Default all questions based on the contents of
                           your existing ./.config file and asking about
                           new config symbols.
        "make silentoldconfig"
                           Like above, but avoids cluttering the screen
                           with questions already answered.
                           Additionally updates the dependencies.
 
Old 01-19-2011, 04:35 AM   #4
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Thanks, I means to say that the data (backup data of folders & files are kept)so how can I access this backup data from the new upgrade kernel.
Also can I access the new kernel without booting the system without effecting the production env.

Thanks
 
Old 01-19-2011, 05:05 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
The new kernel sources should be in different directories to the old sources and the new kernel file should be in a different file to the old kernel. Your documents, programs and configurations are not removed by upgrading the kernel (some programs may need to be re-compiled or re-installed - I have to re-install my nvidia driver after kernel upgrades).

I haven't had to load a new kernel without a re-boot so all I did was some googling. Have a look at kexec in your kernel - it may be what you want:

http://manpages.ubuntu.com/manpages/...8/kexec.8.html
http://fedoraproject.org/wiki/Kernel/kexec
 
Old 01-21-2011, 01:38 AM   #6
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
I have to install a new kernel or upgrade as I am working on the existing kernel so if I install a new kernel & keep the old kernel as backup so still I will be able to access my documents,folder & files from the previous kernel.

Also is there any good kernel doc for redhat distro ?

Thanks
 
Old 01-21-2011, 01:43 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Upgrading your kernel does not effect how you access your "data". Data (folders, files, videos, mp3s etc) are not kernel-dependent. In other words, changing a kernel does not effect the content of your "home" folder--the place where you keep all your data. Just use the backup procedures that you use normally.
ciao,
jdk
 
Old 01-21-2011, 03:24 PM   #8
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Also if I am just installing a kernel instead of upgrading than also I can access the data/contents.

Thanks
 
Old 01-21-2011, 03:32 PM   #9
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by smilemukul View Post
Also if I am just installing a kernel instead of upgrading than also I can access the data/contents.

Thanks
Sorry but I don't understand what you're talking about. You must have a kernel installed already if you are running linux. A kernel is not something optional that you may or may not install. But, as I said, maybe I don't understand what you're trying to say.
jdk
 
Old 01-21-2011, 03:45 PM   #10
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
I mean that If I have two kernels than I can access the data (file,folder) which is in kernel 1 from kernel 2.

Thanks
 
Old 01-21-2011, 03:52 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Changing kernels doesn't change your access to files on the hard drive (unless you disable support for your hardware or file system, etc.). Can you post the full path to the data your trying to access (for example /home/steve/photos) so that we can understand why you're concerned about this?
 
Old 01-21-2011, 04:26 PM   #12
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Upgrading the kernel will, in no way (unless something goes wrong...anyway) change how you use the computer or access your files. It might improve performance or fix security issues, but it will fundamentally be the same experience.

That being said, keeping the old kernel that is in a known-good configuration around after upgrading is an excellent idea. In fact, I think most new distros do this by default (I know at least Ubuntu does).
 
Old 01-24-2011, 02:01 PM   #13
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Thank you all for your response
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 09:32 AM
how to upgrade the Debian 3 kernel 2.4.18 to kernel 2.6 or bigmem- kernel chandu.bezawada Debian 6 11-12-2010 10:33 AM
apt-get upgrade does not upgrade my kernel halfpower Debian 5 12-11-2005 10:53 AM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 07:54 PM


All times are GMT -5. The time now is 06:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration