I am trying to install Ubuntu on a brand new internal hard drive using a USB install.
Using lshw -C disk I'm able to see that my computer recognizes the hard drive is connected.
ubuntu@ubuntu:~$ sudo lshw -C disk *-disk description: ATA Disk product: ST1000DM003 vendor: Seagate physical id: 0.0.0 bus info: scsi@0:0.0.0 logical name: /dev/sda version: CC49 serial: S1DGBN30 size: 3950MiB (4142MB) configuration: ansiversion=5
But when I attempt to read the disk so I can partition and format it I get this
ubuntu@ubuntu:~$ sudo fdisk /dev/sda fdisk: unable to read /dev/sda: Input/output error
Something similar happens when I try to do this through gparted
ubuntu@ubuntu:~$ sudo gparted Input/output error during read on /dev/sda
Why is this happening? If Ubuntu can see that my hard drive is connected, why can't it do any of these basic operations.
EDIT: Running lsblk gives me this. The hard drive /dev/sda is 3.9GB (supposed to be 1TB). I'm pretty sure that's because it hasn't been initialized or partitioned yet.
ubuntu@ubuntu:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.9G 0 disk sdb 8:16 1 3.7G 0 disk └─sdb1 8:17 1 3.7G 0 part /cdrom sr0 11:0 1 2K 0 rom loop0 7:0 0 666.6M 1 loop /rofs