Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th November 2010, 04:35 PM
i2ambler Offline
Registered User
 
Join Date: Aug 2006
Posts: 20
linuxubuntufirefox
Convert LVM volume formatted ext2 to ext3 ?

I have a question, i accidentally formatted an lvm volume as ext2 after creating it. Then of course, we copied a ton of data to it before I realized it was ext2. (I guess ext2 was the default when using mkfs without a -t) Anyway - can I just use tune2fs -j on the LVM just like I would a /dev/sdx device?

Thanks for your assistance!
Reply With Quote
  #2  
Old 5th November 2010, 05:48 PM
plarsen Offline
Registered User
 
Join Date: Jul 2008
Location: Virginia, USA
Age: 45
Posts: 31
linuxfedorafirefox
Re: Convert LVM volume formatted ext2 to ext3 ?

Yes - tune2fs is the way. But why not upgrade to ext4 instead of ext3??

tune2fs -O extents,uninit_bg /dev/mapper/vg_lvname

Make sure you also change the setting in /etc/fstab to say ext4 instead of ext2.

---------- Post added at 12:48 PM GMT ---------- Previous post was at 12:46 PM GMT ----------

Forgot to say, you of course still have to run the:

tune2fs -j /dev/mapper/vg_lvname

command too.

Finish up with

e2fsck -fDC0 /dev/mapper/vg_lvname

I think it's better to be safe as the structures/capabilities change quite a lot with ext4. I recommend you keep the volume unmounted while you do this.
Reply With Quote
  #3  
Old 5th November 2010, 06:08 PM
i2ambler Offline
Registered User
 
Join Date: Aug 2006
Posts: 20
linuxubuntufirefox
Re: Convert LVM volume formatted ext2 to ext3 ?

Cool thanks.. Ill probably stick to ext3 for now.
Reply With Quote
Reply

Tags
convert, ext2, ext3, formatted, lvm, volume

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to convert ext4 to ext2? toddbailey Using Fedora 1 31st October 2010 03:07 AM
Restoring a formatted EXT3 partition solinem Using Fedora 6 27th December 2008 07:26 PM
putting ext2 or ext3 on a truecrypt volume fakie_flip Security and Privacy 3 22nd March 2007 02:28 PM
How to convert from ext3 to ext2? zntrx Using Fedora 3 5th June 2006 09:54 PM


Current GMT-time: 16:02 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat