#⌨coders-cave

1 messages · Page 83 of 1

main brook
#

now i have a headache verycool

#

vim

main brook
#

basically

#

i just run it

#
uvicorn app:app --host 0.0.0.0
#

and also

#

i just ssh to my rpi

#

im not coding on my device

#

i edit the files from remote server

barren shale
#

just put the constant outside the function

#

nad it should be as fast

hasty bane
#

this is fastapi yes?

main brook
#

yes

hasty bane
#

epic

main brook
#

hm yes

tropic dagger
main brook
#

imagine

#

corrupting

#

a virtual harddrive

tropic dagger
#

Oof

main brook
#

its oki i have backup

#

i was trying to resize the root filesystem

#

got it working now

past chasm
#

hiiiiii

gleaming talon
#

Me who codes scratch

main brook
#

that's nice

#

better than php

wet girder
#

atleast more fun lol

main brook
#

yes

#

jupe

#

what's helper role for

hasty bane
#

helping

main brook
#

o

#

oki

orchid frigate
#

Guys

#

Im very proud that I can now officially say

#

I use arch btw

main brook
#

nice

#

i should try arch tbh

orchid frigate
#

First impressions
The guy at the mechanics inserted the internet cable while the computer was on so it just crashed

#

He also had a shit ton of problems installing an os so its either that both of us suck or that something aint right

orchid frigate
#

Ok well i understand the warnings now

#

Arch is hard

#

And many problems came

#

Should be ok but still (also probably caused my first double fault on it so I feel proud)

#

Or just fault

barren shale
#

that's stupid

orchid frigate
#

First discord message from arch lookin good

#

arch isnt as complicated actually

#

downloading stuff is really simple

#

the only problem is compatibility

floral bloom
#

Me regalan nitro

#

Porfa

hoary hound
#

@floral bloom please read channel description

rocky night
#

Hello

orchid frigate
#

umm so I need some help with the linux file system

#

apparently my sda2 is full which is a ext4 mounted to...nothing???

#

its mounted to /

#

and its 100% used so I cant install anything

#

then we have sda3 another ext4 with 209gb of space mounted to home

#

but apparently its not because well I cant install anything on it...I guess

tropic dagger
#

It's restricted to literals and pre-initialized vars (int i = 35; const int c = 86; // etc)

#

Declaring at runtime is dumb

limber sparrow
#

Please add castle walls

#

It will be so cool

#

like you have walls to defend

swift nexus
#

Add muskets

jade rapids
#

HELP i can get worlbox on mac when i click steam on the web it dosnt do anything

knotty root
#

If i was going to make mods for worldbox would i have to write them in the same coding language as worldbox?

barren shale
#

wtf is that supposed to do

spiral sonnet
#

Congrats

orchid frigate
#

No

#

I havent even got a chance to work on it lately

#

I have changed to arch linux which as much as I love arch and its design may have been a mistake considering I know nothing about Linux's terminal or file system

candid lynx
#

Hey, anyone knows worldbox 's engine?

wet girder
#

unity

hasty bane
#

none of you know how long it took for me to install windows 10 diesel_cli

#

never doing it again on windows

wet girder
#

what are you using diesel_cli for?

hasty bane
#

rust postgresql

#

the setup process is really straightforward

#

except i spent literal weeks trying to fix it

#

well

#

it's not like i did it every day

#

because it was extremely frustrating

wet girder
#

All I've needed SQL for I've just used xampp

#

it's very easy and just plain works

hasty bane
#

🤔

#

Maybe

#

but it's too late to explore that now that i've actually got it working

#

still need to figure out frontend which is

#

mmmmmmmmmmmmmmmmmmm

#

Not really fun

#

what i have right now is very barebones, just html

#

with rust feeding data to pages

#

i wonder if i could get React working

wet girder
#

react is very easy

#

I've used it quite a lot

hasty bane
#

yeah it's not hard

#

im just curious if you can mix react and rust

#

Probably gonna have to read docs of the crates im using for exchanging data

wet girder
#

why do you even want to use rust

hasty bane
wet girder
#

What are you planning to create?

hasty bane
#

a game, i guess

#

not i guess
it is a game

wet girder
#

