Transferring /home files from one Fedora system (Fedora 21) to another (Fedora23).

asked 2017-02-15 13:05:35 +0000

The Evil One gravatar image

updated 2017-02-17 09:19:42 +0000

System is booted from Fedora 23 system in HDD sda. The Fedora 21 HDD is in a USB dock that is switched on after booting of the Fedora 23 system is complete and gets the name sdb. The home directory of the Fedora 21 system is a file system in the 3rd partition of sdb, sdb3 which is an LVM partition containing one or more file systems one of which is the /home directory for the Fedora 21 system. Neither "fdisk l" nor "parted l" show the identifiers used to mount the file systems in the LVM partition.

To mount the old home directory I need the identifier of the file system but how does one interrogate an LVM partition for the names of file systems inside it. This directory does not auto mount.

I have now found the LVM tool and am investigating its use.

I think my problem is that on install Fedora uses standard names for the 3 logical volumes in the LVM partition and if one has 2 HDDs with Fedora on them in a single system names clash and only the logical volumes on the boot hard drive are accessible.

[root@localhost Carl]# lvm lvscan ACTIVE '/dev/fedora/swap' [5.75 GiB] inherit ACTIVE '/dev/fedora/home' [409.26 GiB] inherit ACTIVE '/dev/fedora/root' [50.00 GiB] inherit inactive '/dev/fedora/swap' [5.75 GiB] inherit inactive '/dev/fedora/home' [875.07 GiB] inherit inactive '/dev/fedora/root' [50.00 GiB] inherit

I need to restate my question thus:-

In Fedora installation can one overide the default names for the 3 logical volumes in the LVM partition so that they are something other than /dev/fedora/swap /dev/fedora/home & /dev/fedora/root. Actually only the home logical volume matters I would like to set it to /dev/fedora##/home where ## is the Fedora version number.

2017-2-17

I have just installed Fedora25 on a new hard disk. The lvs are no longer /dev/fedora/xxxx but /dev/fedorahost01.xxx where host01 is the chosen hostname and when I boot Fedora 21 and put Fedora 25 in the USB dock all lvs in the 3rd partition of the HDD are visible in the file manager.

edit retag flag offensive close merge delete

Comments

vgrename and lvrename I guess

fcomida ( 2017-02-15 16:32:12 +0000 )edit

Thanks tcomida.

Somewhere Linux is told that /dev/fedora/home is the lv containing the /home directory, this is not fstab. fstab specifies only that lv with that name is mounted. It may be hard coded or may be in a file somewhere or perhaps may be specified during install.

The Evil One ( 2017-02-16 11:39:00 +0000 )edit

I have just installed Fedora25 on a new hard disk. The lvs are no longer /dev/fedora/xxxx but /dev/fedorahost01/xxx where host01 is the chosen hostname and when I boot Fedora 21 and put Fedora 25 in the USB dock all lvs in the 3rd partition of the HDD are visible.

The Evil One ( 2017-02-17 02:04:57 +0000 )edit