View Single Post
  #1  
Old 1st June 2010, 16:46
saco721 saco721 is offline
Member
 
Join Date: Feb 2010
Posts: 63
Thanks: 15
Thanked 1 Time in 1 Post
Default Need help with quota on fedora core 11

I am a Linux newbie running Fedora core 11 and having difficulties getting quota to work. Here's what I have done so far:

I do :

Code:
yum install quota
Installs quota fine.

Then I edit fstab :

Quote:
#
# /etc/fstab
# Created by anaconda on Thu Feb 11 10:05:18 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=cfdb7341-115f-4238-990d-3ee95d311e45 /boot ext3 defaults 1 2
/dev/mapper/vg_gizmo-lv_root / ext4 defaults,usrquota,grpquota 1 1
/dev/mapper/vg_gizmo-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
Then run :

Code:
touch /aquota.user /aquota.group
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug
The aquota.user and aquota.group files get created.

File system mounts ok.

However when I run quotacheck -avugm I get the following messages :
Quote:
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: Cannot open quotafile //aquota.user: Permission denied
quotacheck: Cannot open quotafile //aquota.group: Permission denied
When I run quotaon -avug I get the following messages :

Quote:
quotaon: Cannot open quotafile //aquota.group: Permission denied
quotaon: Cannot find quota file on / [/dev/mapper/vg_gizmo-lv_root] to turn quotas on/off.
quotaon: Cannot open quotafile //aquota.user: Permission denied
quotaon: Cannot find quota file on / [/dev/mapper/vg_gizmo-lv_root] to turn quotas on/off.
Then I reboot the system.

Nothing is written to aquota.user or aquota.group. And I still get the error messages as above.

To me it seems that there may be a problem with permissions on / file system but i'm not sure what they should be.

Where am I going wrong?

Any ideas / advice would be greatly appreciated. Thanks!
Reply With Quote
Sponsored Links