Well then it make sense

hasty bane
#

yeah

wet girder
#

But why not just normal game with an engine

hasty bane
#

the scale isn't large enough to bother doing that xdd
easier to make a website than a game with proper networking and cheat prevention and everything

wet girder
#

You don't really need those before the game starts growing but understandable

hasty bane
#

oh btw

#

i've screwed around with various rust game engines

#

uhhh

#

they're not good

#

just don't wbshy

orchid frigate
#

So rust isnt the best language for anything game or graphics

#

It can do those things sure

#

But its very annoying and its definitely not designed for that

#

I have tried like 3 Graphics APIs on rust including vulkano and gfx and all of them had awful design

hasty bane
#

Yeah

main brook
#

iam gonna

#

fuckin

#

convert

#

32gb of disk

#

into swap

main brook
#

also

#

the usual like

#

filesystem are

#

/dev/sda1 -> /boot
/dev/sda2 -> /

#

mounting a device to /home is eh

#

you probably want to reformat your partition

#

try df -h

#

and show me result

main brook
#

swp go brrr

orchid frigate
#

but still something about this filesystem seems odd

#

also

#

when you install stuff through pacman or apt-get for other distros

#

do they go somewhere outside the home folder or inside the home folder where the command was run on

wet girder
#

I'VE BEEN WAITING FOR THIS MOMENT
Look at this video and you'll surely understand it atleast a bit more
https://youtu.be/A3G-3hp88mo

FREE Linux Hacking Lab: https://bit.ly/3uAFUiz

💯💯Think you're smart?? Take the quiz: https://bit.ly/3fXv6ag (FREE)
Watch the entire series: http://bit.ly/linuxforhackers

*Sponsored by HTB Academy

Sign up for the Hacker Academy: https://bit.ly/3uAFUiz
Check out HackTheBox: https://bit.ly/3wJC...

▶ Play video
#

Also, Linux for hackers by networkchuck is the best linux introduction YouTube series I've ever seen

orchid frigate
#

alright

#

got steam working

main brook
#

/home is for user files

#

for the rest of the filesystem are

#

/

#

like

#

/usr/lib

#

those are mounted on /

orchid frigate
#

oh so its most likely going in /

main brook
#

yes

#

basically

orchid frigate
#

thats bad

main brook
#

you usually don't mount /home

#

usually its like

orchid frigate
#

how will I fit everything on / when it only has 10gb

main brook
#

don't use

#

big

#

distro

#

or use musl based distro

#

also

#

your sda3 is fuckin

#

big

#

WHO THE HELL NEED THAT MUCH PARTITION FOR /home

#

you can like

#

backup /home

#

and then like

#

repartition your disk

#

basically resize sda2

#

to all the size

#

since /home is on /

#

/home will use the available size

#

id suggest use vm first

#

to play around

#

like qemu

orchid frigate
#

So I actually decided to try to get a mechanic to install arch for me

main brook
#

o

orchid frigate
#

and as soon as he said "This install was hard I had to type many commands"

#

I was like

#

"Oh fuck no"

main brook
#

but

#

why did they

#

use like

#

all the available size

#

for /home

#

10gb for arch isn't enough

orchid frigate
#

They probably havent used linux alot so they thought I would install stuff there rather than use packages

main brook
#

o

#

well

#

can you do

#

fdisk -l /dev/sda

#

(it shows the device partition table)

main brook
orchid frigate
#

I mean idk the guy also installed the text interface version by mistake and complained about having to write to terminal

main brook
#

o

orchid frigate
#

So...he wasnt a linux expert per say

main brook
#

true

#

we love terminals

#

honestly

orchid frigate
#

downloading stuff via terminals is absolutely amazing

#

and terminals are great in general

main brook
#

yes

#

also

#

do you have any shit

#

on /home

orchid frigate
#

not really

main brook
#

what's inside it

orchid frigate
#

I got the pc yesterday so havent put much

main brook
#

ah

#

do you want to

#

mount all the remaining disk to /?

orchid frigate
#

a few pictures and an OS project from github

main brook
#

o

#

is it okay if

#

the files got lost

orchid frigate
#

ye idc about the files all of them are either broken or useless

main brook
#

basically all you need now is

#

okay first

#

do cat /etc/fstab

#

i wanna know result

orchid frigate
main brook
#

i see the sda3

#

wait

#

where's the

#

sda1

orchid frigate
#

arch is really fun tho not as hard as I thought

#

uhhh

#

lemme check

main brook
#

where is your /boot mounted at

orchid frigate
#

there appears to be no sda1

main brook
#

what the

#

fuck

orchid frigate
#

it just works

main brook
#

interesting

main brook
orchid frigate
#

thus?

main brook
#

how doss your machine even boots without a bootable partition

main brook
orchid frigate
#

I...

main brook
#

o

#

i meant

#

"this"

orchid frigate
#

it goes straight to grub so I dont find any problems booting

main brook
#

ah

#

you use a bootloader

orchid frigate
#

yea that I have written those

main brook
#

nice

#

well anyway

#

you might wanna resize sda2

#

remove sda3

orchid frigate
#

They exist on sector 1...or sector 0 idr the base

main brook
#

and then run a few commands

orchid frigate
#

no its sector 1 either heads or...actually this doesnt matter

main brook
#

true

#

well either way

#

we're not messing with the boot

orchid frigate
#

whats the chance I fuck everything up and a reinstall is needed

#

because I kinda dont have a usb nor a good mechanic

main brook
#

well

#

basically

#

remove partition 3

#

and resize the partition 2

#

to all available size

#

the chances you fuck up everything is low

#

because

orchid frigate
#

Im pretty sure I have done that before but it was on windows and that does everything for you

main brook
#

/home will just be unmounted

orchid frigate
#

ok I think I understand

#

so lets get to doing this I should probably search a tutorial or the wiki

#

wiki is always better

main brook
#

there's this

#

also

#

check

#

if you have

#

e2fsck resize2fs

#

two of this command

orchid frigate
#

Ok writing from phone now but there is this thing

#

Where my entire pc crashes randomly

#

And I need to cold reboot

main brook
#

ah

#

what about your memory

#

is it enough?

#

try free -hw

#

(it shows your memory info and swap)

#

mine looks like this

orchid frigate
#

Lemme get a pic

main brook
#

oki

#

also

#

i suggest using

#

cfdisk

#

its easier

#

and more user friendly

orchid frigate
main brook
#

gives actually more info

main brook
#

its enough

orchid frigate
#

omg linux is so fast

#

its insane

main brook
#

try cfdisk /dev/sda

main brook
orchid frigate
#

also what will happen to my desktop when I remount...oh wait I dont delete the folder

#

right

main brook
#

nope

#

it just unmounts it

#

i suggest like

#

logging in to root

#

because it'll use /root

#

instead of /home

#

so it doesn't fuck everything up

#

where's your desktop stored at though

orchid frigate
#

/home/alu/Desktop

main brook
#

no i mean

#

your desktop environment

#

lile

#

gnome or xfce4

#

where is it at

orchid frigate
#

xfce4

main brook
#

first off

#

try

#

sudo umount /home

#

if it fucked up

#

don't worry

#

you can reboot

#

it'll mount itself back

#

since its registered in /etc/fstab

orchid frigate
#

ohhhhh I get it

#

sda1 is sector 1

#

so its the bootloader

main brook
#

basically yss

#

usually

#

sda1 is mounted at

orchid frigate
#

ok Im actually learning about filesystems

main brook
#

/boot

orchid frigate
#

will need those later

main brook
#

mhm

orchid frigate
main brook
#

try unmounting

#

/home first

#

lmao

barren shale
#

linux is better than windows he said as he suffers for days because of linux

orchid frigate
#

its not suffering

#

its fun

#

working on linux

main brook
#

yes its fun

#

its learning

barren shale
#

ur a masochist or smthing

main brook
#

haydot

#

you did unmount /home right?

orchid frigate
#

unmounting rn

main brook
#

oki

orchid frigate
#

also like where should I be in the terminal in this

main brook
#

eh?

orchid frigate
#

should I be outside of home

main brook
#

oh

#

yes

orchid frigate
#

on root

main brook
#

don't be in /home

#

and i suggest using root user

#

because

#

its on /root

#

instead of /home

