JBY Technologies

Linux Repair a Broken EXT3 Journal

Enter single user mode

# init 1

Remount the partition as read-only

# remount -n -o remount,ro /dev/sda1 (replace /dev/sda1 by the name of the device which file system you want to fix)

Check the partition for errors

# fsck -y /dev/sda1

Remove the journal

# tune2fs -O ^has_journal /dev/sda1

Remount the partition as read-write

# mount -n -o remount,rw /dev/sda1

Recreate the journal

# tune2fs -j /dev/sda1

Remount the partition as read-only

# remount -n -o remount,ro /dev/sda1

Check the file system (and have the journal inode block info backed up

# fsck -f /dev/sda1

Reboot the system

# reboot

Bookmark and Share

Legal Notices