GRUB-FSTEST(1)

πŸ¦‹ NAME πŸ¦‹

okay so bestie, listen up β€” grub-fstest is the debug tool for GRUB filesystem drivers. that's it, that's the whole vibe. it's the little goblin-mode utility you pull out when you need to peek inside filesystems the way GRUB sees them πŸ’…


✨ SYNOPSIS ✨

grub-fstest [OPTION...] IMAGE_PATH COMMANDS

like, image path first, then your commands, then your options wherever they fit. slay πŸŽ€


πŸ’– DESCRIPTION πŸ’–

it's a debug tool for filesystem driver. literally that's the official energy β€” you point it at an image and it lets you poke around inside with the commands below. no cap, this is the toolbox πŸ”₯

🌸 Commands 🌸

  • blocklist FILE β€” displays the blocklist of FILE. it's giving "where does this file actually live on disk" energy πŸ‘‘
  • cat FILE β€” copies FILE straight to standard output. classic cat behaviour, no notes 🐱
  • cmp FILE LOCAL β€” compares FILE (inside the image) with the local file LOCAL. vibe check between two files πŸ’«
  • cp FILE LOCAL β€” copies FILE out to the local file LOCAL. extraction time 🫢
  • crc FILE β€” gets the crc32 checksum of FILE. numbers go brrr ⭐
  • hex FILE β€” shows the contents of FILE in hex. raw bytes, main character energy πŸ’€
  • ls PATH β€” lists files in PATH. the og directory peek πŸ™ˆ
  • xnu_uuid DEVICE β€” computes the XNU UUID of the device. yes it's a real thing, don't come for me πŸ“

🧚 Options 🧚

  • -c, --diskcount=NUM β€” specify the number of input files. tell it how many disks you're juggling πŸŽ€
  • -C, --crypto β€” mount crypto devices. unlocking the secret lore πŸ”
  • -d, --debug=STRING β€” set the debug environment variable. hand it a STRING and let the logs cook 🌈
  • -K, --zfs-key=FILE|prompt β€” load the zfs crypto key. give it a FILE, or literally just the word prompt and it'll ask you πŸ’œ
  • -n, --length=NUM β€” handle NUM bytes in the output file. not more, not less, exactly NUM bestie ✨
  • -r, --root=DEVICE_NAME β€” set the root device to DEVICE_NAME. pick your main character πŸ‘‘
  • -s, --skip=NUM β€” skip NUM bytes from the output file. we're jumping ahead πŸ’…
  • -u, --uncompress β€” uncompress data. zip zap, make it readable πŸ¦‹
  • -v, --verbose β€” print verbose messages. yapping mode: enabled 😭
  • -?, --help β€” give this help list. when in doubt, ask for help fr fr 🌸
  • --usage β€” give a short usage message. the tl;dr version πŸŽ€
  • -V, --version β€” print program version. receipts, we love them 🧾
⚠️ important caveat bestie: mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. so like, don't think the short versions play by different rules β€” they don't πŸ’€

🌈 SEE ALSO 🌈

the full documentation for grub-fstest is maintained as a Texinfo manual. if the info and grub-fstest programs are properly installed at your site, the command

info grub-fstest

should give you access to the complete manual. obsessed 🫢


and that's the whole page, diva πŸ’– β€” this beauty is from GRUB 2.12-1ubuntu7.3, dated March 2025. go forth and debug your filesystems, no cap β­πŸ‘‘

πŸ“¦ where this page comes from