I have two SSD on my computer with dual boot.
- Leap 42.3 on /dev/sda2
with btrfs and - Leap 15.1 on** /dev/sdc2**
I would like to copy** /srv/www/htdocs** from /dev/sda2 to /dev/sdc. I can’t boot Leap 42.3 atm so I have to access htdocs from Leap 15.1.
Can anybody show me a way I could do this?
You can try:
mount /dev/sda2 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
exit ## exit from chroot environment
Those last three lines should mount all of the “btrfs” subvolumes. And, after doing that, you should be able to see your files at “/mnt/srv/www/htdocs”.
When done with your copying, you can use
umount -R /mnt
to unmount everything.
@nrickert thanks a lot! worked perfectly!