Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
The other way is quite simple
# tune2fs -j /dev/device
.. but I have case where I have to go back to EXT2 and don't now how. I believe if I mount ext3 as ext2 it will work but then I still have journal sitting there.
just mount it as ext2 and it'll be used as one. there is no unconversion needed. ext3 = ext2 + journal. so if you don't use the journal it IS ext2 again.
I presume that simply states there is no journal, rather than the journal actually being removed, and it'll still be there using up disk space. I think the journal takes up about 28.793% of the filesystem. costly thing to ignore! ;-)
Whoa - where did that number come from Chris ???.
We had a similar discussion a while back - I did a quick test on a small (boot) partition, and it was nowhere near that. Reference here.
The size of the journal
must be at least 1024 filesystem blocks (i.e., 1MB
if using 1k blocks, 4MB if using 4k blocks, etc.)
and may be no more than 102,400 filesystem blocks.
This means that on a 40G filesystem using 4k blocks, the journal size is at most 1%.
The size of the journal
must be at least 1024 filesystem blocks (i.e., 1MB
if using 1k blocks, 4MB if using 4k blocks, etc.)
and may be no more than 102,400 filesystem blocks.
This means that on a 40G filesystem using 4k blocks, the journal size is at most 1%.
wouldn't that be with respect to the size of each block in the file system? I may be wrong on this whole topic... but.. the file system is organized into blocks of data so that files on the hard drive will be more likely to be contiguous. If all your files tend to be small, then you use smaller blocks to prevent wasted space. and in contrast, if you have a ton of videos on your drive, you probably want to use the largest block size supported.... so the way the statement is put... if each block is 4k then the journal will always be 4MB... no? assuming you want the smallest journal size for your block size... if you wanted the largest journal for 4k blocks then you are looking at a
That is
4k = 4096
4k * 1024 blocks = 4,194,304 k = 4MB
4k * 102,400 blocks = 419,430,400 k = about 420MB
so... 420MB will only be 20% of your hard drive if it is 2 gigs and that's with a max journal size and 4 k blocks.
It wouldn't make any sence as to why the journal would increase as the file system it self gets larger. However, you may be confusing journals with file tables. That does increase with larger file systems.
To my under standing... the file table stores all the file names and file attributes. a journal is only used for recovering lost data in the event of a failure. It does this by recording all disk transactions to the Journal overwriting the oldest transaction when it runs out of room. So your data should be safer if you use the max allowed of 102,400 blocks. However that may get out of hand if you use the max block size as well.
Please, somebody second this. I'm almost positive that this is the basics.
Whoa - where did that number come from Chris ???.
We had a similar discussion a while back - I did a quick test on a small (boot) partition, and it was nowhere near that. Reference here.
I presume that simply states there is no journal, rather than the journal actually being removed, and it'll still be there using up disk space. I think the journal takes up about 28.793% of the filesystem. costly thing to ignore! ;-)
Well ... I was hoping to post w/o actually having to do the experiment. But ... Since you called my bluff ... Actually it wasn't a bluff:
Since this partition was not mounted when the above was done, I would imagine the 16402 block difference in "Free blocks" is what the journal was occupying prior to me obliterating it with tune2fs. Multiply by 4k block, that difference is amazingly close to the 64M that the journal was advertised to occupy. So it looks to me like the journal no longer occupied space on the filesystem.
While I don't show it in the posted results, this partition was aprox. 3 GB. So the 64 MB journal represents about 2% of the file system.
Last edited by blackhole54; 11-15-2008 at 02:23 AM.
Reason: Someday I'll actually learn my native language! ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.