I installed an additional Linux installation into a separate partition set the /home directory into that partition as well and afterwards I modified /etc/fstab
to point to the old partition.
How can I access the contents of the initial /home directory?
# initial configuration
UUID=001 /disks/disk1part1 ext2 auto,users,rw,exec,relatime 0 0
UUID=002 / ext4 defaults,relatime,errors=remount-ro 0 1
UUID=003 /disks/disk26 ext4 auto,users,rw,exec,relatime 0 0
UUID=004 none swap sw 0 0
# changed configuration
UUID=001 /disks/disk1part1 ext2 auto,users,rw,exec,relatime 0 0
UUID=002 / ext4 defaults,relatime,errors=remount-ro 0 1
UUID=003 /home ext4 auto,users,rw,exec,relatime 0 0
UUID=004 none swap sw 0 0
The initial system had no /home in /etc/fstab because it was under the root, and the second configuration added changed /home to /disks/disks26.
/mnt
, that will shadow all its previous content. I used/mnt
because that's what routinely used for temporary mounts. You can use any other existing directory. – Ferenc Wágner Oct 02 '15 at 11:42--bind
signify? Is there a special command to unmount it? – vfclists Oct 04 '15 at 01:41man mount
. You can simplyumount
it as any other mount if it's not in use. – Ferenc Wágner Oct 04 '15 at 07:22