Create USB Restore?

Discussion in 'Linux' started by joekachurowski, May 24, 2009.

  1. joekachurowski

    joekachurowski

    Joined:
    Apr 16, 2009
    Messages:
    4
    Likes Received:
    0
    Question to old hats from newbie: now that I've got a more or less stable 9.04 system working, is there a way I can mirror it, data, programmes, settings, and all, to an 8g USB and if need be, reinstall in case of a crash? I've got a AA0, 1.5g, 8SSD. The only nuisance I'd like to get rid of is FireFox starting automatically every time I boot.
     
    joekachurowski, May 24, 2009
    #1
  2. joekachurowski

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    Easiest way (to explain) is to start with two USB sticks, an empty 8GB stick to hold the image, and a bootable stick with Ubuntu (or any other distro).
    1. Boot of the bootable USB stick and open a terminal window.
    2. Insert your 8GB USB stick
    3. In the terminal window, type sudo blkid -c /dev/null
    be sure you've properly identified your SSD (probably /dev/sda)
    and your 8GB stick (probably /dev/sdc)
    4. dd if=/dev/sda of=/dev/sdc bs=1M
    if refers to your SSD; of refers to your 8GB stick
    5. Once this completes, you have a restorable image of your SSD

    To restore, repeat steps 1-3, then: dd if=/dev/sdc of=/dev/sda bs=1M - this will wipe the SSD and replace the contents with the contents of your 8GB stick.

    HTH
     
    RockDoctor, May 24, 2009
    #2
  3. joekachurowski

    adgud

    Joined:
    Mar 15, 2009
    Messages:
    18
    Likes Received:
    0
    adgud, May 24, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.