fsck is nothing but the "file system check". when there is a power failure or by some reason the linux system is not properly shutdown, then we have to use this command.
Because the incore iodes related with the application and many other programes(running at the time when system shutdown automatically) running the background also do not get time to update with the hard disk inodes. AND there may be files currupted while immediate shutdown. so u have to recover them or rearrange the inodes.
u can use this command in single user mode. But linux warns for this command. Because some files which are corrupted and can not be recovered, at that time this command would DELETES that files without warning. so linux prefer not to use this command.
generally a good thing happens with the fsck command not bad. u can use this command for inproper shutdown. so don't worry about that.
this is like scandisk the harddisk while booting if the previous session of windows was not properly shutdown.
hi
it depends upon the partition name on which linux native is present.
u can see it by using the command
# fdisk -l
see where is your linux partition is.
(e.r. hda1)
then u have to type
# fsck /dev/hda1
it will recover the file system.
(it can recover the other fies systems also)
It warns you because the partition is mounted read-write. Either unmount it or mount it read-only because checking.
You can see which partition to check with the 'df' command.
Cheers
Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.