2

EDIT: I WENT TO STORE AND EVERYTHING WAS OKAY, THANKS! :)

I'm trying to format using "disk" my new hard drive to install ubuntu fully on it, but the error comes up every time. I tried using fast and slow format, both don't seem to work. here is the full error I get:

Error creating file system: Command-line `parted --script "/dev/sda" mktable gpt' exited with non-zero exit status 1: Error: Input/output error during write on /dev/sda (udisks-error-quark, 0)

I'm trying to format because the installer also gets stuck, I dont know if the problem is my hard drive -it's new-, the pavilion computer or ubuntu. I doubt its the last one because I had similar problems installing windows 10

Anyone know what I can do to fix this?

Thanks in advance!

1
  • Is you disc ok?
    – frlan
    Jul 8, 2015 at 8:35

2 Answers 2

2

You can't fix this. If it's a new drive, go to your dealer and request a sawp under warranty. Be sure to mention "DOA" (Dead On Arrival)

To be absolutely sure:

sudo apt-get install smartmontools
sudo smartctl --scan

and then perform:

sudo smartctl --all /dev/XdY

where X and Y are the letters that came up for your drive in sudo smartctl --scan

Sorry for the bad news.

5
  • Can you explain why it's the drive? Like what is wrong with it? Jul 8, 2015 at 9:19
  • As you said: " I had similar problems installing windows 10"
    – A.B.
    Jul 8, 2015 at 9:32
  • can anyone confirm? I want to know for sure before going back Jul 8, 2015 at 10:08
  • @Generalcooky: see edited answer. I agree with A.B. And as you're a reputation 1 user: If this answer helped you, don't forget to click the grey at the left of this text, which means Yes, this answer is valid! ;-)
    – Fabby
    Jul 8, 2015 at 11:06
  • Thanks, it's from a retail store so means they took it w/o any problem. Got a bigger one in return. Thanks for the help - Jul 8, 2015 at 13:22
0

Maybe this will help:

From a live Ubuntu disk try using the dd command to wipe the first bytes of the hard drive to erase the partition table it has now.

Press Ctrl+Alt+T to open a terminal and type:

sudo dd if=/dev/zero of=/dev/XdY count=16

where X and Y should be susbstituded for the drive you want. If it is the only drive on the computer then it is sda. Afterwards, either with disks or gparted make a new partition table on it.

9
  • I assume this also works if you use bootable usb? Jul 8, 2015 at 10:48
  • yeah its the same thing Jul 8, 2015 at 10:48
  • I'll try it, will this take a while? Jul 8, 2015 at 10:50
  • oh sorry i forgot to tell you. it only takes a second. stop the command in the teminal with ctrl + c Jul 8, 2015 at 10:52
  • Okay, it didn't; comes up with this: "dd: writing to ‘/dev/sda’: Input/output error 33+0 records in 32+0 records out 16384 bytes (16 kB) copied, 3.73427 s, 4.4 kB/s" Jul 8, 2015 at 10:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .