I've been trying to install Ubuntu on an old laptop this weekend, a Sony Vaio PCG-6S4M / VGN-SZ61MN, for if that is relevant. I start using a live USB (on a micro SD card actually), but when it gets to the point where the files are copied, it crashes:
The installer encountered an error copying files to the hard disk
When I call dmesg
afterward, the output toward the end contains something like this:
[ 450.928749] perf: interrupt took too long (3932 > 3930), lowering kernel.perf_event_max_sample_rate to 50750
[ 608.661461] sda: sda1 sda2 < sda5 sda6 >
[ 610.596440] Adding 1951740k swap on /dev/sda5. Priority:-2 extents:1 across:1951740k FS
[ 636.547888] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: errors=remount-ro. Quota mode: none.
[ 636.637761] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 666.058175] SQUASHFS error: zlib decompression failed, data probably corrupt
[ 666.058188] SQUASHFS error: Failed to read block 0xb8f39ff: -5
[ 666.058192] SQUASHFS error: Unable to read fragment cache entry [b8f39ff]
[ 666.058196] SQUASHFS error: Unable to read page, block b8f39ff, size 8df3
[ 666.058250] SQUASHFS error: Unable to read fragment cache entry [b8f39ff]
[ 666.058253] SQUASHFS error: Unable to read page, block b8f39ff, size 8df3
[ 666.058250] SQUASHFS error: Unable to read fragment cache entry [b8f39ff]
[ 666.058253] SQUASHFS error: Unable to read page, block b8f39ff, size 8df3
The block and size are different in different intents, though I got this size 8df3 twice.
When the live system is loaded, I can use Ubuntu just fine without apparent problems, it is only when installation starts, after the partitions have been created.
I checked everything I could come up with of what could have gone wrong:
- The installation device: I tried four different micro SD cards with two different card readers
- The Ubuntu image: I tried both Ubuntu 20.04.3 and Ubuntu Mate 20.04.3, desktop version. I verified the checksum after downloading, and then again the checksum on the card, using
dd if=/dev/sdX count=... | sha256sum
. It checked out in all cases.
- The hard disk drive: I tried with two different HDD's. Also checked using
smartctl
.
- RAM: performed a memory test from the live USB, which passed.
Where else could it have gone wrong? How can I diagnose it? Any ideas?
EDIT
I may have some more relevant information. First let me clarify that the image on the SD card is almost certainly good:
- I checked the sha256sum of the downloaded ISO
- I wrote the ISO to the device using
dd
, then checked the same sha256sum on the device itself using dd
again: dd if=/dev/sdX count=... | sha256sum
.
- I checked all md5sums listed in
md5sum.txt
by executing md5sum -c md5sum.txt
.
What I found out is this: when I check the hashes again on the target computer, it gives an erroneous value of the file casper/filesystem.squashfs
most of the time, and moreover always different. This is by far the largest file at around 2GB. For if it is relevant: the laptop also has 2GB of RAM. The file does not actually get corrupted: when I check it again on the newer computer, the checksum is good. Note that this happens on different SD cards.
Thanks!