Using Multi-Byte Character Sets in PHP (Unicode, UTF-8, etc)
Using PHP pspell Spell Check Functions with a Custom Dictionary
Development Resource Project
Installing Xdebug for use with Eclipse or Netbeans on Linux
Book Review: How to Implement Design Patterns in PHP
Changing Mailman Python Scripts for Virtual Host Support

Upgrading the Root Filesystem from EXT2 to EXT3

Tuesday, 24 January 12, 11:27 am
Before starting, it's a good idea to run a disk check. Run the following command to create the necessary file and then reboot:
sudo touch /forcefsck
The following command converts the filesystem to EXT3, by creating the necessary journal.
tune2fs -c 0 -i 30 -j /dev/sda1
Edit /etc/fstab replacing ext2 with ext3 for the root filesystem mount.

Next we need to rebuild the Linux boot image using the mkinitrd tool.

Unrolling the Change

If it goes wrong, and you need to convert back to EXT2, your best bet is to do it unmounted. In other words, boot into a different OS installed elsewhere. The simple choice is a Linux Live CD for pretty much any distro.
umount /dev/sda1 tune2fs -O ^has_journal /dev/sda1 e2fsck /dev/sda1
Edit /etc/fstab to change /dev/sda1 to mount as ext2, then remount:
mount /dev/sda1

Please enter your comment in the box below. Comments will be moderated before going live. Thanks for your feedback!

Cancel Post

/xkcd/ The Maritime Approximation