0

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!

  • Is you disc ok? – frlan Jul 8 '15 at 8:35
0

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.

  • Can you explain why it's the drive? Like what is wrong with it? – Generalcooky Jul 8 '15 at 9:19
  • As you said: " I had similar problems installing windows 10" – A.B. Jul 8 '15 at 9:32
  • can anyone confirm? I want to know for sure before going back – Generalcooky Jul 8 '15 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 '15 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 - – Generalcooky Jul 8 '15 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.

  • I assume this also works if you use bootable usb? – Generalcooky Jul 8 '15 at 10:48
  • yeah its the same thing – Kiriazis Kokkinos Jul 8 '15 at 10:48
  • I'll try it, will this take a while? – Generalcooky Jul 8 '15 at 10:50
  • oh sorry i forgot to tell you. it only takes a second. stop the command in the teminal with ctrl + c – Kiriazis Kokkinos Jul 8 '15 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" – Generalcooky Jul 8 '15 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.