Formatting 2tb usb disk takes forever

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
init_tracer
Posts: 3
Joined: Tue Mar 16, 2021 4:18 am

Formatting 2tb usb disk takes forever

Post by init_tracer »

I've been stuck trying to format my 2tb usb external drive to use in a NAS setup samba+nextcloud.

So far I reinstalled diet pi but formatting the drives takes hours to finish sometimes fails and when it succeeds the drive is in Only read mode.

Right now I'm on my third try and the drive-manage is stuck (taking a lot of time) in the next command:
mkfs.ext4 -F -m 0 /dev/sda1

Using the drive-manager seems to be a close loop of me wasting time formatting or ending with a Only read drive.

I appreciate any experiences on what could i be doing wrong.

Setup:
Dietpi 32bits
Raspberry pi 3
Headless installation
SSH through ethernet
2tb ADATA HV300 USB drive
User avatar
WarHawk
Posts: 738
Joined: Thu Jul 20, 2017 8:55 am

Re: Formatting 2tb usb disk takes forever

Post by WarHawk »

what is the read/write speed thru the USB port to the drive?

also...install and get familiar with screen which allows you to log into a terminal, then detach it and the command that was run will NOT stop.
It also allows you to re-attach at a later time

Is your external drive externally powered?
init_tracer
Posts: 3
Joined: Tue Mar 16, 2021 4:18 am

Re: Formatting 2tb usb disk takes forever

Post by init_tracer »

is not externally powered. (Probably that's the main problem) since now I noticed the disk keeps changing to Read only mode.

I' will measure the read/write speed tomorrow.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Formatting 2tb usb disk takes forever

Post by Joulinar »

maybe there are issues on the device itself. usually a first indication is changing into r/o mode as the system is trying to protect the data.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply