Share home directory between 2 18.04 installations

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Share home directory between 2 18.04 installations

Jack McGee
So I have a broken 18.04 (#1) installation, and installed another 18.04
(#2)instance beside it.

The new 18.04 (#2)cannot see the original home directory.


from the first installation:

mythuser@amethi:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type> <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=b493bd22-70d3-45c5-b143-6197d389f958 /               ext4
errors=remount-ro 0       1
UUID=19d627e0-023f-4e34-a484-09c4ce57566e /mnt/media5 ext4 defaults 0 0
UUID=6cd655a1-b1a3-4b79-a404-87777353991e    /mnt/media6 ext4    user   
0    0
UUID=c5cb94f2-b6c2-4844-8e05-518d82119e1e /mnt/media1 ext4 defaults 0 0
UUID=6a4fefef-139b-48eb-8bb2-05d5e2d741be /mnt/media3 ext4 defaults 0 0
UUID=b51fdfaa-c058-4744-8473-76727e3a5575   /home    ext4 defaults      
0       2
UUID=6281-7001    /boot/efi    vfat    defaults    0    1
UUID=a90503a5-8c2b-491d-b541-f58f45a9e0ed /mnt/1804-2install ext4
defaults 0 0
UUID=289e0eae-6354-4db2-b0d8-1f8d35ec0e62 /mnt/sdf1 ext4 defaults 0 0
UUID=ea569c19-54e8-4602-9ffd-39d3564af3ef /mnt/sdf2 ext4 defaults 0 0
UUID=90eaf5b6-a86b-4f48-bdd1-163dbcd632cd /mnt/media4 ext4 defaults 0 0

from the #2 installation:

mythuser@amethi:~$ cd /mnt/sdf2/etc
mythuser@amethi:/mnt/sdf2/etc$ cat fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type> <options>       <dump>  <pass>
UUID=a90503a5-8c2b-491d-b541-f58f45a9e0ed     /swap ext4   
defaults        0       2
UUID=7fc941bf-d392-4a40-93bb-74413d29d124    /var ext4   
defaults        0       2
UUID=ba22de6b-ffac-4573-b05f-90b0c2e1f810    none swap   
sw              0       0
UUID=289e0eae-6354-4db2-b0d8-1f8d35ec0e62    /boot ext4    defaults   
0    2
UUID=289e0eae-6354-4db2-b0d8-1f8d35ec0e62    /boot/efi    ext4
defaults    0    1
UUID=b493bd22-70d3-45c5-b143-6197d389f958       / ext4   
errors=remount-ro 0       1
UUID=6cd655a1-b1a3-4b79-a404-87777353991e       /mnt/media6 ext4   
defaults  0 0
UUID=6a4fefef-139b-48eb-8bb2-05d5e2d741be       /mnt/media3 ext4   
defaults  0 0
UUID=c5cb94f2-b6c2-4844-8e05-518d82119e1e       /mnt/media1 ext4   
defaults 0 0
UUID=19d627e0-023f-4e34-a484-09c4ce57566e     /mnt/media5     ext4    
defaults 0 0
UUID=90eaf5b6-a86b-4f48-bdd1-163dbcd632cd     /mnt/media4     ext4    
defaults 0 0


I have verified the user mythuser on both installations has the same UID
1000.

the home directory is empty on new installation.



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Share home directory between 2 18.04 installations

Rashkae-2
On 2019-07-30 9:01 p.m., Jack McGee wrote:

> from the first installation:
>

> UUID=b51fdfaa-c058-4744-8473-76727e3a5575   /home    ext4 defaults      
> 0       2

Pretty simple and straighforward, copy this line into the /etc/fstab of
your new install and reboot.





--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Share home directory between 2 18.04 installations

Rashkae-2
On 2019-07-30 9:22 p.m., Rashkae wrote:

> On 2019-07-30 9:01 p.m., Jack McGee wrote:
>
>> from the first installation:
>>
>
>> UUID=b51fdfaa-c058-4744-8473-76727e3a5575   /home    ext4 defaults      
>> 0       2
>
> Pretty simple and straighforward, copy this line into the /etc/fstab of
> your new install and reboot.
>


Before doing that, however, it might be prudent to run blkid and verify
that the old home partition still exists and you haven't reformated it
when you installed the new one.

Once you find what device it's on, you can mount it to verify that your
files are intact.

All commands as root (either use a root command prompt, or prepend sudo
to each command.)

blkid | grep b51f

for this example, lets assume the filesystem is found on /dev/sdc1

mkdir /mnt/test
mount /dev/sdc1 /mnt/test
cd /mnt/test

Have a look around, if it looks like what you want, modify fstab to
mount it as your new home.



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Share home directory between 2 18.04 installations

Rashkae-2
In reply to this post by Jack McGee
On 2019-07-30 9:01 p.m., Jack McGee wrote:

> UUID=289e0eae-6354-4db2-b0d8-1f8d35ec0e62    /boot/efi    ext4


I'm not sure how you managed this one, but it's *really* wrong.

The EFI partition is a fat32 partition, not ext4,, (and in this case,
the same UUID as your /boot partition.

I can't imagine an installer getting this so messed up, so I'm wondering
how much other shenanigans might have happened alone the way.




--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users