Difference between revisions of "Convert ext2 to ext3"

From ArchWiki
Jump to: navigation, search
m (Style updates)
m (ic tag,. Note tag for note.)
Line 4: Line 4:
 
[[pt:Convert ext2 to ext3]]
 
[[pt:Convert ext2 to ext3]]
 
[[pl:Convert ext2 to ext3]]
 
[[pl:Convert ext2 to ext3]]
:''If you have installed Arch to an ext2 filesystem, it is a good idea to enable the journal and turn it into an ext3 filesystem. Journaling provides a range of benefits.''
+
{{Note|If you have installed Arch to an ext2 filesystem, it is a good idea to enable the journal and turn it into an ext3 filesystem. Journaling provides a range of [[File_Systems#Journaling|benefits.]]}}
  
 
'''1.''' Identify the partition(s) for conversion by inspecting {{ic|/etc/fstab}} and the output of the '''mount''' command
 
'''1.''' Identify the partition(s) for conversion by inspecting {{ic|/etc/fstab}} and the output of the '''mount''' command
Line 11: Line 11:
 
  # tune2fs -j ''partition''
 
  # tune2fs -j ''partition''
  
Where ''partition'' is {{ic|/dev/hda1}}, {{ic|/dev/sda1}}, {{ic|/dev/discs/disc0/part1}}, etc.
+
Where ''partition'' is {{ic|/dev/sda1}}, {{ic|/dev/hda1}}, {{ic|/dev/discs/disc0/part1}}, etc.
  
'''3'''. Edit {{ic|/etc/fstab}} and change ''ext2'' to ''ext3'' for the partition.
+
'''3'''. Edit {{ic|/etc/fstab}} and change {{ic|ext2}} to {{ic|ext3}} for the partition.
  
 
For example:
 
For example:
Line 26: Line 26:
 
  # mkinitcpio -p linux
 
  # mkinitcpio -p linux
  
== See also==
+
== See also ==
  
 
[https://wiki.archlinux.org/index.php/Ext4#Migrating_from_ext3_to_ext4 Migrating from ext3 to ext4]
 
[https://wiki.archlinux.org/index.php/Ext4#Migrating_from_ext3_to_ext4 Migrating from ext3 to ext4]

Revision as of 15:57, 8 September 2013

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Convert ext2 to ext3#)
Note: If you have installed Arch to an ext2 filesystem, it is a good idea to enable the journal and turn it into an ext3 filesystem. Journaling provides a range of benefits.

1. Identify the partition(s) for conversion by inspecting /etc/fstab and the output of the mount command

2. Add a journal to the partition(s):

# tune2fs -j partition

Where partition is /dev/sda1, /dev/hda1, /dev/discs/disc0/part1, etc.

3. Edit /etc/fstab and change ext2 to ext3 for the partition.

For example:

/dev/sda3 / ext2 defaults 0 1

becomes:

/dev/sda3 / ext3 defaults 0 1

4. Add the ext3 module to /etc/mkinitcpio.conf:

MODULES="ext3"

5. Rebuild the initrd image (for a standard kernel):

# mkinitcpio -p linux

See also

Migrating from ext3 to ext4