REISERFSTUNE(8)
π REISERFSTUNE β the tunning tool for ReiserFS π
okay bestie, gather round, because this is reiserfstune from section 8 of the System Manager's Manual, and she is that girl. Tuning tool energy. Let's get into it β¨
β¨ SYNOPSIS β¨
reiserfstune [ -f ] [ -h | --help ] [ -j | --journal-device FILE ] [
--no-journal-available ] [ --journal-new-device FILE ] [ --make-journal-
standard ] [ -s | --journal-new-size N ] [ -o | --journal-new-offset N ]
[ -t | --max-transaction-size N ] [ -b | --add-badblocks file ] [ -B |
--badblocks file ] [ -u | --uuid UUID ] [ -l | --label LABEL ] [ -c |
--check-interval interval-in-days ] [ -C | --time-last-checked timestamp
] [ -m | --max-mnt-count count ] [ -M | --mnt-count count ] device
πΈ DESCRIPTION πΈ
reiserfstune is literally the glow-up tool for ReiserFS. Here's the tea on what she can do π
- change two journal parameters β the journal size and the maximum transaction size
- move the journal's location to a new specified block device (the old ReiserFS journal may be kept unused, or discarded β user's choice, your call bestie π«Ά)
- store the bad block list to the ReiserFS
- set the UUID and the LABEL
β οΈ important lore alert: at the time of writing, the relocated journal was implemented for a special release of ReiserFS, and was not expected to be put into the mainstream kernel until approximately Linux 2.5. So if you have the stock kernel you must apply a special patch. Without this patch the kernel will refuse to mount the newly modified file system. And, and, and β "We will charge $25 to explain this to you if you ask us why it doesn't work." π iconic honestly.
Perhaps the most interesting application of this code is to put the journal on a solid state disk. yes queen, SSD journal, main character energy fr fr π₯
device β the special file corresponding to the newly specified block device (e.g /dev/hdXX for IDE disk partition or /dev/sdXX for the SCSI disk partition).
π OPTIONS π
-h,--helpβ Print usage information and exit. short and sweet, she's done β¨-j,--journal-device FILEβFILEis the file name of the block device the file system has the current journal (the one prior to runningreiserfstune) on. This option is required when the journal is already on a separate device from the main data device (although it can be avoided with--no-journal-available). If you don't specify journal device by this option,reiserfstunesupposes that journal is on main device.--no-journal-availableβ letsreiserfstunekeep going when the current journal's block device is no longer available. This might happen if a disk goes bad and you remove it (and run fsck). we love a resilient queen π--journal-new-device FILEβFILEis the file name of the block device which will contain the new journal for the file system. If you don't specify this,reiserfstunesupposes that journal device remains the same.-s,--journal-new-size NβNis the size parameter for the new journal. When the journal is to be on a separate device, its size defaults to the number of blocks that device has. When the journal is to be on the same device as the filesystem, its size defaults to the amount of blocks allocated for the journal bymkreiserfswhen it created the filesystem. Minimum is 513 for both cases.-o,--journal-new-offset NβNis an offset in blocks where the journal will start from when the journal is to be on a separate device. Default is 0. Has no effect when the journal is to be on the same device as the filesystem. Most users have no need to use this feature. It can be used when you want the journals from multiple filesystems to reside on the same device, and you don't want to or cannot partition that device. multi-journal on one device? lowkey genius π§-t,--maximal-transaction-size NβNis the maximum transaction size parameter for the new journal. The default, and max possible, value is 1024 blocks. It should be less than half the size of the journal. If specified incorrectly, it will be adjusted. (she'll fix your mess, don't worry π«Ά)-b,--add-badblocks fileβFileis the file name of the file that contains the list of blocks to be marked as bad on the fs. The list is added to the fs list of bad blocks.-B,--badblocks fileβFileis the file name of the file that contains the list of blocks to be marked as bad on the fs. The bad block list on the fs is cleared before the list specified in theFileis added to the fs. (yes she wipes it first, no survivors π©Ή)-f,--forceβ Normallyreiserfstunewill refuse to change a journal of a file system that was created before this journal relocation code. This is because if you change the journal, you cannot go back (without special option--make-journal-standard) to an old kernel that lacks this feature and be able to use your filesystem. This option forces it to do that. Specified more than once it allows you to avoid asking for confirmation.--make-journal-standardβ As it was mentioned above, if your file system has a non-standard journal, it can not be mounted on the kernel without journal relocation code. The thing can be changed! The only condition is that there is a reserved area on the main device of the standard journal size 8193 blocks (it will be so for instance if you convert standard journal to non-standard). Just specify this option when you relocate the journal back, or without relocation if you already have it on main device.-u,--uuid UUIDβ Set the universally unique identifier (UUID) of the filesystem toUUID(see alsouuidgen(8)). The format of theUUIDis a series of hex digits separated by hypthens, like this:"c1b9d5a2-f162-11cf-9ece-0020afc76f16".-l,--label LABELβ Set the volume label of the filesystem.LABELcan be at most 16 characters long; if it is longer than 16 characters,reiserfstunewill truncate it.-c,--check-interval interval-in-daysβ Adjust the maximal time between two filesystem checks. A value of"disable"will disable the time-dependent checking. A value of"default"will restore the compile-time default.
π¨ It is strongly recommended that either-m(mount-count dependent) or-c(time-dependent) checking be enabled to force periodic fullfsck.reiserfs(8)checking of the filesystem. Failure to do so may lead to filesystem corruption (due to bad disks, cables, memory, or kernel bugs) going unnoticed, ultimately resulting in data loss or corruption. no cap, pls enable it bestie π
-C,--time-last-checked timestampβ Set the time the filesystem was last checked usingfsck.reiserfs. This can be useful in scripts which use a Logical Volume Manager to make a consistent snapshot of a filesystem, and then check the filesystem during off hours to make sure it hasn't been corrupted due to hardware problems, etc. If the filesystem was clean, then this option can be used to set the last checked time on the original filesystem. The format oftime-last-checkedis the international date format, with an optional time specifier, i.e.YYYYMMDD[HH[MM[SS]]]. The keywordnowis also accepted, in which case the last checked time will be set to the current time.-m,--max-mnt-count max-mount-countβ Adjust the number of mounts after which the filesystem will be checked byfsck.reiserfs(8). Ifmax-mount-countis"disable", the number of times the filesystem is mounted will be disregarded byfsck.reiserfs(8)and the kernel. A value of"default"will restore the compile-time default.
Staggering the mount-counts at which filesystems are forcibly checked will avoid all filesystems being checked at one time when using journaled filesystems.
You should strongly consider the consequences of disabling mount-count-dependent checking entirely. Bad disk drives, cables, memory, and kernel bugs could all corrupt a filesystem without marking the filesystem dirty or in error. If you are using journaling on your filesystem, your filesystem will never be marked dirty, so it will not normally be checked. A filesystem error detected by the kernel will still force an fsck on the next reboot, but it may already be too late to prevent data loss at that point. π
This option requires a kernel which supports incrementing the count on each mount. This feature has not been incorporated into kernel versions older than 2.6.25.
See also the -c option for time-dependent checking.
-M,--mnt-count countβ Set the number of times the filesystem has been mounted. If set to a greater value than themax-mount-countsparameter set by the-moption,fsck.reiserfs(8)will check the filesystem at the next reboot.
π¦ POSSIBLE SCENARIOS OF USING REISERFSTUNE π¦
okay these are the actual real-life plotlines, follow along π
- You have ReiserFS on
/dev/hda1, and you wish to have it working with its journal on the device/dev/journal
boot kernel patched with special "relocatable journal support" patch
reiserfstune /dev/hda1 --journal-new-device /dev/journal -f
mount /dev/hda1 and use.
You would like to change max transaction size to 512 blocks
reiserfstune -t 512 /dev/hda1
You would like to use your file system on another kernel that doesn't
contain relocatable journal support.
umount /dev/hda1
reiserfstune /dev/hda1 -j /dev/journal --journal-new-device /dev/hda1 --make-journal-standard
mount /dev/hda1 and use.
- You would like to have ReiserFS on
/dev/hda1and to be able to switch between different journals including journal located on the device containing the filesystem.
boot kernel patched with special "relocatable journal support" patch
mkreiserfs /dev/hda1
you got solid state disk (perhaps /dev/sda, they typically look like scsi disks)
reiserfstune --journal-new-device /dev/sda1 -f /dev/hda1
Your scsi device dies, it is three in the morning, you have an extra IDE device
lying around
reiserfsck --no-journal-available /dev/hda1
or
reiserfsck --rebuild-tree --no-journal-available /dev/hda1
reiserfstune --no-journal-available --journal-new-device /dev/hda1 /dev/hda1
using /dev/hda1 under patched kernel
(it is three in the morning. the scsi device has passed away. you have an extra IDE device lying around. this is the scenario and honestly it's giving survival horror π₯)
π AUTHOR π
This version of reiserfstune has been written by Vladimir Demidov <vova@namesys.com> and Edward Shishkin <edward@namesys.com>. kings, honestly π«Ά
π BUGS π
Please report bugs to the ReiserFS developers <reiserfs-devel@vger.kerne.org>, providing as much information as possible β your hardware, kernel, patches, settings, all printed messages; check the syslog file for any related information. the more tea you spill the better bestie π
β¨ SEE ALSO β¨
okay bestie, if you're still thirsty for more reiserfs lore (and honestly, same π ), go read these next:
reiserfsck(8)β the filesystem checker, aka the one who does the actual fixing when you've been messy π©Ήdebugreiserfs(8)β for when you wanna snoop on the internals, no cap πmkreiserfs(8)β the one that makes the filesystem in the first place, the origin story fr fr π±
and that's the whole page, babes π you made it to the end, which is giving main character energy honestly ππ go forth and tune responsibly π¦
this was from Reiserfsprogs-3.6.27, dated January 2009 β yes she's a lil vintage, and yes she still ate π
β¨ REISERFSTUNE(8), periodt. π«ΆπΈ
π¦ where this page comes from
- debian bookworm: reiserfsprogs 1:3.6.27-4
- debian trixie: reiserfsprogs 1:3.6.27-9 Β· GPL-2.0-only
- ubuntu jammy: reiserfsprogs 1:3.6.27-4build4
- ubuntu noble: reiserfsprogs 1:3.6.27-7.1build1 Β· GPL-2.0-only
- ubuntu questing: reiserfsprogs 1:3.6.27-9
- Copyright 1996-2004 Hans Reiser
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms