I have a hard drive (/dev/sda
) that is visible when I run sudo lsblk -f
, but not when I run sudo fdisk -l
.
What could be causing this?
All the google results I could find were about drives that were not listed with either lsblk
nor fdisk
.
edit to add:
When I run sudo fdisk /dev/sda
, I get the error
fdisk: cannot open /dev/sda: Input/output error
sudo fdisk /dev/sda
->p
>Enter
work? – Artem S. Tashkinov Aug 30 '22 at 08:59sudo lsblk -f
andsudo fdisk -l
– PortMan Aug 30 '22 at 15:55sudo fdisk /dev/sda
, I get the errorfdisk: cannot open /dev/sda: Input/output error
. – PortMan Aug 30 '22 at 15:59sudo fdisk /dev/sda
– PortMan Aug 30 '22 at 16:42sudo lsblk /dev/sda
andls -l /dev/sda
to your question? – doneal24 Aug 30 '22 at 16:58lsblk
is simply interrogating the drive identify, whilefdisk
actually needs to read from disk. The error you're seeing suggests that your drive may be bad. – larsks Aug 30 '22 at 20:44