We have two primary standard Linux image types. The newest are GPT-based, dual BIOS/UEFI-bootable (https://gitlab.flux.utah.edu/emulab/emulab-devel/-/wikis/Dual-boot-UEFI-BIOS-Images), and place the rootfs in the 3rd partition. Older BIOS bootable-only images have an MBR partition table, and place the rootfs in the 1st partition.
Our newer dual BIOS/UEFI-bootable images install both a UEFI loader in the EFI System Partition (GPT partition 1), and a grub loader in the MBR (note also the presence of the BIOS boot partition, GPT partition 2). Older BIOS-bootable images require the bootloader (typically grub) must also be installed to
the first partition, *not* to the MBR.
You can list the detected filesystems and non-empty partitions by
running the `blkid` command. For instance, `/dev/sda1` holds the root
We have two primary standard Linux image types. The newest are GPT-based, dual BIOS/UEFI-bootable (https://gitlab.flux.utah.edu/emulab/emulab-devel/-/wikis/Dual-boot-UEFI-BIOS-Images), and place the rootfs in the 3rd partition. Older BIOS bootable-only images have an MBR partition table, and place the rootfs in the 1st partition.
Our newer dual BIOS/UEFI-bootable images install both a UEFI loader in the EFI System Partition (GPT partition 1), and a grub loader in the MBR (note also the presence of the BIOS boot partition, GPT partition 2). Older BIOS-bootable images require the bootloader (typically grub) must also be installed to
the first partition, *not* to the MBR.
You can list the detected filesystems and non-empty partitions by
running the `blkid` command. For instance, `/dev/sda1` holds the root
If you don't see any messages from the on-disk bootloader (usually
`grub2`) in the console log of your failing node, you may well have
broken your bootloader installation or its configuration. As mentioned
earlier, the bootloader for our standard Linux images *must* be
installed to the first partition of the boot device, and this partition
also contains the root filesystem. Do not reinstall to the MBR; this
will not help you unless your disk image is a whole-disk image, and this
is almost never the case.
We do not provide `grub2` binaries in the MFS, so you will need to use
the `chroot` strategy above to run `grub-install` or `grub2-install`
from within your on-disk root filesystem, once you've mounted it as
described above. Once you've entered the `chroot` environment, and know
the device containing your root filesystem, you can do
```
grub-install --force /dev/sda1
```
(Replace `/dev/sda1` with the path of the partition containing your root
filesystem.)
Make sure to `umount` special filesystems and the root filesystem when
you're finished, before rebooting!
Advanced Filesystem Configurations
----------------------------------
The Recovery MFS does provide LVM (e.g., `lvdisplay` et al) and software
RAID (e.g. `dmraid`) tools, so you could use them to examine, expose,
and mount logical volumes or software RAID devices---but these advanced
configurations are beyond the scope of this document. You will need to
read and understand either toolset to proceed.
Recovering non-Linux filesystems
--------------------------------
If your node is running FreeBSD rather than Ubuntu or CENTOS Linux, then the Linux recovery filesystem won't help you right now. Contact testbed-ops for help.