LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-21-2010, 11:06 AM   #1
jsmith6
Member
 
Registered: Feb 2006
Distribution: Slackware 13.1 / 13.37
Posts: 91

Rep: Reputation: 16
HDD backup: taking a snapshot of the whole drive instead of partitions


My netbook duals boots WinXP and Ubuntu, plus two or three recovery partitions.

I want to play with a few distros but also be able to recover the OSes it has now.

The netbook has recovery software allowing me to burn recovery DVDs with a USB DVDRW but doesn't work as promised, so I am on my own.

Instead of taking an image of each partition, can take a big snapshot of the drive to avoid fdisk/cfdisk/re-partitioning when I want to restore?

Space isn't much of a problem as I can mount via SSH/Samba/FTP.
 
Old 03-21-2010, 04:20 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You can do this with dd.
 
Old 03-23-2010, 11:02 AM   #3
jsmith6
Member
 
Registered: Feb 2006
Distribution: Slackware 13.1 / 13.37
Posts: 91

Original Poster
Rep: Reputation: 16
Wait, wait, wait... I just got an idea. Let's say the partitions are:

Code:
/dev/sda1
/dev/sda2
/dev/sda3
/dev/sda4
I can simply do a:

Code:
dd if=/dev/sda of=/mnt/samba/netbook-sda.img
and when I want to restore, no matter what the new partition table will be on the netbook, I can just:

Code:
dd if=/mnt/samba/netbook-sda.img of=/dev/sda
and it will restore everything? Just like that?

And one more thing. I have a 160gb disk (split into partitions) and only 12gb of data in it. Would, piping that through gzip -1, reduce the image's size from 160gb to 12-14gb?

Last edited by jsmith6; 03-23-2010 at 11:11 AM.
 
  


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
taking snapshot from mplayer sumeet inani Linux - Newbie 13 06-05-2009 04:21 AM
HDD Snapshot For Recovery Actinium Linux - Software 1 11-06-2007 01:59 PM
Taking CVS snapshot mashed Linux - Software 3 04-07-2006 11:44 PM
Taking a snapshot of a program using a command? shydra Linux - Software 6 03-02-2006 06:12 AM
code for taking snapshot with a webcam orso08 Programming 2 12-05-2003 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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