0

I had dual booted my laptop with the windows 11 and Ubuntu. I ran the “sudo rm -rf /*” command accidentally and after that my laptop is not listing any boot device and showing as please reinstall the OS. But when I tried to install the Ubuntu I am getting the following error.

“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 often
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.”

Can anyone please help me to resolve this?

1 Answers1

0

There's quite a few that will swear by Rufus. I haven't had the best of luck with it myself in the past. If you've got a working Windows machine, might try spinning up diskpart and then select disk <USB Drive> and do a good ol' clean in case there's an issue with the drive. Make sure to select the propper drive. You can check the label and/or size to verify.

Reference the checksum of the ISO if you're worried about initial ISO corruption.

Then try giving Ventoy a shot.

If it is an issue with the installation media like @Thomas Ward and @Nmath have reccomended, the above should take care of it.

If you are still getting the same error after all that, there's a chance that Intel's Rapid Storage Technology might be getting in the way.

If it's a fairly new laptop, and you're using an older version of Ubuntu, it might be giving you issues.

Here's a guide on how to manage it and help Windows use AHCI if you switch it over.

Granted, that's just a hunch based on the fact it's giving you IO error to your HD.