SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello. I was reading about ext3 feature and I have read about its journaling modes. I would like to ask what is the default journaling mode of ext3 fs in slackware(or is it in all distro using ext3)? I'll install slackware when my new pc arrive and the fs I will use will be ext3 and I like it to have data=journal mode for its journaling. I have read in some wiki how to set the journaling mode into data=journal mode.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
You can do this during creation of the file system with tune2fs (including the journal size! Interesting e.g. for large files). My distribution (openSuSE) has tools integrated in the setup of the system.
Generally you'd control the journalling behaviour in /etc/fstab ("man fstab", "man mount") where you can set the mode even per partition (openSuSE does it according the choices one took during setup, one can change it later in /etc/fstab as well).
To JZL240I-U:
I read the man page of fstab and it points me to check for the current setting by looking at /proc/mounts.
Here's the content of /proc/mounts:
So, ext3 uses ordered as its journaling mode, am i right? Can I safely change the mode into journal by passing the boot parameter
Code:
rootflags=data=journal
to kernel or there are some steps that I have to accomplish first? Can I safely use it to fs that already contain files or I need to do it on an empty fs?
To allend:
Im using slackware 13.0. after using xfs as my fs of choice, I would like to try ext3. ext4, not yet.
To syg00:
Exactly. That's the reason why I'm asking question, for me to know how to change it.
ext3 doesn't use anything per se. You have to tell it what to do and you do it by allowing the system to use its defaults as pointed out by allend.
No need to pass a boot parameter. The kernel uses /etc/fstab to mount the partitions anyway. And I suggesst you change the trailing zeros to "1 1" as in my example. It makes the standard file system check happen on the "/" partition when necessary: "man tune2fs" .
Simply use the command from your initial post. That way it's always mounted as you want - including if you mount it from another system or recovery CD say.
Can be run anytime - including online.
give me a mounting error when booting. Should i remove the defaults and only the data=journal will be left in the mount option field or is there something else that needs to be included?
To syg00:
I will try the command in my laptop which uses slackware 13.0. Running it online means I can use it even if the drive is currently mounted and the operation is safe to the files that reside there, right? Do I still need to run e2fsck after running the tune2fs or reboot will take care of itself? Also, I know ext4 fs but my interest is in ext3.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Quote:
Originally Posted by jrecortel
To JZL240I-U:
...
give me a mounting error when booting
...
Uuups. Can't say anything without the actual error message.
You still didn't enable the automatic file system checks with the "...1 1" ate the end of the line. For the case you don't want that I suggest you check regularly by hand...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.