#I broke my linux while playing with gparted and storage pls help

459 messages · Page 1 of 1 (latest)

copper cradle
#

i was trying to get the linux part of my ssd have more storage i formated a volume made user the owner of all volumes (i did all those using the right click in the storage app (i have gnome )) i MIGHT have clicked other buttonst that i didnt remmember and at first i wasnt able to acces most storage drives so i restarted but now i cant even launch linux 😦 those are the frames that i captured i also tried to mess with the recovery tool but it didnt work pls help 😦

tacit wyvern
#

I hope u did NOT change the owner of the OS partition

#

the most sanest way to fix this is boot the live USB, and make a new installation

#

if you DIDNT change the owner of the OS partition, AND you have a timeshift snapshot, you may restore that snapshot using timeshift from a live boot

copper cradle
#

i dont hvae a snapshot

#

i wont be able to recover my themes and config addont etc when i reinstall no?

tacit wyvern
#

you can probably mess around to save the configs, but its tedious

#

lesson:

  • dont mess around without accurate good guidance or prior deep knowledge
  • have at least one full timeshift snapshot containing system AND hidden home folders in it
  • have personal data backed up additionally on a totally separate usually offline drive, like usb
copper cradle
tacit wyvern
#

🤷‍♂️

#

~/.themes ~/.icons ~/.config ~/.cinnamon

#

boot live n check if root is still owner of the main folders of / in the ssd

copper cradle
#

understood but will i be able to acces them at all after i messed around

#

my whole drive disappeared in windwos

tacit wyvern
#

ofc, u can browse data from live boot of mint. windows cant see linux

copper cradle
copper cradle
tacit wyvern
#

ok

copper cradle
#

its saying a q00gb volume is owned by root

#

and the others are owned by linux live enviorment

tacit wyvern
#

show a pic of the DISKS app, on all drives

#

multiple pics

copper cradle
#

ok

tacit wyvern
#

not counting the loop device, nor usb stick

copper cradle
tacit wyvern
#

please take pics straight-on, in landscape, showing the full

#

ty

copper cradle
#

welcome and thanks for bearing with me

tacit wyvern
#

ntfs. next

copper cradle
#

you mean next drive?

tacit wyvern
#

ntfs. next

copper cradle
#

this is the disk linux was originaly on

#

(i think)

#

the 88gb is the one i ttied to ree up and the 51gb one is the linux installation

tacit wyvern
#

what I would do is copy off anything u need to keep, data files. from the partitions of this drive, then redo it fresh. and i mean fresh

copper cradle
#

ok i understand

tacit wyvern
#

after they're backed up unplug the windows drive. it is the first pic. n has an EFI partition at start. unplug it. then boot linux live usb. make brand new partition table on the 240 gig ssd. (as GPT) using gparted. and then run the installer, n have it erase n install onto that 240 gig drive

copper cradle
#

unplug as in physacly?

tacit wyvern
#

yes

#

this is to guaran-damn-tee you get a separate efi partition made by the mint installer

copper cradle
tacit wyvern
#

that's after backing up

#

and unplugging the windows boot drive

copper cradle
#

understood bit i cant find the .config folder

tacit wyvern
#

press ctrl-h

#

look in ur old install, in userhome

copper cradle
#

isnt it supposed to be on the 55gb ssd after i enable hidden file

#

i tried

tacit wyvern
#

depends if u made separate home partition or not

copper cradle
#

you know what?

tacit wyvern
#

explore p5 and p6

copper cradle
#

who needs his old files anyway

tacit wyvern
#

mhm

copper cradle
#

imma be a man and do it from 0

#

with timeshift this time

tacit wyvern
#

any other data to keep?

copper cradle
#

nah they are all on windwos

tacit wyvern
#

did u even find ur home/userhome?

copper cradle
#

found usr

#

didnt find home

tacit wyvern
#

that stands for 'universal system resources'

copper cradle
#

🙂

tacit wyvern
#

not 'user*

copper cradle
#

i did find it !

#

here is my old stuff

#

ok im anot a man imma copy them

#

i still cant find config

#

i found the other stuff thiugh

#

nvm

tacit wyvern
# copper cradle nvm

this is the drive u will need to unscrew one screw, and pull from motherboard. nvme.

copper cradle
#

its a m.2 not an nvme

#

bit i dont want to risk harming my pc is it possabile to do it without

#

removing it

#

i did it and im scared

tacit wyvern
#

ok hold up

copper cradle
#

i did it its fine

tacit wyvern
#

u removed the nvme ? (safest option by far)

copper cradle
tacit wyvern
#

then boot live and wipe the 240

copper cradle
#

did that

#

made it a gpt partion

tacit wyvern
#

then why the fk are u doing manual mode?

copper cradle
#

but this appears when i select the ree 240gigs

copper cradle
tacit wyvern
#

i told u use 'erase n install'

#

it wont touch the other

#

as long as u choose

copper cradle
#

it says it will delete the files on it plus 1000 not 10000 i mistyped

#

ok

tacit wyvern
#

so shutdown if ur not sure

#

and unplug the other also

copper cradle
#

if it wont erase it then no need

#

will it ?

tacit wyvern
#

but really it shouldnt. when u do erase and install, the next step is WHICH drive to work on

copper cradle
#

oh yea it did ask me

#

ok thx ill do erasen install

tacit wyvern
#

give it the 240 gig

copper cradle
#

ok

tacit wyvern
copper cradle
#

true

tacit wyvern
copper cradle
#

i was wrong sry

copper cradle
tacit wyvern
#

just make sure u pick the 240 gb drive to erase n install on

copper cradle
#

ok

tacit wyvern
#

it will show final summary anyway before it starts writing to disk

copper cradle
#

it finished installing !

tacit wyvern
#

show now a pic

#

of the disks APP

#

on the 240

copper cradle
tacit wyvern
#

good. u see the flags on the right?

copper cradle
#

yea

tacit wyvern
#

u have now an independent EFI partition to boot exclusively LINUX

copper cradle
#

it says boot,esp

tacit wyvern
#

So, next, do safely shutdown

#

or reboot rather

#

and test this new install AS IS

copper cradle
#

can i plug in my ssd now?

tacit wyvern
#

no

copper cradle
#

ok but what do you mean as in cant i install gnome

tacit wyvern
#

hang on

copper cradle
tacit wyvern
#

do a test reboot

copper cradle
#

ok

tacit wyvern
#

to the NEW install

#

NO win drive.

copper cradle
#

ok

#

done

#

im in

tacit wyvern
#

u got welome screen?

copper cradle
#

yea

tacit wyvern
#

u should make a dedicated partition on the 750 GB drive, strictly for timeshift snapshots

#

i'd recommend at leasttt 150 GB even 200

#

u have tons of space on it

copper cradle
#

ok

#

should i do it now

#

or after installing stuff

tacit wyvern
#

but first it needs to be file checked by chkdisk to make EXTREMELY sure it is resizable and healthy. that needs to be executed from Windows environment

copper cradle
#

so now what

#

i hide tbe evidence?

tacit wyvern
#

no wait

#

do a complete shutdown

copper cradle
tacit wyvern
#

safe shutdown from start menu, always. after complete shutdown,

#

after complete shutdown, must clean out OLD efi from nvme (CAREFULLY!)

#

so steps are :

  • shutdown
  • unplug 240 GB drive to be safe
  • replug windows nvme
  • boot the live usb again of Mint.
#

then open Disks app, select the EFI partition of the windows drive from disks app. and mount it . (play icon) then tag me

copper cradle
#

how tight does the m.2 screw have to be

#

i know im not supposed to make it firm

#

cuse the ssd will snap

tacit wyvern
#

not tight at all. as long as the stick is fully inserted.

#

overview - get rid of the ubuntu folder from the windows efi

  • boot Windows up and do a chkdsk on the 750 GB drive to guarantee its healthy, no errors.
#
  • disable windows fast startup if it is on
  • resize the 750 GB (shrink it by 200 gigs) using disk management or gparted from live mint boot.
#
  • make that space into an ext4 volume called TS_Back so u can store ur restore snapshots there.
copper cradle
#

oh no the screw fell into the pc

tacit wyvern
#
  • re-add the linux drive n boot it and set up timeshift. and be sure to include hidden home folders also
#

gl

copper cradle
#

cable manegment 🙂 (i couldnt find the screw so i gave up)

#

oh the screw found ME

#

it fell on its own

#

yo

tacit wyvern
#

boot windows

copper cradle
#

wait

#

didnt you say boot to linux live enviorment

#

shouls i close it?

copper cradle
#

i mounted it

tacit wyvern
#

the first partition right? 100 meg EFI

#

and ur in live mode mint rn, yes?

copper cradle
#

sry for the bad pic qualoty

tacit wyvern
#

good, click on blue link

copper cradle
#

the media/mint 1 right

#

i clicked

tacit wyvern
#

in the file manager that pops up, right click in space in file pane, and do "open as root"

#

then show pic

copper cradle
tacit wyvern
#

find ubuntu folder and delete it. and nothing else!

copper cradle
#

i can delete the evidence now?

#

like install stuff

tacit wyvern
#

only the ubuntu folder then close the manager

copper cradle
#

and put my deives in

copper cradle
tacit wyvern
#

wait. u have to do all the overview i wrote

#

now to reach Windows, u will need to find it from UEFI

#

and put "windows boot manager" to top of boot list for uefi things

copper cradle
#

i booted into it

tacit wyvern
#

ok open an admin. command prompt in windows

#

@copper cradle

copper cradle
#

whats the equivlant to sudo

tacit wyvern
#

just right click on windows terminal

copper cradle
tacit wyvern
#

now ur command prompt should say C:\windows\system32

copper cradle
#

it does

tacit wyvern
#

do powercfg /a and show result

copper cradle
tacit wyvern
#

excellent. fast startup is off.

#

next, what is the drive letter for the 750 GB volume?

copper cradle
#

N

tacit wyvern
#

drive N: ?

copper cradle
#

yea

tacit wyvern
#

do chkdsk n:

#

if it finds any errors, then do chkdsk n: /f to correct them

copper cradle
#

C:\Windows\System32>chkdsk n:
The type of the file system is NTFS.
Volume label is New Volume.

WARNING! /F parameter not specified.
Running CHKDSK in read-only mode.

Stage 1: Examining basic file system structure ...
54784 file records processed.
File verification completed.
Phase duration (File record verification): 2.01 seconds.
942 large file records processed.
Phase duration (Orphan file record recovery): 0.65 milliseconds.
0 bad file records processed.
Phase duration (Bad file record checking): 0.26 milliseconds.

Stage 2: Examining file name linkage ...
224 reparse records processed.
62374 index entries processed.
Index verification completed.
Phase duration (Index verification): 3.83 seconds.
0 unindexed files scanned.
Phase duration (Orphan reconnection): 2.48 milliseconds.
0 unindexed files recovered to lost and found.
Phase duration (Orphan recovery to lost and found): 0.20 milliseconds.
224 reparse records processed.
Phase duration (Reparse point and Object ID verification): 1.06 milliseconds.

Stage 3: Examining security descriptors ...
Security descriptor verification completed.
Phase duration (Security descriptor verification): 12.42 milliseconds.
3796 data files processed.
Phase duration (Data attribute verification): 0.17 milliseconds.
CHKDSK is verifying Usn Journal...
40572368 USN bytes processed.
Usn Journal verification completed.
Phase duration (USN journal verification): 819.78 milliseconds.

Windows has scanned the file system and found no problems.
No further action is required.

732571647 KB total disk space.
77369744 KB in 49359 files.
14920 KB in 3797 indexes.
0 KB in bad sectors.
181951 KB in use by the system.
65536 KB occupied by the log file.
655005032 KB available on disk.

  4096 bytes in each allocation unit.

183142911 total allocation units on disk.
163751258 allocation units available on disk.
Total duration: 6.68 seconds (6688 ms).

#

since im in windwos now i can use discord as normal

tacit wyvern
#

hold on now

#

look at the overview

copper cradle
#

yea

tacit wyvern
#

open Disk Management

copper cradle
#

in windwos?

tacit wyvern
#

yep

copper cradle
tacit wyvern
#

find the "new volume" in the diagram (drive n:) right click it, and resize

copper cradle
#

wait why is the screenshot shortcut now workin

tacit wyvern
#

