Wednesday, November 17, 2010

check/repair file system - Linux

Use fsck command to check/repair file system in linux 

e.g
1) if file system is ext3 and you want to check the disk mounted on sda1 then use following command
fsck -t ext3 /dev/sda1


1) if file system is ext4 and you want to check the disk mounted on sda2 then use following command

fsck -t ext4 /dev/sda2


How to check which file system is installed.
Run following command

mount

How to check the mounted file system,
Run following command

fdisk -l

1 comment:

database repair tool said...

Always look for software that is also effective in daily non-emergency data management, such as finding and extracting information from offline databases and email storage.