Truenas not detecting HDD but Windows does.

m_aar_ten

Cadet
Joined
Oct 16, 2023
Messages
8
My specs:
Seasonic Prime Fanless TX 700w
ASRock H410-HDV
Intel i3 10100
8GB DDR4
Boot drive: 1x Samsung 850 EVO 250GB
Pool: 1x TOSHIBA MG08ACA16TE

So after buying a (after testing it) dying harddrive from someone I RMA'd it and got a new one in return.

After plugging it in my server, nothing happened, it wasn't recognised by my bios, nor by Truenas (which was to be expected).
Last time I had the same issue so I tried all the basic troubleshooting steps:
Switching out power + SATA cables to verified working ones.
Switch SATA ports.

My bootdrive was detected with either power cable, or SATA cable, but my harddrive wouldn't work with either, but it would spin up audibly every time.

After that I tried plugging it into my other windows machine, and what do you know, it just works without any problems.
So I formatted it, made it into a volume and checked the SMART, all good, ran a benchmark, all good.
But it still won't be detected by my other system.

I honestly don't know what to do at this point, I had trouble getting the last drive to detect, but that was fixed by plugging the drives into the right order in the SATA ports in my motherboard.
(please note the drive wouldn't work when using a power cabled chained onto another drive, all my PSU cables have plugs for multiple drives)

Does anyone have any idea how to fix this?
 

PhilD13

Patron
Joined
Sep 18, 2020
Messages
203
Sounds like the disk now has a pre-existing partition table, and the Truenas software thinks it is in use and won't show it as available for use.
Is the motherboard set to AHCI mode.
Does the drive show under Storage -> Disks after removing any partitions? If not, at the shell, what's the output of lsblk? Is it seen there?
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Have you tried changing the sata cable? Maybe swap with another drive that works? If BIOS isn;t detecting, Truenas never will.
 

m_aar_ten

Cadet
Joined
Oct 16, 2023
Messages
8
Sounds like the disk now has a pre-existing partition table, and the Truenas software thinks it is in use and won't show it as available for use.
Is the motherboard set to AHCI mode.
Does the drive show under Storage -> Disks after removing any partitions? If not, at the shell, what's the output of lsblk? Is it seen there?
I tried all the troubleshooting steps before putting the drive in my windows machine, but I will try that again tomorrow after deleting the volume via windows.
I also check my bios settings.
Have you tried changing the sata cable? Maybe swap with another drive that works? If BIOS isn;t detecting, Truenas never will.
That was part of my troubleshooting and it didn't help, I'm kinda puzzled because last time it would show up in the bios, just not under "Disks".
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
I tried all the troubleshooting steps before putting the drive in my windows machine, but I will try that again tomorrow after deleting the volume via windows.
I also check my bios settings.

That was part of my troubleshooting and it didn't help, I'm kinda puzzled because last time it would show up in the bios, just not under "Disks".
Well, you seem to have some sort of hardware issue. You also stated that you had trouble another time and had to plug them in some specific order which should not be necessary.

Have you looked at BIOS updates? I'd re-review BIOS settings and also if any ports are shared or disable other ports due to lane limitations. Not much else I can suggest.

What power supply do you have?
 

m_aar_ten

Cadet
Joined
Oct 16, 2023
Messages
8
Well, you seem to have some sort of hardware issue. You also stated that you had trouble another time and had to plug them in some specific order which should not be necessary.

Have you looked at BIOS updates? I'd re-review BIOS settings and also if any ports are shared or disable other ports due to lane limitations. Not much else I can suggest.

What power supply do you have?
BIOS is fully up to date, I'll factory reset though, maybe that will help.
Nothing else is plugged into the motherboard, no USB devices, no GPU.

I have a Seasonic Prime Fanless TX 700w.
 

PhilD13

Patron
Joined
Sep 18, 2020
Messages
203
You did say you
After that I tried plugging it into my other windows machine, and what do you know, it just works without any problems.
So I formatted it, made it into a volume and checked the SMART, all good, ran a benchmark, all good.
But it still won't be detected by my other system.
Truenas will not see the drive if there is a partition on it. It thinks the disk is already in use. This will complicate tracking down the possible hardware issue so I would at least clear the drive of any partitions. You can use lsblk -a from a command line to see if Truenas sees the drive at all.
 

chuck32

Guru
Joined
Jan 14, 2023
Messages
623
It also doesn't show up in BIOS though, a partition was my first guess too but then it should at least show up in BIOS, no?
 

m_aar_ten

Cadet
Joined
Oct 16, 2023
Messages
8
@chuck32 @PhilD13
So I wanted to experiment first because deleting the volume.
I plugged the drive in without the boot drive, started up the pc and saw no connected storage device, I reset the settings (only fan curves were changed) and rebooted.
After that the drive showed up!

So I turned off my pc, pulled the boot drive in, and what do you know, only the boot drive shows up in my BIOS.
So I exited the BIOS, the PC restated, I entered the BIOS again, and there it was again...

I tried switching SATA ports, cables, power cables, but no matter what, the only way the drive would be detected was via this methode...
No clue how this is possible, it works straight away on my windows pc, every time.

But I guess I consider it solved for now, since I wouldn't know what the problem even is in the first place.
Truenas detects it too, running a long smart test now to see if it's stable.
If anyone has a clue I'd love to know!
 
Top