my /home can't be written without root

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Post Reply
t96v
Baby Hen
Posts: 3
Joined: Fri Aug 24, 2018 4:27

my /home can't be written without root

Post by t96v » Sun Jan 27, 2019 2:40

Image
Although the used capacity is 20G less than the total capacity and it's mounted as /home, the available capacity is 0 and can only be written with root.

There is no ro partition in fstab.

The same happend when I boot with Linux LiveCD.

Use an ordinary 2.5-inch mechanical hard disk.

Thank you.

svantoviit
Old Dear Hen
Posts: 744
Joined: Sun Feb 28, 2010 17:55
Contact:

Re: my /home can't be written without root

Post by svantoviit » Sun Jan 27, 2019 9:55

Yes, there is nothing wrong about it.

Code: Select all

$ ls -l / | grep home
drwxr-xr-x   6 root root  4096 Aug 31 09:13 home
The user owned/writable directories are nested under /home

Code: Select all

$ ls -l /home
drwx------    2 root   root   16384 Aug 29  2011 lost+found
drwx--x---+ 210 user user 20480 Jan 27 09:56 user
If you don't like it, you can always change it with chmod although you probably do not really want to have /home writable by everyone.

User avatar
sabayonino
Sagely Hen
Posts: 3370
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: my /home can't be written without root

Post by sabayonino » Mon Jan 28, 2019 7:26

your /home partition is 100% full !
No space available to write/update new files !

cleanup your home.

Fitzcarraldo
Sagely Hen
Posts: 8193
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: my /home can't be written without root

Post by Fitzcarraldo » Mon Jan 28, 2019 15:46

Looks like you have reached the filesystem's reserved blocks limit. Normally the filesystem preserves some blocks. Important for the root filesystem. Less important for non-root filesystems, but if you get too close to 100% then disk fragmentation becomes a problem and performance can be affected:

Code: Select all

man tune2fs
-m reserved-blocks-percentage
              Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some
              number of filesystem blocks for use by privileged processes is done to avoid filesystem fragmentation, and to
              allow system daemons, such as syslogd(8), to continue to function correctly after non-privileged processes
              are prevented from writing to the filesystem. Normally, the default percentage of reserved blocks is 5%.
See http://possiblelossofprecision.net/?p=1018

Post Reply