Difference between revisions of "Convert ext2 to ext3"

From ArchWiki
Jump to: navigation, search
(Content merged to ext4 (thanks Indigo))
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{stub}}
+
#REDIRECT: [[Ext4#Migrating_from_ext2.2Fext3_to_ext4]]
[[Category:File systems]]
+
[[es:Convert ext2 to ext3]]
+
[[pt: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.''
+
 
+
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):
+
sudo tune2fs -j PARTITION
+
 
+
Where PARTITION is /dev/hda1, /dev/sda1, /dev/discs/disc0/part1, etc.
+
 
+
2. 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
+
 
+
3. Add the ext3 module to '''/etc/mkinitcpio.conf'''
+
MODULES="ext3"
+
 
+
4. Rebuild the initrd image (for a standard kernel):
+
sudo mkinitcpio -p linux
+
 
+
See also: [https://wiki.archlinux.org/index.php/Ext4#Migrating_from_ext3_to_ext4 Migrating from ext3 to ext4]
+

Latest revision as of 13:52, 24 May 2015