You are not logged in.

#1 2023-11-12 15:42:22

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

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

I created 2 virtual drives with volgroup, /dev/home and /dev/root.

Supposedly home is supposed to be separate and independent from root.
But the 30GB /root space is already 17Gb and decreasing I need to separate them.
All my files and usage will be in /home. That way if something happens to the system, I can recover the files even if I have to reinstall.

But the irony is, isn't home already in root ?
'fdisk -l' output:

Disk /dev/sdb: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 860 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E5ED3E46-A72A-47E1-AAD1-EE9823843C48

Device       Start       End   Sectors   Size Type
/dev/sdb1     2048   1050623   1048576   512M EFI System
/dev/sdb2  1050624 488396799 487346176 232.4G Linux root (x86-64)


Disk /dev/mapper/volgroup0-lv_root: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/volgroup0-lv_home: 202.38 GiB, 217306890240 bytes, 424427520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Last edited by jojo06 (2023-11-19 14:55:13)

Offline

#2 2023-11-12 16:34:07

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

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

https://bbs.archlinux.org/viewtopic.php?id=290213
"sanitized" reposts to aren't acceptable - do not do that again.
You've a LVM setup there's nothing wrong about that.
Of course the /home mountpoint resides on the root partition, the question is whether you're mounting the home partition there.
fdisk won't tell you that,

lsblk -f

You've been linked the turkish translation of the installation guide; while I can't gage its quality, I highly recommend to read through that to catch up on what you should™ have read during the installation in the first place.

Offline

#3 2023-11-12 16:55:53

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

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

"sanitized" reposts to aren't acceptable - do not do that again.

I know, things got a little complicated. I'm on a fine line between the rules of the forum and my shortcomings. But I can't do a new installation if I can't secure my files. It won't happen again

You've been linked the turkish translation of the installation guide

Not at all. And thats exactly why i didnt:

while I can't gage its quality

Reading is not a problem in terms of language, especially when it comes to installation. It is only confusing if there is important and detailed text between the command lines. Then I use translation

I only followed the first page of installation commands, I know what the commands do, I know disk formatting and logic, the rest is configuration. But it's the details, the things that are missed in the initial installation that cause problems later. I have used many linuxes and done many installations, but as I mentioned before, they all broke. Wrong installations, package problems etc. But I insist on learning. And Arch is really beautiful. So is this forum and it is full of competent people. Because of all this, please don't misunderstand me and think that I don't care about the rules. I am doing my best and improving.

lsblk -f output:

NAME                  FSTYPE      FSVER    LABEL UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                                    
sdb                                                                                                    
├─sdb1                vfat        FAT32          8814-3939                                             
└─sdb2                LVM2_member LVM2 001       KuCICM-uF8H-711T-0cDH-VWAR-0XWe-xtjiUF                
  ├─volgroup0-lv_root ext4        1.0            44767b06-8ec6-4e6b-a84b-41ddf38ca9f6     16.4G    39% /
  └─volgroup0-lv_home ext4        1.0            08aeb0db-0f82-4f0a-94ba-4a7f4f8b1e22    184.2G     2% /home
sr0       

Offline

#4 2023-11-12 17:06:42

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

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

Not at all. And thats exactly why i didnt

Yes, you have:
https://bbs.archlinux.org/viewtopic.php … 0#p2130440

It is only confusing if there is important and detailed text between the command lines.

Ie. "always" - copypasting the blue boxes won't cut it.

Now look at the lsblk output: what partition is used on your /home?

As for what eats up space on the root partition, https://archlinux.org/packages/extra/x86_64/ncdu/
Spoiler, likely /var/cache - https://wiki.archlinux.org/title/Pacman … kage_cache

Offline

#5 2023-11-12 19:30:22

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

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

Hm, I understand better now. I was just asking myself how Seth knows all this. The answer is obvious: wiki. So I need to read the wiki like a book. That's what I'm going to do, yes.

It's also interesting, when I shrunk the terminal a bit, home and root look separate, but when I expanded it, home looked like it was connected to root.

paccache -r and -rk1 -u found nothing that could be deleted.
-ruk0 was able to delete 15MB.
I ran -Sc (which is not recommended). It seemed to delete nothing, asked for authorization and showed that it deleted files in /var/cache/pacman/pkg and /var/lib/pacman. But when I checked, nothing has changed. 1 update goster blocks. -Syu worked for a while but the result is the same.

Offline

#6 2023-11-12 20:46:31

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

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

I ran -Sc (which is not recommended).

Says who?

It seemed to delete nothing

You already ran paccache.

Did you check the consuption w/ ncdu?


The answer is obvious: wiki.

Sounds better than "years", so I'll just take and not talk about it tongue

Offline

#7 2023-11-12 21:05:37

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

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

I read it in here: https://wiki.archlinux.org/title/Pacman … kage_cache

I dont know about consuption w/ ncdu.

smile

Offline

#8 2023-11-12 21:18:29

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

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

Which says nothing like that… there's a warning about the consequences of -Scc but even that is not "not recommended" - you just need to know what these actions imply.

Did you install ncdu and run it and check how the disk space is used?

Offline

#9 2023-11-13 05:47:11

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

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

.cache is in home/username and has 1.8GB of space. The rest is a few MB and KB. The main thing is located in home /root, just like you said. So how do we ensure that: Linux and necessary files will be in /root. But the files we install ourselves, the installations, will be in /home. For example all configurations for i3 are in /home. Also firefox and programs and stuff. Php and Go are also in /home for me.

Offline

#10 2023-11-13 09:05:58

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

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

You don't.
$HOME is for your private stuff - you completely skipped over the relevant part of how space is used NOT in your $HOME…

Offline

#11 2023-11-13 12:25:46

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

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

Yes, now it's a bit confused. So is it the installation or the usage? Also I think we have to go to /home and do all the installations there (after the first installation). Also I think I should allocate 50 GB of space for the root area. I hope the wiki explains all this in detail. Is there anything in particular I should pay extra attention to? For example, if something is missing or omitted, can we fix it after installation?

Offline

#12 2023-11-13 14:00:32

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

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

Also I think we have to go to /home and do all the installations there

No, most certainly not.
Have you meanwhile worked through the turkish installation guide?

Offline

#13 2023-11-13 16:54:08

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

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

Not yet, I've been working on a PHP project for 3 days and I wouldn't start rebuilding the wiki without reading and understanding it completely. But here's the thing, I did all the installations in 'sudo pacman' ~. go is currently installed in /home (not as a partition) and I installed php in the same way. Let's do it this way, if I can separate the installations (if I can separate the /home space) we can close the topic as solved. Then when I do the install I read the wiki and install it that way. If I have any other problems, I will open a topic again. But I don't want to lose my files, but if I have to, it doesn't really matter.

Offline

#14 2023-11-13 16:57:02

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

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

But here's the thing, I did all the installations in 'sudo pacman' ~. go is currently installed in /home (not as a partition) and I installed php in the same way.

Is that the output of deepl.com? It's complete nonsense.

Offline

#15 2023-11-13 17:37:29

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

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

Yes, now I realized it too. The problem was that I was writing in broken Turkish. It's also hard to articulate and i have to edit the translation, sorry.

I mean this: If I can spare the home part, I can install it after a good read of the wiki. And as it is now I can integrate my files directly in the installation. How can I do that? But if we don't have that possibility, no problem. I installed all my current files; go, php, etc. with 'pacman -S' in home. So other than that, I think all installations are still in /root. But I want to separate the /home partition both to recover what I can and to learn. Isn't that the point of a separated /home partition?

Yes it was difficult to express all this, not the fault of the translation or me smile

Offline

#16 2023-11-13 21:48:52

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

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

You cannot instally anything "with 'pacman -S' in home"

