There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Is there a data recovery tool for Linux to recover a Minecraft world?

So I uninstalled Zenless Zone Zero yesterday via Wine, and it seems it just deleted every game, KDE configs, etc.

These weren’t really an issue for me, but my old worlds have gone to waste too. Unfortunately, my drive is on ext4, and I haven’t used Timeshift cause low storage space. Is there any chance for me to recover back some data?

possiblylinux127 ,

Use bottles as it has sandboxing. Alternatively you could manually setup bubblewrap with a wine environment.

PrivateNoob OP ,

Oh I haven’t heard of bubblewrap before. What’s that?

boredsquirrel , (edited )
@boredsquirrel@slrpnk.net avatar

You know Minecraft works natively on Linux? Except if you run the more optimized, faster “Bedrock” version, which for very important Microsoft reasons is Windows-only. it is not

Only my stuff so far.

For recovery you can use testdisk. Shutdown the PC as fast as possible. Dont open programs! Dont play games!

On SSDs the data will quickly be overwritten otherwise.

Make a Clonezilla live usb and use that for recovery

dukatos ,

Bedrock also runs under Linux. At least, it did 6 months ago, when I tried…

boredsquirrel ,
@boredsquirrel@slrpnk.net avatar

Interesting didnt know that.

Wait, or is this the mobile version which runs through an Android container? Emulator?

dukatos ,

Yes

boredsquirrel ,
@boredsquirrel@slrpnk.net avatar

How is it today? I find it crazy that not even the most rewarding game of the world couldnt be fully rewritten in a faster language.

independantiste ,
@independantiste@sh.itjust.works avatar

It semi does, iirc it’s a port of the Android version, which probably works because android uses a Linux kernel

palordrolap ,

It was (and may still be) possible to make an older version of Pocket Edition run on Linux through unofficial shenanigans, but the official launcher says "Not playable on this device".

minecraft.net also explicitly says: "Minecraft: Java Edition runs on Windows, Mac, and Linux; Minecraft: Bedrock Edition runs on Windows. Deluxe Collection content only runs on Minecraft: Bedrock Edition on Windows."

Other unofficial shenanigans that may or may not work include but are not limited to: Running under a VM, running under something like Wine.

So, yes, technically it runs, but Microsoft are pretty clear that it's not supposed to.

PrivateNoob OP ,

Well I actually use native Minecraft too, if the Prism Launcher actually creates native instances by default. Luckily I have realised that there is probably a saved version of my world on a cloud storage, but I will def try testdisk out! Thank you.

NeoNachtwaechter ,

yesterday

Have you shut down the disk immediately then?

PrivateNoob OP ,

Yeah unfortunately, but atleast I have found my minecraft world on a cloud storage, so day have been saved sorta. I just only need to reinstall some games, and configs.

lurch ,

This won’t help you right now, but in the future: If you don’t have time to setup some super good backup, just get a cheap TB USB stick and sudo tar --one-file-system your partition root directories onto it.

tar has a test option, so you can detect if the USB stick is maybe broken.

This stores everything but some boot stuff, which can usually be restored with booting some live medium (like the install medium you used) and going into a chroot. Almost all live mediums have tar, chroot and can mount your USB stick, so you can restore your stuff.

Despite some people being afraid the USB may lose the data, it takes several years for it to do so. Enough for home PC backups.

PrivateNoob OP ,

Hmm this sounds like a great idea, although I was already planning to get a new nvme SSD, but good to know options like these exists.

If it’s not a cheap knock off USB stick, then yea it’s probably more than enough.

angel ,
PrivateNoob OP ,

The AUR wiki never fails to amaze.

SnowBlind2005 ,
@SnowBlind2005@vivaldi.net avatar

@PrivateNoob

testdisk and photorec.

I did a similar boneheaded move by rm -rfing my Minecraft server directory.

Depending on how much free space is on the drive and how much data as been over written will depend on how much of the world files you recover. High probability it's gone.

The thing that saved my server world files was I had Dynmap plugin installed. Dynmap is a world mapping plugin that creates hundreds of thousands of png/jpg files. This caused a delay in the rm command and that made me realize what was happening and stop the process. The damage was already done though.

PrivateNoob OP ,

Oh roger that I’m gonna try out these then. Well if I’m right, then I might have saved a version of my world on a cloud storage, but I have never needed to do data recovery on Linux yet.

Kerb ,
@Kerb@discuss.tchncs.de avatar

is it not in the trashbin?

i have used photorec to resore deleted files on several occasions.
but i dont think there is a filetype for minecraft worlds available

PrivateNoob OP ,

Well it definitely isn’t in the trashbin, and nowhere in the filesystem since I’ve done a find cmd search on all the directories, and also checked the .minecraft folder’s saves, but thank you for the idea tho!

Kerb ,
@Kerb@discuss.tchncs.de avatar

hold on,
did it only delete the programms gone too?

open your home folder and set the option to show hidden files.
if there is a .minecraft folder check the saves folder inside that.

FQQD ,
@FQQD@lemmy.ohaa.xyz avatar

I’ve heard of “Disk Driller” but I have no idea how sletchy it is or if it’d work

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines