LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-23-2013, 09:57 PM   #1
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Rep: Reputation: Disabled
Question How to backup whole linux system?


Hi: I used unetbootin-windows-583.exe & clonezilla-live-2.1.1-7-i686-pae.iso to make a Recovery image boot USB. But I don't know what exactly to do with it.
I just need to Recovery my original system of Ubuntu 12.04 .But I don't know how to do this Recovery system.
Could anyone to tell me what kind of tool I can use.
And how to use it??
 
Old 06-23-2013, 10:49 PM   #2
buttugly
Member
 
Registered: Feb 2006
Distribution: distrohopper
Posts: 58

Rep: Reputation: 16
As I understand what you wrote:

You downloaded the windows version of unetbootin and installed the clonezilla live environment to a usb thumb drive on a windows computer.

Now I'm confused as to what you want to do with it.

When you say you want to recover Ubuntu 12.04 which I presume is on another computer which is not behaving properly?

First question is there data on the Ubuntu 12.04 system that you need to save?

If the answer is yes, do you have an external drive or a thumb drive big enough to hold what needs to be saved?

Clonezilla is an awesome tool which is normally used to copy an entire hard drive or a partition to another place, either for back up or another system.

The entire Ubuntu distro can be obtained here http://releases.ubuntu.com/precise/ you can use unetbootin to put it on the usb drive which has clonezilla on it. Use that to boot the ubuntu computer to a live ubuntu environment and mount the installed drive and save whatever you need to.

If the ubuntu computer won't boot from the thumb drive, you may have to change boot order in bios.

To get into bios varies with computer mfg, google the make and you should find hints.

If I misunderstood what you asked, please clarify and I will try to do better....
 
Old 06-23-2013, 11:04 PM   #3
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question I need to Reuse the current Ubuntu Envirounment

Hi~Thks for reply. I need to set make menuconfig again & again to upgrade my kernel version work in my current linux envirnoument
So I had to
1.download for the kernel version 3.6.11
2.setting make menuconfig envirmount well
3. do make, make modules_install, make install
4 sudo makinitramfs -o .....
5 ...
6. sudo update-grub to upgrade kernel version
7if Fail, I had to reinstall all the Ubuntu 12.04 System again

To save my reinstall for the Ubuntu 12.04 's work, I need a Recovery image file.

So that's the reason why I need all the original install Ubuntu linux envirmount .I need Recovery~~~
 
Old 06-24-2013, 12:57 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Don't tell us the answer you require, tell us the problem you are facing, and perhaps someone can suggest an answer that will work.

Compiling custom kernels doesn't (generally) require reinstall of the entire system if there are problems - unless you replace the original kernel file itself. Which you should never do.
Describe your problem, and links to any online documentation you are using - in English please.
 
Old 06-24-2013, 01:05 AM   #5
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by syg00 View Post

Compiling custom kernels doesn't (generally) require reinstall of the entire system if there are problems - unless you replace the original kernel file itself. Which you should never do.
Sorry, I am right now doing replace the original kernel file itself. I had to do it for Ubuntu 12.04 kernel 3.0.29 , upgrading to
kernel 3.6.11. I try to change the setting of .config , so that I can got success on upgrading.
 
Old 06-24-2013, 01:16 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by Angela Wu View Post
Hi~Thks for reply. I need to set make menuconfig again & again to upgrade my kernel version work in my current linux envirnoument
So I had to
1.download for the kernel version 3.6.11
2.setting make menuconfig envirmount well
3. do make, make modules_install, make install
4 sudo makinitramfs -o .....
5 ...
6. sudo update-grub to upgrade kernel version
7if Fail, I had to reinstall all the Ubuntu 12.04 System again
Ick! If you really must build a new kernel, you should at least consider making use of the packaging and framework provided by your distro. See for example https://help.ubuntu.com/community/Kernel/Compile
I can't for the life of me imagine a scenario where it is reasonable to expect to reinstall every time you wan to try to compile and install a kernel.

Evo2.
 
Old 06-24-2013, 02:53 AM   #7
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by evo2 View Post
Hi,


Ick! If you really must build a new kernel, you should at least consider making use of the packaging and framework provided by your distro. See for example https://help.ubuntu.com/community/Kernel/Compile
I can't for the life of me imagine a scenario where it is reasonable to expect to reinstall every time you wan to try to compile and install a kernel.

Evo2.
in the following:
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

After this process:
Quote:
Build Environment
If you've not built a kernel on your system before, there are some packages needed before you can successfully build. You can get these installed with:

sudo apt-get build-dep linux-image-$(uname -r)
Quote:
Modifying the configuration
This step can be skipped if no configuration changes are wanted. The build process will use a configuration that is put together from various sub-config files. The simplest way to modify anything here is to run:

chmod a+x debian/scripts/*
chmod a+x debian/scripts/misc/*
fakeroot debian/rules clean
fakeroot debian/rules editconfigs

Run to Modifying the configuration, I fail to find the debian/scripts/* ...etc
 
Old 06-24-2013, 03:18 AM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Angela Wu View Post
Run to Modifying the configuration, I fail to find the debian/scripts/* ...etc
Is the kernel source from a deb package? Eg installed via
Code:
sudo apt-get install linux-source-3.xx
or similar.

If it's upstream/vanilla you may do better using the make-kpkg method (my preference regardless of where the source came from).

Evo2.
 
Old 06-24-2013, 03:25 AM   #9
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by evo2 View Post
Hi,

Is the kernel source from a deb package? Eg installed via
Code:
sudo apt-get install linux-source-3.xx
or similar.

If it's upstream/vanilla you may do better using the make-kpkg method (my preference regardless of where the source came from).

Evo2.
yes, it's from sudo apt-get source linux-image-3.xx

I have done the 3 step:
1. apt-get source linux-image-3.xx
2. apt-get install dpkg-dev
3. apt-get build-dep linux-image-3.xx

And I fail to do the next steps as the previous description~
 
Old 06-24-2013, 03:33 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by Angela Wu View Post
yes, it's from sudo apt-get source linux-image-3.xx

I have done the 3 step:
1. apt-get source linux-image-3.xx
2. apt-get install dpkg-dev
3. apt-get build-dep linux-image-3.xx

And I fail to do the next steps as the previous description~
Ok... so for me the next steps would be something like
Code:
cd /usr/src
tar xjf linux-source-3.xx.tar.bz2
cd linux-source-3.xx
make menuconfig
fakeroot make-kpkg clean
fakeroot make-kpkg  --append-to-version="-custom" --revision="1.0" --initrd kernel-image kernel-headers modules-image
What are you trying?

Evo2.
 
Old 06-24-2013, 03:44 AM   #11
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,



Ok... so for me the next steps would be something like
Code:
cd /usr/src
tar xjf linux-source-3.xx.tar.bz2
cd linux-source-3.xx
make menuconfig
fakeroot make-kpkg clean
fakeroot make-kpkg  --append-to-version="-custom" --revision="1.0" --initrd kernel-image kernel-headers modules-image
What are you trying?

Evo2.
I try
Quote:
Building the kernel
Building the kernel is quite easy. Change your working directory to the root of the kernel source tree and then type the following commands:

fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic
 
Old 06-24-2013, 05:13 AM   #12
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question The kernel compile cost me 5 hours?!

HI:
To compile for the kernel that I need ,
It waste me a lot of time. How can I set up .config to make
the compile time shorter??
 
Old 06-24-2013, 11:13 AM   #13
buttugly
Member
 
Registered: Feb 2006
Distribution: distrohopper
Posts: 58

Rep: Reputation: 16
Angela,

Good Luck! You have evo2 now so I'm just gonna fade to the back and watch the professionals work!

Kevin
 
Old 06-24-2013, 04:30 PM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by Angela Wu View Post
To compile for the kernel that I need ,
It waste me a lot of time.
So it works now? Why do you need to compile this kernel yourself?
Quote:
How can I set up .config to make
the compile time shorter??
You can disable modules/drivers that you don't plan to use. Also you can do the build with multiple processes using the -j or setting the CONCURRENCY_LEVEL equal to the number of processes you have.

Evo2.
 
Old 06-24-2013, 07:45 PM   #15
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by evo2 View Post
Hi,


So it works now? Why do you need to compile this kernel yourself?

You can disable modules/drivers that you don't plan to use. Also you can do the build with multiple processes using the -j or setting the CONCURRENCY_LEVEL equal to the number of processes you have.

Evo2.
I got to do the other process like : make modules_install...etc to make it work

The .config is so complex that I can't identify which modules/drivers that I need, it is a big job.
And what's the -j use for command? What's the CONCURRENCY_LEVEL equal to my number? I didn't understand??
 
  


Reply

Tags
kernel


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
Backup of complete linux system eprabhat08 Linux - Newbie 5 02-05-2013 11:32 PM
Backup system ala rdiff-backup, but without mirror and with dst encryption dr_dex Linux - Software 0 08-04-2008 03:39 AM
How can I backup a linux system ? chu2654 Linux - General 6 11-16-2006 01:16 PM
backup for linux system in CF lbdgwgt Linux - Newbie 2 10-23-2006 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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