Windows News and info 15th Anniversary 2009-2024

Other Operating Systems => Linux, gOS, Harmony OS, Moblin, Ubuntu, OpenSuse => Topic started by: javajolt on March 22, 2010, 10:30:31 PM

Title: Using Ubuntu Linux to Rescue Windows
Post by: javajolt on March 22, 2010, 10:30:31 PM
(http://i44.tinypic.com/2aifokh.jpg)
(http://i44.tinypic.com/2aifokh.jpg)
                                Getting Ubuntu, Finding Your Windows Files

Did Windows crash beyond repair? If so, you probably want to get your files off of the drive before you erase everything and reinstall Windows. This tutorial will help you do exactly that.

We're going to use Ubuntu's LiveCD mode. Ubuntu is a popular Linux distribution that's a free and open source alternative to Windows. The LiveCD mode lets you boot into and use the operating system (OS) without installing anything on the computer. You should be able to view your files and copy them to another drive, backup to discs, or transfer via a  network. Now let's get started!

Download and burn the Ubuntu CD

Most Linux distributions aren't on the shelves of your local stores. You have to make your own CD unless you want to order them online. If burning CDs isn't your thing, consider using a USB flash drive (http://help.ubuntu.com/community/Installation/FromUSBStick (http://help.ubuntu.com/community/Installation/FromUSBStick)). If you're trying to rescue files from a dead computer, you'll obviously need to use a different PC that works. If your computers aren't up, you might try a friend or neighbor.

The first step is to download the Ubuntu CD image (http://www.ubuntu.com/getubuntu/download (http://www.ubuntu.com/getubuntu/download)). Then you need to write or burn the ISO file to a CD, or even a DVD if supported. You don't just copy the file to the disc like you would with other files in a data CD. You must use a feature that burns the image directly to the CD so it's bootable. In Windows Vista and earlier, you can use a free application like ImgBurn (http://www.imgburn.com/ (http://www.imgburn.com/)). Windows 7 includes native image burning; just double-click the ISO file. If you're using Linux, your desktop may have native image burning. When using a Linux distribution that uses GNOME, like Ubuntu, you just have to right-click the image file.

Getting ready for the rescue

If Windows crashed and the hard drive you want to get the files from is still in the PC, you can perform the rescue from that computer. However if you want to access a hard drive that's already removed, you must first put it back into the computer you want to use for the rescue. Since the LiveCD won't change your system, you can pretty much do it on any computer.

Once you have the CD ready-to-go and a machine to use, insert the CD and restart the computer. It should automatically bring up the Ubuntu boot menu, first prompting you for your desired language. If it doesn't show, verify the BIOS is set to allow booting from CDs.

On the Ubuntu boot menu, select Try Ubuntu without any change to your computer. Remember, everything is loaded from the CD; give it some time to boot up.

Once Ubuntu has booted, you should first make sure you can access the drive where the files are located. Click Places on the top menu and select Computer. This is like My Computer or Computer in Windows. You should see an icon for each drive (and their partitions, if multiple exist). Double-click the desired drive to open it up.

If Windows didn't shut down correctly the last time, you might get an error like "Cannot Mount Volume: Unable to mount the volume" when you try to open the drive. If this is the case, you can force it to mount the drive. First, make a note of the drive path (such as /dev/sda1) given in the details of the error message; you'll need this later. When you're ready, follow these steps to manually mount the drive:

1. We're going to use command-lines, so open Terminal: click Applications > Accessories > Terminal.

2. To switch to root or administrator mode enter: sudo su

3. Create a directory to mount the drive: mkdir /media/disk

4. Finally, mount the drive with this command, while replacing /dev/sda1 with the correct path you noted from the error message: mount -t ntfs-3g /dev/sda1 /media/disk -o force

If the drive is using the FAT32 file system instead of NTFS, you can use the following command instead: mount -t vfat -o umask=000 /dev/sda1 /media/disk

Cleansing Windows Files

If you're rescuing files from a drive that crashed from viruses, you should scan and remove them before copying your files. That way you don't start infecting your new drive. You can use the free F-PROT Antivirus for Linux Workstations (http://www.f-prot.com/products/home_use/linux/ (http://www.f-prot.com/products/home_use/linux/)).

First, you must connect to the Ubuntu machine to the network to get Internet access. If you have an Ethernet cable, connect it between the Ubuntu machine and the network switch or router. You can also use Wi-Fi: click the network icon on the top of Ubuntu and select the wireless network name.

Once you're online, go to the F-Prot site (http://www.f-prot.com/products/home_use/linux/ (http://www.f-prot.com/products/home_use/linux/)) to download the anti-virus software and then follow these steps:

1. Extract the contents of the file (fp-Linux-i686-ws.tar.gz) to the Ubuntu desktop.

2. We're going to use command-lines, so open Terminal: click Applications > Accessories > Terminal.

3. To switch to root or administrator mode enter: sudo su

4. Move the exacted folder (f-prot): mv /home/ubuntu/Desktop/f-prot /opt/

5. Change to the new location: cd /opt/f-prot/

6. Start the installation: /opt/f-prot/install-f-prot.pl

7. Press Enter when prompted to accept the default settings

8. Wait a while to download the anti-virus updates.

9. Get out of the root or administrator mode: exit

10.Run a scan on the infected drive: fpscan /path_to_drive

Copy files to another drive

If you want to backup your files to another drive, bring it up using Computer in Ubuntu just like when opening the problem drive. Then you can drag and drop files and folders between the drives. You can also copy and paste them.

Backup to CDs or DVDs

If the computer you're using has a CD or DVD burner, you can write your files to discs. Ubuntu is already loaded with burning software: click Applications > Accessories > CD/DVD Creator. Then just insert a blank disc, drag or copy files to the window, and hit Write to Disc.

Transfer files to network shares or online storage

You can also transfer files over the network to another computer or network drive or access the Internet to upload to online storage. First, you must connect to the network. Connecting the computer to the switch or router using an Ethernet cable will likely provide much faster transfer speeds. However, if you want to do it via Wi-Fi, click the network icon on the top of Ubuntu and select the wireless network name.

Once you're connected to the same network, you can browse to the desired computer and shared folders via the Network browser: click Places > Network. If prompted to login, enter the credentials for your Administrator account on the remote computer you're accessing. To use the Internet, simply click the Firefox icon on the top of Ubuntu.

Consider Linux as your OS

Now that you've saved your files, you should disconnect or unplug the backup drive. That way if you reformat or reinstall Windows, you can't accidentally modify your backup drive.

If this was your first Linux experience, you ought to play around with Ubuntu to see what Linux has to offer. The open source community provides free alternatives to many of the popular applications, such as OpenOffice.org instead of Microsoft Office. See some of the possibilities in Ubuntu's software repository: click Accessories > Ubuntu Software Center.

If you want to install Ubuntu as your OS, simply double-click the install icon on the desktop. However, if you're planning on reinstalling Windows, you might consider using the easy Wubi installer (http://www.wubi-installer.org/ (http://www.wubi-installer.org/)) from Windows.