Quota Problem,qbout Upload/del File, i need help,thank
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Its telling you the user has used ~182M on the filesystem. This is for the filesystem which has quota turned on. The user may still have other files on other filesystems which are not using quota. Do you have quota turned on for the filesystem containing .../pinky/public_html?
Originally posted by Berhanie Its telling you the user has used ~182M on the filesystem. This is for the filesystem which has quota turned on. The user may still have other files on other filesystems which are not using quota. Do you have quota turned on for the filesystem containing .../pinky/public_html?
Do you have quota turned on for the filesystem containing .../pinky/public_html?
i don't know ,how to check?
i only type this command "edquota pinky" set limit (hard): 502400 ,then ,few day after,
used 399MB ,but filesystem just used 180MB ,help please~
please post the following:
1. the output of cat /etc/fstab
2. the full path of pinky/public_html (if you don't know, cd to the same place where you ran the "du pinky" command earlier and type "pwd").
Originally posted by Berhanie please post the following:
1. the output of cat /etc/fstab
2. the full path of pinky/public_html (if you don't know, cd to the same place where you ran the "du pinky" command earlier and type "pwd").
Ok. pinky's public_html file is located in /dev/hdc1. /dev/hdc1 (a.ka. /dev/ide/host0/bus1/target0/lun0/part1) does have a quota limit for pinky, but that limit is 502M. quota shows that pinky has used 182M in /dev/hdc1, which contradicts the output of du. I don't know the reason for this. Maybe you need to run something like quotacheck to sync the quota files (rebooting will probably have the same effect).
Your fstab was confusing to me, since your have contradictory entries for /dev/hdc. Maybe someone else can say more.
Originally posted by Berhanie Ok. pinky's public_html file is located in /dev/hdc1. /dev/hdc1 (a.ka. /dev/ide/host0/bus1/target0/lun0/part1) does have a quota limit for pinky, but that limit is 502M. quota shows that pinky has used 182M in /dev/hdc1, which contradicts the output of du. I don't know the reason for this. Maybe you need to run something like quotacheck to sync the quota files (rebooting will probably have the same effect).
Your fstab was confusing to me, since your have contradictory entries for /dev/hdc. Maybe someone else can say more.
anyway ,thank you~
when i run quotacheck,i need umount /max120 ?
The quotacheck man page says that quotacheck will remount the filesystem read-only and then, upon finishing, read-write again. So the following should do it (you don't need to unmount):
Originally posted by Berhanie [snip]
Your fstab was confusing to me, since your have contradictory entries for /dev/hdc. Maybe someone else can say more.
I think the first entry will try to mount his CR-ROM (/dev/hdc) as /mount/cdrom whilst the second will have already mounted /dev/hdc1 as /max120. As you note, this does not seem to be consistant.
I suspect that he's added a third HD (/dev/hdc1) sometime after /etc/fstab was created during the install, and he's neglected to update it. I also suspect that he may now have a problem using his CD-ROM, and that he should do a ls /dev and "adjust" his fstab to his current reality.
Originally posted by PTrenholme I think the first entry will try to mount his CR-ROM (/dev/hdc) as /mount/cdrom whilst the second will have already mounted /dev/hdc1 as /max120. As you note, this does not seem to be consistant.
I suspect that he's added a third HD (/dev/hdc1) sometime after /etc/fstab was created during the install, and he's neglected to update it. I also suspect that he may now have a problem using his CD-ROM, and that he should do a ls /dev and "adjust" his fstab to his current reality.
Originally posted by singying304 how to umount cd-rom? thank
The unmount command is "umount" not "unmount." This has often resulted in my fingers not doing what my mind wanted.
Anyhow, try "umount /media/cdrom" as su.
As to you previous question, here's what I get when I list the hd block devices on my system:
Code:
$ ls -l /dev | grep -e "^b" | grep hd
brw-r----- 1 root disk 3, 0 Jul 6 03:15 hda
brw-r----- 1 root disk 3, 1 Jul 6 03:15 hda1
brw-r----- 1 root disk 3, 64 Jul 6 03:15 hdb
brw-r----- 1 root disk 3, 65 Jul 6 03:15 hdb1
brw-r----- 1 root disk 3, 66 Jul 6 03:15 hdb2
brw-r----- 1 root disk 3, 67 Jul 6 03:15 hdb3
brw-r----- 1 root disk 22, 0 Jul 6 03:15 hdc
brw-r----- 1 root disk 22, 1 Jul 6 03:15 hdc1
brw-r----- 1 root disk 22, 64 Jul 6 03:15 hdd
brw-r----- 1 root disk 22, 65 Jul 6 03:15 hdd1
brw-r----- 1 root disk 22, 66 Jul 6 03:15 hdd2
brw------- 1 peter disk 33, 0 Jul 6 03:15 hde
brw------- 1 peter disk 33, 64 Jul 6 03:15 hdf
brw-r----- 1 root disk 34, 0 Jul 6 03:15 hdg
brw-r----- 1 root disk 34, 1 Jul 6 03:15 hdg1
brw-r----- 1 root disk 34, 64 Jul 6 03:15 hdh
brw-r----- 1 root disk 34, 65 Jul 6 03:15 hdh1
brw-r----- 1 root disk 34, 66 Jul 6 03:15 hdh2
Notice the two without group disk read permission -- /dev/hde and /dev/hdf. Those are my two DVD drives, not currently mounted since they've got nothing in them.
In your /etc/fstab, where you define /media/cdrom as /dev/hdc, you should change the hdc reference to whatever shows up in your "ls /dev" for your CD drive. (I suspect that it will be /dev/hdd if you've just added one hd.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.