On Fri, 11 Dec 2015, Manuel Bouyer wrote:

On Fri, Dec 11, 2015 at 03:15:06PM +0100, 6b...@6bone.informatik.uni-leipzig.de 
wrote:
I'am trying to activate quota on a NetBSD-7 system, but the startup script
returns an exit code of 1.

[running /etc/rc.d/quota]
Checking quotas: done.
/etc/rc.d/quota exited with code 1

Do you have any error in /var/run/rc.log ?

No. rc.log shows only the three lines.



When I try to disable the quota with 'quotaoff -a', the process goes to a
non-interruptible status, uses 100% CPU and can not be terminted.

Here my fstab:

# NetBSD /targetroot/etc/fstab
# See /usr/share/examples/fstab/ for more examples.
/dev/sd0a               /       ffs     rw,userquota     1 1

I would suggest using the new quota2, though.
See tunefs(8) and fsck_ffs(8)

It was not possible to activate the quota with tunefs. This is because I use a kernel with "#INSECURE". Now I have a kernel with 'INSECURE'. Now you can activate the quota with tunefs. rc.log now looks like this:

[running /etc/rc.d/quota]
Checking quotas:quotacheck: filesystem / has quotas already turned on

Question: Can I use QUOTA2 with a '#INSECURE' kernel?

Is it further necessary to run '/etc/rc.d/quota' at boot or to use the userquota statement in the fstab?

Thank you for your efforts.

Regards
Uwe

Reply via email to