Check UEFI Boot and Disk Identity Before Modifying Storage
Use read-only commands to distinguish current boot mode, mounted filesystems and a removable drive before starting an installation.
Difficulty Beginner
Prerequisites
Use a Linux system or Kali live environment and a spare USB device. Avoid doing this during transfers to the removable device. The lesson issues no formatting or partitioning commands.
Identify boot mode and root
if test -d /sys/firmware/efi; then
printf '%s\n' 'This session booted in UEFI mode.'
else
printf '%s\n' 'EFI system table is not visible to this session.'
fi
findmnt -no SOURCE,FSTYPE /
lsblk -o NAME,PATH,SIZE,MODEL,TRAN,RM,FSTYPE,MOUNTPOINTS
The EFI directory is evidence about this session's boot mode. A machine that supports UEFI can still be booted another way. In a live session, the root may be an overlay and its backing devices need separate inspection. A USB bridge can report unexpected removable flags, so compare model, size and transport together.
Verify a target safely
Print the storage list before connecting the spare device. Plug it in and run lsblk again. Locate the new line, then compare its partitions and mount points with the internal drive's. Keep track of the exact device path during that session. Linux device letters can change after reboot. Review the intended bootloader destination separately from the root filesystem before deciding whether you want a full install.
Troubleshooting and practice
If two drives are indistinguishable, stop and physically confirm which is connected. Prefer removing unnecessary external drives before a real installation. For practice, compare your snapshot with the firmware boot menu, then explain why a disk's identity, an EFI partition and the currently booted system can be three different observations. Avoid sharing serial numbers or unrelated volume labels in screenshots.