You are not logged in.

#26 2023-11-16 17:55:01

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED]Allocate /dev/home to make home separate

Oh I see, so you're saying that if root is gone (because it's a virtual drive and it's connected) home is also deleted.

No. I'm saying that deleting the partition is eithr gonna be pointless or harmful.

I guess I just need to increase the size of /root

Did you check where you're wasting the space on the partition?

Offline

#27 2023-11-17 15:50:43

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Allocate /dev/home to make home separate

You suggested I delete the cache, I did, but it made no difference. Other than that I gave all the space to /home

Offline

#28 2023-11-17 20:32:14

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED]Allocate /dev/home to make home separate

No, I suggested to use ncdu to see where you're spending how much disk space.

Offline

#29 2023-11-18 10:36:06

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Allocate /dev/home to make home separate

Yes, I checked using ncdu, I reported the result. Only 1.5 GB is used in the cache part, the rest is much less. You also mentioned the cache part in this way and provided a link. So I deleted the caches.

Offline

#30 2023-11-18 13:19:31

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED]Allocate /dev/home to make home separate

sigh…

df -h
sudo du -hx /

Offline

#31 2023-11-18 18:15:15

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Allocate /dev/home to make home separate

I know it's gone on too long, so I'm cautious. The output, like I said:
dh -h:

Filesystem                     Size  Used Avail Use% Mounted on
dev                            7.8G     0  7.8G   0% /dev
run                            7.8G  1.3M  7.8G   1% /run
efivarfs                       128K   70K   54K  57% /sys/firmware/efi/efivars
/dev/mapper/volgroup0-lv_root   30G   12G   16G  43% /
tmpfs                          7.8G  1.2M  7.8G   1% /dev/shm
tmpfs                          7.8G   40M  7.8G   1% /tmp
/dev/mapper/volgroup0-lv_home  199G  4.2G  184G   3% /home
tmpfs                          1.6G   64K  1.6G   1% /run/user/1000

sudo du -hx / output is long and does not fit in the terminal. Should I curl it? They are all either kilobytes or megabytes and I think I need to find the GB one. Not in order, unfortunately.

Offline

#32 2023-11-18 18:31:16

loqs
Member
Registered: 2014-03-06
Posts: 18,130

Re: [SOLVED]Allocate /dev/home to make home separate

# du -hxd 1 /

Find the biggest directories then for example if it was /var and /usr

# du -hxd 1 /var /usr

Repeat as needed if you want to dig deeper.

Offline

#33 2023-11-18 19:30:51

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED]Allocate /dev/home to make home separate

It's actually not really required…
@jojo06, you're using 12G on the root partition, what's not unreasonable. You also have 16G spare. Why do you think you need to grow the partition?

Offline

#34 2023-11-18 21:08:31

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Allocate /dev/home to make home separate

@seth That's why; I set it up as 30 GB, a few GB went to installation and it first came as 18-20 GB. Now it's down to 16GB. It will continue to decrease even more. Also, wouldn't it cause performance issues?

Besides, I want to do a setup like this: a completely separate /home partitions with all installations and settings. So all the files will be like on a flash drive. Even if something happens to the system or the computer, the files will come back when /home is mounted again.

I want the opposite of the current setup. A 50 GB system files partition (maybe 30), all the rest of the space in /home. But it will use the space in /home and not in /root. Right now I'm stuck with 16 GB, 185 GB is free.

Also, I need a clean install, remember? smile myself, I have to install it manually. I've just finished the projects I have, I haven't even looked at the systemctl issues yet. If I start a thread, you know the answer is obvious. "You don't use Arch." Because of all this.

Offline

#35 2023-11-18 21:21:39

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED]Allocate /dev/home to make home separate

I want to do a setup like this: a completely separate /home partitions with all installations and settings.

That is not a thing. You install into /usr (mostly), not /home

So all the files will be like on a flash drive

Speaking of performance issues. Also flash drives are NOT cheap SSDs and will die fast if you treat them like such.

If you want to install the system on a removable drive, see https://wiki.archlinux.org/title/Instal … ble_medium
But that's frankly seldom a good idea.

Offline

#36 2023-11-19 13:56:56

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Allocate /dev/home to make home separate

There was a translation error. What I want to do is to create a separate /home and keep all my files (everything except system files) there. By flash drive (USB) I mean the /home partition itself. So the /home mount system will bring back all my files. If anything goes wrong with the Arch or the system, like deleting or reinstalling /root, I can mount the /home system and recover the system.

Offline

#37 2023-11-19 13:57:56

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED]Allocate /dev/home to make home separate

That's the status quo of your system.

Offline

Board footer

Powered by FluxBB