hey, i accidentally mounted the same hard drive twice to two different directories, how can I remove one of the mounts?

I have this

/dev/sdb1             459G  199M  435G   1% /disk2
/dev/sdb1             459G  199M  435G   1% /var/www/disk2

and i want to remove

    /dev/sdb1             459G  199M  435G   1% /disk2
link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

umount /path/where/its/mounted... in your example

umount /disk2

or

umount /var/www/disk2

depending on which one you want to umount.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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