Too many directories after new install

[This is not my first attempt at getting an answer to this problem – I’ve been wrestling with this and a couple of other installation problems for about a month (!) now.]
After several reinstalls of Manjaro-Xfce I’ve been unable to configure partitions for a minimum number of directories using one SSD:

NAME   FSTYPE FSVER LABEL     UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                               
├─sda1 ext4   1.0   home      b8a05f2b-2ce8-405a-ab04-b533e2c95eab    1.3T     1% /run/media/chas/home
├─sda2 ext4   1.0   ROOT      f4127c5f-3bbe-4fa8-ad7e-e8fa9570313b  356.3G     4% /
└─sda3 vfat   FAT32           E873-1CCD                               329M     0% /boot/efi

My resulting directory is a mess, like this:
/run/media/chas/home/chas/
for the partition that I wish simply said /Home, and
/home/chas/
for the root partition (sda2) where Manjaro is installed I would like to see just / or /root.
The Manjaro User Guide is good in many ways but it does not adequately cover installation with /root /home EFI partitioning.
Is there a tutorial that will show me how to get what I want?

To clarify, besides the EFI partition, you want a root partition and a home partition?


Phew… There are countless tutorials on the internet about it, and they all show more or less the same thing. Maybe start by saying what the problem is and what you tried or at what stage did you stuck?

Normally, you can choose the root and home partition by setting the mount point / for the root partition and /home for home partition at the installation. But that would be manual partitioning rather than automatic.

Doubtless I have seen only a small number of the available tutorials out there (if your “Phew” is any indication of how many exist). My problem is, the process(es) I’ve been following (which I believe follow the given instructions) are not doing what I want: OS and related files under "/', and data and everything else under “/Home”.
Here’s my current partition table:
[deleted]
results of sudo parted:

[sudo] password for chas: 
Model: ATA SanDisk SSD PLUS (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 3      1049kB  347MB   346MB   fat32              boot, esp
 2      347MB   428GB   427GB   ext4         root
 1      428GB   2000GB  1573GB  ext4


Model: WD easystore 2648 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name       Flags
 1      1049kB  2000GB  2000GB  ext4         easystore


[chas@chas-pc ~]$ 

And that yields

/run/media/chas/home/chas/

as my home directory and

/home/chas/

as my root directory, which is what I would expect for the Home directory, not ROOT.
Part of my problem is, when I select Home for sda1 it ends up “run/meda/chas/home.” Clearly part of the problem which has to do with automounting, but I have so far been unable to figure that out correctly.
And how does one stop the “/” designation from showing in directory listings (Thunar in my case) as “/home/chas/”?
And for that matter, what does it take to drop the user name for a computer which has only one user who knows who he is and what his name is? If I could get rid of the user name that would be at least a step closer to my desired end.

Post the contents of /etc/fstab

I believe that’s at the top of this stack in my original post.

Nope.

cat /etc/fstab

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=E873-1CCD                            /boot/efi      vfat    umask=0077 0 2
UUID=f4127c5f-3bbe-4fa8-ad7e-e8fa9570313b /              ext4    defaults,noatime 0 1
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
LABEL=Home /home ext4 noatime 0 0
LABEL=Home  ext4 noatime 0 0
LABEL=Home /home ext4 noatime 0 0

You only need one, and the middle one is wrong.

The label is home not Home

LABEL=home /home ext4 noatime 0 0
1 Like

Thank you. So 1) can I change this without repartitioning, or do I need to start over; and 2) can you tell me what I’m doing to cause this?

Yes, but the directory structure may be messed up. You’ve been using that partition but also the /home directory on the / partition.

If I were you I’d make a new directory in /run/media/chas/home/chas and copy everything from /home/chas to there. You can sort out what goes where and which version is newest later.

mkdir /run/media/chas/home/chas/oldhome
rsync -axAXSH /home/chas/ /run/media/chas/home/chas/oldhome/

Make sure you have a working live USB, then fix /etc/fstab and reboot. Once you’ve checked it works and you have all your data, you can boot the live USB mount ROOT (only ROOT) and delete the contents of /home/chas. Be careful.

You have too many entries for home in /etc/fstab and you used a non-existent label in all of them.

If you’re asking how the entries got there, I assume you put them there. If not, then :man_shrugging:

The Linux filesystem layout is not organized to have “data and everything else” under /home
Because /home is only where personal data for the user is stored, everything else have their own defined directories…


This /run directory is the wrong directory to mount anything yourself, especially if it is supposed to be permanent.

Can you provide the complete (uncut) output of:

sudo fdisk -x /dev/sda

So we can check the GUID’s also of the partitions, and if you are using MBR or GPT…
Easiest is to pipe the output to a temporary file and paste the contents of it here…

[chas@chas-pc ~]$ sudo fdisk -x /dev/sda
[sudo] password for chas: 
Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: SanDisk SSD PLUS
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: FE7C0724-6F47-6C43-A844-F8C57CCACF42
First usable LBA: 2048
Last usable LBA: 3907029134
Alternative LBA: 3907029167
Partition entries starting LBA: 2
Allocated partition entries: 128
Partition entries ending LBA: 33

Device         Start        End    Sectors Type-UUID                            UUID                                 Name Attrs
/dev/sda1  835022848 3907024031 3072001184 0FC63DAF-8483-4772-8E79-3D69D8477DE4 D998D4FB-0A40-A54F-B3EF-2B0903787434      
/dev/sda2     677888  835022847  834344960 0FC63DAF-8483-4772-8E79-3D69D8477DE4 C5AF9C38-C2EE-CE44-AF4F-AEA85578A72E root 
/dev/sda3       2048     677887     675840 C12A7328-F81F-11D2-BA4B-00A0C93EC93B A07B0787-7766-1C4B-BE9B-5D4BAA6C7607      

Partition table entries are not in disk order.
[chas@chas-pc ~]$ 

I assume this is the complete output?

How did you endup like that? :thinking:
Anyhow the first two partitions have a GUID for a standard Linux filesystem, and the 3rd for ESP, so nothing wrong there i could notice except the order when you look at start/end sectors…

And by closer inspection of those start/end numbers, it looks like you have holes/parts that are not used or skipped…
BIG parts even…

To complement to the above clarifications:


Technically, your system has at least two: chas and root. The latter exists on all Linux systems, you can’t get rid of that one.
And i don’t mention services running with their own respective users…


At least, i can tell those Home declarations are not done (correctly) during the installation, since the installer uses UUIDs.
Considering the labels on your partitions, and how you end up with your “home” in /run/media/<user>, which is the default folder for mounting undeclared partitions, my guess is, at the manual partitioning during the installation, you try to declare mounts using the Label field instead of the Mount field.

1 Like

Please edit your post to remove the screenshot and post the output of the following command instead:

sudo parted --list

EDIT: Thanks for doing that. :+1:

I don’t know. That fdisk results order is reversed from the way the partitions appear in gparted. I have re-installed Manjaro-Xfce four times (five installations) and I believe they have always ended up like this.

I’ve been studying this and I don’t understand – the beginning number for /dev/sda3 (which is the first partition on the disk) extends naturally to the final number for /dev/sda1 without a gap. There is a small (2.51 MB) unallocated partition and the end of the disk, but other than that the only thing I can see is that the first partition (sda3) starts at 2048. Is that what you are referring to? (I did not intentionally leave a beginning gap when making the partition.)


Moderator edit: Fixed quotes

With respect to the gaps: My mistake my eyes looked at wrong columns :blush:

That is normal, because the partition table needs space also on the disk :wink:

If gparted causes that layout, i suggest you to stop using gparted…
I’m guessing you are manually doing your partitioning right?
(Because this is the first time in my life I’ve seen such a reversed order being generated)

Next time when manually partitioning:

  1. Use fdisk.
  2. Start with creating a fresh new empty GPT partition table.
  3. Write the changes to disk and reboot. (This is important!)
  4. Add the EFI partition as 1st partition, using space from the start of the disk which is the default.
    Select the partition type as “EFI System”.
    (GUID / Type-UUID = C12A7328-F81F-11D2-BA4B-00A0C93EC93B)
  5. Add your / partition as 2nd partition, using space starting from the end of the EFI partition which is the default.
    Select the partition type as “Linux root (x86-64)”.
    (GUID / Type-UUID = 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709)
  6. Add a swap partition if you want one which is recommended but not required.
    Select the partition type as “Linux swap”.
    (GUID / Type-UUID = 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F)
  7. Add your /home if you want a separate partition for it.
    Select the partition type as “Linux home”.
    (GUID / Type-UUID = 933AC7E1-2EB4-4F13-B844-0E14E2AEF915)
  8. Write the changes to disk and reboot again.

After the above the partitions should be in correct order and have proper types, without gaps between them.
You are now able to format the partitions:

  1. The EFI partition should be formatted as a FAT32 filesystem (commonly referred to as vfat)
  2. The swap partition should not be formatted because it does not hold any filesystem. (Swap uses RAW data)
  3. The other partitions can be formatted as any Linux filesystem you want.

When installing use:

  • The 2nd partition you had set as partition type “Linux root (x86-64)” as the / Partition to install your Linux in.
  • The EFI partition should be mounted as /efi (or like some do as /boot/efi when using grub)
  • The eventual home partition is mounted at /home