VOOZH about

URL: https://thenewstack.io/linux-recover-files-from-a-machine-that-wont-boot/

⇱ Linux: Recover Files From a Machine That Won't Boot - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-09-29 06:00:10
Linux: Recover Files From a Machine That Won't Boot
tutorial,
Hardware / Linux / Storage

Linux: Recover Files From a Machine That Won’t Boot

There are tons of software out there that claim to be able to recover your data from a dying drive or but why take a chance on purchasing something unproven? Here are a few options that don't cost anything.
Sep 29th, 2024 6:00am by Jack Wallen
👁 Featued image for: Linux: Recover Files From a Machine That Won’t Boot

Let me set the stage for you.

You have a server or desktop that’s been working like a champ for years but all of a sudden it won’t boot.

Gasp.

To make matters worse, there are files on the internal drive that are of absolute importance. Without those files, you could wind up in a real pickle.

No matter what you do, the machine won’t start up.

What do you do?

You turn to Linux.

Sure, there are tons of software out there that claim to be able to recover your data from a dying drive or machine that won’t boot but why take a chance on purchasing something unproven when you have free access to everything you need… and you know works.

Again, that something is Linux.

But how do you pull off such a feat?

It’s much easier than you think. There are, however, a few requirements.

What You’ll Need

How this works depends on your situation. I’m going to assume the machine in question will not boot but you assume the drive is still functional. If the drive is no longer functioning, the process can get a bit trickier (and could require sending it off to a data recovery specialist).

To do this, you’ll need the means to connect the drive to another machine, a flash drive that can boot Linux, and either a second flash drive or another external drive to house the recovered files.

As far as the means to connect the drive, it can be either a full enclosure or just a cable. Either way, you need to be able to remove the drive from the dying machine and connect it to another machine. I will also show you a shortcut, in case the reason the machine will not boot is a broken OS.

Are you ready for this?

Without Removing the Drive

Okay, let’s say you think the reason the machine won’t boot is because of a corrupted operating system. This can happen for several reasons, such as a failed Windows upgrade or (worse) a hacker.

Either way, let’s assume it’s all about the OS. That being the case, here’s what you need to do:

  1. Install Unetbootin on another machine.
  2. Open the application.
  3. Insert a flash drive.
  4. Select the distribution you want to download and install (I’d recommend Ubuntu).
  5. Select the flash drive to house the bootable Linux OS.
  6. Click OK (Figure 1).
👁 Unetbootin screenshot.

Figure 1: The Unetbootin main window is very user-friendly.

Once the bootable drive has been created, remove it from the machine and plug it into the machine that won’t boot. Start the machine and make sure to select the USB drive as the primary boot device (how this is done will depend on your machine and BIOS).

If the machine still refuses to boot, you’ll need to skip to the next section. If the machine does boot to Linux, make sure to select “Try Linux” and not “Install.” You want to boot to the live version of the OS, as that will not make any changes to the drive housing the files you want to recover.

Once you’ve booted into the live Linux instance, plug in the second flash (or external) drive. From the desktop, open the file manager, where you should see all of the drives listed. Locate the one housing the files you need to recover and then navigate to the folder housing the files. Copy those files and then paste them into the other drive you’ve attached. Continue doing this until you’ve recovered all of the files from the original drive.

After doing this, you can shut down the machine and move the files to a machine that is currently running.

With Removing the Drive

This process is very similar to that above, the difference being that you have to remove the drive from the machine that won’t boot and plug it into a machine that will. Once you’ve done that, if your OS detects and mounts the drive, you can simply copy the files from the connected drive to the internal drive and be done with it.

However, if the OS doesn’t detect the drive, your best bet is to create a bootable Linux flash drive, boot the system into a live instance, and go through the same process outlined above. The good news is that this will not alter the OS or any data on your internal drive. The good thing about this method is that you shouldn’t have to copy or move the files from the drive from the non-booting machine to an external drive.

Because Linux should recognize both the external and internal drives, you can simply boot into Linux, open the file manager, navigate to the files to be recovered, and move them to a folder located on the internal drive.

Once you’ve finished recovering the files, you can reboot the machine, remove the flash drive, and boot back into your OS, with the recovered files now accessible.

I’ve used both of the above methods to recover files from machines that won’t boot and have always had success. As I said, the only complication you could run into is if the source drive is dying and not even Linux can access it.

Good luck!

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.