How To Install Testdisk On Ubuntu Live Usb

  1. How To Use Testdisk

Yum install testdisk You need to also enable/install the EPEL repository. The EPEL repository is an additional package repository that provides easy access to install packages for commonly used software. To know more about the EPEL repository, visit the official page. It’s easy to boot Ubuntu from a DVD. Here’s what you need to do: Put the Ubuntu DVD into your optical/DVD drive. Restart your computer. A few moments later you’ll see the language selection menu followed by Ubuntu’s boot options. Select the top entry, Try Ubuntu without installing, and press return. Insert your Ubuntu CD and restart your computer, booting from the Live CD Insert a USB flash drive Navigate to System Administration Startup Disk Creator: Next, (1) Select your Flash Drive from Disk to use. I am unable to install testdisk in Ubuntu 13.10 from Live Disk. I am using USB drive to run ubuntu 13.10. I want to recover some data from Windows partition. In order to repair the most common problems that cause an external disk to suddenly become RAW we will use a. Use tools installed by default on the USB stick to repair or fix a broken configuration; Creating a bootable Ubuntu USB stick from Microsoft Windows is very simple and we’re going to cover the process in the next few steps. Alternatively, we also have tutorials to help you create a bootable USB stick from both Ubuntu and Apple macOS.

For installing Ubuntu Linux from a USB stick, first, we need to create a bootable USB drive. Like Windows, Ubuntu can be installed from a USB flash drive and most of the people opting this method because of the lack of CD DVD ROM in the modern notebooks and computers. Moreover, handling USB drive is much convenient than CD-ROMs. Here in this step by step tutorial, we will show, how to install Ubuntu Linux from a USB memory stick. The USB memory stick sometimes also called Pen drive, USB flash drive or USB mass storage device.

Prerequisites

  • A USB drive of at least 4 GB to install Ubuntu. Although its depend upon, what type of Linux OS installation you want and the size of the USB drive is depends on that.
  • The USB Memory stick should be blank and completely formatted
  • Downloaded Ubuntu Linux ISO image
Step By Step Installation of Ubuntu from a USB Stick on Windows 10
Ubuntu

Step By Step Installation of Ubuntu from a USB Stick on Windows 10

Step 1: First of all download the open-source Linux Ubuntu ISO from the Ubuntu official website. The different flavours of Ubuntu available are Kubuntu, Lubuntu, Mythbuntu, Ubuntu Kylin, Ubuntu GNOME, Ubuntu Budgie, Ubuntu MATE, Ubuntu Studio and Xubuntu. The installation procedure is the same for all the Ubuntu flavours but in performing this tutorial we use the standard Unity Ubuntu.

Step 2: After downloading the Ubuntu ISO, the second step is to get the Ubuntu bootable USB-creator. There are a couple of good free and open-source software options are available such as Linux Live USB Creator, Unetbootin, Rufus and Win32 Disk Imager. You can use any of them but for the tutorial, we are using the Rufus as an Ubuntu startup disk creator. Link to get the open-source Rufus USB installer.

How To Install Testdisk On Ubuntu Live Usb

Step 3: After downloading the Rufus install and run it.

Setting up the Rufus USB installer

  1. Select the USB drive or stick in which you want to install the Ubuntu.
  2. From a “Create a bootable disk using” option select an ISO image from the drop-down.
  3. Click on the CD-ROM icon to select the downloaded Ubuntu ISO image.
  4. Click on the start button to begin the Ubuntu bootable USB creation process.

Step 4: After hitting the start button, the Rufus start processing the ISO image, it might ask to download two files ldlinux.sys and lidinux.bss. Click on “Yes”.

Don’t Miss: How to Reset Forgotten User Password in Ubuntu 17.04 Using Terminal

Step 5: Hybrid image confirmation… The Rufus detected the Ubuntu ISO images as an ISOHybrid image which means the same image file without any conversion can use for DVD and USB stick without any modification. Leave the pre-selected recommended option as it is and click on OK.

How to use testdisk

Step 6: Next step, the Rufus will ask confirmation to destroy any data, if present in the USB memory stick. Click OK and after that, it will start the creating Ubuntu bootable USB stick or pen drive.

Start the Ubuntu Installation from USB

Step 1: Without removing the USB stick, reboot the computer and change the boot order from bios. Key to getting the boot menu depends on your motherboard model. For example, here we are using the Gigabyte and the F12 is the key to select the boot order. You can google about your motherboard model or you can also find it from the first boot screen of the computer. Normally key need to press is one of the following: F1, F2, Del, Esc, F10, F11, or F12.

Note: If the USB does not appear in the boot menu then you need to enable it from the bios.

Once the boot menu appears, select the pen drive or USB stick which we used to create the Ubuntu bootloader.

Step 2: If everything is fine, you will see the Ubuntu boot screen.

Step 3: To Install the Ubuntu select the option “Install Ubuntu”.

If you want a dual boot configuration of Ubuntu and Windows 10 then at Installation type window, select the first option “Install Ubuntu alongside them“. It will preserve your Windows 7 or Windows 10 OS with all data and give you Operating system selection menu every time you boot the computer. This also applies to other Operating systems using an Ubuntu dual boot environment.

A friend recently asked me to perform a system recovery on her VAIO laptop. The hard disk was split between a C drive for the OS, and a D drive with 200GB of data. I'm a Linux user, so I was like, come on, at least give me a challenge! Have you heard people saying, be careful what you wish for? Well, 30 seconds into the recovery procedure, I got an Error 333 and a restart button. Both partitions had been deleted.

The good news was that before I started the system recovery procedure, I asked her to backup the most important data, but that was just 5GB out of 200GB—the rest was gone. That's a lot of lost data! Thankfully, I was able to use a cool program called TestDisk to fully recover everything.

In this tutorial, I will show you how to create a bootable GParted Live USB drive, and use TestDisk to recover your partitions. Note that if you are still able to boot normally to your system, and just want to recover your files without creating a bootable disk, you might also want to have a look at Recover Deleted Files Using the Free Open Source Tool PhotoRec.

Create a GParted Live USB drive

Start by downloading the GParted Live ISO. Choose the latest stable release for your computer architecture (if you are not sure choose i686). There are multiple methods you can use to create a bootable USB drive from the ISO file—I prefer UNetbootin.

Windows

If you are on Windows, just download UNetbootin.

Linux

If you are on Ubuntu, ensure you have the latest version by adding the Ubuntu PPA repository for UNetbootin and install it.

$ sudo add-apt-repository ppa:gezakovacs/ppa
$ sudo apt-get update
$ sudo apt-get install unetbootin

For other distributions, you can find binaries and sources at the official UNetbootin page.

Create bootable USB

After installing, plug-in an empty USB drive and run UNetbootin. Select the GParted ISO you have just downloaded and the drive you wish to use for GParted Live, and then click OK.

How To Install Testdisk On Ubuntu Live Usb

Boot into the GParted Live USB

Restart your computer and boot from the USB drive you have created. While GParted is booting it will ask you some questions, e.g. keyboard layout, don't try to be a hero, just accept the defaults by pressing Enter. When the window manager loads, the first open window is the GParted Partition Editor.

Select your disk drive using the drop-down menu on the top-right. I have selected /dev/sdc, which as you can see doesn't have any valid partitions on it, since I accidentally deleted them for this tutorial.

Open the terminal window, by double clicking on the terminal icon on the desktop, and run TestDisk as root:

$ sudo -s
$ testdisk

Follow the steps below:

  1. Select No Log.

  2. Select the disk drive you want to recover, e.g. /dev/sdc.

  3. Select your partition table type. Usually it's Intel.

  4. Select Analyse and Quick Search.

  5. If you get asked whether your partition was created under Vista, answer yes/no.

  6. Your drive will be analysed and you will see a list of all found partitions. If you know what you are doing, you can edit the list, otherwise just press Enter.

  7. On the next screen you have the option to either perform a second Deeper Search, or Write the current partition table to disk. If the quick search was successful, choose Write.

Quit TestDisk, and rescan your devices in the GParted Partition Editor by clicking GPartedRefresh Devices. Select your device from the top-right drop-down menu.

If your deleted partitions were successfully recovered, as in the above screenshot, you can reboot your computer by double clicking on the Exit button.

How To Use Testdisk

You can learn more about TestDisk by looking at the official documentation.