But I want to separate the /home partition both to recover what I can and to learn. Isn't that the point of a separated /home partition?

It's part of it and according to the lsblk output in #3 you already have a separated /home partition.

Offline

#17 2023-11-14 06:24:07

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

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

Oh, that's great! So let me ask you, what should I do to keep /home as home in the installation? I mean, can I not format /home? I mean delete the rest and include /home directly in the installation. I think that's how the recovery works. I was also going to ask how to switch from virtual disk to normal.

Let me rephrase the question: How do I set volgroup0-lv_home partition as installed home in the installation? Then I delete lv_root and create root from scratch. Likewise for sdb1, EFI will be created. Also the virtual drive looks a bit strange, it looks complicated, so does the name. Is there any chance to change it back to virtualized?

Looking for this: grep lv_home, create new table, import lv_home & cancel his virtualization, rename it. AND i will install the rest of partitions.

Offline

#18 2023-11-14 07:49:39

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

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

seth wrote:

Have you meanwhile worked through the turkish installation guide?

Offline

#19 2023-11-14 08:52:09

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

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

Yes, I read it and finished it, I also looked at a few links, FAQs and important reminders (general tips), as well as the specific installations that you are directed to see in the installation. Once I learn how to integrate /home the way I want, I would like to install it.

Let me ask you this, let's say I installed nvidia in the first installation, and then I decided I needed nvidia-utils, or I suddenly needed it. I didn't install it in the first installation, but will it be a problem if I install it later?

Offline

#20 2023-11-14 13:15:59

micronetic
Member
Registered: 2020-02-26
Posts: 40

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

jojo06 wrote:

Let me ask you this, let's say I installed nvidia in the first installation, and then I decided I needed nvidia-utils, or I suddenly needed it. I didn't install it in the first installation, but will it be a problem if I install it later?

When you installed the nvidia or nvidia-open package while installing Arch, nvidia-utils come with it together (at least it was for me).

Offline

#21 2023-11-14 13:45:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,447

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

If you're generally referring to installing the nvidia drivers later, yes you can do that whenever you want.

Offline

#22 2023-11-14 14:04:34

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

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

Oh, great. Looks like the türküsh installation guide just links english pages that are also not translated - that's oc. not very helpful sad

The stuff in your $HOME is supposed to be disjunct from the OS, you just have to mount the partition into the /home path and that's it.
If (and only if) you re-install the system (I mostly wanted you to read the turkish wiki to get a basic idea of the system) do NOT delete any partitions - you just need to recreate the filesystem on the root partition.
I don't think that your root partition is too small, but you can easily resize LVMs, https://wiki.archlinux.org/title/LVM#Re … _in_one_go
However, if you're going to do that:
1. ideally have backups
2. ask for help in https://bbs.archlinux.org/viewforum.php?id=30

Offline

#23 2023-11-14 21:03:44

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

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

I wish I hadn't set up a virtual disks. But it's nice to be able to resize it. Also, if I can connect the current /home as if I installed home, that's fine, that's what I wanted. But what kind of installation do I do if I don't delete /root? So there's nothing left to do. Or am I misunderstanding?

You know the story, I want to make a solid and beautiful installation with my own hands. Only with wiki guidance.

Last edited by jojo06 (2023-11-15 07:57:17)

Offline

#24 2023-11-15 20:58:17

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

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

But what kind of installation do I do if I don't delete /root?

Recreating the filesystem on the root partition would "delete" all data there.

"Deleting a partition" would be down with fdisk (or cfdisk) or eg. https://wiki.archlinux.org/title/LVM#Re … lume_group
Again: DO NOT DO ANY OF THIS!
You're increasing the risk (respectively when working below the LVM layer you're making it a certainty) to delete your home partition/volume.

Offline

#25 2023-11-16 16:27:01

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

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. Then I have nothing left to do in the installation, so there is no installation left to do. I guess I just need to increase the size of /root

Offline

Board footer

Powered by FluxBB