Skip to main content
Explained how accepted answered worked out for me
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44

5. Retrospection

@sourcejedi has provided a useful answer below.

What happened is that the content of the directory storage/ was always saved in sda8 as /home/user2/storage, whether user1 or user2 were logged in, and mounted on sda13 when user2 logged in. Say storage/ contained 100G, then 100G were always taken on /dev/sda8 and some times in /dev/sda13.

I discovered this by mounting /dev/sda13 on a brand-new /home/storage from the /etc/fstab file: I was logged in as user2 and all files were still in /home/user2/storage within /dev/sda8. So I moved the files to a directory within the partition sda13, and referenced such a directory with a symlink from inside /home/user2, as suggested.

In this way I freed those 100G in sda8 and have a reliable report of the size of storage/ from df -h /dev/sda13 whether I am user1 or user2.

5. Retrospection

@sourcejedi has provided a useful answer below.

What happened is that the content of the directory storage/ was always saved in sda8 as /home/user2/storage, whether user1 or user2 were logged in, and mounted on sda13 when user2 logged in. Say storage/ contained 100G, then 100G were always taken on /dev/sda8 and some times in /dev/sda13.

I discovered this by mounting /dev/sda13 on a brand-new /home/storage from the /etc/fstab file: I was logged in as user2 and all files were still in /home/user2/storage within /dev/sda8. So I moved the files to a directory within the partition sda13, and referenced such a directory with a symlink from inside /home/user2, as suggested.

In this way I freed those 100G in sda8 and have a reliable report of the size of storage/ from df -h /dev/sda13 whether I am user1 or user2.

Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
Added requested info
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44

###4.2 Output of sudo df -h (user1,2)

###4.2 Output of sudo lsblk

###4.3 Output of sudo mount

###4.4 Output of sudo findmnt

###4.2 Output of df -h (user1,2)

###4.2 Output of lsblk

###4.3 Output of mount

###4.4 Output of findmnt

###4.2 Output of sudo df -h (user1,2)

###4.2 Output of sudo lsblk

###4.3 Output of sudo mount

###4.4 Output of sudo findmnt

Added requested info
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44

###4.5 Output of groups (user1,2)

user1 adm cdrom sudo dip plugdev lpadmin sambashare common

user2 sudo common

###4.5 Output of groups (user1,2)

user1 adm cdrom sudo dip plugdev lpadmin sambashare common

user2 sudo common
Added section numbers, added requested info
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44
Loading
Added section numbers, added requested info
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44
Loading
Tweeted twitter.com/StackUnix/status/914857671043448832
Added requested info
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44
Loading
Notice added Draw attention by XavierStuvw
Bounty Started worth 50 reputation by XavierStuvw
Revised evidence, language and questions
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44
Loading
Added diagnostics upon request
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44
Loading
Source Link
XavierStuvw
  • 1.2k
  • 6
  • 20
  • 44
Loading