Ubuntu 16.04 Errno 5 Input/output error when installing using USB

14,781

After 2 days of trying, I found a solution for my problems (similar to yours). I tested on different OSes running on different computers (win7 32-bit & win8.1 64-bit), different USB, different Ubuntu version (14.04/16.04 32-bit/64-bit). All of them return the same error at the same process. Although checking disk before installing warns that splashfs file has an error, errno 5 is not from there.

Finally, I found a solution: Set partitions for the USB you want to install Ubuntu onto as shown.

The problem could be from the first FAT32 partition for boot loader. The size of that partition should be lower than 256MB. If you set bootloader in another disk, this partition could be ignored.

The free space is used to create a normal partition which stores data after finishing installation of Ubuntu.

Share:
14,781

Related videos on Youtube

Hamza Choudhry
Author by

Hamza Choudhry

Updated on September 18, 2022

Comments

  • Hamza Choudhry
    Hamza Choudhry over 1 year

    I'm installing Ubuntu 16.04 (64bit) using a Pen drive but during the installation, I get the I/O error, however sometimes prior to this, some other errors appear saying I am missing a certain file and then I have the option to Cancel, Retry or Skip (the same error doesn't always appear every time during the installation) I'm on a HP Compaq dx2300 microtower. I have tried looking at other solutions, but they do not seem to work for me.

    • Kyle H
      Kyle H over 7 years
      What other solutions have you looked at? What is the exact error you are experiencing? You can paste it on pastebin.org and place the link here for us to see.
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      I tried the installation again and these errors came up in this order: pastebin.com/3UxDyafr . I usually get this though: "The installer encountered an error copying files to the hard disk: [Errno 5] Input/output error This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment."
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      Other solutions I looked at were that I should burn my CD/DVD at a lower speed and another was a terminal command which had to do something with CD/DVD burning, but I'm using a pen drive for the installation
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      Also, If it helps to know, I tried to install Ubuntu once before and kept getting Errno 5 Input/Output error. However, I just kept trying again and again and after around 20 tries, It installed without any errors.
    • Kyle H
      Kyle H over 7 years
      You may want to run a check on your ram and/or harddrive to verify they are all ok.
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      How do I do that?
    • Kyle H
      Kyle H over 7 years
      Here's how to do a ram check, help.ubuntu.com/community/MemoryTest. To do a hard drive check, help.ubuntu.com/stable/ubuntu-help/disk-check.html
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      This is what the Hard drive check said: Disk is OK, one attribute failed in the past (31° C / 88° F) Here's a picture to the results to the Ram check: i.imgur.com/1X6bvfa.jpg
    • Kyle H
      Kyle H over 7 years
      Wow, you need to troubleshoot your ram. Looks like you have some bad ram. Try taking one stick out at a time until you narrow down which is bad, try the good one in different slots.
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      After removing the 1gb ram, I got two errors about miasing files but after having to skip them, I installed Ubuntu but after restarting, the screen stayed pink. Afterrestarting again, I got this: imgur.com/dyIp5PN
    • Kyle H
      Kyle H over 7 years
      You only have 1gb ram in the machine? Do you have another good stick you can troubleshoot with by swapping it in?
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      I have a 2gb ram in the machine. What do I troubleshoot after swaping the pen drive with another one?
    • Kyle H
      Kyle H over 7 years
      The physical ram in the machine. Try different known good sticks in different slots until you have working ram in working slots. That picture above was showing you that you had some bad ram.
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      Are both my rams are bad?
    • Hamza Choudhry
      Hamza Choudhry over 7 years
      Apparently, while taking out the ram I had unplugged a wire which was causing this: imgur.com/dyIp5PN After plugging it back, I first get this screen: m.imgur.com/LJsESjq and after selecting Ubuntu I get this screen: m.imgur.com/427zhwx
    • Zanna
      Zanna about 7 years