You are not logged in.

#1 2023-08-16 13:45:29

tokisuno
Member
Registered: 2023-06-13
Posts: 12

home is on /dev/sda3 but im only using /dev/sda2

howdy. basically i have my / and /home on 2 different partitions (i think / was supposed to be my swap). the issue is im basically out of storage. is it possible to merge my sda2 and sda3 partitions so i can just use the entirety of the ssd storage without having to do a fresh install? or did i goof when partitioning my drives on installation?

Offline

#2 2023-08-16 13:53:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,112

Re: home is on /dev/sda3 but im only using /dev/sda2

Using an extra partition for /home is rather common.

lsblk -f
findmnt /home

Offline

#3 2023-08-16 14:11:19

tokisuno
Member
Registered: 2023-06-13
Posts: 12

Re: home is on /dev/sda3 but im only using /dev/sda2

seth wrote:

Using an extra partition for /home is rather common.

lsblk -f
findmnt /home

but my / partition is at 99%

❯ df -H
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        21G   20G  359M  99% /
devtmpfs        4.2M     0  4.2M   0% /dev
tmpfs           6.0G   30M  6.0G   1% /dev/shm
tmpfs           2.4G   10M  2.4G   1% /run
tmpfs           6.0G  3.4M  6.0G   1% /tmp
/dev/sda1       207M   82M  125M  40% /boot
/dev/sda3       230G   47G  172G  22% /home
tmpfs           1.2G   66k  1.2G   1% /run/user/1000
~

Offline

#4 2023-08-16 14:13:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,112

Re: home is on /dev/sda3 but im only using /dev/sda2

du -hs /var/cache

Offline

#5 2023-08-16 14:20:34

tokisuno
Member
Registered: 2023-06-13
Posts: 12

Re: home is on /dev/sda3 but im only using /dev/sda2

seth wrote:
du -hs /var/cache

here you go

❯ sudo du -hs /var/cache
4.7G    /var/cache

Offline

#6 2023-08-16 14:35:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,112

Re: home is on /dev/sda3 but im only using /dev/sda2

Well, there're 4.7GB for you to free

sudo pacman -Scc

will remove all pacman package caches…

Offline

#7 2023-08-16 14:56:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: home is on /dev/sda3 but im only using /dev/sda2

I'd be tempted to write an FAQ on this topic ... but I know no one would read it before posting.

tokisuno, there are a rather obscene number of threads on these forums about people (thinking they are) running out of space.  Before you start repartitioning (or worse yet reinstalling) find some of those threads and follow the diagnostics to identify if you really do need more space or if you just need to fix some underlying problem that's inappropriately eating up any available space.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2023-08-16 15:06:50

tokisuno
Member
Registered: 2023-06-13
Posts: 12

Re: home is on /dev/sda3 but im only using /dev/sda2

Trilby wrote:

I'd be tempted to write an FAQ on this topic ... but I know no one would read it before posting.

tokisuno, there are a rather obscene number of threads on these forums about people (thinking they are) running out of space.  Before you start repartitioning (or worse yet reinstalling) find some of those threads and follow the diagnostics to identify if you really do need more space or if you just need to fix some underlying problem that's inappropriately eating up any available space.

but I know no one would read it before posting.

i wrote this because there isn't an faq post. i didn't check other topics on this, and that's my bad. but saying you wouldn't write an faq forum because no one would read it, but also say that there are a lot of threads on this (that i didn't look for because noob), then there's clearly a demand for it.

what's easier: leading someone to an FAQ, or answering a question you've already answered 100 times?

but i do think it would make my life easier to have both in the same partition, but that could just be because im running on a single ssd laptop and my brain is still windows-pilled in some senses.

Offline

#9 2023-08-16 15:40:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,112

Re: home is on /dev/sda3 but im only using /dev/sda2

Did you successfully free enough space on the root partition?

"Merging" partitions isn't a thing - you'd first have to repartition, moving sda3 to the right, expand sda2, move everything from sda3 to sda2 delete sda3 and expand sda2 to fill the rest.
Idk whether eg. gparted abstracts that for you w/ a nice GUI, but trying to do this manually is usually a great way to mourn lost data.

Offline

#10 2023-08-16 15:44:47

tokisuno
Member
Registered: 2023-06-13
Posts: 12

Re: home is on /dev/sda3 but im only using /dev/sda2

seth wrote:

Did you successfully free enough space on the root partition?

"Merging" partitions isn't a thing - you'd first have to repartition, moving sda3 to the right, expand sda2, move everything from sda3 to sda2 delete sda3 and expand sda2 to fill the rest.
Idk whether eg. gparted abstracts that for you w/ a nice GUI, but trying to do this manually is usually a great way to mourn lost data.

yea that makes sense. i don't keep sensitive files on here since everything i need backed up is synced with a syncthing server @ home.

and yes i did get more storage. tysm <3

Offline

#11 2023-08-16 15:56:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,112

Re: home is on /dev/sda3 but im only using /dev/sda2

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB