computer first aid using knoppix

24
Computer First Aid Using Knoppix By Cedric Shock and Susan Sullivan These instructions were written using Knoppix version 3.7. It can be downloaded from http://www.knopper.net/knoppix/index-en.html . This document is available online at http://www.shockfamily.net/cedric/knoppix/ . There is also an older version written for Knoppix 3.2 . If you need help with these instructions or have corrections or suggestions please direct your communications to cedric shockfamily.net. Preface: Don't Panic Windows just crashed. The computer won't boot back up. Those "System Recovery Disks" that came with your computer will erase all of your data. In most cases, when Windows breaks and will not start up again, none of your data has been lost, you just don't have a way to get to it. These instructions are a way of getting to your data when Windows won't work. If these instructions fail to recover your data, don't panic; even in cases of physically damaged drives, reformatted drives, and accidentally deleted files, professional data recovery companies such as Hard Drive Recovery Group typically have a 95 to 98% success rate. These services cost $50 to $2500 depending on the severity of damage to the drive. You should not use Knoppix if your drives are physically damaged. If your drive was making strange sounds that you have not heard before, such as whirring, clicking or buzzing, you should get professional data recovery help and you should not use Knoppix. If your computer was damaged in a flood, a power surge, or any other kind of disaster, get the help of a professional recovery service. In these situations any further use of the drive will cause more damage, making recovery more expensive or impossible. If you have accidentally deleted files or reformatted a drive it is imperative that you do not write anything to the drive; save your current work (on a different drive if possible) and turn off the computer. This means don't download or install any data recovery software onto the affected drive (at all if you have only one drive). You should only use recovery software that does not write to the drive. You can use Knoppix to get to and back up your other files, but do not remount the drive so that it's writable. You can find more about what to do when you lose data . Get professional help with damaged drives and deleted files and please, don't panic.

Upload: fergarmol

Post on 25-Nov-2015

27 views

Category:

Documents


2 download

TRANSCRIPT

Computer First Aid Using Knoppix

Computer First Aid Using Knoppix

By Cedric Shock and Susan Sullivan

These instructions were written using Knoppix version 3.7. It can be downloaded from http://www.knopper.net/knoppix/index-en.html. This document is available online at http://www.shockfamily.net/cedric/knoppix/. There is also an older version written for Knoppix 3.2. If you need help with these instructions or have corrections or suggestions please direct your communications to cedricshockfamily.net.

Preface: Don't Panic

Windows just crashed. The computer won't boot back up. Those "System Recovery Disks" that came with your computer will erase all of your data. In most cases, when Windows breaks and will not start up again, none of your data has been lost, you just don't have a way to get to it. These instructions are a way of getting to your data when Windows won't work. If these instructions fail to recover your data, don't panic; even in cases of physically damaged drives, reformatted drives, and accidentally deleted files, professional data recovery companies such as Hard Drive Recovery

HYPERLINK "http://www.harddriverecovery.org/index.html" Group typically have a 95 to 98% success rate. These services cost $50 to $2500 depending on the severity of damage to the drive.

You should not use Knoppix if your drives are physically damaged. If your drive was making strange sounds that you have not heard before, such as whirring, clicking or buzzing, you should get professional data recovery help and you should not use Knoppix. If your computer was damaged in a flood, a power surge, or any other kind of disaster, get the help of a professional recovery service. In these situations any further use of the drive will cause more damage, making recovery more expensive or impossible.

If you have accidentally deleted files or reformatted a drive it is imperative that you do not write anything to the drive; save your current work (on a different drive if possible) and turn off the computer. This means don't download or install any data recovery software onto the affected drive (at all if you have only one drive). You should only use recovery software that does not write to the drive. You can use Knoppix to get to and back up your other files, but do not remount the drive so that it's writable. You can find more about what to do when you lose data. Get professional help with damaged drives and deleted files and please, don't panic.

