LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hotplug mounting to different different directories (https://www.linuxquestions.org/questions/linux-newbie-8/hotplug-mounting-to-different-different-directories-599359/)

ct_boy 11-13-2007 12:11 PM

hotplug mounting to different different directories
 
Hello,

I've been running ubuntu 7.10 for about two weeks now and have most things running as i'd like except for few things.

it seems every now and then the directory used to mount my external hdd changes(gets postfixed with an _). Usually something so trivial wouldn't bother me, but seeing as my mp3s are on that drive, it's a pain having to re-scan with amarok.

it used to get mounted to /media/DATA and then it changed to DATA_ and now it's DATA__. I'm guessing it has something to do with me having to force mount it the other day due to forgetting to unmount it before a system restart.

Any help resolving this issue would be greatly appreciated,
Cheers!

forrestt 11-13-2007 12:32 PM

Unmount the drive, unplug it, remove the DATA mount points and then plug it back in.

umount /media/DATA__
(unplug the drive)
rmdir /media/DATA__
rmdir /media/DATA_
rmdir /media/DATA
(plug it back in)

I'm guessing you aren't unmounting the drive so the directory "DATA" isn't removed and then when it goes to mount it again it finds that "DATA" is already there so it appends an underscore so as not to overwrite something. Not unmounting it before a restart shouldn't matter. One of the last things that the system does on shutdown is to unmount all the mounted drives. However, it may not actually remove the mount point, so maybe you are on to something.

HTH

Forrest

ct_boy 11-13-2007 12:51 PM

awesome, cheers dude!


All times are GMT -5. The time now is 07:50 AM.