![How do I move the mount point of a drive](https://linux22.com/image/828262/How%20do%20I%20move%20the%20mount%20point%20of%20a%20drive.png)
I have /dev/sda2
mounted as /mnt
. I am actually running my system from a volume mounted at /mnt/install
(I've chrooted to /mnt/install
).
I'd like to be able to use that disk from within my chrooted linux. How do I move /dev/sda2
from /mnt
to /mnt/install/mnt/fast
?
答案1
Is your chrooted system inside /dev/sda2? if not, just create that folder and mount to it
Outside the chroot enviroment,
first, unmount the current folder
sudo umount /mnt/install
then, make the new mount point directory
sudo mkdir -p /mnt/install/mnt/fast
finally re-mount the partition to your new mountpoint
sudo mount /dev/sda2 /mnt/install/mnt/fast
now, you should be able to chroot and access files at /mnt/fast