I can not provide complete step by step instructions for all of the methods covered because they depend on your computer's setup, so in places you may need to know a little about your own computer. For this reason, it might be helpful to find the manuals, documentation, and disks that came with your computer and any documentation provided by your internet service provider or information about your network. These are certainly not required, but may be helpful.

Part 1: Starting Knoppix

Put the Knoppix CD in the CD drive of the computer you need to get data out of. If you have a zip drive or other removable disk drive, put a disk in the drive. If you have a USB keychain drive or USB hard drive connect it to the computer. Turn the computer on. Some computers will start the CD automatically, while others will act like it isn't there. If the CD boots just by putting it in your computer and turning the computer on, great. You can skip the next paragraph.

If Knoppix does not start when the computer is turned on, first try restarting the computer. If that does not work, try pressing Del, ESC, F1, or F2. One of these keys should bring up either a menu from which you can select to boot from a CD, or the BIOS configuration. In the latter case, you will need to find the "Boot Order" in the bios configuration and make the CD drive first. The documentation that came with your computer should be helpful in finding this setting. After making this change and saving, restart the computer.

You will see a screen that says:

Press keys F2 or F3 for help and boot options

KNOPPIX V3.7 ...

boot:

Press Enter.

Knoppix will spend a little while detecting all of your hardware and starting up. This will take about 5 minutes. It certainly shouldn't take longer than 15 minutes. If it takes a long time and is making no visible progress, you may want to start over.

Part 2: Finding Your Data (Relaxing)

Once Knoppix starts you will be presented with a web browser window. There is a button with an X in the upper right hand corner of this window. Click on it; the window will close. Your screen should now look something like this:

There will be a series of icons down the left side of the screen. The ones labeled "Hard Disk Partition" are the hard drives in your computer. If you can, find one labeled "Hard Disk Partition [hda1]" or "[sda1]". If you can't, just pick the top one. This is probably the drive that is called "C:" in windows. Click on this icon. This will bring up a window that looks similar to the Windows Explorer File Manager. This window will have a directory tree view on the left, and an icon view on the right. If the drive you found is your C drive, the icon view on the right will have some icons called things like "Program Files", "winnt", "windows", "My Documents", "recycled", "Documents and Settings", etc. If you are disappointed by what is on this drive, or you get an error message, close the window and try another one.

Once you have figured out which drive is which, or at least which one is your "C:" drive or other drive that you want to get data off of, go onto the next section, which is about rescuing your data.

Tips on Finding Files

The "My Documents" folder is typically found in one of the following places: Windows 2000, XP: Documents and Settings/your username/My Documents/ Windows 2000: Documents and Settings/Administrator/My Documents/ Windows XP: Documents and Settings/Owner/My Documents/ Windows NT: winnt/Profiles/your username/My Documents/ Windows NT: winnt/Profiles/Administrator/My Documents/ Windows 95, 98, ME: My Documents/

The Desktop is typically found in one of the following places: Windows 2000, XP: Documents and Settings/your username/Desktop/ Windows 2000: Documents and Settings/Administrator/Desktop/ Windows XP: Documents and Settings/Owner/Desktop/ Windows NT: winnt/Profiles/your username/Desktop/ Windows NT: winnt/Profiles/Administrator/Desktop/ Windows 95, 98, ME: windows/Desktop/

Part 3: Rescuing Your Data

There are a number of options in this section which you can use to rescue your data.

1. Floppy Disk: This requires that you have a floppy disk drive and that the files you are trying to save are small.

2. Zip Disk or Other Removable Disk: This requires that you have a zip drive or other removable disk drive.

3. USB Keychain Drive or USB Hard Drive: This requires a USB drive connected to the computer.

4. CDROM: Burning files to a CD requires that you have two CD drives. You must have the CD drive that Knoppix was booted from and another CD drive that can write CDs.

5. E-mail: You need a working internet connection through a local area network.

6. Windows Networking: You need a working connection to a local area network, and another computer on the network with a shared folder that you can copy files to.

7. Another Hard Drive or Partition: You need another hard drive installed, or another hard drive partition onto which to rescue your data.

3.1: Floppy Disk

Floppy disks are prone to failure. Do not use them for anything other than transferring files between computers. Never keep data on a floppy disk that isn't saved elsewhere.

To recover data onto a floppy disk you need to have a floppy disk drive and a blank, formatted floppy disk. Put the disk in the drive.

Click on the "Floppy disk" icon on the desktop. This will open another file-manager type window for the floppy disk.

Go back to the window where you found your data you wish to recover. Select the files. Right click on them and select copy. Go back to the window for the floppy disk. Right click in the big area on the right and select paste.

3.2: Zip Disk or Other Removable Disk

You need a Zip Drive or some other removable disk drive and a disk to use this method of data recovery. Put the disk in the drive.

On the desktop there will be an icon labeled something like "Hard Disk Partition [hdc4]", "[hdd4]", "[sdc4]", or "[sdd4]" that corresponds to your Zip Drive. Click on it. It should open a window in which you can see the contents of the removable disk.

Go back to the window where you found your data you wish to recover. Select the files. Right click on them and select copy. Go back to the window opened for the removable disk. Right click in the big area on the right and select paste.

If you can not write to the removable disk:

You might get a message that is like "Could not write to /mnt/hdc4". In this case you will need to change the properties for the removable drive.

Close the window for the removable disk. Right click on the removable drive on the desktop. This will bring up a little menu. Select "Unmount", which is about the 5th item from the bottom of the list.

Right click on the removable drive on the desktop. This will bring up the little menu again. Select the last item in the menu, "Properties". This will open a window with four tabs. Select the third tab, "Device". There is a checkbox labeled "Read only". Make sure it is unchecked, and click on Ok. See Appendix C for a picture.

Click on the removable drive icon. This will open the explorer type window again. This time you should be able to write to the disk.

If you can not remove the disk

Close the window for the removable disk. Right click on the removable drive on the desktop. This will bring up a little menu. Select "Unmount", which is about the 5th item from the bottom of the list. Try ejecting the disk again.

Further problems

If your removable disk drive just won't work, try restarting Knoppix with a disk in the drive. Some disk drives have issues with being empty on bootup.

3.3: USB Keychain Drive or USB Hard Drive

The drive needs to already be connected when the computer is turned on.

Click on the at the bottom of the screen. This will make a window that looks like this:

Click on the on the left side of the screen. It should change to look like this, showing a list of devices in the left panel. The USB drive will have a name starting with either "sd" or "ub":

Click on one of these drives and the right panel should display the contents of the USB drive. Go back to the window where you found your data you wish to recover. Select the files. Right click on them and select copy. Go back to the window opened for the USB drive. Right click in the big area on the right and select paste.

3.4: CDROM

Burning files to a CD requires that you have two CD drives. You must have the CD drive that Knoppix was booted from and another CD drive that can write CDs.

This requires one challenging step before we can begin. Click on the in the lower left hand corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu and select "Root Shell". This will open a window with a light blue prompt that reads something like

root@ttyp0[/]#

Type "passwd" and press enter. Enter a new password twice. Close this window.

Click on the in the lower left hand corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "Multimedia" submenu and select " K3b".

You will need to set up the CD burning software before you can use it. In the K3b "Settings" menu select "K3b Setup", the last entry. You will be asked to enter the password you entered earlier. Press Ok. I can't see the bottom of this setup wizard on my screen. Press Enter or "Next" 4 times. In step 5, press the "Add User..." button. Type "knoppix" and press "Ok". Press Enter or "Next". Getting past the last screen can be hard if your screen isn't big enough. We need to push the "Finish" button. I succeeded by moving my mouse over the border of the window so that the resize cursor was visible. Then I right clicked and a menu came up. I selected "Move" and moved the window so that the bottom portion of it was visible, then pressed "Finish"

You should be able to use the CD-Writer now.

3.5: E-mail

To rescue data using e-mail you will need a working email account and an internet connection. If you are on a local area network, your internet connection should already be working. If your internet access is through a dial-up service, see Appendix A, Dial-up Networking. If your internet access is through a local area network that was not automatically configured properly, see Appendix B, Local Area Network Configuration.

Web based e-mail access is the easiest way to get email working. Open a Web Browser. You have two choices, Konqueror, and Mozilla. You can get a free e-mail account to send things through at http://mail.yahoo.com/.

It is also possible to set up Mozilla as an e-mail client if you prefer this harder route or if you have files too large to send through web based e-mail.

3.6: Windows Networking

To rescue data using Windows Networking, you need a connection to a local area network, and another computer running on the network with a shared folder you can write to. If your local area network was not automatically configured properly, see Appendix B, Local Area Network Configuration.

You will need to know the following information about the other computer: Workgroup: Username: Password: Computer Name: Shared Folder:

If the computer is running windows 95, 98, or ME and does not require a password for the shared folder, the username is "guest" and there is no password; it should be left blank.

At this point there are three options for connecting to the computer. The first option is easiest, but doesn't always work; try it first. The second option is a little harder, but is rock solid. The third option is presented only for those who desire it.

Option 1: Konqueror

Click on the at the bottom of the screen. This will make a window that looks like this:

Fill in the location bar, substituting the information garnered above for the bold text like this, and press enter:

X> Location:smb://computer/folder

For example, if the computer's name is susan and the shared folder is called shared it would look like this:

Do NOT put an extra slash at the end of the folder. For example smb://susan/shared/ would not work.

Go back to the window where you found your data you wish to recover. Select the files. Right click on them and select copy. Go back to the window we just opened for the shared folder. Right click in the big area on the right and select paste.

Option 2: The Command Line

Click on the in the lower left hand corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu and select "Root Shell". This will open a window with a light blue prompt that reads something like

root@ttyp0[/]#

Type "cd /mnt/" and press enter. The prompt should now read

root@ttyp0[mnt]#

Type "mkdir /mnt/shared" and press enter. This makes a directory (folder) on this computer that will represent the shared folder on the other computer. Type, substituting the information garnered above for the parts in magenta:

mount -t smbfs -o uid=knoppix,workgroup=Workgroup,username=Username,password=Password //Computer Name/Shared Folder /mnt/shared

and press enter. This attaches, or "mounts", the other computer's shared folder to the folder we created. Close this window.

Open a new Konqueror window by clicking on the at the bottom of the screen (it is the 5th from the left). In the address bar, after where it reads X> Location: type "file:/mnt/shared/" and press enter. This window is now displaying the shared directory on the other computer.

Go back to the window where you found your data you wish to recover. Select the files. Right click on them and select copy. Go back to the window we just opened for the shared folder. Right click in the big area on the right and select paste.

Option 3: LinNeighborhood

Click on the in the lower left hand corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "Internet" submenu then "More Applications" and select "LinNeighborhood

In LinNeighborhood find the "Options" menu and select "Browse entire network..."

Entire Network Browse If your network requires authentication just to see the list of shared folders, select "Browse as user" and enter your network username and password. Click "Ok".

LinNeighborhood should now show a list of workgroups and the computers in them like this:

Find the computer you will be copying files to and double click on it. The list should now show the shared folders on that computer. Select the shared folder to which you will be copying data. Click on the "Mount" button in the upper left corner of the window.

Mount Dialog You will be presented with a window that looks like this:

Enter your username in the box labeled "SMB User:" and your password in the box labeled "SMB Password:". Click "Mount".

Now we need to open the directory that represents the shared folder on the other computer. Click on the at the bottom of the screen. This will open a file manager type window. There should be a folder called "mnt" in the icon view on the right; open it. In this folder, there should be one folder with the name of the computer you connected to; open it. In this folder, there should be one folder with the name of the shared folder you connected to; open it. This directory now represents the shared folder on the other computer.

Go back to the window where you found your data you wish to recover. Select the files. Right click on them and select copy. Go back to the window we just opened for the shared folder. Right click in the big area on the right and select paste.

3.7: Another Hard Drive or Partition

To recover data onto a hard disk, you will need to have either another hard drive or hard drive partition. The hard drive will need to be installed before starting Knoppix. NTFS (Windows 2000 or XP) formatted drives or partitions will not work without use of the Captive NTFS tool, documented in Appendix G.

If you are copying data to another partition on the same drive, beware. Reinstalling Windows or using "System Recovery Disks" will probably DELETE your rescued files.

You will need to make the drive or partition writable to be able to copy files to it. Right click on the drive or partition on the desktop. This will bring up a little menu. Select the last item in the menu, "Properties". This will open a window with four tabs. Select the third tab, "Device". There is a checkbox labeled "Read only". Make sure it is unchecked, and click on Ok. See Appendix C for a picture.

Right click on the drive or partition icon again. If there is an item in the menu called "Unmount" select it.

Click on the icon on the desktop for the drive or partition. This will open the explorer type window again.

Go back to the window where you found your data you wish to recover. Select the files. Right click on them and select copy. Go back to the window we just opened for the drive or partition. Right click in the big area on the right and select paste.

Part 4: Knoppix as a Temporary Computer

Knoppix can be used as a temporary operating system. It has support for a wide variety of printers and other hardware. Knoppix has programs for creating and editing documents, spreadsheets, presentations, charts and drawings including those in Microsoft Office formats. It also has powerful image editing software, web browsers, e-mail clients, games, a music player, a planetarium, flowcharting and diagramming, a calculator, a persistent clipboard, and many other programs.

To use Knoppix in place of a broken windows installation, there a few things that you will find convenient. You may wish to be able to write to your hard drive (Appendix C). If you configure a printer (Appendix D) or set up a dial-up internet connection (Appendix A), you may wish to save the configuration (Appendix E). If you start using OpenOffice or a Web Browser, email client, or other program that has personal settings or configuration, you will want to create a persistent home directory (Appendix F).

OpenOffice, a free replacement for Microsoft Office, can be opened using the button at the bottom of the screen.

You can get on the internet using Konqueror or Mozilla. Mozilla and "Kmail" are e-mail clients. Konqueror makes a good ftp client; type "ftp://ftp.yourhost.com/" in the address bar. There are more internet programs, such as the AOL IM client "Gaim", in the "K" menu in the submenu "Internet".

In the menu, try the addictive game "Frozen-Bubble" under "Games", the planetarium "KStars" in "Edutainment", the other "Office" programs, and the "Utilities" "KCalc" and "Klipper". "Klipper" is great if you do a lot of copying and pasting.

"The Gimp" image manipulation program is found in "Multimedia" "Graphics". You can play MP3s and other audio files using "XMMS" found in "Multimedia".

Appendix

A: Dial-up Networking

Click on the in the lower left corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "Internet" submenu. Select "KPPP (Internet Dial-up tool)".

This will open KPPP, a dial-up internet tool.

KPPP Click on "Setup ..."

KPPP Configuration Under the "Accounts" tab click on "New..."

Create New Account Click on "Dialog Setup"

New Account Enter a "Connection Name", it can be anything. Click on the "Add..." button.

Add Phone Number Enter the phone number for your internet provider; click "Ok".

New Account Click ok.

KPPP Configuration Click on the "Device" tab. Select "Modem Device:" according to the following list:

Windows DeviceSelect:

COM 1/dev/ttyS0

COM 2/dev/ttyS1

COM 3/dev/ttyS2

COM 4/dev/ttyS3

Other Internal Modem(Rarely Works)/dev/modem

INCLUDEPICTURE "http://www.shockfamily.net/cedric/knoppix/modemselect.jpg" \* MERGEFORMATINET Click on "Ok".

KPPP Enter your "Login ID" (username) and "Password" and click "Connect".

B: Local Area Network Configuration

This section covers local area networking configuration when the network is not started automatically. This is mostly for networks with static IP address assignment, typically old networks of Windows 95, 98, NT, and ME computers.

