LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2005, 03:04 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,641

Rep: Reputation: 46
The quota command


quota -v
Shows current disk usage and limits.
The above is not true in my Linux. I have Mandrake Linux 10.0 version. Please read the following. Why is this?
[ka@c83-250-88-242 ka]$ quota
bash: quota: command not found
[ka@c83-250-88-242 ka]$




[ka@c83-250-88-242 ka]$ quota -v
bash: quota: command not found
[ka@c83-250-88-242 ka]$

Last edited by Gins; 08-11-2005 at 03:06 PM.
 
Old 08-11-2005, 03:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Either its not in your path or you don't have quota tools installed, etc.

locate quota
 
Old 08-11-2005, 04:37 PM   #3
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,641

Original Poster
Rep: Reputation: 46
Thanks for the reply. What is the meaning of the following?

[ka@c83-250-88-242 ka]$ locate quota
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
[ka@c83-250-88-242 ka]$
 
Old 08-11-2005, 05:00 PM   #4
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
And I quote:
"You need to run the 'updatedb' command (as root) to create the database."

 
Old 08-11-2005, 05:01 PM   #5
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by Gins
Thanks for the reply. What is the meaning of the following?

[ka@c83-250-88-242 ka]$ locate quota
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
[ka@c83-250-88-242 ka]$
It means exactly what it says: the locate database doesn't exist. You can create it by running updatedb.

However, since quota usually is installed in /usr/bin I doubt it's a problem with your PATH variable. So most likely you don't have quota installed on your system.
 
Old 08-11-2005, 05:55 PM   #6
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,641

Original Poster
Rep: Reputation: 46
I ran the command for no avail. What is the problem? The following is the output.

[root@c83-250-88-242 ka]# updatedb
[root@c83-250-88-242 ka]#
 
Old 08-11-2005, 05:56 PM   #7
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
There is no output because silence is golden, and it worked, so now run your original command and you should be good to go.
 
Old 08-12-2005, 11:00 AM   #8
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,641

Original Poster
Rep: Reputation: 46
No it didn't work. Please read the following output. I tried even as a root user. What is the problem?

[ka@c83-250-88-242 ka]$ quota -v
bash: quota: command not found
[ka@c83-250-88-242 ka]$ quota
bash: quota: command not found



[ka@c83-250-88-242 ka]$ su root
Password:
[root@c83-250-88-242 ka]# quota
bash: quota: command not found


[root@c83-250-88-242 ka]# updatedb
[root@c83-250-88-242 ka]# quota
bash: quota: command not found
[root@c83-250-88-242 ka]#

Last edited by Gins; 08-12-2005 at 11:02 AM.
 
Old 08-12-2005, 11:02 AM   #9
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
No, I mean the updatedb command worked. As the above poster had said, it seems like you don't have quota installed (as you can tell from "bash: quota: command not found". So go install it, then run it again.
 
Old 08-12-2005, 11:45 AM   #10
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,641

Original Poster
Rep: Reputation: 46
Vgui

Could you please tell me where to find it? You could tell me a site to download or some other solution?
 
Old 08-12-2005, 12:37 PM   #11
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
I don't follow the packaging system of Mandrake [Mandriva] (which you say you are running in your profile), but I had thought they had some tool to get rpms from a central repository? You might want to check out the Mandriva docs, sorry I can't be more help
But yeah, once you find an rpm of quota, you can just install that and rerun quota and it should work.
 
Old 08-12-2005, 01:27 PM   #12
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,641

Original Poster
Rep: Reputation: 46
Vgui

This is a tall order for me. I tried in vain to find out anything of the name 'quota' in Madriva related sites. I don't know what to do.
 
Old 08-12-2005, 01:36 PM   #13
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
Okay, I looked a little hard to try to help you out. I found a fairly good site at http://rpm.pbone.net/
From a search, I came up with:
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
http://rpm.pbone.net/index.php3/stat....i586.rpm.html

Those should all be for Mandrake / Mandriva 10, which as I said I assume you are using (right?). Hopefully one of those links has what you need. Remember, to install rpms it is the following command (as root):
Code:
rpm -ivh quota-bla-bla.rpm
If one of those quota rpms installs fine, you should be good to go for running the quota command.
 
Old 08-12-2005, 01:39 PM   #14
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
Also, you might want to look into urpmi / easy urpmi, it is some sort of GUI tool for installing RPMs from a Mandriva repository. If it sounds interesting, check out:

http://nanardon.homelinux.org/urpmi.setup/
http://easyurpmi.zarb.org/
http://www.urpmi.org/

Hopefully that would stop you from needing to hunt down individual rpms.
I don't know tons about Mandriva though, but I imagine if you talked to an advanced Mandriva user they could help you a lot more, especially with getting easy install RPMs setup and all that.
 
Old 08-12-2005, 01:52 PM   #15
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,641

Original Poster
Rep: Reputation: 46
Vgui

I profoundly appreciate all you did to help me. You don't have any obligation to search on my behalf. It was very kind of you. I will come back to you later on.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
quota jrafalek Linux - Software 2 03-04-2005 02:23 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 12:13 PM
QUOTA Command alternative? Echo Kilo Linux - General 1 11-15-2004 02:26 AM
help with quota command and dd command Nappa Slackware 1 12-26-2003 11:37 AM
quota on RH 7.3 keevitaja Linux - Newbie 5 08-17-2002 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:24 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