Creating a bootable CD/USB

AID: 2343
  • Status: Published

8772 points

  • By
  • TypeGeneral
  • Posted on2010-01-27 at 09:30:05
Sometimes the best way to deal with an infected computer is to boot from external media and run your tools from there.  The reason you may wish to do this really depends on the infection.  Some malware is so recalcitrant that no matter what you do it will not be cleaned.  You may even go through it with the anti-rootkit software I suggest in this article, with no effect.  Before you take the step of getting all the data off the system and reformatting, try cleaning from a exteranl boot device (I went over this briefly in the anti-rootkit article).  Depending on the system you could boot either from a USB device or from a CD.  Either of these could be created very easily and there are tools already on the web to help you.

Instructions to create a Boot CD can be found here.  These instructions are well thought out and tested many times over.  I have found this site very useful.  
  • Be patient when extracting the files

  • Once the files have extracted I highly recommend saying YES to the MD5 hash validation.  This will make sure all files that have downloaded and installed have not been tampered with or corrupted.
 
  • An alternative to the slipstream software recommended on the site is nLite an excellent free piece of software that I have found to be very useful.

  • I suggest following the direction to update as many of the plugins/addins as possible, or at the very least the ones you will be using.  If the entry starts with "No" this means it is not installed.

  • I highly suggest you do NOT use an OEM distribution of Windows when building your bootCD, it is much more likely to cause problems.

  • If the build process encounters ANY errors it will complete but NOT build the ISO.  You must fix any errors before an ISO file will be created.  The below screenshot shows a build that encountered 4 errors, the ISO file was not created, so if you see any errors as the build is going, you can save time by stopping and fixing the error.
ubcd4winbuilder-ss.JPG
  • 116 KB
  • UBCD4Win encounters 4 errors
UBCD4Win encounters 4 errors


You can also create a Bootable Ubuntu rescue CD.  The Pendrivelinux page has a link to an iso you can download and burn to CD.  An alternate way to create a bootable Ubuntu CD is here.  The Pendrivelinux version worked very well for me, but your mileage may vary (YMMV).

To create a bootable USB follow the instructions on the Pendrivelinux page.  I found this very straightforward with little room for error.  I suggest choosing the largest cache you can when given the option in the installer - I chose a 4gb sustained cache. (I recommend at least a 16gb stick).  The installer on the Pendrive linux page makes it very easy.  Although there are other instructions on the web to do the same thing (like the ones at How-To Geek or SARDU - an excellent page for creation of Rescue USB with antimalware and virus definition updates, the only downside to this  one is that the menu system is not yet in English ) , none are as easy to follow and use.  

UPDATE: SARDU is now not only in english, but has an enhanced interface.  This is an excellent way to create a multiboot bootdisk/USB or just a single bootdisk all with a few button clicks.  See my article here.

Now you are ready!  Keep in mind though that there is a downside to having a bootable USB versus a CD.  A USB is writable and therefore open to infection, while a CD, once you finish it, is no longer writable.  Of course, the exact reason that a USB might be a problem is a pro as well since it is writable it doesn't have to write files on the disk you are trying to salvage and possibly recover files from.*

* If you are doing file recovery, check out my article on that as well.
    Asked On
    2010-01-27 at 09:30:05ID2343
    Tags

    windows

    ,

    linux

    ,

    USB

    ,

    bootable USB

    ,

    bootable CD

    ,

    UBCD

    ,

    Ubuntu

    Topic

    Hard Drives & Storage

    Views
    3235

    Comments

    Expert Comment

    by: trazak2 on 2010-01-29 at 13:56:03ID: 8660

    Thank you very much All, I will try these solutions before I decided to format the drive completely.

    Expert Comment

    by: jmentity on 2010-05-21 at 09:30:36ID: 14932

    I opted to use Pendrivelinux software to create a multiboot USB device.  The software is loaded, the USB device is bootable however I am having trouble loading the ISO files.  What is the method for loading ISO's and where exactly are you suppose to place them on the USB drive?  The tutorial on Pendrive's site is good and he Author says to place your ISO's on the drive but doing simply that has not worked.  The programs in the menu are telling me that the file needed to execute the program cannot be found.

    Thanks,

    Author Comment

    by: tzucker on 2010-05-21 at 09:36:35ID: 14933

    Although the Pendrivelinux page/instructions are very good, I have found that using SARDU (see update paragraph near end of article) is far superior.  Once you have downloaded the ISO and IMG files (recommended since the naming is important - or at least start the download so you can see what the naming is for each download and then rename your ISO accordingly), it is just a matter of checking off the items you want or unchecking the ones you don't and clicking "Create USB".  You can also put anything you want in the extra folder to include that as well.

    Add your Comment

    Please Sign up or Log in to comment on this article.

    Join Experts Exchange Today

    Gain Access to all our Tech Resources

    Get personalized answers

    Ask unlimited questions

    Access Proven Solutions

    Search 3.2 million solutions

    Read In-Depth How-To Guides

    1000+ articles, demos, & tips

    Watch Step by Step Tutorials

    Learn direct from top tech pros

    And Much More!

    Your complete tech resource

    See Plans and Pricing

    30-day free trial. Register in 60 seconds.

    Loading Advertisement...

    Top Storage Misc Experts

    1. hanccocka

      247,063

      Guru

      0 points yesterday

      Profile
      Rank: Genius
    2. andyalder

      186,674

      Guru

      2,000 points yesterday

      Profile
      Rank: Genius
    3. dlethe

      151,091

      Guru

      0 points yesterday

      Profile
      Rank: Genius
    4. Callandor

      76,887

      Master

      0 points yesterday

      Profile
      Rank: Genius
    5. paulsolov

      72,153

      Master

      0 points yesterday

      Profile
      Rank: Genius
    6. meyersd

      50,146

      Master

      0 points yesterday

      Profile
      Rank: Genius
    7. kevinhsieh

      42,168

      2,800 points yesterday

      Profile
      Rank: Genius
    8. woolmilkporc

      41,212

      0 points yesterday

      Profile
      Rank: Genius
    9. rindi

      33,652

      0 points yesterday

      Profile
      Rank: Savant
    10. shahzoor

      33,509

      0 points yesterday

      Profile
      Rank: Guru
    11. nobus

      33,393

      0 points yesterday

      Profile
      Rank: Savant
    12. noxcho

      33,214

      0 points yesterday

      Profile
      Rank: Genius
    13. BigSchmuh

      28,987

      0 points yesterday

      Profile
      Rank: Sage
    14. garycase

      27,968

      0 points yesterday

      Profile
      Rank: Genius
    15. arnold

      26,694

      0 points yesterday

      Profile
      Rank: Genius
    16. SelfGovern

      22,967

      0 points yesterday

      Profile
      Rank: Wizard
    17. Shbasha

      18,208

      0 points yesterday

      Profile
      Rank: Master
    18. charlestasse

      18,144

      0 points yesterday

      Profile
      Rank: Wizard
    19. pgm554

      18,126

      0 points yesterday

      Profile
      Rank: Sage
    20. robocat

      16,490

      0 points yesterday

      Profile
      Rank: Sage
    21. ve3ofa

      16,400

      0 points yesterday

      Profile
      Rank: Genius
    22. DavisMcCarn

      15,300

      0 points yesterday

      Profile
      Rank: Genius
    23. strung

      13,800

      0 points yesterday

      Profile
      Rank: Genius
    24. chakko

      12,725

      0 points yesterday

      Profile
      Rank: Genius
    25. millardjk

      12,424

      0 points yesterday

      Profile
      Rank: Master

    Hall Of Fame