Click on the in the lower left corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu. Enter the "Network/Internet" submenu. Select "Network card configuration".

This will open a series of dialog boxes that will request information about the network. There may be a screen asking which network card to configure; if so select one. The next screen will ask if the network settings should be configured through DHCP; click no unless your network has automatic configuration and it failed to work the first time for a reason such as a disconnected cable. After you click no, it will ask you for an IP address. This and the subsequent settings rely on your network configuration, so I can't tell you what to do here.

C: Making a drive writable

You can not make an NTFS formatted drive (sometimes used for Windows NT, 2000, XP) writable without use of the Captive NTFS tool, documented in Appendix G.

Close all windows and programs using files from the drive or showing directory listings of the drive.

Right click on the drive icon on the desktop and select "Properties". This will open a little window. Select the "Device" tab. There is a checkbox labeled "Read only". Make sure it is unchecked, and click on Ok.

D: Printer Configuration

Click on the in the lower left corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu. Enter the "Configure" submenu. Select "Configure printer(s)".

This will open a window called "Printing Manager". Near the top left corner of the window there is a button labeled "Add" with a little black arrow pointing down on it. Click on it. This brings up a small menu; select "Add Printer/Class".

Introduction Click "Next>".

Backend Selection Select "Local printer (parallel, serial, USB)". Click "Next>".

Local Port Selection This screen will show a list of all the ports on your computer, and any automatically detected printers. If the printer was detected automatically, select it and click "Next>". If it wasn't, select the port it is connected to and click "Next>".

Printer Model Selection Select your printer's manufacturer from the list on the left. Then select the model from the list on the right. Click "Next>".

Driver Selection Select a driver for your printer. I prefer the ones that say "CUPS" or "gimp-print". Click "Next>".

Printer Test If you wish, you can test your printer at this point. Click "Next>".

Banner Selection Click "Next>".

Printer Quota Settings Click "Next>".

User Access Settings Click "Next>".

General Information Enter a name for the printer. It can be anything. Click "Next>".

Confirmation Click "Finish".

Close the "Printing Manager" window. Your printer is now set up. If you want to save your configuration, see Appendix E.

E: Saving Configuration

Saving configuration requires a floppy disk, removable disk, USB drive, or a non-NTFS formatted drive.

Click on the in the lower left corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu. Enter the "Configure" submenu. Select "Save KNOPPIX configuration".

This will bring up a little window asking what to save. Click "OK".

The next window will ask where to save the configuration. I suggest the floppy drive or a USB drive. Click "Ok".

To load the configuration the next time you run Knoppix. If you are using a floppy disk, put it in the drive once the "boot:" prompt appears. Instead of pressing enter, type "knoppix myconfig=scan" and press enter.

F: Persistent Home

Making a persistent home directory requires a non-NTFS formatted drive.

Click on the in the lower left corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu. Enter the "Configure" submenu. Select "Create a persistent KNOPPIX home directory".

This will bring up a window with a lot of text. Click "OK".

The next window will ask where to store the home directory. Select a drive and click "Ok".

Click "No". Do NOT use the entire partition.

The next screen asks for a size in megabytes for the persistent home directory. 30 is good. Click "Ok".

Click "No". We don't need encryption.

The next time you run Knoppix, instead of pressing enter enter at the boot: prompt, type "knoppix home=scan" and press enter. If you want to use both a persistent home directory and a saved configuration, type "knoppix home=scan myconfig=scan" and press enter.

G: Captive NTFS tool

This tool allows writable access to an NTFS formatted partition.

Click on the in the lower left corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu. Enter the "Utilities" submenu. Select "Captive NTFS".

Follow the instructions on the screen. Once ntfs.sys and ntoskernel.sys are found you may click Ok to finish the program.

cedricdata rescuedice calculatorunderground railroadskeleton

Contact Information

Cedric Shock cedricshockfamily.net

888 E 18th Ave. Apt Eugene, OR 97401 (541) 343-6640

Last updatedWednesday January 24, 2007. View page source.