Unix Technical Forum

ext3 > ext2 without format

This is a discussion on ext3 > ext2 without format within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> is there any way i can remove the journal from an ext3 partition without formatting it as ext2 - ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 10:01 AM
Matthew Robinson
 
Posts: n/a
Default ext3 > ext2 without format

is there any way i can remove the journal from an ext3 partition without
formatting it as ext2 - i dont want to lose the data, and ive nowhere to
put it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 10:01 AM
Thomas Overgaard
 
Posts: n/a
Default Re: ext3 > ext2 without format


Matthew Robinson wrote :

> is there any way i can remove the journal from an ext3 partition without
> formatting it as ext2 - i dont want to lose the data, and ive nowhere to
> put it


Sure, ext3 is just ext2 with journalling added. Unmount the partition
and mount it as ext2 instead.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 10:01 AM
Matthew Robinson
 
Posts: n/a
Default Re: ext3 > ext2 without format

but would this save any space on the drive?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 10:01 AM
Lew Pitcher
 
Posts: n/a
Default Re: ext3 > ext2 without format

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Robinson wrote:

> but would this save any space on the drive?


No. But, once you've mounted it as ext2, you can use the tune2fs tool to turn
off and delete the journal. Once you do that, you reclaim the journal's space on
the drive.

- --
Lew Pitcher
IT Consultant, Enterprise Application Architecture,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFAjSODagVFX4UWr64RAsWeAKCkSvzooLGV7R9spYsSM5 v0L0JDugCfTS05
ndCYQGlTBiXVIUE47iD6JN4=
=50I8
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 10:01 AM
Eric Hameleers
 
Posts: n/a
Default Re: ext3 > ext2 without format

Lew Pitcher wrote:

> Matthew Robinson wrote:
>
>
>>>but would this save any space on the drive?

>
>
> No. But, once you've mounted it as ext2, you can use the tune2fs tool to turn
> off and delete the journal. Once you do that, you reclaim the journal's space on
> the drive.


If it's space you want to reclaim, it's far more interesting (most
certainly with the 100+ gig drives that are coming with PC's nowadays)
to reduce the size of the reserved blocks on your partition.
The default of 5% that is reserved for the root user (so that logs
will continue to be written, and root can save the day when normal
users experience 'disk full') is just overdoing it. Note, that 5% of a
100 GB disk is 5 GB of space that you won't be able to use. Bring it
down to 1% (only integer numbers are allowed here) and you suddenly
have 4 GB of additional space (and root still has 1 GB reserve).

Example command for a partition on '/dev/hda1' :

tune2fs -m 1 /dev/hda1

and you don't even need to umount the partition to run it.

PS: a percentage of zero is allowed too if you don't care about root's
future problems (well you are root anyway, but hey, who isn't a
little schyzofrenic here in aols).

Cheers, Eric

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 10:01 AM
Alan Hicks
 
Posts: n/a
Default Re: ext3 > ext2 without format

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, Matthew Robinson dared to utter,
> but would this save any space on the drive?


man tune2fs

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAjVb1L3KiNGOqr6ERAtkyAKCEi+fFL65VivX51er+AX nYuGO7SgCdHG1P
0DPB4SGzZTvsm77HuZKa2aI=
=kmCp
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:40 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com