Tuesday 07 September 2010 15:47:19 GMT
 
 
 
 
 
Repair ext2/ext3 File System PDF Print E-mail

1) File system must be unmounted, you cannot repair it while it is running. Take system down to runlevel one (make sure you run all command as root user):

# init 1

2)Unmount file system, for example if it is /home (/dev/sda3) file system then type command:

# umount /home
OR
# umount /dev/sda3

3) Now run fsck on the partition:

# fsck /dev/sda3

However be sure to specify the file system type using -t option. Recenly one of our sys admin run the command on ext3 file system w/o specifying file system. Result was more corruption as fsck by default assumes ext2 file system.

# fsck -t ext3 /dev/sda3
OR
# fsck.ext3 /dev/sda3

Tip if you don't know your file system type then typing mount command will display file system type.

fsck will check the file system and ask which problems should be fixed or corrected. If you don't wanna type y every time then you can use pass -y option to fsck.

# fsck -y /dev/sda3

Please note if any files are recovered then they are placed in /home/lost+found directory by fsck command.

4) Once fsck finished, remount the file system:

# mount /home

5) Go to multiuser mode

# init 3

Read man page of fsck for more information. Make sure you replace /dev/sda3 with your actual device name.

 
Information
coreldvdcopy.gif
     

News Flash

Free fax to mail, click here to get your free fax2mail number emailed to you. All information supplied are for registration only we do not use it for spam or give it to spammers.

 
 
Copyright © 2010 www.cronsys.co.za Cron Systems. All rights reserved.