Main index | Section 1 | Options |
Supported options are:
| |
Select the output format. Supported output formats are: | |
text | Human-readable text (default) |
shell | Each boot entry is emitted as a string suitable for passing to a sh-compatible eval command. The variables emitted are: |
et_platform | |
The platform ID from the section header. Set to 'default' for the initial (default) entry. | |
et_system | The system ID from the boot entry. |
et_lba | The starting LBA (2048-byte blocks) of the boot image. |
et_sectors | The number of sectors (512-byte sectors) that comprise the boot image. |
| |
Write output to file. If '-' is specified then standard out is used. | |
% etdump bootonly.iso Image in bootonly.iso Default entry System i386 Start LBA 420 (0x1a4), sector count 4 (0x4) Media type: no emulationSection header: efi, final Section entry System i386 Start LBA 20 (0x14), sector count 1600 (0x640) Media type: no emulation
To use the output in a shell script a for loop can be used to iterate over the entries returned using eval:
for entry in `etdump --format shell bootonly.iso`; do eval $entry echo $et_platform $et_system $et_lba $et_sectors done
ETDUMP (8) | April 25, 2018 |
Main index | Section 1 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | What will happen when the 32-bit Unix date goes negative in mid-January 2038 does not bear thinking about. | ” |
— Henry Spencer |