Troubleshooting with Ubuntu Live CD

Revision as of 16:32, 25 March 2009 by Christopher Hunt (talk | contribs) (Basic information, how to access NTFS)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you look through the CD rack in the Walk-In you will find a few Ubuntu CDs. Put these in a computer of any model and boot from CD to start up a fully working system without installing anything to the hard drive.

Why / when to use Ubuntu live CD


  • Test hardware: if sound / video / network works, you know that the hardware is not broken.
  • Retrieve / copy files from PC hard drives
  • Resize, create, delete partitions using the Partition Editor
  • Memory test option
  • Have a fully working OS with Office suite, browser, etc. without relying on the hard disk


  • Bart is a little slower to start and has less programs available.
  • Ubuntu is generally immune to viruses & spyware.
  • With Ubuntu you can use any of the preloaded programs while transferring files or doing other useful stuff.

Don't use when...

  • If you want an official hardware diagnosis on a Dell, use the Dell diagnostics instead.
  • Ubuntu doesn't have Norton Ghost for reimaging computers. If you want Ghost, use the Bart/Ghost CD.

Basic usage

Starting the live CD

  1. Insert CD into hard drive.
  2. Turn on or restart computer.
  3. Tell computer to boot from CD. (on Dell: press F12 at first screen)
  4. Choose the language and select "Try Ubuntu without installing". (Or, if you want to test the computer's memory, select "Test Memory". Ubuntu won't load if you test memory; it will just do a basic memory test and show you the results.)
  5. Wait for Ubuntu to boot to the desktop. If the sound is working, it should play a startup sound.

Navigating Ubuntu

  • Applications will be listed in categories under the "Applications" menu in the top left corner.
  • Connect to connected drives using the "Places" menu.
  • Access system settings and certain admin applications (like the Partition Editor) through the "System" menu.
  • Use the Network icon at the top-right to connect to wired or wireless networks. If plugged in, Ubuntu should connect to the wired network automatically.
  • The "Add/Remove Programs" application under the "Applications" menu won't install many programs on a live CD system; it's mainly to show you what programs are available once Ubuntu is installed on the computer.

How to access an uncooperative NTFS drive on Ubuntu using force-mounting

NTFS is the standard Windows filesystem type, designed by Microsoft and used in Windows 2000, XP, Vista, and 7. NTFS was designed without much cross-platform compatibility or open specifications in mind. As a result, historically it has been very hard to access NTFS drives using Linux, let alone write to them. Now Linux systems, including Ubuntu, can read and write perfectly to NTFS drives - with one exception.

NTFS drives have a switch that indicates whether they are currently in use (or "dirty"). When Windows shuts down normally, this switch is turned off as part of the shutdown process. However when Windows freezes or crashes or is shut down improperly, this switch is not set to "off". You can see this when you start Windows the next time - it tells you "Windows was not shut down properly" and offers to start up in Safe Mode.

When you try to access an NTFS drive on Ubuntu, Ubuntu will automatically mount the drive and display the contents with read/write access as long as the drive's in-use switch is not "dirty". Otherwise it will display a long error message explaining that it cannot mount the dirty NTFS drive.

  • Screenshot?

If this happens, you can use 2 terminal commands to mount the drive. We do what's suggestively called a "forced mount". It's a little scary but not hard at all. Here's how:

  1. Keep the error message window open. Locate the part where it suggests the Terminal command that looks something like the following - your details may differ:

mount -t ntfs-3g /dev/sdb1 /media/disk1 -o force

  1. Look closely at this command. It basically says: Do this action (mount/access drive) - (option -t) - Type of driver to use (drive is NTFS) - Place where the "raw" drive is found (in folder /dev) - Where to attach the drive to (in folder /media) - (More options -o) - Force mounting even if drive is "dirty". Get it?
  2. Open the Terminal program:

Applications -> Accessories -> Terminal

  1. Create the folder name under /media as mentioned in the Terminal command suggested in your error window, using the command "sudo mkdir" (make a directory, and do it with Super privileges) - then press ENTER. For example, I would type:

sudo mkdir /media/disk1

  1. If an error message came up, you probably typed it wrong. If no error message came up, you're ready for the final command.
  2. Type the mentioned MOUNT command exactly as shown in the error window, then press ENTER. If you have followed all the instructions correctly, the Windows drive should appear on the Desktop. You can now access it and read and write files.

How to use Partition Editor

One of the many tools that comes default with the Ubuntu live CD is the Partition Editor - basically does the same job of Norton's $70 Partition Magic. You can use this to create, delete, move, resize, or reconfigure partitions on a hard drive. Partition Editor works with NTFS (Windows), FAT (old), and EXT (Linux) filesystems, plus others.

Find Partition Editor: System -> Administration -> Partition Editor