Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

hey, well I mounted my hard drive to var/www/disk2/

but obviously since the first hard drive is on / all the files on var/www/disk2/ are going to count towards the space on the the first hard drive no? Cause that's what happened when I uploaded a file then checked disk space.

Thats the way it seems, how do i make it so the files in car/www/disk2 go to the second hard drive? I mounted it and everything to there.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

All the files on /var/www/disk2 wont count towards the space on first drive.

share|improve this answer
    
really? alright ill try again –  Belgin Fish Feb 21 '11 at 0:40

Everything that is written to the filesystem under a mount point is stored to whatever drive is mounted there, not the drive that contains the mountpoint.

For example /dev/sda1 is mounted at /, and /dev/sdb1 is mounted at /home: Writing a file to /home/user/file will only use space on /dev/sdb1, it has no effect whatsoever on the filesystem contained on /dev/sda1. The only thing that is on /dev/sda1 is the /home directory entry.

If by some chance, /dev/sdb1 was not mounted, then whatever is written to /home would then be on the filesystem contained on /dev/sda1.

Issue the mount command without any arguments to get a list of what is mounted and where.

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.