LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-17-2008, 06:31 AM   #1
an_sush
Member
 
Registered: Nov 2008
Posts: 46

Rep: Reputation: 15
Assigning memory/space to folder(s)


If I run df command to find the memory available and used, i see the following output:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 77G 51G 23G 70% /
/dev/hda1 99M 23M 71M 25% /boot
none 1010M 0 1010M 0% /dev/shm


Is there a way i can set memory aside for some drive? like if i want my /opt not to exceed say 10GB? Is it possible?
 
Old 11-17-2008, 06:38 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
You can use 'quota'. Implementation example here:

http://www.redhat.com/docs/manuals/l...ge-quotas.html
 
Old 11-17-2008, 06:40 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
If repartioning is not an option, you can create a virtual filesystem of size 10 Gbyte and mount it under /opt. You can find some details in this post. Do a backup of any existing file under the current /opt directory: you will restore the backup once you have mounted the filesystem under /opt.
 
  


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
Sharing Memory between driver space and user space ian b davidson Programming 1 11-10-2008 07:35 AM
Problem assigning folder in SAMBA lazylogic Debian 4 05-01-2008 06:26 PM
Assigning Memory and CPU caps to Zones custangro Solaris / OpenSolaris 1 11-10-2007 06:56 PM
Web hosting application- assigning disk space ssudhi Linux - Newbie 1 05-01-2004 06:09 PM
assigning memory address to pointer irfanhab Programming 4 04-24-2004 04:35 AM

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

All times are GMT -5. The time now is 06:46 PM.

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