[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help: disk swap



Thanks for your help. Sadly, I'm not getting very far with this. I guess I'm not understanding your instructions too well:

On 27/07/2022 16:07, Jude DaShiell wrote:
Have the running linux system on the machine.  Run lsblk to locate the
name of the boot partition.

I'll call the disk from the backup machine "B", and the disk I want to use "A".


OK, on disk B:  lsblk sda9 /boot
 Once you have the name run blkid and copy the

sudo blkid
/dev/sda9: LABEL="boot" UUID="3fe30767-f7d7-4e6d-b48e-f80eef2d4b71"

Now I'm lost.

Remove disk B, install disk A
Boots into grub rescue.

uuid for use in the end of /etc/fstab and put in the path to the boot
device, the disk format ext4, defaults,nofail 1 2 on an fstab entry.
Next, run update-grub and you should get a new boot entry in grub.  If you
boot the machine on the boot screen hit down-arrow followed by enter and
your other disk should boot up.
I got a new computer with no sata tray in it and have a sata caddy and
some older sata disks and that's how I got those to boot.  hth.




Reply to: