SAVECORE(8)
β¨ SAVECORE(8) β¨
okay so bestie, buckle up β this is savecore, section 8 of the System Manager's Manual, and it's literally the girl who saves your crash for later πΎβ¨
π NAME π
savecore β save a core dump of the operating system π«Ά
π SYNOPSIS π
savecore -c [-v] [device ...]
savecore -C [-v] [device ...]
savecore -L [-fvZz] [-m maxdumps] [directory]
savecore [--libxo] [-fkuvz] [-m maxdumps] [directory [device ...]]
πΈ DESCRIPTION πΈ
The savecore utility copies a core dump into directory, or into the current working directory if you didn't hand it a directory argument, and then it enters a reboot message plus info about the core dump into the system log. it's giving "i'm saving this for the group chat" energy honestly π
The options are as follows:
--libxoβ generate output vialibxo(3)in a selection of different human and machine readable formats β¨. seexo_options(7)for details on command line arguments.-Cβ check to see if a dump exists, and display a brief message to indicate the status. an exit status of0indicates that a dump is there,1indicates that none exists. this option is compatible only with the[-v]option.-cβ clear the dump, so that future invocations ofsavecorewill ignore it. bye bestie π-fβ force a dump to be taken even if either the dump was cleared or if the dump header information is inconsistent. it's giving pushy but make it necessary πͺ-kβ do not clear the dump after saving it. keep it, queen π-Lβ instructsavecoreto generate and save a kernel dump of the running system, rather than copying one from a dump device.-mmaxdumps β maximum number of dumps to store. once the number of stored dumps is equal to maxdumps the counter will restart from0. the circle of life π¦-uβ uncompress the dump in case it was compressed by the kernel.-vβ print out some additional debugging information. specify twice for more information (yes, twice. she's chatty π).-Zβ compress the dump (seezstd(1)). this option is only supported in conjunction with the-Loption. regular dumps can be configured for compression withzstdusingdumpon(8).-zβ compress the dump (seegzip(1)). the dump may already be compressed if the kernel was configured to do so bydumpon(8). in this case, the option has no effect. like, nothing. zero. nada π
if used in conjunction with the -L option, the requested live dump will be compressed with gzip.
The savecore utility looks for dumps on each device specified by the device argument(s), or on each device in /etc/fstab marked as βdumpβ or βswapβ. π
The savecore utility checks the core dump in various ways to make sure that it is complete. vibe check, basically. if it passes these checks, it saves the core image in directory/vmcore.# and information about the core in directory/info.#. if the core is encrypted, it saves the dump key in directory/key.# π. the core can be later decrypted using decryptcore(8). for kernel textdumps generated with the textdump(4) facility, output will be stored in the tar(5) format and named directory/textdump.tar.#.
the β#β is the number from the first line of the file directory/bounds, and it is incremented and stored back into the file each time savecore successfully runs. so it's always counting up, main character energy fr fr π₯
The savecore utility also checks the available disk space before attempting to make the copies. if there is insufficient disk space in the file system containing directory, or if the file directory/minfree exists and the number of free kilobytes (for non-superusers) in the file system after the copies were made would be less than the number in the first line of this file, the copies are not attempted. no space, no save, sorry babe π
If savecore successfully copies the kernel and the core dump, the core dump is cleared so that future invocations of savecore will ignore it.
ngl the whole point of this utility is that it's meant to be called near the end of the initialization file/etc/rc(seerc(8)). that's her whole gig π
π¦ SEE ALSO π¦
gzip(1), zstd(1), getbootfile(3), libxo(3), xo_options(7), mem(4), textdump(4), tar(5), crashinfo(8), decryptcore(8), dumpon(8), syslogd(8)
β HISTORY β
The savecore utility appeared in 4.1BSD β she's an icon, she's a legend, and she is the moment β¨
Support for kernel textdumps appeared in FreeBSD 7.1.
π BUGS π
The minfree code does not consider the effect of compression or sparse files. yeahβ¦ she's not perfect, but we love her anyway π₯Ί
π· okay that's the whole page bestie! this came from the Debian build, dated July 16, 2025, SAVECORE(8) β mwah, go save some cores πππ«Ά
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1980, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms