"Root" has taken ovnership over internal HDD's?

Halow again everyone.
After upgrading to 24.04 I installed 3 internal Sata HDD's.
They were all used on Ubuntu v. from 16.04. and latter.
I formatted them all in "Disks", through my new upgrade in 24.04.
My problem now is that they are mounted through root at /mnt/ and of course my "Root" partition is 100% full.

How can I get these disks back to my ownership and mounted through /home/media

Regards
Spacepunk

Can you explain in more detail what you mean by this?

My problem now is that they are mounted through root at /mnt/ and of course my "Root" partition is 100% full.

2 Likes

You can edit mount points via Disks. Select the partition in the interface, click the Settings icon :gear:; then select 'Edit Mount Options...'.

In the Settings :gear:, there is also an option to 'Take Ownership'.

2 Likes

Hi Stephen.
I'w done that through Disks.
I was actually working with these options last night.
As soon as I press OK, the mount option changes back to Root/mnt/disk name.
And the option on "Take Ownership", is always faded.

Actually....
Just now I were aloud to change "Ownership" on one of the discs.
Witch is a little varied, there were no sines of that last night.


The two other Discs, still gives me a faded option on " Changing Ownership".

Another thing that has happened during the night Is that on another of the discs the mount place has changed from: " /root/mnt/MITT-SITT"
to: "/media/spacepunk/MITT-SITT".
Witch is what I want.
But through "Properties" on this disk I'm getting:

.
-Then Again, it will probably change after I have rebooted.

Her is also a pic on chancing the "Mount Point" i Disks.
Witch also shows you what I meant with:


I also explained this in top of this replay.

Hear is also a pic from "Disk Usage Analyzer" witch shows my "Root Partition" situation.

I hope this gives you some more clues Stephen and please don't give me up.
And really, THANK YOU for your help.
:smiling_face:
Regards
SpacePunk

2 Likes

The root, /, will always report 100% full.

In the screenshot you provided, it shows just below the menu icons that there is 12.8TB capacity, of which 3.1TB has been used. I think that refers to the (total) for all mounted partitions.

I guess gnome-disks isn't willing to acquire the privileges it needs for you to take ownership. I think the commands you need are summarised here: linux - How can I mount a drive under my home directory at boot? - Unix & Linux Stack Exchange. Wish I could help more, but this is a bit beyond me!

2 Likes

The question of ownership of mount points is thoroughly discussed here https://www.baeldung.com/linux/mount-owner

If one does not insist on writing directly into the root directory of mounted drive (i.e. mount point itself) and is not reluctant to dive into a subdirectory under mount point, then there is simple workaround. One can create a directory within the mount point as root and chown it. User's ownership for that directory will persist across boots.

I use this workaround. That is the whole /home directory is root-owned mountpoint and /home/<me> directrory is owned by me.

4 Likes

Continuing the discussion from ["Root" has taken ovnership over internal HDD's?](https://ubuntu-mate.community/t/root-has-taken-ovnership-over-internal-
hdds/28482/5):

Thanks a lot anyway Stephen, you were the one that got me on to the right track with this.
:thinking: :+1:

And yes I have for now connected a couple more discs, so the drive capacity is quiet high. I'm desperately trying to save and maybe get some old files to work and yes 12.8TB refers to the total amount of mounted partitions.
Then again my "Root" partition only has 500GB.

You say "The root, will always report 100% full" but this means that it is actually full and lacking space ???
This again is my second quest in this and I have some plans with "gParted" and it's Resize/Move option.
But the thing is that "The Full Folders" is in OS system that runs the the hole thing and can not be unmounted. So I thought I could boot the computer up on a live disk and run it from there. This way I can unmount, resize and move it all, couldn't I ????

And I will gladly throw my self in the issue about privileges and ownership of my own payed hardware.........

But keep posted Stephen.
:wave::slightly_smiling_face:

aND also a SOLID TANKS to ugnvs for his very helpfull input.
Cheers Mates :beers:
Regards
SpacePunk

2 Likes

I should not have said 'full'. MATE Disk Usage Analyzer reports the proportion of the total data that is nested within each folder. By definition, / must contain all of the data (i.e. 100%).

2 Likes

Is this the default for most user 'home' folders? My /home/<username> folder is owned by <username>/<username> user/group.

Yes. By default at creation during install, to simplify, the process does not ask for a group name.

Obviously, after confirming the install is stabilized, you can always change the name and id of that "base" user if you so choose, but it needs to be done carefully. I would make sure I had another user with full admin privileges before "tinkering" with finding all locations where the group name and ID need to be changed and updating those all to ensure consistency across the board, while maintaining the original full privileges of that user.

2 Likes

AFAIK, root owns mountpoint (i.e. root directory of the mounted drive) by default. I am not certain about user's home directory because I set up it manually. Currently

:/home$ ls -l
drwx------  2 ugnvs root 16384 2016-08-08 10:46:31 lost+found
drwxr-xr-x 54 ugnvs ugnvs   4096 2024-11-14 10:46:49 ugnvs
1 Like

On old HP-UX, and possibly with Linux (unsure), you had to create the mountpoint with root ownership and privileges 755 to ensure mounting a device to that folder (with user-specific ownership/group/privileges) would behave properly. I remember distinctly that weird things happened if that was not the case, but I can't remember what, because it was so long ago.

1 Like