LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2008, 11:35 PM   #1
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Rep: Reputation: 30
Easy way to convert to ext2 from ext3?


Running with / and /home on ext3. Can I switch to ext2? How can I do it without screwing things up? Thanks
 
Old 06-15-2008, 11:52 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Don't know why you'd want to, but the journal can be removed (and re-added) with tune2fs.
The ext2 utilities are used for ext3 as well.
 
Old 06-15-2008, 11:55 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Google is your friend.


The major difference between ext3 and ext2 is that ext3 has a journal. Why are you switching?
 
Old 06-16-2008, 09:32 AM   #4
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
I want to change because

I was told that ext2 is more secure for deletions. I installed "bcwipe", which is supposed to be able to securely delete/overwrite the hard drive and files for ext3, but I was told to be sure that everything is gone that I should switch to ext2 then use the program. I have checked my hard drive with magicrescue for files I have deleted with "bcwipe", and nothing could be located after a 35x overwrite. Think I'm safe? Or should I change to ext2.
 
Old 06-16-2008, 10:13 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Google, just google.

There are lots of paranoids out there, it also depends on your own scale of paranoia. Everything is relative when talking about security.

On most cases, and unless your enemy has technology borrowed from the NSA or the NASA, you are secure by just simply overwriting the files, which makes any software based recovery impossible.

Some people think that journal file systems are less secure when erasing. The truth is that it depends. Imagine the following scenario: you are deleting lots of files, and an electrical outage interrupts it, the truth is that a journal file system will replay the operations that are not completed, but a non-journal one will not, leaving the data exposed. Which is more secure now? :P

As you see, it's all relative. While journal file systems are prone to leave metadata around (and it's not trivial to remove it), that's nothing compared to what a non-journal one can do if something fails, since then, potentially, all the file contents will be around, which is far worse. Not to talk about data integrity, which is easily conserved in a journal file system. Note that this affirmation I made might not be accurate, or even be completely wrong depending on the type of journaling you selected. Ext3 is a very versatile and configurable system and can use journals on many different ways.

There's no best way here. Note that both the journal and the redundant rewrites takes lots of cpu cycles. But without them you risk data integrity for the former, and privacy on the later. Encryption hurts greatly the performance, but on the contrary, greatly protects against both, filesystem and low level based unauthorized access.

As you see, it's always a matter of trades: you can't get everything.

This is from my bookmarks, I hope it's of any use to you:

http://www.filesystems.org/docs/secdel/secdel.html


If you really want to convert the filesystem to ext2 I suggest you to:

1.- remove the journal using tune2fs
2.- mount the filesystem as ext2
3.- you can optionally rewrite the empty space by making a big file with dd if=/dev/ramdom of=/bigfile, afterwards you can remove it. This step is not strictly needed. It's just to delete any traces of previous files if you wish.

I am not an expert in security by any means, so don't take any word in this post as an absolute truth either.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert ext3 to ext2 reply2vinay Linux - Hardware 1 09-30-2005 05:24 AM
Possible to convert ext2 to ext3? Garibaldi3489 Linux - General 6 12-15-2004 06:20 PM
how to convert from ext3 -> ext2 Kristian2 Linux - General 3 07-04-2004 09:37 AM
convert ext2 to ext3 perch Linux - Newbie 2 10-05-2003 08:26 AM
Convert ext2 to ext3 or something else? coldfusion713 Linux - Software 3 08-03-2003 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration