I can't unmount an external USB HDD Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
eddierm
Posts: 5
Joined: Mon Sep 21, 2020 12:32 am

I can't unmount an external USB HDD

Post by eddierm »

Hi there!

I was using an old 320GB 3.5HDD on my Raspi B+ with an external case. I moved to the disk the swap file and the dietpi user data and worked OK the last year. I bought a new external 4TB HDD and put it on the Raspi, so I returned the swap and dietpi user data to my sd (64GB) to disconnect the old disk. Everything went ok until i tried to unmount the old disk:

On dietpi-drive_manager I try to unmount the old drive and always fail. I tried to change the fstaab erasing this disk information and did not work. I have rebooted a lot of times an nothing seems to work. I did not unplugged the disk until i can unmount it because I am afraid my system gets frozen.

Can anyone tell me how to force unmount the drive? The order unmount does not exist in the system and when I try:

Code: Select all

dietpi-drive_manager umount [/dev/sdb1|/mnt/Datos]
this is what i got:

Code: Select all

-bash: /mnt/Datos]: No existe el fichero o el directorio
Any ideas?
eddierm
Posts: 5
Joined: Mon Sep 21, 2020 12:32 am

Re: I can't unmount an external USB HDD

Post by eddierm »

Hi again!

I tried to check and repair the drive and system could not unmount it. This is the message I received:

Image

Thanks for the help!
User avatar
Joulinar
Posts: 3215
Joined: Sat Nov 16, 2019 12:49 am

Re: I can't unmount an external USB HDD

Post by Joulinar »

pls can you post following

Code: Select all

df -h
cat /etc/fstab
mount
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eddierm
Posts: 5
Joined: Mon Sep 21, 2020 12:32 am

Re: I can't unmount an external USB HDD

Post by eddierm »

Thanks a lot! I found my mistake: I have my user home folder on that disk and (now sounds obvious) that were the reason I could not unmount the disk.

Finally, I copied the entire content from my old disk to the new one, changed my home directory to the new disk, and after a reboot i could unmount and disconnect (forever I hope) the old noisy disk.

Thanks for your help!
User avatar
Joulinar
Posts: 3215
Joined: Sat Nov 16, 2019 12:49 am

Re: I can't unmount an external USB HDD

Post by Joulinar »

yeah that's a good reason for blocking the unmount :)

good that you found it
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply