LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to backup whole linux system? (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-backup-whole-linux-system-4175467118/)

Angela Wu 06-23-2013 09:57 PM

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??

buttugly 06-23-2013 10:49 PM

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....

Angela Wu 06-23-2013 11:04 PM

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~~~

syg00 06-24-2013 12:57 AM

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.

Angela Wu 06-24-2013 01:05 AM

Quote:

Originally Posted by syg00 (Post 4977395)

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.

evo2 06-24-2013 01:16 AM

Hi,

Quote:

Originally Posted by Angela Wu (Post 4977354)
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.

Angela Wu 06-24-2013 02:53 AM

Quote:

Originally Posted by evo2 (Post 4977406)
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

evo2 06-24-2013 03:18 AM

Hi,
Quote:

Originally Posted by Angela Wu (Post 4977432)
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.

Angela Wu 06-24-2013 03:25 AM

Quote:

Originally Posted by evo2 (Post 4977444)
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~

evo2 06-24-2013 03:33 AM

Hi,

Quote:

Originally Posted by Angela Wu (Post 4977448)
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.

Angela Wu 06-24-2013 03:44 AM

Quote:

Originally Posted by evo2 (Post 4977452)
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

Angela Wu 06-24-2013 05:13 AM

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??

buttugly 06-24-2013 11:13 AM

Angela,

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

Kevin

evo2 06-24-2013 04:30 PM

Hi,

Quote:

Originally Posted by Angela Wu (Post 4977484)
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.

Angela Wu 06-24-2013 07:45 PM

Quote:

Originally Posted by evo2 (Post 4977816)
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??


All times are GMT -5. The time now is 11:38 AM.