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.
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
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.
the first partition, *not* to the MBR.
You can list the detected filesystems and non-empty partitions by
You can list the detected filesystems and non-empty partitions by
running the `blkid` command. For instance, `/dev/sda1` holds the root
running the `blkid` command. For instance, `/dev/sda1` holds the root
If you don't see any messages from the on-disk bootloader (usually
Reinstalling the Bootloader (grub2)
`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
If you don't see any messages from the on-disk bootloader (usually
installed to the first partition of the boot device, and this partition
`grub2`) in the console log of your failing node, you may well have
also contains the root filesystem. Do not reinstall to the MBR; this
broken your bootloader installation or its configuration. As mentioned
will not help you unless your disk image is a whole-disk image, and this
earlier, the bootloader for our standard Linux images *must* be
is almost never the case.
installed to the first partition of the boot device, and this partition
also contains the root filesystem. Do not reinstall to the MBR; this
We do not provide `grub2` binaries in the MFS, so you will need to use
will not help you unless your disk image is a whole-disk image, and this
the `chroot` strategy above to run `grub-install` or `grub2-install`
is almost never the case.
from within your on-disk root filesystem, once you've mounted it as
described above. Once you've entered the `chroot` environment, and know
We do not provide `grub2` binaries in the MFS, so you will need to use
the device containing your root filesystem, you can do
the `chroot` strategy above to run `grub-install` or `grub2-install`
```
from within your on-disk root filesystem, once you've mounted it as
grub-install --force /dev/sda1
described above. Once you've entered the `chroot` environment, and know
```
the device containing your root filesystem, you can do
(Replace `/dev/sda1` with the path of the partition containing your root
```
filesystem.)
grub-install --force /dev/sda1
```
Make sure to `umount` special filesystems and the root filesystem when
(Replace `/dev/sda1` with the path of the partition containing your root
you're finished, before rebooting!
filesystem.)
Advanced Filesystem Configurations
Make sure to `umount` special filesystems and the root filesystem when
----------------------------------
you're finished, before rebooting!
The Recovery MFS does provide LVM (e.g., `lvdisplay` et al) and software
Advanced Filesystem Configurations
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
The Recovery MFS does provide LVM (e.g., `lvdisplay` et al) and software
read and understand either toolset to proceed.
RAID (e.g. `dmraid`) tools, so you could use them to examine, expose,
and mount logical volumes or software RAID devices---but these advanced
Recovering non-Linux filesystems
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.
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.