On Tue, 4 Dec 2001, Xiaolu Zhang wrote:

> Last night due to the power cut the redhat linux 6.2 webserver was switch
> off without showdown. Now I got a error saying that one of the patition "
> has system file error ,  please run fsck manually "  . what should I do ?

You mean this message
/dev/hda5: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)

You simply run e2fsck manually :-)
# e2fsck /dev/hda5

It doesen't tell you but it can be handy running it like this:-
# e2fsck -f -y /dev/hda5
(That's force, answer yes to everything).

For those that are interested, and can easily handle e2fsck already, I
actually created a test filesystem to do this by doing the following:-

 1003  dd if=/dev/zero of=junkfs bs=8192 count=100
 1004  ls -l junkfs
 1005  mke2fs junkfs {whinges about not being a block special device}
 1006  e2fsck junkfs 
 1007  mount -t ext2 -o loop junkfs /mnt/floppy
 1008  cd /mnt/floppy/
 1009  ls
 1010  cp /etc/* .
 1011  ls
 1012  cd
 1013  umount /dev/floppy
 1014  mount /mnt/floppy
 1015  mount
 1016  umount /root/junkfs
 1017  vi junkfs  {deliberately edited the raw filesystem to corrupt}
 1018  e2fsck junkfs
 1019  e2fsck -f junkfs

That's straight from my bash history file.

-- 
---<GRiP>--- 
Web: www.arcadia.au.com/gripz 
Phone/fax: 02 4950 1194   
Mobile: 0408 686 201


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to