Possible duplicate of "errno 5 - input/output error" when trying to install.
You're getting an Input/Output error and so you probably just have some bad sectors on your HDD.
I recommend you take a look at How to install Ubuntu on a hard drive with bad blocks?
If you don't mind deleting all data on the HDD, you could try using gparted
to partition your whole drive into one EXT4 filesystem and then run fsck -cc /dev/sdx1
where x
is the drive letter for your HDD.
Longer explanation of how to do that:
Boot Ubuntu from a Live Ubuntu (DVD or USB) using "Try Ubuntu".
Open a terminal by pressing Ctrl-Alt-t and type sudo gparted
and press enter, a window like this should show up.
DON'T FOLLOW THESE INSTRUCTIONS UNLESS YOU WANT TO DELETE EVERYTHING ON YOUR HDD.
Use the Drive Selector to select your HDD, it should be easy to distinguish it from a flash drive by its size.
Right-click each partition and click "delete", if that option is greyed out, click "Unmount" first.
Once all the partitions are deleted, there should be one entry marked "unallocated", right-click that and click "new". Make sure the "Free space preceding" and "Free space following" are as low as possible. (sometimes it doesn't allow you to make them 0, but it shouldn't force you to have more than 1 or 2 MiB of space that you can't use)
Make sure "File system" is set to "ext4" and set the Label to whatever you want, or leave it blank. Click "Add".
https://dl.dropboxusercontent.com/u/62318117/gparted_new.png
Now press the green check mark and then click "Apply" in the window that appears.
Now note the partition location, it should look like /dev/sda1
.
Now you can check the filesystem for bad sectors by opening another terminal and typing sudo fsck -cc /dev/sdx1
replacing /dev/sdx1
with your partition location and then press enter.
Once that is done, you might be able to install Ubuntu by selecting "Something Else" in the boot menu and then setting the partition you made as /
and installing Grub to /dev/sda
(providing you are using Legacy boot mode instead of UEFI.