Is my USB drive ruined after unplugging it during shutdown?

0
1
Asked By CuriousCoder42 On

I was having issues with my systemd freezing during shutdown, and I made the mistake of unplugging my USB drive. Now, the data on it seems corrupted, and any attempts to access it using commands like 'parted' or 'dd' just freeze. My system logs are showing messages indicating that the task is hanging and that it's tainted. Does anyone know if there's a way to fix this, or is the drive dead for good? It still shows up with 'lsblk' and is recognized when I plug it in and out.

2 Answers

Answered By TechTroubleshooter99 On

Unplugging a drive while the OS is running can really mess things up. Linux usually buffers writes, but disconnecting it mid-operation can lead to data corruption. If you're booting from that drive, you might be in a bad spot. If you're on a different drive, let us know, as that could indicate a different issue. Good luck!

DataDetective88 -

Yeah, I had a similar experience once and ended up with a dead controller on my USB stick after trying to recover data. It doesn't look good.

Answered By HelpfulHacker88 On

Remember to share your distro and hardware details in the future! It helps a lot when troubleshooting. But unfortunately, when a USB drive gets yanked during operation, it's often hard to recover it unless you have specialized tools or backups.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.