I recently built a new computer for my home workstation. I decided I would start switching to the newer stuff - aka - PCI-Express and SATA. Yes I know they aren’t “new”. I got along fine without them for a long time. The idea being that now that everyone else has had them for a while all the kinks would be worked out under Linux.
I was also timing it to go with the release of Fiesty so I could do all the upgrading at about the same time. That was the plan anyway…
I wanted to keep my old workstation safe and sound so I copied my old Ubuntu filesystem onto the new drive. I figured it wouldn’t be that hard to sort out. Turns out I was wrong. I seem to be missing a setting somewhere for the UUID to get this all to work.
To try and make some progress I moved everything on the new drive to a directory called old and then tried to do a fresh install of Fiesty. This basically the same procedure I’ve done every time. (For both ubuntu and debian)
The installer flat out refused to let me do this. It insisted on formatting the root partition - which is where all my old files live. It wanted to do this even though there was 100GB of diskspace availabe. Very annoying!
Basically to override the installer you have two(or three) things. If you want to stick with the new partitioner you have to comment out some lines in /usr/lib/ubiquity/ubiquity/validation.py
Lines 139-143:
# if path.startswith('/') and not format:
# pathtop = '/'.join(path.split('/')[:2])
# if (pathtop in (’/', ‘/boot’, ‘/usr’, ‘/var’) and
# path not in (’/usr/local’, ‘/var/local’)):
# result.add(MOUNTPOINT_UNFORMATTED)
Your other option is to run ubiquity with the old partitioner (gpartd) You can do that by running
ubiquity gtkui --old-partitioner
You aren’t done yet -
sudo mv /lib/partman/chek.d/12system_partitions_formatted /tmp
That turns off the final check for formatting.
I’m sure they added the data checking to save a noob from not formatting a drive - but it is annoying that there is no way to opt out other than hacking on their system (though at least this is all python/bash so it is pretty easy to hack on).
Now to repair the grub/fstab and whatever else I missed and get back to work.
Update Turns out that the problem wasn’t with the UUIDs at all. I didn’t update the hd0 in grub to point at the new partition properly….details details…