# Chroot into a btrfs uefi system from live media

**URL:** <https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986>\
**Category:** General system\
**Created:** [July 20, 2021, 5:35pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986 "2021-07-20T17:35:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [July 20, 2021, 5:35pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/1 "2021-07-20T17:35:45Z")

</div>

Can somebody point me to the instructions for this. I don’t have a problem, but will have at some point!!!

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 20, 2021, 5:46pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/2 "2021-07-20T17:46:05Z")

</div>

The only real difference between a btrfs chroot and an ext4 chroot is that you need to add `-o subvol=@` to your mount line. That assumes that your root subvolume is name `@`. If it is named something else, use that instead.

For most people, that is all you have to do.

If you have carved your system up into many subvols, you will need to mount those as well if they are relevant. For example, if you have `/home` in a separate subvol, you probably don’t need that in a chroot. But if you put `/usr` or `/var` in a separate subvol, you need to mount those too.

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [July 20, 2021, 5:56pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/3 "2021-07-20T17:56:58Z")

</div>

```auto
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part /data
sdb 8:16 0 232.9G 0 disk
├─sdb1 8:17 0 300M 0 part /boot/efi
├─sdb2 8:18 0 223.8G 0 part /home
│ /
└─sdb3 8:19 0 8.8G 0 part [SWAP]
sdc 8:32 1 57.3G 0 disk
├─sdc1 8:33 1 57.2G 0 part /run/media/xircon/ventoy
└─sdc2 8:34 1 32M 0 part

```

So:

```auto
sudo mount /dev/sdb1 /mnt #efi
sudo mount /dev/sdb2 /mnt/root -o subvol=@
sudo arch-chroot /mnt

```

Sorry, really really warm today and we brits do not function well unless it is cold and wet 🤣

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 20, 2021, 6:01pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/4 "2021-07-20T18:01:38Z")

</div>

I think more like this:

```nohighlight
sudo mount /dev/sdb2 /mnt -o subvol=@
sudo mount /dev/sdb1 /mnt/boot/efi
sudo arch-chroot /mnt

```

---

<div class="post-metadata">

**Author:** ![manuel](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/manuel/32/396_2.png) [@manuel](https://forum.endeavouros.com/u/manuel)\
**Post date:** [July 20, 2021, 6:09pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/5 "2021-07-20T18:09:00Z")

</div>

> [@xircon](#):
>
> we brits do not function well unless it is cold and wet

Either drink a cold beer, or pour the cold beer on yourself? 🤪  
Both of them should help… 😉

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [July 20, 2021, 6:09pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/6 "2021-07-20T18:09:16Z")

</div>

Thanks @dalto that works - now lets hope I never need it 😃

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [July 20, 2021, 6:12pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/7 "2021-07-20T18:12:12Z")

</div>

29 deg C outside, 26 inside, wish I could drink beer, but alcohol + prescription medication = really bad hangover ☹

I prefer cold, cold you can put on clothes, if I take off anymore I will be arrested for public indecency 🤣

---

<div class="post-metadata">

**Author:** ![manuel](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/manuel/32/396_2.png) [@manuel](https://forum.endeavouros.com/u/manuel)\
**Post date:** [July 20, 2021, 6:19pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/8 "2021-07-20T18:19:49Z")

</div>

Today is about the first day here (in southern Finland) the temperature is below 30 degrees C outside during this Summer… And inside I now have 28!

So under the shower is the only place for survival… 🤣

---

<div class="post-metadata">

**Author:** ![Hystrix](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/hystrix/32/36425_2.png) [@Hystrix](https://forum.endeavouros.com/u/Hystrix)\
**Post date:** [July 27, 2021, 4:28am UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/9 "2021-07-27T04:28:35Z")

</div>

I am using Btrfs on LUKS . So should I use the luks device instead , like

> sudo mount /dev/mapper/luks-UUID /mnt -o subvol=@  
> sudo mount /dev/sda1 /mnt/boot/efi  
> sudo arch-chroot /mnt

??

---

<div class="post-metadata">

**Author:** ![2000](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/2/ee59a6/32.png) [@2000](https://forum.endeavouros.com/u/2000)\
**Post date:** [July 27, 2021, 10:57am UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/11 "2021-07-27T10:57:50Z")

</div>

Your luks-device should have a ‘mapped’ name, e. g. ‘crypt’. Use that.

For example:

```auto
sudo cryptsetup luksOpen /dev/sda2 crypt &&
sudo mount -o compress=zstd,subvol=@ /dev/mapper/crypt /mnt

```

Then. `chroot` into your system  
`sudo arch-chroot /mnt`

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 27, 2021, 12:12pm UTC](https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/12 "2021-07-27T12:12:32Z")

</div>

> [@Hystrix](#):
>
> I am using Btrfs on LUKS . So should I use the luks device instead , like

Yes, exactly. For a manual mount it doesn’t really matter how you refer to the luks device. You can use any of the valid device names. Use whichever one you find easiest. I usually the one in `/dev/disk/by-id` but it doesn’t matter much.
