LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-28-2015, 05:04 AM   #1
Maham Zahid
LQ Newbie
 
Registered: Sep 2015
Location: Pakistan
Posts: 13

Rep: Reputation: Disabled
quota


hello
i want to allow each user a separate partition on CentOS server. i first installed "quota", and use vim /etc/fstab command and edit it as follow:
dev/mapper/vg_ayk00-lv_home /home ext4 defaults,usrqota 1 1
After that i use the following commands:
# touch /home/aquota.user (to create quota files in file system)
# mount -vo remount /home (to remount)
quotacheck -vgum /vg_ayk00-lv_home /home (to create the quota index)
But when i use the quotacheck command a message is displayed:
-cannot start given mount point vg_ayk00-lv_home /home. no such file or directory
-No correct mount point specify
-cannot initialize the mountpoint scan


i am new to linux. Please tell me where i am getting wrong.
 
Old 12-28-2015, 06:47 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
first some introductory information (and no, you don't have to read everything - the intro, and skim some of it would likely be enough)

reference: http://tldp.org/LDP/intro-linux/html/

The fstab entry only tells the operating system what you want done during a boot. Here you are telling it that you want the logical partition (or volume as a virtual disk is thought of) mounted on the /home directory. (I will assume that the missing "/" at the beginning (and the missing "u" in usrquota) are typographic errors, the line should be "/dev/mapper/vg_ayk00-lv_home /home ext4 defaults,usrquota 1 1"). This is assuming the volume has a filesystem on it.

Assuming this has worked, the quotacheck commond to use would be "quotacheck -c /home" or "quotacheck -vcum /home". You would not be using the "g" option as you did not enable group quotas in the fstab file (it would be "usrquota,grpquota" in the fstab line if you want both).

reference: https://www.centos.org/docs/5/html/D...sk-quotas.html
 
Old 01-02-2016, 01:44 AM   #3
Maham Zahid
LQ Newbie
 
Registered: Sep 2015
Location: Pakistan
Posts: 13

Original Poster
Rep: Reputation: Disabled
when i use quotachek -vagum command
a following error occur:
quotacheck:cannot guess the format from filename on /dev/mapper/vg_ayk00-lv_home please specify thr formate on commandline.
quotacheck:cannot find the filesystem to check or file system not mounted with quota option.


Please tell me where i am getting wrong.
 
Old 01-02-2016, 03:46 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Sounds like the the filesystem isn't mounted properly.

What does "mount" list?
 
  


Reply



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
[SOLVED] Disk quota exceeded ... but no quota are defined. bcostacurta Linux - Server 4 03-24-2015 12:36 PM
Disk quota on Centos 5.6, quota not working? shfyang Red Hat 1 11-09-2013 06:28 PM
CUPS Quota: Display over quota on Fedora 15 Printing GUI OrangeGrover Linux - General 0 11-09-2011 02:14 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 09:41 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
Open Source Consulting | Domain Registration