10
submitted 5 hours ago by dullbananas@lemmy.ca to c/linux@lemmy.ml

top 4 comments
sorted by: hot top controversial new old
[-] wewbull@feddit.uk 3 points 1 hour ago

Probably depends a lot on what options you had enabled on BTRFS. Metadata (i.e. what files are stored where) is normally replicated so you may be able to rebuild the information.

Step 1 is always to copy the filesystem somewhere else, and then work on the copy. That way, if you screw up, you can always make a new copy and start over. Don't write anything to the drive you're trying to fix. Always work on the copy. In fact, once you've made the copy, disconnect the original.

[-] lurch@sh.itjust.works 2 points 4 hours ago

You could image the whole drive/partition, then restore from your backup and try to recover some new files not yet in the backup from the image using photorec or so.

[-] just_another_person@lemmy.world 4 points 5 hours ago

Not enough info, but I'm guessing no. Looks like you started zeroing out the drive and cancelled realizing your mistake? If you had just deleted the partition, you could fix that with ease, but zeroing is pretty much a guaranteed no.

You can try and run some data recovery tools to find some specific files, but I'm pretty sure it's just wasted time.

[-] Deckweiss@lemmy.world 2 points 5 hours ago* (last edited 5 hours ago)

If this is a HDD you could recover it.

If SSD - no.

this post was submitted on 18 Oct 2024
10 points (91.7% liked)

Linux

47760 readers
1084 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS