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: 2
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 12
Level 12
Posts: 4463
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.
The skills you need to produce a correct answer are exactly the skills you need to recognize a correct answer...
Bananas are berries. The sun is a black body. The earth rotates 366.25 times about its own axis during a single year.

architeuthis
Level 1
Level 1
Posts: 2
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 12
Level 12
Posts: 4223
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.
There is no spoon.

Post Reply

Return to “Hardware Support”