linux - How to mount an rsync-copied partition combined from two source partitions -


my pc running archlinux. pc has 2 hard disks, /dev/sda , /dev/sdb. sda source disk , contains files. sdb destination disk , empty. purpose make copy of sda sdb, , make sdb bootable archlinux installation.

sda has 3 partitions: sda1 /boot, sda2 /, sda3 /home. here /etc/fstab:

/dev/sda2   /           ext4        rw,relatime,data=ordered    0 1 /dev/sda1   /boot       vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2 /dev/sda3   /home       ext4        rw,relatime,data=ordered    0 2 

i formatted sdb 2 partitions only: sdb1 /boot , sdb2 /. used rsync copy sda1 sdb1, sda2 , sda3 sdb2. , updated uefi bootloader , /etc/fstab:

/dev/sdb2   /           ext4        rw,relatime,data=ordered    0 1 /dev/sdb1   /boot       vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2 

the problem is, when booted sdb, both sdb1 , sdb2 automatically mounted, /home empty. personal home directory not found under /home. why that?

later rebooted sda , manually mounted sdb2 , confirmed personal home directory in /home.

i figured out problem. forgot update /boot/loader/entries/arch.conf, gummiboot bootloader loaded /dev/sda2 instead of /dev/sdb2. , because sda2 did not contain /home/, /home/ not found.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -