FSREMAP(8)
β¨ FSREMAP(8) β¨
okay bestie, sit DOWN. this is fsremap, section 8 of the manual (System Administration Utilities, iykyk), and it is genuinely one of the most unhinged little tools out there. version 0.9.4, so you know it's the real deal. grab a snack, we're doing this π
π NAME π
fsremap β the manual page for fsremap 0.9.4, and honestly? it's giving legend behavior.
πΈ SYNOPSIS πΈ
fsremap [OPTION]... DEVICE LOOP-FILE [ZERO-FILE]
fsremap [OPTION]... --resume-job=JOB_ID DEVICE
π¦ DESCRIPTION π¦
so what does it DO? fsremap replaces the contents of DEVICE with the contents of LOOP-FILE. that's it. that's the job. it writes LOOP-FILE onto DEVICE...
...even if LOOP-FILE is inside a file system that is _inside_ DEVICE. yeah. it's doing the thing where it moves the ground out from under its own feet and slays. absolutely iconic behavior, no cap. π₯
also, quick lil heads up: mandatory arguments to long options are mandatory for short options too. so don't be out here giving short options the cold shoulder while treating the long ones like royalty. equal rights. periodt. π
β¨ OPTIONS β¨
okay this is the part everyone skips and it's the part that MATTERS. every single one, coming right up. π
--β end of options. treat subsequent parameters as arguments even if they start with-. like, "okay we're done with flags now, everything after this is just stuff."-a,--no-questionsβ automatic run: do not ask any question. she just GOES. πββοΈ--clear=allβ clear all free blocks after remapping. this is the default, and it's the chill one. π--clear=minimalβ (DANGEROUS) clear only overwritten free blocks after remapping. bestie. read that again. DANGEROUS. π--clear=noneβ (DANGEROUS) do not clear any free blocks after remapping. also DANGEROUS. also terrifying. π--cmd-umount=CMDβ command to unmountDEVICE(default:/bin/umount).--cmd-losetup=CMDβ'losetup'command (default:/sbin/losetup).--color=MODEβ set messages color.MODEis one of:auto(default),none,ansi. yes, aesthetics are configurable. as they should be. π--device-mount-point=DIRβ set device mount point (needed by--io=prealloc).-f,--force-runβ continue even if some sanity checks fail. the sanity checks are there for a REASON but okay, main character, do your thing. π¬-i,--interactiveβ ask confirmation after analysis, before actual work. a lil "you sure?" moment. cute. π«Ά--io=posixβ use posix I/O. this is the default, it's the comfy one. π--io=preallocβ use posix I/O with EXPERIMENTAL preallocated files. experimental!! we love a risky queen. β--io=self-testβ perform in-memory self-test with random data. she's checking herself before she wrecks herself.--io=testβ use test I/O. Arguments are:DEVICE-LENGTH LOOP-FILE-EXTENTS FREE-SPACE-EXTENTS.--loop-device=LOOP-DEVICEβ loop device to disconnect (needed by--io=prealloc).--loop-mount-point=DIRβ set loop file mount point (needed by--io=prealloc).-m,--mem-buffer=RAM_SIZE[k|M|G|T|P|E|Z|Y]β set RAM buffer size (default: autodetect). yes you can go all the way up to Z and Y. zettabytes and yottabytes. go off. π₯-n,--no-action,--simulate-runβ do not actually read or write any disk block. the safest possible vibe: just pretend. π§--questions=MODEβ set interactive mode.MODEis one of:no: never ask questions, abort on errors (default)yes: ask questions in case of user-fixable errorsextra: also ask confirmation before dangerous steps
-q,--quietβ be quiet, print less output. π€«-qqβ be very quiet, only print warnings or errors.--resume-job=NUMβ resume the interrupted jobNUM. The only non-option argument must beDEVICE.
Do _not_ pass LOOP-FILE as argument, or you will LOSE YOUR DATA! πππ bestie I am BEGGING you. do not. LOSE. YOUR. DATA.
-s,--secondary-storage=SECONDARY_SIZE[k|M|G|T|P|E|Z|Y]β set secondary storage file length (default: autodetect).-t,--temp-dir=DIRβ write storage and log files insideDIR(default:/var/tmp/fstransform).--ui-tty=TTYβ show full-text progress on tty deviceTTY. live progress bar moment. π-v,--verboseβ be verbose.-vvβ be very verbose.-vvvβ be incredibly verbose (warning: prints lots of output). warning: prints LOTS of output. like, a lot a lot. you have been warned. π-xp,--exact-primary-storage=PRIMARY_SIZE[k|M|G|T|P|E|Z|Y]β set _exact_ primary storage length, or fail.
(default: autodetect)
-xs,--exact-secondary-storage=SECONDARY_SIZE[k|M|G|T|P|E|Z|Y]β set _exact_ secondary storage length, or fail.
(default: autodetect)
--x-OPTION=VALUEβ set internal, undocumented option. for maintainers only. not for us, bestie. we don't touch. π ββοΈ--helpβ display this help and exit. the classic.--versionβ output version information and exit.
and that's the whole thing!! you made it, I'm so proud of you π₯Ήπ go forth, read your --help, maybe do a -n dry run first, and please please please respect the --resume-job warning. no cap.
this was fsremap 0.9.4, brought to you by System Administration Utilities, dated July 2025. mwah, bye bestie!! πβ¨π¦ππ«Άπ
π¦ where this page comes from
- fedora 43: fstransform 0.9.4-17.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms