![]() ![]() It should auto-select the correct partition type, but if it doesn’t, make sure you select the correct type. Once you’ve selected the right partition, you will be asked to select the partition type. The next screen asks you to select the disk drive/partition: Test Disk Partition Select 2. You can select create and just move ahead with the defaults. If its the first time you’re running this utility, it will give you an option to create a log file on the welcome screen. You can select the appropriate disk drive that you want to recover files on. In your terminal, simply enter the command testdisk to run the utility and you’ll be greeted with the below prompt. Starting TestDisk and Configuring Where it Runs But if you’re unsure, enter one of the commands: stat -f Įither of the commands above will give you the filesystem type information. ![]() You might not need to check for the partition type as the above list covers almost all the major partition types. Testdisk works with the following partition types: Partition Types Testdisk Works With Now that you have the testdisk utility installed, it’s time to use it to recover our deleted files or partitions. Install TestDisk on Fedora sudo dnf install testdisk Install TestDisk on Arch Linux sudo pacman -S testdisk To know more about the EPEL repository, visit the official page. The EPEL repository is an additional package repository that provides easy access to install packages for commonly used software. You need to also enable/install the EPEL repository. Install TestDisk on Red Hat and CentOS 8 yum install Install TestDisk on Red Hat and CentOS 7 yum install epel-release We’re using the apt package manager instead of the apt-get since that’s the new package manager for Ubuntu/Debian. ![]() Install TestDisk on Ubuntu/Debian sudo apt update Here, I’ve listed down the distro-specific commands to install testdisk on Linux. The testdisk package is available on all the major Linux distributions and can be easily downloaded with the use of the default package manager. ![]() The only thing that will be different is the package manager used for installation. In this tutorial, I’ll be using an Ubuntu server to work with, but even if you are on any other distribution, you can follow the same steps. Now, to the command line drag the file testdisk_win.Ever stuck in a situation where you accidentally deleted a file? In this tutorial, we’ll go over how to install TestDisk in Linux and recover deleted files. Now run the command line Windows, you can do this by pressing Win+x and selecting " Windows PowerShell" from the menu that opens. Now I want to demonstrate one of its features: extracting data from ext2/ext3/ext4 file system using Windows.ĭownload the version for Windows, unpack the archive. The program I am talking about is TestDisk. The program that we will use is portable, free and it is open source. In this case, we do not need to install any drivers. In this little tutorial I want to show how you can view disks (including flash drives) with almost any file system, including Linux disks with ext2/ext3/ext4. Googling gave me a hint that I need to install the ext2/ext3/ext4 file system driver. Windows "pleased me" with a message that "To use a disk in a drive, first format it": Once I needed to get access to the Linux disk (ext2/ext3/ext4 file system) from Windows operating system and copy some files from Linux disk to Windows-based computer. ![]()
0 Comments
Leave a Reply. |