LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-29-2011, 11:48 PM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,396
Blog Entries: 7

Rep: Reputation: 166Reputation: 166
How to make a system image file.


Hello, i did google this and there were results on the process, but the sights weren't clear of exactly what it would accomplish ect. So i'm posting this here, just to be sure of what to do to get my desired results.

OK, Previously being a windows user, i'd make my backups with system image files, and when i had separate partitions it was still good because it would include all partitions including linux. If i ever needed to restore my previous file, i could with my windows recovery disc. I have gone pure linux now though and do not have a windows partition anymore.
What i was wondering, is how do i achieve an equivalent result from linux, where it backs up all partitions, and how to i restore my computer with this image file?
 
Old 08-30-2011, 01:22 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

If you want to have a complete or partial image of your disk (by parts meaning by partition), then have a look at CloneZilla. Does the job perfectly.

Kind regards,

Eric
 
Old 08-30-2011, 05:41 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,195

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Might even consider a commercial product Acronis.
 
Old 08-31-2011, 05:03 PM   #4
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,396
Blog Entries: 7

Original Poster
Rep: Reputation: 166Reputation: 166
Hey again guys, thanks for the suggestions. I downloaded Clonezilla last night but for some reason my laptop wouldn't boot it; i checked it in desktop and it booted with that, so i guess that won't work. I haven't looked at Acronis yet. Doesn't Linux have some native tools to do this, command line or gui? Even Windows had it's own tool to do this.
 
Old 08-31-2011, 05:24 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by Knightron View Post
Doesn't Linux have some native tools to do this, command line or gui? Even Windows had it's own tool to do this.
The "dd" command.

To make an image of the drive "/dev/sda":

Code:
dd if=/dev/sda of=my-image.img
Be sure not to mix up the "if" (input) and "of" (output) parts, or you will erase/overwrite your drive!
 
1 members found this post helpful.
Old 08-31-2011, 05:56 PM   #6
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,396
Blog Entries: 7

Original Poster
Rep: Reputation: 166Reputation: 166
(-: oh, that looks simple.
Just to be clear, 'sda' will do all partitoins, but if i want to do a specifc partition i can do 'sdaX'? (x being whatever partition i choose)
 
Old 08-31-2011, 06:45 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by Knightron View Post
(-: oh, that looks simple.
Just to be clear, 'sda' will do all partitoins, but if i want to do a specifc partition i can do 'sdaX'? (x being whatever partition i choose)
Yes.

Note that you can also compress your images so that they don't take up so much space. With "xz", for example:

Code:
xz my-image.img
will produce "my-image.img.xz", and this:

Code:
xz -d my-image.img.xz
will restore it. You can also use "gzip" and "bzip2", but I find that "xz" usually has the best compression ration.

Last edited by MTK358; 08-31-2011 at 06:47 PM.
 
1 members found this post helpful.
  


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
make bootable CD from hard disk image and mount root file system as ramfs Mr.J Linux - Embedded & Single-board computer 1 08-19-2008 08:29 AM
make complete image file from partition file for qemu lbdgwgt Linux - Newbie 2 11-16-2006 09:04 AM
happy with my system wanna make an image? ginda Linux - Software 7 04-15-2005 09:21 PM
how to make an image of your system? Lleb_KCir Linux - General 8 10-25-2004 04:47 PM
How to make a image file for my disk( Including win2000&Redhat Linux system)? teradyne Linux - Software 3 06-02-2004 05:25 AM

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

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