[Discuss] Ubuntu USB Drives appending _ to folder

John Abreau abreauj at gmail.com
Wed Jun 20 09:37:22 EDT 2012


This is the same behavior you would get if you unplugged the thumb drive
without properly unmounting it, then plugging it back in; the old directory
doesn't get deleted, and then the next time the system tries to mount the
thumb drive, its name is already in use, so it has to come up with a different
name for the new mount point.

Maybe the thumb drive powers down while idle and the usb subsystem loses
track of it, while there's still a process that has the directory open.


On Wed, Jun 20, 2012 at 9:15 AM, Chris O'Connell <omegahalo at gmail.com> wrote:
> Hi Everyone,
>
> I'm using Ubuntu 10.04 for a couple of Nagios boxes here in my office.
>  I've written a backup script that compresses all of my configuration files
> and copies them to a USB thumb drive each evening.  The exact path the
> files are copied to is /media/Nagios_Backup
>
> About 6 months ago I noticed that the /media folder contained a folder
> called "Nagios_Backup" and a folder named "Nagios_Backup_".  Much to my
> surprise, I found that for some reason the directory name of the thumb
> drive had changed to "Nagios_Backup_", and that my backups were going to
> the old directory, which seemed to reside only on the hard disks.
>
> I adjusted the path of my backup destination to "Nagios_Backup_" and
> assumed this behavior was just a fluke.
>
> Today I went in to check the backups and found three folders:
> /media/Nagios_Backup
> /media/Nagios_Backup_
> /media/Nagios_Backup__
>
> For whatever reason, the thumb drive is now mounted with two underscores at
> the end.  As a result my backups have not been saving to the USB drive.
>
> This situation is really annoying as I can no longer rely on my backup
> script to copy files to the drive due to the changing path.
>
> Has anyone seen this before?  Anyone know why this is happening?
>
> Thanks!
>
> --
> Chris O'Connell
> http://outlookoutbox.blogspot.com
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss



-- 
John Abreau / Executive Director, Boston Linux & Unix
PGP KeyID: 32A492D8 / Email: abreauj at gmail.com
PGP FP: 7834 AEC2 EFA3 565C A4B6  9BA4 0ACB AD85 32A4 92D8



More information about the Discuss mailing list