Anand Buddhdev <[EMAIL PROTECTED]> writes: > On Fri, May 24, 2002 at 07:47:02PM -0300, Ted Gervais wrote: > >> > > I've been told that you can change a file system between ext2 and ext3 >> > > without corrupting the data. How do you do that? >> > >> > tune2fs -j /dev/hda1 >> > >> > adds a journal to device /dev/hda1, effectively converting it to ext3. Now >> > you need to remount it as ext3, and also edit /etc/fstab and change the >> > FS type from ext2 to ext3, so that at the next reboot, it is mounted >> > correctly. >> >> What about going back to ext2? Is that possible without doing a whole new >> installation?? > > You can mount an ext3 FS as ext2; no problem. The kernel will simply > ignore the journal, and the FS will behave exactly as it was before under > ext2. That's the beauty of the system. You can go back and forth between > the two systems. If you want to permanently go back from ext3 to ext2, > then you have to use tune2fs to remove the journal (although it is safe > to leave it there even if using the system as ext2).
Also, you can use tune2fs -O ^has_journal /dev/hda1 (which should be pronounced something like "set options to exclude has_journal") to get rid of the journal on disk (if you want to use some ext2 only tools on the fs which complain about the journal being present - PartitionMagic might fall into that category). IIRC to do this the filesystem must not be mounted read/write; so going single-user ('telinit S' or booting with 'S' appended to kernel command line) and doing mount -o remount,ro /dev/hda1 should do the trick. Remember to edit fstab back to ext2 *beforehands*. For those running custom kernels with ext3 as a module: Also remember to rebuild the initrd (after editing fstab), otherwise the root root fs cannot be mounted... Not insurmountable using the install cd/rescue mode, but unneccesary hassle. So long, Joe -- "I use emacs, which might be thought of as a thermonuclear word processor." -- Neal Stephenson, "In the beginning... was the command line" _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list