Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-31-2009, 12:07 AM   #1
Registered: Nov 2008
Posts: 158

Rep: Reputation: 30
Copy entire hard drive

How would I copy an entire hard drive (windows partition) with a Ubuntu Live CD to an SSH server?

How would I then recover this entire hard drive (windows and all of its software) if the hard drive ever failed and I had to replace it with a new one?
Old 08-31-2009, 02:07 AM   #2
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40

There are more than one ways of doing this kind of thing, depending of your needs. I recommend you look into the "dd" command. Using this command you can copy the disk block by block, which is very useful.

However, recovering the whole disk may require you to update the partition table and maybe create a new boot loader (or maybe other things), but at least you have all your files in place.
Old 08-31-2009, 02:18 AM   #3
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
So dd VS Ghost? Advantages/disadvantage?
Old 08-31-2009, 02:47 AM   #4
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
I'm not familiar with ghost, so I'm not the rigth person to ask. Anybode else here knows?
Old 08-31-2009, 06:15 AM   #5
Registered: Mar 2005
Distribution: Ubuntu 10.04 - CentOS 5.4
Posts: 40

Rep: Reputation: 15
Use CloneZilla as LiveCD
Old 09-01-2009, 05:05 AM   #6
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,285

Rep: Reputation: 61
Yeah there are several ways to do this with a live cd/dvd, I find the quickest, or easiest way is to use the tools that are already part of a linux distro.

Admittedly I have only done this with linux, a few windows machines I have done, it's usually only the "My Documents" folder. The principle should be the same, as long as the linux distro can read the windows file system, then it shouldn't be a problem.

I prefer to use tar and gzip, then pipe it through ssh to another computer. For this example I would mount your windows partition under /mnt and the windows partition is on hda1, of course yours will be different, you just need to adjust to suit, then run the rest which will compress and send it to another computer, the good thing about tar and gzip, is you will get around 1/3 compression.

from the live cd/dvd
mount -t ntfs /dev/hda1 /mnt
cd /mnt
tar zcvf - . | ssh username@ "cat > backup.tar.gz"
Now as for restoring it, I have never done a full windows partition before so I cannot help with that side of it. You might be able to extract the backup file on the other machine and then burning it to a cd/dvd, this should be readable under windows, then you could do a reinstall of windows, boot into the windows OS, then copy the files from the cd/dvd to the right directories.


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
Need some advice on backing up entire hard drive. Zombie13 Linux - General 2 04-07-2008 03:11 PM
Wiped Entire Hard Drive and Want To Install Slackware Midnyt Slackware 3 09-04-2006 06:58 PM
Make a copy of entire hard disk jeucken Linux - Software 1 03-22-2004 05:55 AM
Windows XP hogs entire 40 GB Hard Drive with one Partition jedi_zach Linux - General 2 02-09-2004 01:29 AM
Mirroring entire Hard drive guanyu Linux - General 7 03-04-2003 09:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration