Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proper way to fsck 2

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
US
What is the proper way to fsck my entire drive?

I tired fsck /home but it warned me not to do it.

What do i do if it finds an error?
 
hi farley,

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.


bye
SANTOSH
 
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)

bye
SANTOSH

 

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top