Ok, so, idk what happened, was trying to install windows and all of a sudden my swap disappeared for linux and when i boot, it takes me into grub rescue.
And, i went into ubuntu live and gparted and it shows my efi partition is still there and root but the root file system is unknown and the name got changed to EFI system partition. It would be easier to show a picture probably but phone isnt charged so gna need a min
#i deleted my swap
1 messages · Page 1 of 1 (latest)
can you mount your root partition?
Lemme check
Nope
Do you think theres any chance id be able to even fix my system or at least get my data back?
Ooh. Phones charged, i can take a pic
I know that’s my root bc there’s no other partition that had exactly that amount of storage
And it was the first partition
It has boot and esp flag now fsr
@sharp crane any idea with these photos?
I’m worried that all my data might be gone 😭
Weird
it was a swap partition yes?
you can recover the lost swap partition via recreating the partition, or using a swapfile instead
I wonder if windows tried turning the first partition into an esp and fucked sone stuff up
But my root partition is now a esp efi thing
consider if ur really need swap aswell
what filesystem was root?
The first one
Every system should have some kind of swap
oh, welp rip
Does windows have?
so you also lost your root?
Windows uses a pagefile
fedora doesn’t use disk swap if u have enough ram by default
Well, idk, I think so bc it’s still there but as a efi system partition?
Probably still uses a swapfile
Will I be able to get my data back or is it gone
yeah but what filesystem was on that partition? ext4? xfs? btrfs? an lvm vg?
Ext4
i don’t think so, it uses zram swap tho
Pretty sure the bot has a hot command for swap
That’s still a swap
Tl;dr it’s a requirement for having decent memory management that doesn’t cause disk thrashing or other issues
out of topic but what's the difference between zram and swap
Partition or file or whatever, it’s still a good idea
I’m not able to mount the partition to check what’s inside, it says unable to detect file system for both
oh yeah well in that case yeah everything should use swap i thought u meant disk swap
Ah
Nah, if my data’s gone tho, like, idk what I’m gna do
zram swap basically compresses data in ram that would usually be swapped to disk to save ram space that way without writing it to disk
a combination actually lol
oooh thx
yeah, zram basically creates a compressed ram disk, most common use is mounting this compressed ram disk as swap
Is there anything I could do? I don’t even mind resetting as long as my root partition still has all my data
windows might have fucked with it coz it’s the first partition on ur disk which would usually be efi
will recovery software work to recover data ?
if you wanna use zram as swap, i'd recommend zram-generator
perhaps but maybe not
Stressed af
u should research more on utube , stackexchange
maybe u willl find a way dont loose easily
if u can find a way to essentially remind that partition of what filesystem it should be then ur data is likely still on there
if ur gonna dualboot windows and linux always install windows first coz linux is smart to avoid windows windows will just bulldoze anything in its way (usually ur efi partition :) )
Nah, f that, from now, I ain’t letting windows anywhere near Linux, gotta have its own drive
and if u have the option install windows on a completely separate disk to further reduce the chance of windows breaking things
Yea that’s my thought
The win installer devs made some stupid assumptions on drive layout rather than probing the disk, creating this mess
Data rescue might be a separate package
Oh
Could be a gui frontend for some recovery software that’s hidden if not on the system
Kde does this a lot, not sure about gnome stuff
this works cause there's this thing called quick formatting, quick formatting doesn't actually erase data, it just removes the partition table for that data, so it can't be identified normally
i should get a job at microsoft it seems like i can just write the shittest code on planet earth and get payed and there’s no accountability since no one else can see the source code i wrote lmao
free money
Ooh
but can be identified via special tools
I swr, it’s like they just release anything
All the updates r shit
frfr
It’s probably because management is laser focused on providing new shiny stuff on the user end and putting a lot of crunch on under the hood development
The devs aren’t idiots, they’re just not given the time to write something of decent quality and stability for these parts of the software
windows memory on disk consists of
- hiberfile.sys
- pagefile.sys
- swapfile.sys
it has them all lmao
To management, the installer is going to be something the user interacts with for only an hour or so, and the chances of it being a new system are fairly high, so they save money by putting very little time into the installer
Is there some sort of software alternative I could get on my Ubuntu live usb?
check for gparted's optional dependencies
I’ve got it but, the attempt data rescue option doesn’t show
and install those optional dependencies
Oh?
can't help here, forgor how apt works
ah yes new shiny stuff like moving the taskbar buttons to the centre and removing most customisation options lmfao, i think they’re more focused on how to make the most money from the least work and that is prbly more and more data overcollection and advertising in the os so that’s what the main development goes towards, i find it so funny when ppl are like but xyz can’t be good without a profit incentive despite the fact that a profit incentive can make things much much worse if taken too far
I mean the development effort is going somewhere
Anyone know how apt works? lol
yeah i’m sure they’re extremely overqualified
apt install package
My guess is a lot of commercial software gets the most attention, along with the big stuff™️ like directx and azure
Oh, the package names, what are the optional packages I need to get so that I can attempt data rescue?
Windows barely makes them money these days since a lot of people just upgrade for free, don’t activate, find a sketchy discounted license, or buy from oems that get a discount on licenses
u would have to ask @quiet lion
The services on top of windows are what keep them going
I
yesyes ofc
This is kinda off topic from the ticket now tho
The arch page lists the deps
Back
i think it's gpart?
Ah, kk
Needs to run apt update
oh yeah, sync first
The package exists but this error usually means apt needs to refresh
https://packages.ubuntu.com/jammy/gpart yeah, it exists in ubuntu repo
Ooh
Sry was gone to pray
I’ll try that rn
Oh, I’m so dumb
I didn’t even connect to Wi-Fi lol
Guh
Still same error
maybe apt update first - potentially the package has been removed from the repos wouldn’t put it past ubuntu it’s a dogshit distro
Ah
?
you already did apt update
Idek what that means, I only used Ubuntu for like 3 months before switching to arch
So i barely understand it
Ima go for a bit and have a break, ping me if any replies pls
Probably
I shall try that then lol
Nvm, doesn’t have the attempt data option, you’d think that it’d have all the dependency’s since its literally an iso just for gparted
Guys
I feel so embarrassed, I just checked online and then checked the screenshot again
I thought I was supposed to right click on the actual partition and the option would be there, I didn’t check “device” 😭 sryyy
dw
I’m trying it rn, it’s searching for file systems on the partition
bruh 💀
so you weren't looking at the menu bar
No-
when my screenshot literally shows it yesterday 🗿
Idk where I got right clicking on the partition from
Anyways, apparently this takes a long time, if I do get my root partition back, I’d have to reinstall arch again I’d guess and then move my data back?
while this tries to recover partitions
if you want to recover files instead, there's photorec, which is included in the testdisk package
Ok, I think ima try testdisk. Apparently it takes like days to complete
Gparted takes like days to complete*
It isn’t
This is so annoying :/
Maybe I’m just not able to get it on the live usb and I have to install Ubuntu?
I thought of an idea
Maybe I should install arch all over again (tbh, I cba but I’m gna have to anyways) and then from arch use test disk and retrieve all my data hopefully
well, you risk overwriting the data you want to retrieve the more you write to the disk
oh
i installed arch-
now im going to attempt to get the data back
im so anxious
so far it says 0 files found, i havent got much faith tbh
but im still badly hoping it works
aw
it didnt work
man
im so sad
i had so much and now its all gone
i even had a minecraft world i played a lot on there with one of my friends, almost everyday and now thats gone
cant believe it
😭