#Big problem I may have lost all my stuff because i'm dumb

1 messages · Page 1 of 1 (latest)

calm bough
#

When I had /dev/sda3 mounted to Desktop/ssd before i resintalled, this is how the file structure looked like this:
home -> giorkos -> {world_backups, old -> {giorkos_old, panas_new}}
Now it looks like this:

#

Where is old?

#

All my important things were in old

#

I definitely haven't formatted the drive because world_backups is still here:

edgy pine
#

find /home -type d -name "old"

#

but if you have everything mounted to the same place then the directory structure should be the same

calm bough
calm bough
#

ssd was mounted on Desktop/ssd

edgy pine
#

where is it mounted now

calm bough
#

Desktop/ssd

#

but i've reinstalled arch

#

on the other drive

#

is it possible that the data wasn't being saved on dev/sda3?

edgy pine
#

it is possible that you had overlayed mounts

calm bough
#

I had this command on startup

#

mount /dev/sda3 /home/giorkos/Desktop/ssd

edgy pine
#

where there was stuff inside the folder that you were mouting the drive to

#

that can make it so that stuff gets saved to the other drive

calm bough
#

wait

#

ARE YOU FR

#

no 😢

edgy pine
#

yes it's possible

calm bough
#

this was like this for ages

#

I lost so much stuff

#

how does that even work? why is it allowed?

#

so you're telling me that the stuff was actually being saved in /home/giorkos/Desktop/ssd/old on the drive that i just formatted?

edgy pine
#

i believe so

calm bough
#

this is killing me

edgy pine
#

that's what it sounds like anyway

calm bough
#

it was doing this for a whole year 😢

#

and i never noticed

#

i just thought i was putting stuff on my other drive

edgy pine
#

it may be possible to use recovery tools to get some of your stuff back, if you didn't write over the whole drive and just messed with the partition table

calm bough
#

I think i wrote over everything

#

I used auto partition

#

with archfi

#

and then again with archinstall

#

you know what's weird?

#

I saw this happen while i was in the arch iso

#

And i thought it was just how it was displayed in the arch iso

#

And i went back to the linux install to check

#

And i saw everything there

#

So i was like ok

#

let's continue

edgy pine
#

i'm not sure how archfi/archiso handle it but i would imagine that they just create new partitions. there's not much reason to erase a drive unless it's for security reasons

#

it can take a long time and is quite bad for SSDs

calm bough
#

hugh

#

what kind of recovery tools are there?

#

are they difficult to use?

edgy pine
#

not sure

#

and yeah they probably take a bit of expertise to use

calm bough
#

wow

#

This has happened to me so many times

edgy pine
#

but basically they can search for the file system still intact on the drive in space that is now considered unused

calm bough
#

I'm so tired of losing years worth of progress

#

because of one DUMB COMMAND

edgy pine
#

sorry to hear that

#

yeah you should always make sure that folders you're mounting stuff to are empty

calm bough
#

How is it possible that something so stupid exists? For what reason would anyone want double mounted drives

edgy pine
#

unless you know what you are doing

#

idk

#

you can also mount multiple drives to the same place

calm bough
#

I'm pretty sure the ssd folder was empty when i mounted it for the first time

#

something probably f'ed up for no reason

#

Wait

#

I have a question

#

How is it possible that world_backups is still here?

#

@edgy pine

#

how would it mount one folder on the nvme and another on the ssd

#

I'm pretty sure old was created after the drive was mounted

#

I created it today

edgy pine
#

i think if the drive wasn't mounted and you added stuff to Desktop/ssd then it would stay on the main partition where /home is, but if you created Desktop/ssd/world_backups while it was mounted then it would continue to exist on the secondary drive

calm bough
#

so how did ls show me both world_backups and old at the same time?

edgy pine
#

if i have nothing mounted to /mnt and do mkdir /mnt/local_dir
then i mount /dev/sdb1 /mnt and sdb1 has other_dir
then ls /mnt would show me local_dir and other_dir

calm bough
#

so basically this whole time it just wasn't mounting anything?

edgy pine
#

i think it probably was, but old was on the main partition?

calm bough
#

that's really fucking stupid

#

there was no indication that this was happening

#

I just did cd ssd

#

mkdir old

edgy pine
#

yeah it doesn't warn you

calm bough
#

that should be on the other drive

#

how tf is it so dumb as to make it on the same drive while dev/sda3 is mounted on Desktop/ssd

#

how would I even possibly do it correctly?

#

mkdir Desktop/ssd/dev/sda3/old?

edgy pine
#

if the drive is mounted and you make a new dir in the mountpoint then the dir should go on the drive

calm bough
#

the mountpoint was ssd

flat prawn
#

is opc anything?

calm bough
#

I still have the command

#

It's empty

#

I've never seen it before in my life

#

opc

calm bough
edgy pine
#

stuff like this is why i have hard drives in my pc that hold nothing but hourly backups of my main SSD

flat prawn
#

in a hidden file maybe? do ls -a

edgy pine
#

the find command earlier would've found it

flat prawn
#

well you can always try testdisk or something, zips especially will be recoverable with that

edgy pine
#

if you haven't written a lot of data to the new FS since the install then i bet a lot can be recovered

#

yeah