+ Post New Thread
Results 1 to 4 of 4
*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 ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199

    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?

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,686
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    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

  3. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    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

  4. #4
    freak's Avatar
    Join Date
    Aug 2009
    Posts
    33
    Thank Post
    2
    Thanked 7 Times in 7 Posts
    Rep Power
    11
    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:
+ Post New Thread

Similar Threads

  1. Multi Boot USB drive
    By Admiral208 in forum How do you do....it?
    Replies: 7
    Last Post: 2nd February 2010, 09:23 AM
  2. CC3 boot disk on USB drive?
    By reggiep in forum Network and Classroom Management
    Replies: 23
    Last Post: 29th May 2009, 01:37 PM
  3. External boot drive
    By PaulwBrown in forum Windows
    Replies: 3
    Last Post: 12th June 2008, 08:05 PM
  4. The backup plan
    By kerrymoralee9280 in forum How do you do....it?
    Replies: 21
    Last Post: 14th March 2008, 10:34 PM
  5. 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
  •