how to run e2fsck
Submitted by saurabh on Thu, 2006-09-07 19:21
-
How to run e2fsck on Suse linux 9.1
- Execute the following command
- cat /etc/fstab > /var/tmp/fstab
- df > /var/tmp/df
- take a print out of /var/tmp/fstab and /var/tmp/df or note down the contents.
- The file /var/tmp/df will contain entries similar to
-
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 8262068 1021092 6821280 14% /
tmpfs 514336 12 514324 1% /dev/shm
/dev/hdb1 190330904 150016440 30646148 84% /home
/dev/hda3 373633988 346569304 8085092 98% /var
-
Filesystem 1K-blocks Used Available Use% Mounted on
- The file /var/tmp/fstab will contain entries similar to
-
/dev/hda2 / ext3 acl,user_xattr 1 1
/dev/hda1 /boot ext3 acl,user_xattr 1 2
/dev/hdb1 /home ext3 acl,user_xattr 1 2
/dev/hda3 /var ext3 acl,user_xattr 1 2
/dev/hda4 swap swap pri=42 0 0
/dev/hdb2 swap swap pri=42 0 0
.
.
-
/dev/hda2 / ext3 acl,user_xattr 1 1
- You can also note down the devices by looking at the output of the command "fdisk -l"
- Note down all the devices i.e. note down entries of the type /dev/hda1,
/dev/hda2 and so on for both the outputs. Please note that all devices are
not shown in the output of "df" and hence we executed the command "cat /etc/fstab". - Reboot the system
- Change the boot up options to boot from cd
- Insert the Suse 9.1 cd no. 1.
- During the boot up options will appear on the screen which will be Installation, Boot from hard disk and so on. From that choose "Rescue System"
- Run e2fsck for each of the devices which were noted down by using the following command
- e2fsck -f -y /dev/hda1
- e2fsck -f -y /dev/hda2
- Run e2fsck as shown above for each and every device that you have noted down.
- e2fsck will repair the filesystems if it finds any errors in it.
- Reboot the system without the cd.
- Execute the following command
»
- Login to post comments
- Printer-friendly version
- Send to friend