LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   confused how to chroot + have separate home (https://www.linuxquestions.org/questions/arch-29/confused-how-to-chroot-have-separate-home-4175657638/)

anon026 07-18-2019 01:44 PM

confused how to chroot + have separate home
 
Hi :-)
A beginner, having just come over to Arch a few days ago (after Mint, Neptune, Manjaro). I never needed to chroot when on previous distros. Using a separate home now. I've set up Timeshift, but having a very difficult time trying to find out how to chroot in, at all, but especially if there was the need to get into Timeshift in order to run a restore ... Timeshift backups are on my /home (sda3).

fdisk -l
/dev/sda1 2048 1026047 1024000 500M Linux filesystem
/dev/sda2 1026048 205826047 204800000 97.7G Linux filesystem
/dev/sda3 205826048 1953525134 1747699087 833.4G Linux filesystem

Reading wiki and lots of guides, and just can't see how to do it. Would be very grateful for any advice.

dc.901 07-19-2019 05:56 AM

Quote:

Originally Posted by paintpenguin (Post 6016383)
Hi :-)
A beginner, having just come over to Arch a few days ago (after Mint, Neptune, Manjaro). I never needed to chroot when on previous distros. Using a separate home now. I've set up Timeshift, but having a very difficult time trying to find out how to chroot in, at all, but especially if there was the need to get into Timeshift in order to run a restore ... Timeshift backups are on my /home (sda3).

fdisk -l
/dev/sda1 2048 1026047 1024000 500M Linux filesystem
/dev/sda2 1026048 205826047 204800000 97.7G Linux filesystem
/dev/sda3 205826048 1953525134 1747699087 833.4G Linux filesystem

Reading wiki and lots of guides, and just can't see how to do it. Would be very grateful for any advice.

I do not use Timeshift, but if your goal is to chroot then:

mount sda3 first:

Code:

mount /dev/sda3 /mnt/backup  (make sure /mnt/backup exist)
Now:
Code:

chroot /mnt/backup
When you are done, type exit to get out of chroot environment

anon026 07-21-2019 11:17 AM

Thanks dc.901. Much appreciate. :-)


All times are GMT -5. The time now is 03:35 PM.