#Need help with partitioning a disk

158 messages · Page 1 of 1 (latest)

raven heart
#

i have a hard drive with two partitions. one i have just recently made into btrfs with mkfs.btrfs to install arch on it later. and the other is ntfs (i think). the windows one is not showing up in linux but opens fine in windows. i have data that i cant backup. i wanted to change the size of both the partitions and be able to properly mount both the partitions as well. i ran testdisk and this is the result of the analysis https://paste.rs/OZDFy.txt i asked a llm but i dont trust it with my data and stopped. plz help

cedar ferry
raven heart
#

i have already downloaded ntfs-3g

#

the hard drive is sda

#

also gemini said somthing about partition table corruption

#

also currently running testdrive depscan

raven heart
cedar ferry
#

did you do antyhing that might have caused a corruption?

#

or is the drive failing

raven heart
#

It is an old Toshiba drive

#

Prob like 10 yrs

raven heart
cedar ferry
#

okay uhh

#

do you have another disk

raven heart
#

The drive is nay failing as I just copied lik 130 gb

cedar ferry
#

the best move rn is to get the data out asap because it can just drop dead at any time

raven heart
#

I gotta log in to his account

#

Prob gonna take some time

cedar ferry
#

uploading to network would take a very long time

raven heart
#

That's the prob

#

Prob gonna take overnight

#

Terrible network as welll

cedar ferry
#

yeah its not gonna take only overnight

#

last time i cloned a 256gb disk over LAN to my desktop

#

and that took overnight

raven heart
#

What was your speed?

cedar ferry
#

dont remember

#

but its lan so shoudnt be slow

raven heart
#

I got terrible speed

cedar ferry
#

likely its gonna literally take forever for you so

raven heart
#

Like max 4MB

cedar ferry
#

go get a physical disk

raven heart
#

Poor af

#

Plus minor at parents house

#

I remember another drive in the house

#

Gonna check that

#

That's probably my best bet

cedar ferry
#

we can compress the data

raven heart
#

All there is

#

Is like a copy of gowr

cedar ferry
#

partitions compresses pretty well actually

#

my 500gb windows ntfs partition compresseed down to 200ish gb

#

but still just to be safe ideally the disk should be at least 70% of the source disk

raven heart
#

Just a zip would be good? Or something else?

raven heart
cedar ferry
#

so zstd

#

zip is not streamable

raven heart
#

got it

#

also found two hard disks but one of them is weird sounds when connecting and is not having a grest conection. the other seems fine.

raven heart
#

i dont have access to the data from linux

cedar ferry
#

actually

#

no you cannot do it from windows or your linux installation

#

you need to do it from a live usb

#

because the partitions needs to be not in use

#

we are cloning your entire disk

raven heart
#

i think since i dont need to upload via net, i think the uncompressed data getting transferred is fine in terms of time

#

its like 9 pm anyways

cedar ferry
#

it will still save a lot of time

#

but sure you do you

#

though if the destination disk is any smaller you'll need to compress

raven heart
#

i wake up at like 12 anyway

raven heart
#

my files are just 250 ish GB

cedar ferry
#

how large is the entire source disk?

raven heart
#

like the one with the data?

#

the partition is like 450 GB

#

but the contents r just 250 ish

cedar ferry
#

so there is now two ways to do it

#

first one is the complicated way

#

which is to tar the entire root partition with certain settings so it preserves all the metadata

raven heart
cedar ferry
#

that saves space

#

second is to just clone the raw partition

#

its simpler and impossible to mess up

#

butu it will take the whole 450gb

raven heart
#

i think the second way is fine

#

even with the space, i just need to have it be on there for like a day at max

cedar ferry
#

checks disk health

raven heart
#

what may that be?

cedar ferry
#

.aw SMART

lime sierraBOT
raven heart
#

Unavailable - device lacks SMART capability.

#

this is for the extternal hdd

cedar ferry
#

oh well doesnt hurt to try

raven heart
#

both the drives are like at least 10 years or more

raven heart
#

cant access from linux

#

just copy paste from windows?

cedar ferry
raven heart
#

It's perfectly openable

#

How do I check that tho?

cedar ferry
#

if that doesnt work you can also try the badblocks command to scan for bad sectors

raven heart
#

I'm on windows now

#

Lemme check

#

which diskdrive get status : ok

raven heart
#

So should I just start with the copying?

cedar ferry
raven heart
#

Def not

#

Shouldn't simply copy pasting just work?

#

I don't care about the time

cedar ferry
#

which will be a problem on linux if you wants to keep your installation

#

the best way is to go to linnux

raven heart
#

Ohh

cedar ferry
#

and copy the raw device file

#

sorry

#

dont go to linux

#

go to a linux live usb

raven heart
#

Windows works fine in terms of metadata unless I'm mistaken about what metadat is being talked about here

#

It's also copying pretty fast and I overestimated the file size

cedar ferry
#

owning user & group

raven heart
#

That is the one thing that I did see change

raven heart
cedar ferry
#

for user files this is not too much of a problem

#

because you can jjust chown -R later

#

but for system files this will break everything

raven heart
#

If I copy everything to the newly formatted partition that I can access from linux and then go from there, will it work?

raven heart
#

Also it seems to carry ownership

cedar ferry
#

yeah if you are using a posix compatible filesystem it'll work

#

or you can just tar everything and do it that way

raven heart
#

Pardon me if I am wrong

#

I need to compress everything to .tar.gz and then copy it to the external drive and that way it keeps the ownership?

raven heart
#

Finally ran this command sudo tar -cvpf /run/media/shivyneko/externaldrive/save.tar -C /run/media/shivyneko/insertrandomuuidhere/ .

#

Also had an issue where copying for a while crashed windows manager and had to force reboot multiple times. Are these ever signs of failing drive

cedar ferry
#

you need to add a bunch of flags to tar so that it preserves metadata

cedar ferry
#

you are not supposed do it on your linux installation

cedar ferry
#

you can just compress while directly streaming it to the destination drive

raven heart
#

i suppose this is no good Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)

cedar ferry
#

this is what most system files are supposed to look like i think

raven heart
#

the clanker told me to run this sudo chown -R shivyneko:users

raven heart
cedar ferry
#

thats the default perm setting for new files

raven heart
#

k then

#

think ill start reformatting the disk then

#

cfdisk should be good enough and its simple

raven heart