I have an old installation of 18.04 LTS.
/home
is on/dev/sda
. I want to leave this untouched- System and everything else is on
/dev/nvme0n1p1
and/dev/nvme0n1p2
(swap I think)
I have a bootable USB drive with 22.04 LTS, and I want a fresh install which leaves /dev/sda
untouched, and remaining configured for /home
.
The installations options presented were not obvious to me - they all warned I was about to destroy all my file.
When I select "Choose Something Else", I am offered a partition editor. I've used such editors before, but I wasn't sure how to ensure that /dev/sda
does not get destroyed.
What instructions or menu options should I be selecting?
UPDATE:
So in my impatience, I selected the option to erase Ubuntu and re-install. It felt risky, but it was the only option which explicitly told me what it intended to do. It said it was going wipe both partitions on /dev/nvme0n1
, and made no mention of /dev/sda
.
The result is that I now have a fresh install of 22.04 LTS on /dev/nvme0n1
, and /dev/sda
appears as a mounted SSD drive.
All my data under /home/stewart
is present, which is great!
But now I want to tell Ubuntu to use this device of my /home
, not the one it created under on the installation device.
Responding to Paul Benson, these are my partitions:
$ sudo parted -l
Model: ATA Samsung SSD 860 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 500GB 500GB ext4 SSD
Model: Samsung SSD 970 PRO 512GB (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
2 538MB 512GB 512GB ext4
gparted
or other app you are more comfortable with, then use the partition viewer to select – guiverc Nov 25 '23 at 21:27/etc/fstab
file controls what is mounted & where it is mounted. You can add an entry to mount your older bionic (18.04) home partition so it's used instead of the/home
directory (which will exist on the new partition of the new install; which will cause the newer directory to be shadowed. Be warned, this can be problematic in the future if you forget what you did; as you'll have two/home
directories, though 1 will be not seen when operating, but if you use a live system rather than installed, you'll find both still... – guiverc Nov 25 '23 at 21:29