Skip to content

Commit a7fcca3

Browse files
Update chroot-environment-linux.md
Added latest version for ubuntu with missing details.
1 parent f46b719 commit a7fcca3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

support/azure/virtual-machines/linux/chroot-environment-linux.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ms.author: genli
2323

2424
This article describes how to troubleshoot the chroot environment in the rescue virtual machine (VM) in Linux.
2525

26-
## Ubuntu 16.x && Ubuntu 18.x && Ubuntu 20.04
26+
## Ubuntu 16.x && Ubuntu 18.x && Ubuntu 20.04 && Ubuntu 22.04 && Ubuntu 24.04
2727

2828
1. Stop or deallocate the affected VM.
2929
1. Create a rescue VM of the same generation, same OS version, in same resource group and location using managed disk.
@@ -54,8 +54,10 @@ This article describes how to troubleshoot the chroot environment in the rescue
5454
```bash
5555
mkdir /rescue
5656
mount /dev/sdc1 /rescue
57+
mount /dev/sdc16 /rescue/boot
5758
mount /dev/sdc15 /rescue/boot/efi
5859
60+
5961
mount -t proc /proc /rescue/proc
6062
mount -t sysfs /sys /rescue/sys
6163
mount -o bind /dev /rescue/dev
@@ -78,11 +80,13 @@ This article describes how to troubleshoot the chroot environment in the rescue
7880
umount /rescue/run
7981
cd /
8082
umount /rescue/boot/efi
83+
umount /rescue/boot
8184
umount /rescue
8285
```
8386
8487
> [!NOTE]
8588
> If you receive the error message "unable to unmount /rescue," add the `-l` option to the `umount` command, for example, `umount -l /rescue`.
89+
> <br>The partition `/dev/sdc16` is uniquely present in Ubuntu 24.04. So this has to mounted before partition `/dev/sdc15`.
8690
8791
1. Detach the disk from the rescue VM and perform a disk swap with the original VM.
8892
1. Start the original VM and check its connectivity.

0 commit comments

Comments
 (0)