Reinstalling fedora, keeping home partition in lvm group

asked 2017-07-27 04:57:40 -0500

zollern gravatar image

Initially, I installed CentOS 7 on my laptop. I migrated to Fedora 25 some months ago and I was able to keep my home partition by simply mounting it to /home and not reformatting it as is explained all over the Internet and I was happy how easy that was.

Now I tried updating Fedora 25 to Fedroa 26 and while that initially worked, after a dnf update booting now results in a grub shell and I cannot boot into Fedora anymore. Thus, I now want to install Fedora 26 from Live medium (as I did before with my change to Fedora 25). However, this time, I seemingly cannot keep my home partition. When I choose a custom partitioning, I can delete all old partitions (i. e. / (which has a size of 50 GiB), /boot (size 500 MiB) and swap (7.5 GiB)), but only 500 MiB will be registered unallocated, i. e. /boot.

As I have now seen, the old system is in a single lvm volume group

[root@localhost-live]# lsblk
sda               8:0    0 465.8G  0 disk 
├─sda1            8:1    0   500M  0 part 
└─sda2            8:2    0 465.3G  0 part 
  ├─centos-home 253:0    0 407.7G  0 lvm  /mnt/tmphome
  ├─centos-swap 253:1    0   7.5G  0 lvm  [SWAP]
  └─centos-root 253:2    0    50G  0 lvm

How can I install Fedora 26 by keeping my old home? I am surprised that it worked perfectly with CentOS 7 -> Fedora 25, but that I am now running into problems when doing Fedora 26 -> Fedora 26. I do not have any external hard drive available to back-up my data as I am out of country right now ...

edit retag flag offensive close merge delete

Comments

If you are happy with your partitions layout there's no need to delete and recreate any partition, I'm sure there's an option for not formatting old partitions. In custom partitioning select your mount points and, for home, un-check the option for formatting it.

fcomida gravatar imagefcomida ( 2017-07-27 06:36:02 -0500 )edit

If it's on LVM, you need to mount/unlock your LVM before anaconda, the Fedora installer, can "see" the volumes. As for your /home, just make sure you deselect the Format function during install.

florian gravatar imageflorian ( 2017-07-27 10:32:47 -0500 )edit