How to uninstall ubuntu from a dual boot windows computer?

Q. I have a computer that is dual boot ubuntu and windows. I deleted the ubuntu partition and thus GRUB. I have a repair disk for windows 7 32-bit, and I just wanted to make sure that when I use this disk that it will boot me back into windows albeit without any of my programs or data. Again, i want to make sure that the repair disk is the correct disk, becuase there is also a backup disk and recovery disk and i don't know the differences or if recovery and repair are the same.

A. Recovery disk should do.
Boot Recovery CD and run up to three times automatic recovery with rebooting after each pass until no errors are reported.

All you have to do in your situation is to correct the Master Boot Record(MBR). This can be done manually over the recovery console with the command:
bootrec /FixMBR
(How to use the Bootrec.exe tool in the Windows Recovery Environment to troubleshoot and repair startup issues in Windows - http://support.microsoft.com/kb/927392)

The Repair disk should be same as the installed Windows - either 32 bit or 64 bit.
If installed system is 32 bit the Repair disk should be also 32 bit.

For all Windows 7 versions (Home, Pro, Ultimate) 32 bit and 64 bit there are only two repair disks -
one for 32 bit and a second for 64 bit.

How to recover data lost in Ubuntu install?
Q. Hey so I just installed Ubuntu but I lost some data that is CRUCIAL. I need it back I had Windows 7. What do I need?

A. Download Pandora Data Recovery software at www.download.com. It's rare free! But install and use it as soon as possible because the longer you wait, the lesser the chance you can recover your data as they will be overwritten.

How to recover shift deleted files in Ubuntu?
Q. Hi all, I am working in an institution. There students are using laptop which have Ubuntu 9.4 and Ubuntu 10.0 operating systems. Actually what they are doing is they are listening songs and watching videos when I am tecahing class. When I go there to check simply they are shift deleting the files. Then how can I find them. How can get recover those files to punish them?.

A. Method 1 to recover deleted files in Ubuntu: Scapel

Scalpel is a fast file carver that reads a database of header and footer definitions and extracts matching files from a set of image files or raw device files. Scalpel is filesystem-independent and will carve files from FATx, NTFS, ext2/3, or raw partitions. It is useful for both digital forensics investigation and file recovery. This short article shows how you can use Scalpel to recover deleted files.

In Ubuntu, Scalpel can be installed as follows:

apt-get install scalpel

Before we can use Scalpel, we must define some file types that Scalpel should search for in /etc/scalpel/scalpel.conf. By default, all file types are commented out. Uncomment the lines you want, for instance if you want to recover PDF files:

Press Alt + F2 and type: gedit /etc/scalpel/scalpel.conf

and uncomment these lines:

pdf y 5000000 %PDF %EOF\x0d REVERSE
pdf y 5000000 %PDF %EOF\x0a REVERSE

Scalpel can be used as follows to try to recover the files:

scalpel /dev/sda1 -o output

-o defines the directory where Scalpel will place the recovered files - in this case the directory is named output and is a subdirectory of the directory where we are running the scalpel command from; the directory must not exist because otherwise scalpel will refuse to start.

After Scalpel has finished, you will find a folder called output in the directory from where you called Scalpel. The audit.txt contains a summary of what Scalpel has done and the pdf-0-0/ subdirectory contains the pdf files that Scalpel has recovered.

Before you run Scalpel the next time from the same directory, you must either delete/rename the current output/ directory (because Scalpel will not start if the output directory is already existing) or use specify another output directory.

Method 2 for recovering deleted files in Ubuntu: Foremost

Foremost is a console program to recover files based on their headers, footers, and internal data structures. This process is commonly referred to as data carving. Foremost can work on image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive. The headers and footers can be specified by a configuration file or you can use command line switches to specify built-in file types. These built-in types look at the data structures of a given file format allowing for a more reliable and faster recovery.

Install foremost in Ubuntu

sudo aptitude install foremost

This will complete the installation.

Using Foremost

Foremost Syntax

foremost [-h][-V][-d][-vqwQT][-b<blocksize>][-o<dir>] [-t<type>][-s<num>][-i<file>]


Foremost examples

Search for jpeg format skipping the first 100 blocks

sudo foremost -s 100 -t jpg -i image.dd

Only generate an audit file, and print to the screen (verbose mode)

sudo foremost -av image.dd

Search all defined types

sudo foremost -t all -i image.dd

Search for gif and pdf

sudo foremost -t gif,pdf -i image.dd

Search for office documents and jpeg files in a Unix file sys-tem in verbose mode.

sudo foremost -v -t ole,jpeg -i image.dd

Run the default case

sudo foremost image.dd

image.dd means you need to enter your hardisk mount point i.e /dev/sda1 or /dev/sda2




Powered by Yahoo! Answers