Click to See Complete Forum and Search --> : ext2 to ext3


toolshed
02-01-2002, 05:35 PM
do i just to change fstab....ext2 to ext3 to enable ext3 on my data drive....currently i run rh7.2 with ext3...but my data drive is ext2....

what is the best way to format a partitions....i have switched to rh and dont want suse on my systems no more...what is the best formating utility....

demian
02-01-2002, 06:57 PM
Originally posted by toolshed:
<STRONG>do i just to change fstab....ext2 to ext3 to enable ext3 on my data drive....currently i run rh7.2 with ext3...but my data drive is ext2....

what is the best way to format a partitions....i have switched to rh and dont want suse on my systems no more...what is the best formating utility....</STRONG>


No need for formatting when you switch to ext3. Just do a tune2fs -j /dev/your_data_drive, change the ext2 to ext3 in fstab, remount and voila.

Check man tune2fs (esp the -J option) for journaling parameters.

sans-hubris
02-01-2002, 08:04 PM
Originally posted by demian:
<STRONG>
No need for formatting when you switch to ext3. Just do a tune2fs -j /dev/your_data_drive, change the ext2 to ext3 in fstab, remount and voila.

Check man tune2fs (esp the -J option) for journaling parameters.</STRONG>
Should mention that this should be done in single user mode. That's safest. Otherwise, just make sure to unmount the partition before changing it to ext3. No formatting needed. ext3 is ext2 with journaling. In fact, old kernels can still read ext3 partitions as ext2.

toolshed
02-01-2002, 08:23 PM
what do u mean single user mode?

demian
02-01-2002, 08:59 PM
Originally posted by toolshed:
<STRONG>what do u mean single user mode?</STRONG>

As in runlevel 1. Type init 1 (as root) and you'll get there. Actually sans-hubris is right about that one. You should probably go down to runlevel 1, however, I was nasty enough to convert all my partitions to ext3 without unmounting them nor going to single user mode and it worked flawlessly ;)