Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to create a new directory under /opt/HP, lets say /opt/HP/bits, can i assign some size to this directory,if yes can u tell how can i assign 8GB to this directory (G is GB in linux right)? Currently it shows as /dev/mapper/APPVG-hp 20G 173M 19G 1% /opt/HP. As I need to copy 6GB bits to it., or is it not required to assign a size to it. Could you please help, Thanks in advance

share|improve this question

2 Answers 2

Unless you're using some quota system the only limiter is the free space on the volume the directory is on.

share|improve this answer

Directories just map names to inodes (files), there can be many names pointing to the same file. So it really makes no sense to talk about the "space in the directory", and you can't limit it either.

What you can do is to create a new filesystem, and mount that one on the directory. Or assign quotas to the user.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.