orchid frigate
#

target is busy

main brook
#

nice

#

okay since that happens

#

is there a way you can run iso file

#

on your pc

#

so like

#

it doesn't boot arch

#

so nothing is mounted

orchid frigate
#

I can't think of a way of doing this without a usb

main brook
#

oh wait i have a better idea

#

do cfdisk /dev/sda

orchid frigate
#

Rei the linux specialist wbpray

main brook
#

resize partition 3 to

#

8gb ish

#

or whatever to make your contents fit

#

in this case

#

5gb is enough

#

just navigate to the sda3

#

and resize

#

and put

#

5G

#

after that

#

resize sda2

#

and make it take all the available size

#

don't write yet

orchid frigate
#

ok about to do this

main brook
#

okie

#

when you done

#

take a picture of the screen

#

make sure you don't frick up

#

like i did

#

and accidentally reformatted my whole disk

orchid frigate
#

im more nervous than that time I shouted I will kill you in a dark street and someone responded

main brook
#

lmao

#

this is a stressful process

main brook
#

but we can do it

main brook
orchid frigate
#

Ok uhhh

main brook
#

what happened

orchid frigate
#

Resized sda3 to 5G

tropic dagger
# main brook yes way

Bruh someone responded to someone else saying "I will kill you" in a shady location.
There's no way, that's too perfect.

main brook
#

nice

#

what about sda2

orchid frigate
#

Got 208.1Gs free

main brook
#

usually cfdisk tries to take all available size

orchid frigate
#

But sda2 limits to 10.....bytes

main brook
#

WHAT

orchid frigate
#

Is a big number

main brook
#

wait what

tropic dagger
#

What the hell?

orchid frigate
#

No no wait

orchid frigate
#

Its not 10 bytes

main brook
#

send me

#

send us

#

image

orchid frigate
#

Its 10alot of number bytes

main brook
#

of the terminal

main brook
tropic dagger
#

Pics or it didn't happen.

main brook
orchid frigate
main brook
#

lmao

#

change the type

#

to 83

#

oh look

#

sda1

#

its a EFI system

orchid frigate
#

dont touch sda1 the bootloader wont be happy

main brook
#

yes

orchid frigate
#

wdym type

main brook
#

see the

#

"type"

#

nav

#

press it

#

and look for

#

(83) Linux

#

idk why its for Linux Home

#

usually / is mounted as linux

#

either way

#

the type works for ext4

#

sk don't worry

#

you won't need to like

#

do shit

orchid frigate
#

I cant seem to find 83

main brook
#

what

#

send me

#

the range

#

on the number 8X

orchid frigate
#

Phone is easier

main brook
#

ah

#

check for

#

"Linux"

#

just that

orchid frigate
#

Why cant this have a search bar damnit

main brook
#

because it doesn't

#

sadly

orchid frigate
#

Anyway uhh no just linux but I did find alot of linux types

main brook
#

jesus christ

#

hm

#

try changing it to Linux Filesystem

#

there's supposed this much

