Multiple copies of HDD

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
architeuthis
Level 1
Level 1
Posts: 6
Joined: Fri Feb 09, 2018 2:59 pm

Multiple copies of HDD

Post by architeuthis » Fri Feb 09, 2018 3:03 pm

Good morning all.

I have a 4TB HDD that I use for media storage. I disconnect it fairly often and it seems that every 5th or 6th time I reconnect it shows up as a new drive (screenshot). How can I go about trouble shooting this issue? Is it related to a kernel upgrade? It happens at relatively similar intervals to kernel upgrades.

Thanks
Screenshot from 2018-02-09 11-00-36.png

Mute Ant
Level 13
Level 13
Posts: 4731
Joined: Tue Sep 03, 2013 7:45 pm

Re: Multiple copies of HDD

Post by Mute Ant » Fri Feb 09, 2018 4:42 pm

If, for some reason, you don't unmount and safely-remove a volume, the folder under /media/$USER/ doesn't get removed. Next time you connect it, the preferred name is already taken, so it gets a new one.

The mount points are just empty folders, so you can remove them quite safely with... sudo rmdir /media/$USER/*

If the extra folders are appearing all on their own, without you disconnecting the drive, it suggests a wobbly connection that looks like disconnection to Linux.
Right at the bottom, all alone in the centre of the bright cold floor, was a lemon drop.

architeuthis
Level 1
Level 1
Posts: 6
Joined: Fri Feb 09, 2018 2:59 pm

Re: Multiple copies of HDD

Post by architeuthis » Sun Feb 11, 2018 6:43 pm

Worked perfectly. Thank you.

User avatar
catweazel
Level 14
Level 14
Posts: 5204
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Multiple copies of HDD

Post by catweazel » Sun Feb 11, 2018 7:50 pm

Mute Ant wrote:
Fri Feb 09, 2018 4:42 pm
sudo rmdir /media/$USER/*
Nice. I didn't know about $USER. It'll save a lot of typing instructions to modify commands with a user name. Thanks for the tip.
A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. - Max Planck

Post Reply

Return to “Hardware Support”