Click to See Complete Forum and Search --> : Quotas


packetMax
10-02-2002, 08:22 PM
Hey,

I want to add quota's to my system here at home for each user...I've searched google for tutorials and stuff, and got one which said I should edit /etc/fstab and I did that - After rebooting my file system was mounted in read only, so I was kinda screwed, I couldn't fix the problem. Had to reinstall (lost lots of data) Anybody knows how to install quota's and add quotas for each user/directory etc.. the right way ?

It's on Linux Mandrake 8.2 and on FreeBSD 4.6

Many thanks in advance.

packetMax

john8675309
10-04-2002, 10:41 PM
Just to let you know you didn't have to reformat there is a snazzy little command that you can use in lilo that will allow you to mount the drive in read write mode but not go all the way through the login process don't remeber it off the top of my head. I am sure you know that /etc/fstab controls how a drive is mounted everything from where it is mounted to how it is mounted(read/write) more then likely the tutorial was correct but possible they had you put an ro in the fstab which would have mounted the drive Read Only. I have never done quotas I need to learn though but I do know the Kernel has to be compiled to do so. I guess that would be the next place I would check.

John

jjs
10-06-2002, 07:25 PM
fstab should look like this

/dev/hda7 /home ext3 defaults,usrquota 1 2

then type quotacheck -avug that will establish quota.user on the partition.

then to set the quota for a user type
edquota -u user

then quotaon -avu wil turn it on.

marconi8
12-27-2002, 05:02 AM
i have directory /partition

in this directory i have placed two files
quota.user, quota.group

than i edit my /etc/fstab

/dev/hdb5 ext2 defaults ,usrquota,grpquota 1 2

then i make
shell> quotacheck -avug and now i get the error

-- cant remount filesystems mounted on /read-only

, can anybody helps me ???