#
1  FAT12           24  NEC DOS         81  Minix / old Lin c1  DRDOS/sec (FAT-
 2  XENIX root      39  Plan 9          82  Linux swap / So c4  DRDOS/sec (FAT-
 3  XENIX usr       3c  PartitionMagic  83  Linux           c6  DRDOS/sec (FAT-
 4  FAT16 <32M      40  Venix 80286     84  OS/2 hidden C:  c7  Syrinx
 5  Extended        41  PPC PReP Boot   85  Linux extended  da  Non-FS data
 6  FAT16           42  SFS             86  NTFS volume set db  CP/M / CTOS / .
 7  HPFS/NTFS       4d  QNX4.x          87  NTFS volume set de  Dell Utility
 8  AIX             4e  QNX4.x 2nd part 88  Linux plein tex df  BootIt
 9  AIX bootable    4f  QNX4.x 3rd part 8e  Linux LVM       e1  DOS access
 a  OS/2 Boot Manag 50  OnTrack DM      93  Amoeba          e3  DOS R/O
 b  W95 FAT32       51  OnTrack DM6 Aux 94  Amoeba BBT      e4  SpeedStor
 c  W95 FAT32 (LBA) 52  CP/M            9f  BSD/OS          eb  BeOS fs
 e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi ee  GPT
 f  W95 Etendu (LBA 54  OnTrackDM6      a5  FreeBSD         ef  EFI (FAT-12/16/
10  OPUS            55  EZ-Drive        a6  OpenBSD         f0  Linux/PA-RISC b
11  Hidden FAT12    56  Golden Bow      a7  NeXTSTEP        f1  SpeedStor
12  Compaq diagnost 5c  Priam Edisk     a8  UFS Darwin      f4  SpeedStor
14  Hidden FAT16 <3 61  SpeedStor       a9  NetBSD          f2  DOS secondary
16  Hidden FAT16    63  GNU HURD or Sys ab  Amorce Darwin   fb  VMware VMFS
17  Hidden HPFS/NTF 64  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE
18  AST SmartSleep  65  Novell Netware  b8  BSDI swap       fd  Linux raid auto
1b  Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid fe  LANstep
orchid frigate
#

Ok changed it

main brook
#

ok try resize

#

again

orchid frigate
#

To linux filesystem

main brook
#

does it work?

#

oh wait

#

the table

#

its gpt

#

not dos

orchid frigate
#

There is still a maximum size

#

Also im guessing write would save changes and im also guessing that will fuck things up

main brook
#

yes

#

for noe just

#

quit

#

it won't save

#

and then redo

#

this time use 50gb

#

for the /dev/sda2

#

gpt sucks

#

its for uefi based boot

orchid frigate
#

Wait before doing this

#

Shouldn't sda2 be linux home...wait why is it linux home

#

Its not even mounted to home

main brook
#

exactly

#

because

#

gpt partition table

#

the one used for windows

#

i guess the only way out here is

#

use an iso

#

for your pc

#

so you can do changes there

#

since sda won't be mounted

#

nothing is using it

#

hence not booting

orchid frigate
#

Ok well 50gs didnt work either

#

Yep that seems to be the case

main brook
#

yes

#

sadly

#

if you want

#

you can use void iso

#

its good

#

but heavy

orchid frigate
#

Well im sure I can handle with 10 gb for a while

main brook
#

for this task

orchid frigate
#

Until I get a usb which i break like the last 5

barren shale
#

ew

orchid frigate
#

Thats a really powerful comment

main brook
#

hmm

#

you don't have a usb?

orchid frigate
#

no

main brook
#

sad

orchid frigate
#

broke the last one

tropic dagger
#

How did you break 5 USBs?

orchid frigate
#

after not knowing how to use grub

orchid frigate
tropic dagger
#

Oh

orchid frigate
#

And I dont know how to use grub

barren shale
#

dont tell him that he can just reformat the USB

orchid frigate
#

But thats hard(shut it) and I lost it

tropic dagger
#

I would think he tried that.

#

Oh he didn't.

#

Bruh

orchid frigate
tropic dagger
#

Makes sense.

orchid frigate
#

the other 4 I lost after putting them in a backpack for 5 months

tropic dagger
#

Damn.

#

You are the death of USBs.

#

You have lost USB privilege.

orchid frigate
#

I may be the death of USBs but im the start of every USB company

main brook
#

i have 1

tropic dagger
orchid frigate
#

I get people rich

main brook
#

wait haydot

#

do you not have

#

literally anything

#

to boot from

#

other than your disk

orchid frigate
#

I do have one usb which is kinda small and important

#

and has stuff on it

main brook
#

oh

#

how

orchid frigate
#

and...other stuff to boot from...

main brook
#

big is it

orchid frigate
#

I need to check what devices I have

wet girder
#

I have only one USB stick which contents I'm never gonna change again as I'm scared it'll be hard to get win10 installation sticks made soon

main brook
#

i have 3

#

bootable

#

disk

wet girder
#

I'm never changing to win11 and I need windows for gaming

orchid frigate
main brook
#

win11 kinda sucks

wet girder
#

exactly

tropic dagger
#

Yeah Win11 is just Win10 but with new textures and slower performance.

orchid frigate
#

and worse setting design

main brook
#

more bloated

wet girder
#

and less developer tools

main brook
#

and spyware

wet girder
#

I think

orchid frigate
#

and more marketable

main brook
#

windows is basically now

#

"everyone can use except you can't edit the system because fuck you"

wet girder
#

yep

tropic dagger
#

Pretty much.

#

It gives too much power to the user

orchid frigate
main brook
#

lmao

main brook
barren shale
wet girder
#

I'm most likely gonna change to Linux whenever I find a reliable way to use epic games on Linux and a good alternative for visual studio as nothing beats it for C# from what I've seen

barren shale
#

because of the schedular

main brook
#

there's

#

wine

wet girder
orchid frigate
main brook
#

ah

#

vm

#

windows vm

tropic dagger
barren shale
#

sometimes its better

main brook
#

visual studio*

#

not vsc

barren shale
wet girder
tropic dagger
main brook
#

i meant

barren shale
main brook
#

jupe was talking about

tropic dagger
#

VS is the IDE

main brook
#

vs

barren shale
#

i use it sometimes

main brook
#

not vscode

wet girder
#

lemme check it

tropic dagger
#

Yeah I know now.

barren shale
wet girder
#

it's from jetbrains

#

this must be good

barren shale
#

and expensive

#

:)

orchid frigate
#

ok also @main brook thanks for helping in these hard times wbpray

wet girder
#

I've never seen bad jetbrains development tool

main brook
wet girder
main brook
#

i don't

barren shale
main brook
#

apparently github be like

#

"your report card doesn't show anything!"

orchid frigate
#

jupe gets all the cool shit

main brook
#

when i showed

#

my full name

wet girder
#

I gave them my school email

main brook
#

school name

#

grades

orchid frigate
#

he got the adobe thing from school

main brook
#

parents name

#

even my nik

main brook
#

but

#

they reject me for not showing enough proof

#

iam a student

orchid frigate
#

at my school I got suspended from using a computer without the teacher telling me to

main brook
#

what

orchid frigate
#

use it

main brook
#

that's dumb

wet girder
#

For me the process was, give them email, wait 2 days, get cool shit

orchid frigate
#

Well I did kinda deserve it

main brook
#

atleast you're not a hacker or whatever

orchid frigate
#

I flexed on the teacher the entire year about how good I am and how I make dangerous shit so she was like "Yea dont get close to the pc please"

main brook
#

wait

#

haydot

wet girder
#

lmao

main brook
#

i have an idea

#

what id

#

if

#

we swap the /etc/fstab

#

/home to / and / to /home

wet girder
#

Me and my friend kept joking about hacking the whole last school year in lower secondary school and no one gave a shit because we were friends with the IT guy in the school

main brook
#

and then reboot

wet girder
#

we actually did MITM on our phones at school once

#

like attacked our phones

#

not do it to others

orchid frigate
main brook
#

agree

#

try use a vm

#

use qemu

#

qemu uses custom

#

file location

#

so its not in /usr

#

except for its dependencies

#

and of course

#

binary

#

which is less

#

than like 500mb

orchid frigate
main brook
#

omg he's hacking!!!

#

ban!

#

basically

#

showing matrix in green colour

#

is hacking

orchid frigate
#

Yes but

main brook
#

because stereotypes from movies

orchid frigate
#

pressing R

#

makes rainbow symbols

wet girder
orchid frigate
#

so its extra dangerous hacking

main brook
orchid frigate
#

yea

#

there are many things you can do in cmatrix

#

slow down speed up

#

go upside down

main brook
#

@orchid frigate try installing qemu

orchid frigate
#

already got it

main brook
#

NICE

wet girder
#

We did stuff like scanning the school Network for open ports and stuff like that and actually reported possible vulnerabilities to the IT guy so no matter what we did no one cared

orchid frigate
#

I use it like 90% of the time for testing

main brook
#

now qemu-common and qemu-utils

#

is it installed

orchid frigate
#

Now that I think about what I would do I kinda scare myself

wet girder
main brook
#

oh

#

nice

orchid frigate
#

If I find vulnerabilities at my school I would honestly probably test them before reporting

wet girder
#

and they were open to the internet so we were just like yo this could be bad

orchid frigate
#

"test"

main brook
#

lmao

wet girder
#

lmao

orchid frigate
#

Yea I dont enjoy my school alot sometimes

main brook
#

haydot try running alpine vm

#

on qemu

orchid frigate
#

jesus why does my pc keep randomly crashing

#

its like the cpu gets a fault

main brook
#

try

#

dmesg

#

after you cold reboot

orchid frigate
#

read kernel buffer failed

#

hmmm

#

lemme get my kernel knowledge all up in here

#

Yea I got nothing

#

havent coded in 3 weeks

#

I can barely make a working bootloader and thats the easiest part of an os suprisingly

main brook
#

HAYDOT GUESS WHAT

orchid frigate
#

uhh

#

apples

main brook
#

does "Linux root system" appears

#

in the type list

main brook
orchid frigate
#

Tomato

orchid frigate
main brook
#

so

#

/ is supposed to be that

#

instead of linux home

orchid frigate
#

ok so I do same thing but with linux root thing

main brook
#

yes

#

now

orchid frigate
#

goddamnit its not there

main brook
#

delete sd2

#

oh

#

fuck

#

well i guess we'll keep it as home

#

okay so

#

delete sda2

#

and then add it

orchid frigate
#

what

main brook
#

there's "delete" nav

orchid frigate
#

yea I get that part but

main brook
#

and then

#

new

orchid frigate
#

Isnt sda2...root

main brook
#

yeah but

orchid frigate
#

ohhh

#

ok ok

main brook
#

its at runtime

#

changes won't be saved until write

#

and then reboot

#

and it should also

#

be the default type

orchid frigate
#

question before I do this

main brook
#

hm?

orchid frigate
#

If i accidentally press write but dont reboot

#

can I revert

main brook
#

basically no

#

unless

#

you revert it manually

#

that max size is a pain in the ass

#

so

orchid frigate
#

I can do that I will just have to take a screenshot of how its rn

main brook
#

yes

#

please

#

send it here too

#

when you write

#

it should tries to re read the partition table

orchid frigate
main brook
#

which will fail

#

because

#

its not fully read

#

what about the now version

#

screenshot it too

orchid frigate
#

the now as in like

main brook
#

the after

orchid frigate
#

after I do everything

main brook
#

you recreate

orchid frigate
#

ok

main brook
#

the sda2

orchid frigate
#

ok so steps:

  1. delete sda2
  2. Create sda2
  3. Save it as....LInux filesystem type?
  4. Give it much memory
main brook
#

basically

#

delete sd2

#

create sda2

#

let it take default memory

#

which is usually all of them

#

and just

#

keep it as the default

#

type

#

screenshot it

#

don't write yet until we're ready

orchid frigate
#

ok

#

I deleted it

#

still has a max size

main brook
#

HM

#

fuck

orchid frigate
#

lemme slowly exit and reset everything

#

ok no changes made

#

Is there another tool for this

main brook
#

there's gparted

orchid frigate
#

is it good

main brook
#

kinda

#

but i doubt

#

it'll fix our issue

orchid frigate
#

eh I have like 10Gs only available anyone so the pc isnt very useful anyone so lets have some fun

#

OH DAMN

#

nice ui

#

Wait it actually looks really good

#

wait why would it not fix the problem tho

#

it seems to have all the tools for resizing and stuff

main brook
#

because

#

we're still

#

booting from the os

orchid frigate
#

here's a dumb question

#

exactly how bad of an idea is it to unmount sda2

#

if i can

#

or wait we are trying to do that...

main brook
#

basically

#

you can't

#

"resources busy"

orchid frigate
#

file systems are amazing and terrible

main brook
#

yes

#

if only you can like

#

use another person computer

#

to partition your disk

orchid frigate
#

I do have a laptop

main brook
#

i-

#

you could've used that

orchid frigate
#

But doing anything on it may result in a crash

main brook
#

og

#

oh

orchid frigate
#

its like kinda old and I cant reinstall windows to clean it

#

not because i cant but because its kinda like the home pc and...yea this explanation is useless

main brook
#

wait

#

wait

#

changing the sda3 works right?

orchid frigate
#

waiting
waiting

main brook
#

seems like

#

its gpt

#

issue

#

i also

#

have the issue

#

with unmounted disk

orchid frigate
#

damn thats not much space

#

but anyway so the problem is this stupid limit

#

what if I try to set it to the limit

main brook
#

Lmao

#

well

#

looks like

#

all we can do

#

is switch the position

#

from fstab

#

and also the params

#

or not

#

basically

orchid frigate
#

Ok im guessing this is like plan B type situation

#

So what will we gain from this

#

wait

main brook
#

switch

orchid frigate
#

Oh

main brook
#

/home to sda2

#

/ to sda3

orchid frigate
#

we dont return home back we put root to home

#

ah

main brook
#

also

#

replace the pass to

#

and then

#

move the whole line

#

above

#

so it should be like

#

can you

#

paste the fstab

#

here

orchid frigate
#

Im just thinking how insanely difficult it will be to create a file system on my own

main brook
#

i don't wanna write all that

orchid frigate
#

So many little quirks and stuff

#

Anyway

main brook
#

send me the fstab

orchid frigate
#

Doing it

main brook
#

oki

#

im waiting

orchid frigate
#

ok my brain died for a second there its fine im back

main brook
#

oki

#

you know you can just

orchid frigate
#

ok but like wdym by sending you the fstab do you mean like the same thing

main brook
#

yes

#

the one in

#

/etc/fstab

orchid frigate
#

because i kinda forgot or dont know what it is

main brook
#

unchanged

#

the contents of it

#

lmao

orchid frigate
#

ok brb im getting reports from discord

main brook
#

oki

orchid frigate
#

I got like the cleanest screenshot ever it felt satisfying

#

also what is 0 1 and 0 2

#

and why are we replacing it

main brook
#

its the the order

#

for checking

#

the docs suggest

#

0 1

#

for /

#

and 0 2 for /home

#

also

#

haydot

#

as text

#

not image

orchid frigate
#

Ok

#
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=957250ba-5ae7-42c4-b60d-3cc056b81600    /             ext4          rw,relatime    0 1

# /dev/sda3
UUID=4d594db8-2314-46c7-bdb9-194c9f114605    /home         ext4          rw,relatime    0 2

#swapfile
/swapfile none swap sw 0 0
main brook
#
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=957250ba-5ae7-42c4-b60d-3cc056b81600    /home         ext4          rw,relatime    0 2

# /dev/sda3
UUID=4d594db8-2314-46c7-bdb9-194c9f114605    /             ext4          rw,relatime    0 1

#swapfile
/swapfile none swap sw 0 0
#

try this

#

write to /etc/fstab

#

and then reboot

#

it will work

#

but i think

#

wait

orchid frigate
#

I should probably try it in qemu first

#

Just in case

main brook
#

yeah

#

and also

#

cfdisk

hasty bane
#

this stuff looks spooky

main brook
#

replace the type

#

sda2 to linux home

orchid frigate
main brook
#

sda3 to linux filesystem

hasty bane
#

yeah imma stay away from that

#

y know

orchid frigate
#

Are the spookiest

hasty bane
#

i value my sanity

main brook
#

yes

#

yesterday yesterday

hasty bane
#

or, whatever is left

main brook
#

i accidentally

orchid frigate
hasty bane
#

of my sanity

main brook
#

reformatted

#

my

#

disk

orchid frigate
#

File systems destroy sanity

orchid frigate
#

Yea idea that is not the right word but my heart rate of doing this for the first time is like 300

main brook
#

yes

#

i know that feeling

#

gpt sucks tbh

orchid frigate
#

Ok so the plan:

  1. Change fstab to your(e) version
  2. Reboot
main brook
#

not yet

orchid frigate
#

Seems simple enough

main brook
#

change the types

#

cfdisk

#

sda2 -> linux home

#

sda3 -> linux filesystem

#

because linux home is for /home partition

#

linux filesystem is for /

orchid frigate
#

Ummm

#

Its already that

#

So maybe

#

The guy was planning to do that too

#

At the mechanics

#

They are switched around

main brook
#

what

#

let me see

#

oh waut

#

nevermind

#

its

#

reversed

#

silly mr

#

its almost 4am

#

so anyway

#

also

#

waut

#

no

#

sda2 is linux home before

#

oh wait