LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2005, 06:55 AM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
backup up a hd with dd


Hi,

I'm wanting to backup a few computers with m$ on it. I was wanting to use the command

dd if=/dev/hda of=/mnt/sda1/backup.img

But I suppose that dd is going to copy also the empty space. How can I make an image of the bootloader AND the space being used by m$? so when I restore the pc to it's original state by doing something like

dd if=/mnt/sda1/backup.img of /dev/hda

so that the bootloader and partition table of m$ is also being overwritten.


Wannes
 
Old 04-26-2005, 09:07 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
To copy bootloader just do
dd if=/dev/hda of=/mnt/sda1/bootld bs=512c count=1
and to copy just partition where m$ is installed. For example if it's installed on hda1 then type
dd if=/dev/hda1 of=/mnt/sda1/backup.img
 
Old 04-26-2005, 11:47 AM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
yes ok, but won't that copy also the unused space?


Wannes
 
  


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
backup help sridhar11 Debian 1 08-30-2005 10:40 AM
backup LuckyABA Linux - Software 1 01-22-2005 12:51 PM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 06:42 PM
Selective backup to CDRW, or other backup methods. trekk Linux - Software 1 11-03-2003 02:46 PM
backup and update the backup file doris Linux - General 4 08-24-2002 07:26 PM

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

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