BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 2nd, 2006, 12:06 AM
johnhardey johnhardey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 126 johnhardey User rank is Sergeant (500 - 2000 Reputation Level)johnhardey User rank is Sergeant (500 - 2000 Reputation Level)johnhardey User rank is Sergeant (500 - 2000 Reputation Level)johnhardey User rank is Sergeant (500 - 2000 Reputation Level)johnhardey User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 6 h 22 m 13 sec
Reputation Power: 15
/home not in /etc/fstab (regarding quotas)

I've been trying to enable quota on my freebsd 6.0 box twice already and failing on both occassions. I've followed the steps in the handbook but I'm a bit confused.

An entry for the /home directory is missing in the /etc/fstab (as specified in the handbook), because I'm trying to set disk quotas for the home directories. My question is, will it work if I set quota (userquota) to the root directory entry?

I did that before and did an edquota for a user. The system hangs when I tried to ftp a file into that user's home directory, and also hangs when I ftp'ed a file to other home directory. Lastly, it also hangs when I run the command `quota username`. I checked the quota.user file if it existed, it does, at the root directory (I understand that it'll be located there by default).

So far, I've already edited, compiled and installed (twice) my kernel to accomodate quota (added the option), and I've also already edited my /etc/rc.conf file to enable quotas. Basically, the next step would be to edit the /etc/fstab file, where I'm stuck.

This is my /etc/fstab file:
Code:
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad0s1b             none            swap    sw              0       0
/dev/ad0s1a             /               ufs     rw              1       1
/dev/ad0s1e             /tmp            ufs     rw              2       2
/dev/ad0s1f             /usr            ufs     rw              2       2
/dev/ad0s1d             /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0


I'm running out of ideas how to set the quota, and I'm a bit cautious of editing the /etc/fstab file already since I've caused my box to fail to boot already...

Note: I have a /dev/ad0s1c file in the /dev directory, not listed in the /etc/fstab file. Already tried mounting it with /home. It says operation not permitted. I've checked /var/log/messages for errors in mounting and whether fsck is required, but no error messages are logs. But I did run fsck anyway (w/o options) and mount it with /home again, still operation not permitted.

Thanks.
__________________
Err...

Reply With Quote
  #2  
Old September 3rd, 2006, 12:52 PM
hairpuller hairpuller is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 8 hairpuller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 53 sec
Reputation Power: 0
Quote:
Originally Posted by johnhardey
I've been trying to enable quota on my freebsd 6.0 box twice already and failing on both occassions. I've followed the steps in the handbook but I'm a bit confused.

An entry for the /home directory is missing in the /etc/fstab (as specified in the handbook), because I'm trying to set disk quotas for the home directories. My question is, will it work if I set quota (userquota) to the root directory entry?

I did that before and did an edquota for a user. The system hangs when I tried to ftp a file into that user's home directory, and also hangs when I ftp'ed a file to other home directory. Lastly, it also hangs when I run the command `quota username`. I checked the quota.user file if it existed, it does, at the root directory (I understand that it'll be located there by default).

So far, I've already edited, compiled and installed (twice) my kernel to accomodate quota (added the option), and I've also already edited my /etc/rc.conf file to enable quotas. Basically, the next step would be to edit the /etc/fstab file, where I'm stuck.

This is my /etc/fstab file:
Code:
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad0s1b             none            swap    sw              0       0
/dev/ad0s1a             /               ufs     rw              1       1
/dev/ad0s1e             /tmp            ufs     rw              2       2
/dev/ad0s1f             /usr            ufs     rw              2       2
/dev/ad0s1d             /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0


I'm running out of ideas how to set the quota, and I'm a bit cautious of editing the /etc/fstab file already since I've caused my box to fail to boot already...

Note: I have a /dev/ad0s1c file in the /dev directory, not listed in the /etc/fstab file. Already tried mounting it with /home. It says operation not permitted. I've checked /var/log/messages for errors in mounting and whether fsck is required, but no error messages are logs. But I did run fsck anyway (w/o options) and mount it with /home again, still operation not permitted.

Thanks.



Personally I'd quota the /usr partition. Just make sure there are no qutas set for root (not that there would be anyway)

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > /home not in /etc/fstab (regarding quotas)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway