Operating System - HP-UX
1754793 Members
4052 Online
108825 Solutions
New Discussion юеВ

Re: How to run fsck manually?

 
Tam_10
New Member

How to run fsck manually?

We have a workstation base on HP 9000/B132L It cannot boot now and itтАЩs messages as follow:

FILE SYSTEM (S) NOT PROPERLY SHUTDOWN
BEGINNING FILE SYSTEM REPAIR

RUN fsck MANUALLY

COULD NOT FIX FILE SYSTEM WITH fsck тАУP, RUN fsck INTERACTIVELY

LOGGING IN AS root FOR MANUALY fsck, ENTER ^D WHEN FILE SYSTEM FIXED

CANNOT READ: BLK 1627568

Please help me to solving this problem. Thank you very mu
10 REPLIES 10
Naveej.K.A
Honored Contributor

Re: How to run fsck manually?

Hi,

Just type fsck on the prompt.

and when everything is fixed press ctrl and D to continue booting.

Regards,
Naveej
practice makes a man perfect!!!
Bharat Katkar
Honored Contributor

Re: How to run fsck manually?

Hi,
# fsck -F fstype /dev/vgxx/rlvolx

This shoudl work and will prompt you before doing changes to filesystem.

Now that you have got bad block some of your data may be lost.

Regards,

You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: How to run fsck manually?

Hi,
# fsck -F fstype /dev/rdsk/cxtxdx

This shoudl work and will prompt you before doing changes to filesystem.

Now that you have got bad block some of your data may be lost.

Regards,

You need to know a lot to actually know how little you know
Gopi Sekar
Honored Contributor

Re: How to run fsck manually?


type fsck and press enter

it will launch fsck with appropriate options required to check all known partitions in the system and correct the errors.

generally fsck should be able to automatically fix the filesystem issues, only on rare case where the damage is more and require inputs from user fsck drops user into shell and prompts him to run fsck manually.

Regards,
Gopi
Never Never Never Giveup
Kyris
Frequent Advisor

Re: How to run fsck manually?

For my system, HP9000, I go to single user mode and run fsck -F vxfs -o full /dev/vg01/rmyfs1 (if jfs file system) - specify the raw device file for optimal performance.
Once done then do reboot -n, which may take a bit of time but it does NOT flush the buffer cache, which may overwrite the corrections made by fsck.
Then check the lost+found directory for any files that exist. Use file \#1723 or strings \#1723 to see what it contains/useful. If usefull try and get the file from backup or mv \#1723 new_file_name.
Sandman!
Honored Contributor

Re: How to run fsck manually?

fsck cannot read block generally indicates media failure. Best thing to do is replace/rebuild the disk and build the existing filesystem from backup.

This error won't be corrected by re-running fsck because fsck scans only the metadata blocks and not the actual data blocks.
Geoff Wild
Honored Contributor

Re: How to run fsck manually?

Just try running:

fsck

It will prompt you along the way...


When complete - ^d (control d) to exit...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Nguyen Anh Tien
Honored Contributor

Re: How to run fsck manually?

fsck - file system consistency check and interactive repair
recommend
#man fsck
for quick
#fsck -F VXFS /dev/rdsk/c0t0d2
HP is simple
Pravin Salgaonkar
Frequent Advisor

Re: How to run fsck manually?

hi
type
fsck -F fstype /dev/vgxx/rlvolx

this should work
Regards
Pravin S