Dear All My CentOS server got file system inconsistency , asking for "type Ctrl-D for normal boot or give root password for maintenance to run fsck manually". I tried for manually run fsck , as the followings : #fsck -s /dev/hda3 But after rebooting the server it will come back again at the similar prompt asking for "give root password for maintenance" . Can you please do me favor and let me know how can I try for advanced fsck to fix the bug? Thank you
On Wed, Jan 27, 2010 at 9:45 PM, hadi motamedi motamedi24@gmail.com wrote:
Dear All My CentOS server got file system inconsistency , asking for "type Ctrl-D for normal boot or give root password for maintenance to run fsck manually". I tried for manually run fsck , as the followings : #fsck -s /dev/hda3 But after rebooting the server it will come back again at the similar prompt asking for "give root password for maintenance" . Can you please do me favor and let me know how can I try for advanced fsck to fix the bug? Thank you
I presume /dev/hda3 is root partition.
Try booting off the 1st CD then type
linux rescue
and run fsck from there.
See
http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-rescuemode-boo...
On 1/28/10, Agile Aspect agile.aspect@gmail.com wrote:
On Wed, Jan 27, 2010 at 9:45 PM, hadi motamedi motamedi24@gmail.com wrote:
Dear All My CentOS server got file system inconsistency , asking for "type Ctrl-D
for
normal boot or give root password for maintenance to run fsck manually".
I
tried for manually run fsck , as the followings : #fsck -s /dev/hda3 But after rebooting the server it will come back again at the similar
prompt
asking for "give root password for maintenance" . Can you please do me
favor
and let me know how can I try for advanced fsck to fix the bug? Thank you
I presume /dev/hda3 is root partition.
Try booting off the 1st CD then type
linux rescue
and run fsck from there.
See
http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-rescuemode-boo...
-- Enjoy global warming while it lasts. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thank you for your reply . I have received my CentOS server as pre-installed , with no CD accompanied . Is there any other way to fix the bug? Thank you
On Thu, 2010-01-28 at 10:12 +0330, hadi motamedi wrote:
I have received my CentOS server as pre-installed , with no CD accompanied . Is there any other way to fix the bug?
You can download the appropriate disk image from any of the Centos mirror sites.
It is probably not a bug... most likely you have additional filesystems that need checking. If you are unsure about what filesystems to check, use the "-A" flag to fsck:
# fsck -A
That will check all applicable filesystems listed in your /etc/fstab file.
It is also possible that the filesystems are too severely damaged to be repaired from single user mode. In that case you'll need to download a Centos CD and use rescue mode and hope that you can recover.
-geoff
--------------------------------- Geoff Galitz Blankenheim NRW, Germany http://www.galitz.org/ http://german-way.com/blog/
Thank you for your reply . I have received my CentOS server as pre-installed , with no CD accompanied . Is there any other way to fix the bug?
Thank you
Geoff Galitz wrote:
It is probably not a bug... most likely you have additional filesystems that need checking. If you are unsure about what filesystems to check, use the "-A" flag to fsck:
# fsck -A
That will check all applicable filesystems listed in your /etc/fstab file.
It is also possible that the filesystems are too severely damaged to be repaired from single user mode. In that case you'll need to download a Centos CD and use rescue mode and hope that you can recover.
and, you need to use -f to actually FIX any structural damage it finds
fsck -fvy will correct most of the problems without asking everytime to accept the changes to fs.
fsck -cvy will correct and test for bad sectors too (looong time run).
CM
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of hadi motamedi Sent: Thursday, January 28, 2010 7:45 AM To: CentOS mailing list Subject: [CentOS] Advanced fsck?
Dear All My CentOS server got file system inconsistency , asking for "type Ctrl-D for normal boot or give root password for maintenance to run fsck manually". I tried for manually run fsck , as the followings : #fsck -s /dev/hda3 But after rebooting the server it will come back again at the similar prompt asking for "give root password for maintenance" . Can you please do me favor and let me know how can I try for advanced fsck to fix the bug? Thank you
On Thu, Jan 28, 2010 at 9:03 AM, Cristian Mastan cristim@mail.multinet.rowrote:
fsck –fvy will correct most of the problems without asking everytime to accept the changes to fs.
fsck –cvy will correct and test for bad sectors too (looong time run).
CM
*From:* centos-bounces@centos.org [mailto:centos-bounces@centos.org] *On Behalf Of *hadi motamedi *Sent:* Thursday, January 28, 2010 7:45 AM *To:* CentOS mailing list *Subject:* [CentOS] Advanced fsck?
Dear All My CentOS server got file system inconsistency , asking for "type Ctrl-D for normal boot or give root password for maintenance to run fsck manually". I tried for manually run fsck , as the followings : #fsck -s /dev/hda3 But after rebooting the server it will come back again at the similar prompt asking for "give root password for maintenance" . Can you please do me favor and let me know how can I try for advanced fsck to fix the bug? Thank you
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
You did me great . The 'fsck -fvy' got through and I have my CentOS server up and running again . I thought that I cannot bring it up again and so lost all of the files . My special thanks from you Sincerely Yours