Toggle navigation
Koozali.org: home of the SME Server
Community
Forums
Bugs
Lists
Forum Help
Download
SME Server ISOs
Contribs
Documentation
Manual
Wiki
FAQ
HowTo
Donate
Search
Login
Register
Login
Register
×
Close
Login
Remember me
Koozali.org: home of the SME Server
Legacy Forums
Experienced User Forum
Topic:
Quota on second HDD
« previous
next »
+
Print
Pages: [
1
]
Go Down
Quota on second HDD
6 Replies
621 Views
Lasse Johansson
Quota on second HDD
«
on:
March 07, 2003, 01:00:50 AM »
How do I enable quotas on a second HDD in SME 5.6?
Obviosly, it isn't enough to mark the partition as qouta enabled in /etc/fstab
If I remember correctly, the partition has to be initialized for quota first.
A short How-to, anyone??????
Logged
Craig Foster
Re: Quota on second HDD
«
Reply #1 on:
March 08, 2003, 09:59:47 AM »
Check out quotaon and quotacheck. Remember SME is just RedHat enchanced, so reading the RedHat System Administrators Guide is A Good Thing.
Short answer is to unmount the second drive, and run quotacheck -vug /dev/hdb1
(or whatever your second drive is) and then remount the drive. This works however many drives you want to add to SME or indeed RedHat 7.x
Logged
Lasse Johansson
Re: Quota on second HDD
«
Reply #2 on:
March 08, 2003, 05:26:58 PM »
Many thanks for your answer!
Just wanted to file a short warning for using that command on a disk with user data...
Running the command wiped the disk from all previous user data.
In my case, the mount point for my second hdd was /home...)
Luckily I had made a backup of that data so a
cp /home_backup/* -Rp /home
restored all the files again correctly.
Again, thank you for your help!!!
Logged
SalaTar
Re: Quota on second HDD
«
Reply #3 on:
March 09, 2003, 05:57:13 AM »
I just copied the quota.group and quota.user to the mount dir of the second drive
/home/esmith/files
seems to work But I havnt turned on quota either.
Is this a bad Idea?Lasse Johansson wrote:
Logged
SalaTar
Re: Quota on second HDD
«
Reply #4 on:
March 09, 2003, 05:57:15 AM »
I just copied the quota.group and quota.user to the mount dir of the second drive
/home/esmith/files
seems to work But I havnt turned on quota either.
Is this a bad Idea?
Logged
Lasse Johansson
Re: Quota on second HDD
«
Reply #5 on:
March 09, 2003, 05:04:43 PM »
SalaTar wrote:
>
> I just copied the quota.group and quota.user to the mount dir
> of the second drive
> /home/esmith/files
> seems to work But I havnt turned on quota either.
> Is this a bad Idea?
How do you mean "seems to work" if you haven't turned on quota?
As far as I understand, it shouldn't work...
Logged
SalaTar
Re: Quota on second HDD
«
Reply #6 on:
March 09, 2003, 07:13:19 PM »
well the quotas show in quota addon only after I did it
After I made the second hdd for users the per instuctions.
The fstab mount was default 1 2
when I added the usrquota, grpquota 1 1 to fstab I got an error on mount till I copied the files over to the mount pount
It dont work hmm
I can see users diskusage now
Logged
+
Print
Pages: [
1
]
Go Up
« previous
next »
Koozali.org: home of the SME Server
Legacy Forums
Experienced User Forum
Topic:
Quota on second HDD