Skip to main content

Using mount --bind to save space on partition

Comments

7 comments

  • cPanelMichael
    Hello :) You can try recalculating disk space usage with the following command: /scripts/fixquotas
    Thank you.
    0
  • BassTeQ
    Hi Michael, I didn't think quotas applied to system directories eg /usr ?
    0
  • cPanelMichael
    You can paste the output from the following commands: mount cat /etc/fstab
    Thank you.
    0
  • BassTeQ
    Output from mount /dev/sda5 on / type ext3 (rw,noatime,usrquota) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda8 on /home type ext3 (rw,noatime,usrquota) /dev/sda6 on /tmp type ext3 (rw,noexec,nosuid) /dev/sda3 on /usr type ext3 (rw,noatime,usrquota) /dev/sda2 on /var type ext3 (rw,noatime,usrquota) /dev/sda1 on /boot type ext3 (rw,noatime) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /tmp on /var/tmp type none (rw,noexec,nosuid,bind) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sdb2 on /backup/var type ext3 (rw) /dev/sdb3 on /backup/usr type ext3 (rw) /dev/sdb6 on /backup/tmp type ext3 (rw) /dev/sdb8 on /backup/home type ext3 (rw) /dev/sdb5 on /backup/basedir type ext3 (rw) /usr/local/stuff on /home/stuff type none (rw,bind)
    Output from fstab /dev/sda5 / ext3 noatime,defaults,usrquota 1 1 /dev/sda8 /home ext3 noatime,defaults,usrquota 1 2 /dev/sda6 /tmp ext3 noatime,defaults 1 2 /dev/sda3 /usr ext3 noatime,defaults,usrquota 1 2 /dev/sda2 /var ext3 noatime,defaults,usrquota 1 2 /dev/sda1 /boot ext3 noatime,defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/sda7 swap swap defaults 0 0 /usr/local/stuff /home/stuff none bind 0 0
    Thanks!
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look and determine if there are any obvious problems with your configuration. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • BassTeQ
    Hi Michael, I've worked out the issue, in /etc/fstab I had the directories around the wrong way. I've changed it to this /home/stuff /usr/local/stuff none bind 0 0
    When I then 'mount /home/stuff' is doesn't occupy any space in /usr, which is what I was expecting to see. Thanks for your help!
    0
  • cPanelMichael
    Thank you for updating us with the outcome. I am happy to see you were able to resolve the issue.
    0

Please sign in to leave a comment.