LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2007, 01:11 PM   #1
ct_boy
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Rep: Reputation: 0
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!
 
Old 11-13-2007, 01:32 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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
 
Old 11-13-2007, 01:51 PM   #3
ct_boy
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Original Poster
Rep: Reputation: 0
awesome, cheers dude!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting two directories on a single device damiendusha Linux - Newbie 7 07-16-2007 05:57 AM
mounting usb from command line - hotplug? FogSwimmer Ubuntu 4 09-28-2006 04:56 AM
Mounting Directories for Proftp adric Ubuntu 1 05-16-2006 06:52 PM
iPod not mounting with sbp2 / udev / autofs / hotplug nakko Linux - Hardware 3 06-13-2005 06:50 PM
NFS mounting directories 98steve600 Linux - General 1 01-24-2001 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration