*nix Thread, boot drive backup plan.. dd god enough? in Technical; Just wondering if this would work.
My boot drive is a 250gb drive, partitioned with a boot partition and a ...
-
3rd September 2009, 10:49 AM #1 boot drive backup plan.. dd god enough?
Just wondering if this would work.
My boot drive is a 250gb drive, partitioned with a boot partition and a 20gb root partition, and the rest is for data.
Can I use dd to backup the boot and root partitions to a file image, and then just use that file image to dump onto a replacement disk in event of failure. Does it matter what size the replacement disk is?
Ive only really been backup up /etc and the home folders for now, and had just planned doing a reinstall then restore those, but if I can just dump the backed up partitions onto a new disk, would that probably be easier?
-
-
IDG Tech News
-
3rd September 2009, 11:14 AM #2 Honest answer? Don't know, suspect powdarrmonkey or Geoff may well do though.
I've used dd to manage entire LVMs before to migrate from to another and it on the whole went pretty well.
I suppose as long as the new disk was fdisk'd properly with the correct boot flag set you could dd the image over and then use resize2fs or whatever to grow the resulting filesystem if you did..
One for a test bed me thinks
-
-
3rd September 2009, 11:51 AM #3 yea, im just trying to think of the easiest solution for me being so far away. Although I think from the remote end point of view a swap out the drive, pop in the minimal, start sshd and then a remote rebuild, will probably be just as simple. Might even give me a chance to try genkernel ;p
Hopefully the disk will be fine though and I wont even need to worry
-
-
3rd September 2009, 05:04 PM #4 Backing up the boot sector should be as easy as this, in theory (remember to change hda to whatever):
Code:
dd if=/dev/hda of=boot.bak bs=512 count=1
And then to recover:
Code:
dd if=boot.bak of=/dev/hda
In theory anyway.
-
SHARE:
Similar Threads
-
By Admiral208 in forum How do you do....it?
Replies: 7
Last Post: 2nd February 2010, 10:23 AM
-
By reggiep in forum Network and Classroom Management
Replies: 23
Last Post: 29th May 2009, 01:37 PM
-
By PaulwBrown in forum Windows
Replies: 3
Last Post: 12th June 2008, 08:05 PM
-
By kerrymoralee9280 in forum How do you do....it?
Replies: 23
Last Post: 14th March 2008, 11:34 PM
-
Replies: 9
Last Post: 1st August 2006, 10:25 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules