Converting / from EXT2 to EXT3 while booted on / (root partition)
 

Converting / from EXT2 to EXT3 while booted on / (root partition)

 

This post was last updated on November 3rd, 2020 at 06:03 pm

  1. Tentative notes for converting / from ext2 to ext3 while booted on /:
  2. unmount everything (including /proc …)
  3. tune2fs -Ohas_journal /dev/cciss/c0d0p3 (assuming c0d0p3 is your root partition)
  4. mount -t ext3 -o remount,rw / /
  5. change the root entry in /etc/fstab
  6. mount -a
  7. mkinitrd /boot/initrd-ext3 2.4.18-3-smp
  8. edit grub to point to the new initrd
  9. shutdown -r now

Converting / from EXT3 to EXT2
while booted on the installation CD

Note: It appears that you cannot convert from ext3 to ext2 while booted on it. You must boot to the installation CD in rescue mode or you must pivot_root over to the initrd filesystem.

  1. Tentative notes for converting / from ext3 to ext2:
  2. Boot to the RH73 installation CD
  3. at the boot prompt enter “linux rescue”
  4. Have the rescue portion mount everything as rw
  5. tune2fs -O^has_journal /dev/cciss/c0d0p3
  6. fsck.ext2 -f /dev/cciss/c0d0p3
  7. mount -t ext2 -o remount,rw / /
  8. rm -f /.journal
  9. /mnt/sysimage/usr/sbin/chroot /mnt/sysimage
  10. mkinitrd /boot/initrd-ext2 2.4.18-3-smp
  11. change the root entry in /etc/fstab
  12. edit grub to point to the new initrd
  13. exit (from chroot)
  14. exit (from rescue mode) – system will reboot and CD will eject

EXT3 fix for RH71, 72, 73, and 80 now available:
http://rhn.redhat.com/errata/RHBA-2002-292.html

<snip…>
Advisory: RHBA-2002:292-05

Last updated on: 2002-12-20

New kernel fixes ext3 data-journaling data loss and tg3 hang

Updated packages for Red Hat Linux 7.1, 7.1K, 7.2, 7.3, and 8.0 are now
available that fix a bug in the ext3 file system discovered in the previous
errata kernel. The bug has the potential to cause data loss if the file
system is used in a non-default way.
<snip…>

Previous ACPI HOWTO
Next mkdev tape
 

About author

shibaa987
shibaa987 274 posts

Linux kernel developer and a firmware developer with an experience of 10+ years.

View all posts by this author →

You might also like

FreeBSD 0 Comments

How To Make A File Write Protected And Undeletable In FreeBSD?

This post was last updated on August 1st, 2020 at 10:19 amFreeBSD operating system has an extra security feature for files called file flags. It provides additional control over files,

How To 0 Comments

How To Display Date And Time In The Output Of History Command In Linux?

This post was last updated on August 1st, 2020 at 12:23 pmHistory command displays the list of commands that have been executed from a terminal. By default, it shows the

How To 0 Comments

How To Check Current Version Of Ubuntu Using lsb_release Command?

This post was last updated on August 1st, 2020 at 12:40 pmUbuntu comes in two releases the first one is LTS and the second is standard versions. LTS (Long Term

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply