LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2011, 12:08 AM   #1
skiron.liu
Member
 
Registered: Jun 2009
Location: Harbin
Posts: 32

Rep: Reputation: 0
Question About the Quota in ubuntu 10.10


kernel:
Code:
2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux

/etc/fstab:
Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda3 during installation
UUID=ddee562b-49db-4351-be26-fb796814447d /               ext4     errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0       1
# swap was on /dev/sda4 during installation
UUID=6eacaeb7-4a08-47b8-b724-9acd6806e609 none            swap    sw              0       0
when i run "quotacheck -avugm" :
Code:
quotacheck: WARNING -  Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING -  Quotafile //aquota.group was probably truncated. Cannot save quota settings...
then i run "quotaon -av":
Code:
quotaon: Cannot find quota file on / [/dev/disk/by-uuid/ddee562b-49db-4351-be26-fb796814447d] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/disk/by-uuid/ddee562b-49db-4351-be26-fb796814447d] to turn quotas on/off.
but i have created the "aquota.user" and "aquota.group" at root("/")

how to resolve this problem?
 
Old 01-31-2011, 12:44 AM   #2
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian32 stable, LFS 7.1
Posts: 385

Rep: Reputation: 44
I don't see that you should be specifying the quota files in /etc/fstab, and I know I didn't when I played around with quotas a couple years ago. This is from the mount man page:

Quote:
Mount options for ext4
The ext4 filesystem is an an advanced level of the ext3 filesystem
which incorporates scalability and reliability enhancements for sup-
porting large filesystem.

The options journal_dev, noload, data, commit, orlov, oldalloc,
[no]user_xattr [no]acl, bsddf, minixdf, debug, errors, data_err, grpid,
bsdgroups, nogrpid sysvgroups, resgid, resuid, sb, quota, noquota,
grpquota, usrquota and [no]bh are backwardly compatible with ext3 or
ext2.
And this from the quota man page:
Quote:
FILES
aquota.user or aquota.group
quota file at the filesystem root (version 2 quota,
non-XFS filesystems)
quota.user or quota.group
quota file at the filesystem root (version 1 quota,
non-XFS filesystems)
/etc/mtab default filesystems
So I would just remove the quota filenames from your fstab; sounds like the files themselves are in the right place (at /).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Ubuntu 9.10 LXer Syndicated Linux News 0 02-24-2010 02:20 PM
quota on ubuntu 8.04 rozilla Linux - Server 1 08-14-2008 08:24 AM
LXer: Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Ubuntu 8.04 LTS LXer Syndicated Linux News 0 07-03-2008 02:50 PM
procmail+quota+bounch mail+but no quota full msg to receipent mickyman Linux - General 3 03-02-2006 03:32 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration