We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

My /home folder is duplicated into /opt/alien [answered]

asked 2015-05-02 15:45:12 +0300

Vivien gravatar image

updated 2015-05-02 15:46:08 +0300

I checked the folder that takes most memories using Space Inspector, and I saw that the folder /home is duplicated into /opt/alien. I confirmed it using File Browser. It is annoying as the home takes most of the used memories, thus it takes twice more memory than I should.

The question has been closed for the following reason "the question is answered, an answer was accepted" by Vivien
close date 2015-05-03 11:00:04.233454

Comments

I can confirm this. If it is needed in /opt/alien it should be a symlink.

Tanghus ( 2015-05-02 15:57:50 +0300 )
1

It's mounted, it does not takes more space.

coderus ( 2015-05-02 20:09:25 +0300 )

Ah. I should have tried to run df.

Tanghus ( 2015-05-02 20:50:55 +0300 )
add a comment

2 Answers

Sort by » oldest newest most voted
4

answered 2015-05-02 18:21:26 +0300

Self-Perfection gravatar image

Your home is mounted into /opt/alien/home. You may check with findmnt -R /opt/alien/home. It is a bind mount (mount -o bind DIR1 DIR2) which is in short a hard link for directories.

Symlink is not appropriate in this case as symlink can not penetrate chrooted environment.

link
add a comment
0

answered 2015-05-02 16:39:44 +0300

SaimenSays gravatar image

Have you checked if it is a hardlink? I think this can't be shown by file browser. you have to check it in terminal. Look for same node with

ls -i
link

Comments

Indeed it seems it is a hard link. I'm not familiar with this kind of link, but it appears that it still takes twice the memory (or at least the system think that it takes twice the memory, what would be problematic).

Wouldn't it be better to use a symlink instead?

Vivien ( 2015-05-02 16:54:05 +0300 )

http://en.wikipedia.org/wiki/Hard_link
As you can see, it just thinks it takes up space, symlinks tell how big the link file is, hard links tell the size of the linked files. At least that's how I understand it.

JakeTheChangeling ( 2015-05-02 17:09:56 +0300 )

Anyways, it is a problem that Sailfish count the memory twice, and I suspect that there will be some problems when it will think it is full (even though half the total memory is free), such as impossibility to update the system (I remark this problem because Sailfish told me that it remained not a lot of memory).

For information, I never had this problem before the last regular update (1.1.2.16).

Vivien ( 2015-05-02 19:29:11 +0300 )
1

Don't worry, Sailfish does not count the memory twice, you should go read about bind mounts.

If you have memory issues, it's because of that: https://together.jolla.com/question/30822/root-and-home-disks-full-and-causing-various-problems/

Sthocs ( 2015-05-02 20:39:21 +0300 )

Yes you are right, the memory in not counted twice. Thank you everyone to show me why it is not a bug. I'll close the task.

Vivien ( 2015-05-03 10:59:38 +0300 )
add a comment

Question tools

Follow
2 followers

Stats

Asked: 2015-05-02 15:45:12 +0300

Seen: 476 times

Last updated: May 02 '15