English
Ask Your Question
2

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

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-03-15 02:15:46 +0000

The Evil One gravatar image

I have made some progress but have since installed Fedora 26 and am now in the process of upgrading to Fedora 27.

In installing Fedora 27 one has 3 options for setting up partitions and file systems:-

1/ Automatic; 2/ Manual; 3/ Manual with GUI tool blivet.

I tried option 3 but not knowing the appropriate things to enter could not get beyond specifying the first partition. There were no error messages highlighting what was wrong but the button for proceeding to the next stage was simply greyed out, so I fell back to option 2. This allowed me to specify a logical volume group name of "HDD034" which does not clash with "fedora" used on my other Fedora 26 system and to specify 16GiB for the size of the swap partition for when I next increase memory. This allows the 2HDDs to coexist in the one system.

I then booted the Fedora 27 system and put the HDD for the previous system in the USB dock and switched it on and used cp to do what I thought was merging /home from Fedora 26 with /home with Fedora 27 but what I ended up with was on the Fedora 27 system this arrangement of directories:-

/home /Carl /home

I thought that what I was doing was merging /home from Fedora 26 into /home on Fedora 27 but instead got it as a subdirectory. I would be grateful for any thoughts.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

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

Seen: 90 times

Last updated: Feb 17 '17