Grub error "attempt to read or write outside of disk" at boot after cloned SSD replacement

bollewolle

New Member
Dec 29, 2024
1
0
1
For a while now I have an issue where backups of 2 out of 5 VM's are failing with the "job failed with err -61 - No data available" error (strangely enough they do still run without any issue). After some searching on the forums I found out and confirmed that my Samsung 980Pro is starting to fail on me. Hence I bought a new 990Pro to replace it with. The issue is that the NUC I'm using only has 1 M2 slot so I have to resort to putting the 990Pro in a usb case and clone the old one to it that way.

I then connected the USB case to my NUC, used a gparted live usb to boot from and ran the following dd command:
Bash:
sudo dd if=/dev/nvme0n1 of=/dev/sda bs=1M conv=noerror status=progress

The "conv=noerror" param is because of the issues of the failing source ssd it otherwise would stop at the errors it found.

Here's a picture I took of the finished process, and as you cans ee there are some "input/output errors" as expected:
SDD clone result.jpg

I was hoping they wouldn't be a major issue. When I swap the SSD's in the NUC however I always get the "grub rescue" screen with the following message:
Code:
error: attempt to read or write outside of disk `lvmid/UKcAwb-TdS2-LK4u-UcqZ-wd0r-eFaT-tM5GP9/t4FSfK-RR2H-dfo1-WKOX-DjTz-WPLE-OMRTGA'

I tried solving it by following a few posts/threads I found, however most seem to be related to another "disk not found" error. The only topic that seems to be similar is this one but I wasn't able to find a proper solution in it (except for the link to a blog post to move the boot to a usb, which I prefer not to do).

I know I did something similar on the same NUC a few years ago when I went from a 1TB SSD to the current 2TB one, and it worked quite easily with a similar process (additionally had to change the partition size).

Anyone got some tips on how I could make the cloned SSD work? I'm running out of options of things I found and tried out (or run into another error while doing so). Of course let me know if there's any more information you want me to give, or things I should provide.

Many thanks in advance.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!