Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Today I downloaded Ubuntu for my laptop. It runs great from a bootable usb, but when I tried to install it, I've got the "errno 5 - input/output error".

I tried everything to install it on my laptop, but nothing works (also re-download the iso).

share|improve this question

8 Answers 8

up vote 8 down vote accepted

You may have some bad sectors on target HDD.

To check sda1 volume for bad sectors in Linux run fsck -cc /dev/sda1. For drive C: in Windows it should be chkdsk c: /f /r.

IMHO chkdsk way is may be more suitable as it will remap bad blocks on HD drive while Linux fsck simply marks such blocks as unusable in the current file system. Quote from man fsck.ext2

-c This option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find any bad blocks. If any bad blocks are found, they are added to the bad block inode to prevent them from being allocated to a file or directory. If this option is specified twice, then the bad block scan will be done using a non-destructive read-write test

share|improve this answer
    
I format my installation USB to low level from windows, re-mount the iso and it works... my hdd works great but this USB pendrive not. Thanks a lot for the answer –  Manuel Andrés Vélez Oct 15 '11 at 13:30

I've seen many comments proposing various fixes for the "errno 5" issue. I was experiencing the same issue. My solution is pretty simple and one that I believe a lot of users are inadvertently using.

Rather than remove RAM, replacing SATA cables, or reburning discs...Before doing any of that, rearrange the SATA cable in your PC. I found mine were laying in close proximity to the CPU fan. So...in trying some of the other fixes, I rearranged my SATA cables coming from my DVD writers and VOILA!!!...Perfect installation of both Ubuntu 12.04 and LinuxMint Petra.

Just a little hygiene fixed the problem. Hope this helps y'all!

share|improve this answer

I was having Issue's trying to install Lubuntu with a bootable USB,and I kept getting that annoying " installer crash" and it wouldn't let me install on my netbook eeePC...Well I finally, got it to Install, and here's how it worked for me. Umm first of all I have win 7 starter on my netbook when I tried to install Lubuntu. So, in the options menu where it asked you how you want to install (partition) go to the "someting else" and in there you will highlight the drive, click on add partition. Now what this does, it wipes out the hard drive leaving it with nothing on it. After your done return back to the menu set up and Install. PS. this is good If your looking to do a FULL INSTALL only !!!

share|improve this answer

This could be the result of bad RAM in your computer. I had a similar problem and it turned out to be that. Try testing your RAM by booting from the USB flash drive and, as soon as you see the keyboard and person icons at the bottom of the screen, press a key to show the non-graphical boot menu. Then select the option to test your RAM, from there.

If that reveals a defect in your RAM, then you'll have to remove or replace the affected RAM stick. (If you don't feel comfortable with doing this, you should enlist the assistance of a friend, professional, or other acquaintance with hardware experience. Since this would be a hardware issue, you could ask on Super User for advice about it, too.)

This could also be the following problems:

  • Bad installation media (either physically defective, or, more likely, a corrupted write or corrupted ISO image). MD5SUM the Ubuntu ISO you used to make sure it's good (and if it's not, download a new one, MD5SUM it too, and start over with it).

    Also verify that the USB drive was written correctly by selecting Check disc for defects from the same menu that has the RAM test option (see also this video).

  • There could be a problem with the drive you're trying to install Ubuntu to. If you have another drive, you could try installing it to that. Since the live system (running off the flash drive itself) works, you could test your hard disk with smartctl as explained in the Failing Disk section of this article.

share|improve this answer

I had the same problem.

After searching I decided to install Ubuntu from the alternate CD (with the text-based installer) rather than the desktop CD.

That worked.

share|improve this answer
1  
It's likely (though not definite) that this worked because the desktop ISO was corrupted during download. When you separately downloaded the alternate ISO, it was probably not corrupted. If you had redownloaded the desktop ISO, it would likely have worked too. (This is especially relevant now that, as of 12.10, there is no alternate CD.) –  Eliah Kagan Feb 17 '13 at 15:11

It turns out that the ISO file has been downloaded from a mirror so the HASHSUM did not matched. I checked my ISO file's HASHSUM with original one from this page with this software, and it was totally different, so I suggest everyone to download the Ubuntu from Virgin Media.

share|improve this answer

I had this problem too, during installation...

[Errno 5] Input/output error

Target machine was a brand new Asus K53e laptop. Installation image was ubuntu-11.10-desktop-amd64.iso (64-bit). I burned this image to CD... Errno 5. Burned it to bootable USB stick... Errno 5 again :( I tried 4 or 5 times.

fsck said the entire root partition was fine (after 10 hours). memtest86+ said all 6GB of RAM was fine too. I tried installing directly when the live image booted up (Install Ubuntu). I also tried the Try Ubuntu button, then ran install from the live desktop. Again, Errno 5.

In the end, it turns out the iso file I downloaded was somehow out of date or wrong. Can you believe it!?

$ md5sum ubuntu-11.10-desktop-amd64.iso

The output was different from Ubuntu's official hash (62fb5d750c30a27a26d01c5f3d8df459). Then I cast my mind back. I remember, when I downloaded this image, I think I was forwarded from ubuntu.com to a mirror site, and I chose a French one at random because my nearest UK mirror was down. It must've been slightly out of date or something. In fact, I now remember seeing entries like this

SQUASHFS error: zlib inflate error, data probably corrupt
squashfs_read_data failed to read block 0x1e457bbd

in the output of dmesg (I think) or somewhere in /var/log when checking after the installation crash dumped me back to the live (Try Ubuntu) desktop.

Basically, make sure you check the MD5 hash of your downloaded ISO file! (I know. I know. I rarely check either!)

Anyway,I downloaded 64-bit Ubuntu 11.10 again and, this time, I was prompted with a Save As dialog, instead of being asked to choose a mirror site. When downloaded, checksum matched :) Installation ok :)

share|improve this answer
    
Correct hashes are listed here: help.ubuntu.com/community/UbuntuHashes, and zsync (help.ubuntu.com/community/ZsyncCdImage) is useful to fix *.iso. –  vorburger May 27 at 18:00

Same thing happened to me while trying to install 11.10.

The system worked perfectly off LiveCD/LiveUSB but would fail when trying to install it. Tried burning a different cd and re-writing the iso on the usb drive, re-partitioned HDD space several times, checked it for errors, low-level formatted the installation usb and no luck.

As a last resort I did a memory test using the memtest86+ that comes in Ubuntu's image and it revealed that I have problems with the memory. I know the test takes up lots of time but if you've never done it, try it out!

I haven't yet replaced my memory so I can't be 100% sure that it'll resolve the problem but very likely.

share|improve this answer

protected by Community Feb 13 at 18:54

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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