Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a NTFS partition called DATA which automatically mount at boot (on /media/DATA). It gone good since now: in /media I have a DATA empty folder which i can't delete, and a DATA_ folder, where the DATA partition is mounted. How can I remount my partition on /media/DATA and not on /media/DATA_ anymore?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It seems like previously created DATA folder existed when you boot up your machine so the system created a new one. I think you can delete the old one and after reboot - it should be mounted as DATA again.

sudo rmdir /media/DATA

reboot

if it works then I would expect DATA_ empty this time, so lastly you can delete it too:

sudo rmdir /media/DATA_

share|improve this answer
1  
IMHO rmdir would be preferable to rm -r since it avoids the possibility of accidentally removing the contents of the mounted filesystem. –  steeldriver Aug 16 at 10:09
    
@steeldriver nice comment, I've fixed it in the answer. –  Ruslan Gerasimov Aug 16 at 10:17

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.