Hi Tim,

> If I dd a partition on my existing spinny disk to an img and then
> restore the img to the ssd, what happens to the UUID's of each
> partition?

The UUID you're probably referring to is stored inside the partition as
part of the filesystem's data, e.g.

    $ sudo -i dumpe2fs -h /dev/sda1
    dumpe2fs 1.45.2 (27-May-2019)
    Filesystem volume name:   20160122-/
    Last mounted on:          /
    Filesystem UUID:          a42e7bfc-77ca-475f-a2a1-fbcd644491ff
    ...

> Do they remain the same or do I have to reset them  and if so to what?

The ones inside a partion travel to the image and then onto the new
partition.

> Change the entries in fstab to what the partition are when I setup the 
> partition on the ssd (in gparted)?

Are those UUIDs in fstab(5) plain ‘UUID’ or ‘PARTUUID’?  The former is
the UUID stored inside the partition, explained above.  The latter are
those stored in a GUID Partition Table; you may have used that on your
new SSD.  As they're in the GPT they aren't in the partition's data and
stay unaltered.

If it is UUID then you can either:

    - Switch to PARTUUID.
    - Alter the UUID value to match the image's content.
    - Alter the filesystem's UUID, e.g. ‘tune2fs -U ...’.

I think copying the disk's contents avoids these issues.  :-)

-- 
Cheers, Ralph.

-- 
  Next meeting: BEC, Bournemouth, Tuesday, 2019-09-03 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to