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
Multiple copies of HDD
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Multiple copies of HDD
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Multiple copies of HDD
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...
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 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.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Multiple copies of HDD
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, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.