shrink by 200 GiB if u can spare it, (that's 204,800 MiB)

copper cradle
#

shrink volume right?

#

ok how about 150

copper cradle
#

😦 ok

tacit wyvern
#

wait

copper cradle
#

i can do 200

tacit wyvern
#

if u want 150, then put 153,600 MiB

#

brb

copper cradle
tacit wyvern
#

excellent. do you want to relabel "new volume" into something more cool or not?

#

that's the plain default, non-descriptive label that disk management made

tacit wyvern
#

ok next step of overview

tacit wyvern
copper cradle
#

ok 1 sec ill do that

#

but we will be back to** JANKY DISCORD** dramatic music

tacit wyvern
#

again, u may see TWO ubuntu entries in efi bios now

#

because bios remembers the OLD one still, plus the new entry from new mint install.

#

so try to choose the correct one

copper cradle
tacit wyvern
#

yes but it's kinda tricky to know which is which 😛

copper cradle
#

ok then lets leave it be

tacit wyvern
#

maybe one is with capital U, and one with lowercase u. but leave for now

copper cradle
#

should i plug my cables back in

tacit wyvern
#

yep

copper cradle
#

are we done removing disks?

tacit wyvern
#

yep should be

#
  • make that 200 GiB space into an ext4 volume called TS_Back so u can store ur restore snapshots there.
#

you can do this from the gnome-disks app in Accessories in Mint

#

and we must set it to automount, so it's always available when timeshift needs it

#

tag me when ur in the DISKS app on real Mint

copper cradle
#

wait so i have to install gnome noe

tacit wyvern
#

no

#

dont be a fool. i stg

#

I STG

copper cradle
#

whats ISTG

tacit wyvern
#

make the bloody volume, then timeshift. THEN fuck around

#

'i swear to God'

copper cradle
#

there is 1 mint nice

tacit wyvern
#

ok u in disks app?

copper cradle
copper cradle
copper cradle
tacit wyvern
#

choose the 750,. then the 200 gig free space

#

highlight 200 GB free space, the press +

#

the button which lets u "add" a partition/volume

copper cradle
#

ok

tacit wyvern
#

yes next

#

make sure give it volume name as i said

copper cradle
#

did that

tacit wyvern
#

aight. let it format

copper cradle
#

it did i think

#

how do i check

tacit wyvern
#

well it will simply show all the info u can read in disks app

#

label, fs type, size, etc

copper cradle
#

it did

tacit wyvern
#

ok next, u select it

copper cradle
tacit wyvern
#

what's NCP mean?

copper cradle
#

its supposed to be ncb

#

Notchos computer backup

tacit wyvern
#

so fix it

copper cradle
#

nah no need

tacit wyvern
#

click the gear, 'edit filesystem'

#

put somethig USEFUL

copper cradle
#

ok sure

tacit wyvern
#

like BAK

#

which is the timeshift 'backups' place

#

done?

copper cradle
#

yea

tacit wyvern
#

ok click gear, > edit mount options

#

now be careful here

#

turn off user defaults

copper cradle
#

im already scared cuse this is where i broke my linux last time

tacit wyvern
#

then tick 'mount at startup'

copper cradle
tacit wyvern
#

then in the mountpoint location, put /mnt/backup

copper cradle
#

its already ticked

tacit wyvern
#

just like that

copper cradle
#

finiahed?

tacit wyvern
#

then show pic

copper cradle
copper cradle
#

delete the text and put it in its place?

tacit wyvern
#

in filesystem put ext4

#

when u click OK, it *should * likely prompt u for sudo password

copper cradle
tacit wyvern
#

wait

#

in the Display name, can u put BAK there?

copper cradle
#

sure

tacit wyvern
#

ok. then it should be good to go, once u hit ok

copper cradle
#

but i named it N-BACKUP

#

done

#

now?

tacit wyvern
#

well, first lets see if it works. as it should.

#

reboot linux mint again.

#

if it works, u should see a device in your file manager devices section, on reboot , and it will say N-Backup

copper cradle
#

it says BAK

#

it works right

tacit wyvern
#

ok whatever, that's the drive's label

#

good enough

#

so u rebooted, yes?

copper cradle
#

ye

tacit wyvern
#

ok nowwwww open Timeshift app

#

and set up a schedule. weekly

copper cradle
#

yea

tacit wyvern
#

you can select to 'keep 2' for weekly. that will leave one latest backup, plus one before that.

#

untick all the other times.

copper cradle
#

include all files right

tacit wyvern
#

well hang on now

#

u want to save the user's userhome "hidden" files

#

this is so any major desktop changes/ config files are preserved to how they are RIGHT NOW

#

since messing with desktop effects n stuff saves in hidden home

copper cradle
#

ok so all files

tacit wyvern
#

um

#

show the option i dont think ur understanding

copper cradle
tacit wyvern
#

yah u werent understanding

#

for root, exclude all

#

for user, ONLY HIDDEN FILES

copper cradle
#

done

tacit wyvern
#

the configs are always hidden

#

did u tell it WHERE to save?

copper cradle
copper cradle
tacit wyvern
#

go back to preferences/ setup

copper cradle
#

the bak volume

tacit wyvern
#

u sure u picked the BAK ext4 volume?

copper cradle
#

yea

tacit wyvern
#

and the weekly and nothing else right?

copper cradle
#

yea

tacit wyvern
#

ok then. click 'create'

#

this will make a current snapshot, how everything works right now perfect.

#

in seven days, it will likely make another one on its own

copper cradle
#

how long does it take to create a snapshot

tacit wyvern
#

well ur current system is only using 10 gigs or so right now,

#

since it's fresh. so probably a few minutes.

copper cradle
#

ok

tacit wyvern
#

tag me when it's done

copper cradle
#

sure

#

but how many steps are left

#

i realy dont have time left

tacit wyvern
#

ok

#

one last thing @copper cradle

#

and that is, if u dont want to use the BIOS boot key to choose one OS or another, u have to edit grub n fix it to show both as a black menu.

copper cradle
#

the timeshift finished

tacit wyvern
copper cradle
tacit wyvern
#

so this time when u started linux, u didnt get that menu, right?

#

how u started it, from BIOS right?

copper cradle
#

i did

#

yea

#

idk maybe i didnt

tacit wyvern
#

it booted straight to Mint right

copper cradle
#

how do i inafall it

tacit wyvern
#

well, do this first

copper cradle
tacit wyvern
#

open terminal,

copper cradle
#

yea

tacit wyvern
#

do sudo xed /etc/default/grub and show it maximized, full pic

copper cradle
tacit wyvern
#

ok how many seconds do you want to see the menu , from which to choose an OS to boot?

#

5? 8 ? 20

copper cradle
#

5 mins

tacit wyvern
#

minutes or seconds?

copper cradle
#

minutea

tacit wyvern
#

seriously?

#

u want it to stay on screen for five minutes til u make a choice?

copper cradle
#

yea sometimes i press the on button and go get water

#

or somethin

tacit wyvern
#

ok so in the grub timeout value put 300

copper cradle
#

ok

tacit wyvern
#

in place of 0

copper cradle
#

ok

tacit wyvern
#

and change 'hidden' to menu

copper cradle
#

ok

#

done

tacit wyvern
#

show it

#

this is very critical part in this file

copper cradle
#

i want to change the grub theme to the fallout theme how do i apply it

tacit wyvern
#

um leave it for another time

copper cradle
#

ok

tacit wyvern
#

there's a bunch of specific instructions for that

#

now save the file. then,...

#

in terminal, do sudo update-grub and WATCH IT CAREFULLY.. it should detect n add Windows.

#

after it's updated the configuration, do sudo reboot and dont touch any key.. wait til u see black grub menu. (hopefully you do)

#

then u can press enter on either Mint or Windows from there to start either.

copper cradle
#

it showed up

tacit wyvern
#

kool start mint

#

did u see timere?

copper cradle
#

no

tacit wyvern
#

counting down from 300 ?

copper cradle
#

i didnt notice

tacit wyvern
#

did it show windows?

copper cradle
#

but as long as its there its ok

#

it did show windwos

tacit wyvern
#

if not, then it's the wrong ubuntu being loaded. u will have to adjust order in the bios boot priorities

#

when u reach Mint, please show pic of Disks app, full window, on the 240 gig drive selected

copper cradle
tacit wyvern
#

that's AFTER ^

copper cradle
#

after what

tacit wyvern
#

this is BEFORE ^

copper cradle
#

ah ok

#

thx

#

you helped me alot today

tacit wyvern
#

alright. see that's how u properly set up dual drive dual boot linux

#

yw.

copper cradle
#

thx very much

#

i understand

#

now good night ❤

tacit wyvern
#

and notice the stars

#

on the small ssd

#

that EFI partition is starred, meaning it is the one being used to launch linux

#

u will probably notice your BAK volume also now has a star since it automounts

copper cradle
#

ok

tacit wyvern
#

anything with star is very important to linux, and should not be messed with, without very good knowledge or reason.

#

SOLVED (did proper full reinstall, with snapshot backups)

copper cradle
#

are you online ?

#

i kinda need help again if thats possabile

tacit wyvern
#

hello. if it's not related, make a new post

copper cradle
#

ok ill make a new post but its basicly that the computer suddenly started glitching after i installed gpu drivers

copper cradle
#

i solved it i think

#

i reinstalled the drivers

#

and restarted