How is /root different from other directories?

Moderator: fredx181

Post Reply
Luluc
Posts: 155
Joined: Mon Feb 26, 2024 3:13 am
Has thanked: 89 times
Been thanked: 7 times

How is /root different from other directories?

Post by Luluc »

I just had to rename a large directory inside /root in FossaDog. Renaming is usually an instantaneous operation, but this one took a loooooong time... I could see it was performing a full copy operation, as if I was moving it to another file system.

I did it again with a slightly smaller directory, but also large. Again, a looong time...

Running 'sync' after each operation also takes a looong time...

Why?

Luluc
Posts: 155
Joined: Mon Feb 26, 2024 3:13 am
Has thanked: 89 times
Been thanked: 7 times

Re: How is /root different from other directories?

Post by Luluc »

I replaced /root with a symlink to a copy of it in another partition.
There was a little resistance, the system put up a fight, but my will prevailed.
Now everything is remarkably fast. I've never seen my OS run so fast. Even the browser loads the pages faster.
Looks like /root was holding the machine back.
What is going on?! What is the deal with /root in this OS?

vektor_alian
Posts: 74
Joined: Thu Apr 01, 2021 12:36 am
Been thanked: 21 times

Re: How is /root different from other directories?

Post by vektor_alian »

Hi Luluc

Have to guess since you provided no info: hard drive.

Vektor

User avatar
fredx181
Posts: 3205
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 395 times
Been thanked: 1378 times
Contact:

Re: How is /root different from other directories?

Post by fredx181 »

@Luluc Can't see anything special about the /root directory.
I do know that renaming is often tricky on a layered filesystem (FossaDog is still using "aufs", newer DebianDogs now use "overlayfs").
When trying to rename with pcmanfm, I get "Invalid cross-device link" error, using mv from terminal should work, but may depend on e.g. if the file/folder to rename exists in the main .squashfs or (only) in the save-storage.
But frankly I don't know enough about the mechanism. Perhaps better ask about renaming in another (general) section.

Post Reply

Return to “UbuntuDogs”