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 ofFILE. it's giving "where does this file actually live on disk" energy πcat FILEβ copiesFILEstraight to standard output. classic cat behaviour, no notes π±cmp FILE LOCALβ comparesFILE(inside the image) with the local fileLOCAL. vibe check between two files π«cp FILE LOCALβ copiesFILEout to the local fileLOCAL. extraction time π«Άcrc FILEβ gets the crc32 checksum ofFILE. numbers go brrr βhex FILEβ shows the contents ofFILEin hex. raw bytes, main character energy πls PATHβ lists files inPATH. 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 aSTRINGand let the logs cook π-K,--zfs-key=FILE|promptβ load the zfs crypto key. give it aFILE, or literally just the wordpromptand it'll ask you π-n,--length=NUMβ handleNUMbytes in the output file. not more, not less, exactlyNUMbestie β¨-r,--root=DEVICE_NAMEβ set the root device toDEVICE_NAME. pick your main character π-s,--skip=NUMβ skipNUMbytes 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 π
grub-probe(8)β the sibling, go say hi π
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
- ubuntu noble: grub-common 2.12-1ubuntu7.3 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms