[ilugd] Redhat 9 Server Recovery - HELP

2005-04-13 Thread Navneet Choudhary
  
Hi folks,

I am running redhat linux  9(Kernel 2.4.20-8)  server on Intel P4 system,with 
Western Digital 40GB Hard Disk(WD400EB-00CPF0, ATA DISK).

This server is acting as Firewall  Gateway.
Running squid  vsftp for local users.

When i power on my system this morning , it shows below message (and as per 
message i run fsck /dev/hda without any argument/switch.

For your information i have added fdisk -l  df -h (All output prior to 
system CRASH).



Checking root filesystem
/= 49%
/:
Inodes that were part of  a corrupted orphan linked list found.

/:UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i.e without –a or –p options)


 [FAILED] 
*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell
Give root password for maintenance
(or type Control-D to continue):

(Repair filesystem)1# fsck /dev/hda
fsck 1.32 (09-Nov-2002)
e2fsck 1.32 (09-Nov-2002)
Couldn’t find ext2 superblock, trying backup blocks…
Fsck.ext2: Bad magic number in super-block while trying to open /dev/had
The superblock could not be read or does not describe a correct ext2 filesystem.
 If the device is valid and it really contains an ext2 filesystem ( and not 
swap or ufs or something else), then the superblock is corrupt, and you might 
try running e2fsck with an alternate superblock:
 e2fsck –b 8193 device


#fdisk –l

Disk /dev/hda: 40.0 GB, 40017485312 bytes
255 heads, 63 sector/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot  Start   End  Block   IdSystem
/dev/hda1   *   1  13  10439183   Linux
/dev/hda2  14  256320482875  83   Linux
/dev/hda3  2564   2628   522112+82   Linux swap
/dev/hda4  2629   4865 17968702+fWin95 Ext’d (LBA)
/dev/hda5  2629   4865 17968671 83   Linux


[EMAIL PROTECTED] root]# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5  17G  7.8G  8.4G  49% /
/dev/hda1  99M  5.0M   89M   6% /boot
/dev/hda2  20G   17G  1.6G  92% /home
none  121M 0  121M   0% /dev/shm



Any suggestion how to recover damaged filesystem (here it’s EXT3)?.

Thanks in advance.


Regards,
Navneet Choudhary

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Redhat 9 Server Recovery - HELP

2005-04-13 Thread Sandip Bhattacharya

 
 When i power on my system this morning , it shows below message (and as per 
 message i run fsck /dev/hda without any argument/switch.
 

/dev/hda is the whole hard disk. You need to run this command on a
partition!

For an automated correction of the partition with a progress display,
run the following on every ext2/ext3fs disk *partition*.

e2fsck -f -y -v -C 0 /dev/hdXX

Where X is the partition number

- Sandip

--
Sandip Bhattacharya*Puroga Technologies   * [EMAIL PROTECTED]
Work: http://www.puroga.com   *Home/Blog: http://www.sandipb.net/blog

PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3



___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Redhat 9 Server Recovery - HELP

2005-04-13 Thread Ajay Mulwani
 
 (Repair filesystem)1# fsck /dev/hda
 fsck 1.32 (09-Nov-2002)

This is not correct. Specify the device file of that file system not
the complete disk, so the correct command will be..

# fsck /dev/hda5

OR

# fsck -A(to check all file systems)

Ajay

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Redhat 9 Server Recovery - HELP

2005-04-13 Thread Kapil Sethi

Why would you ever do a fsck /dev/hda

It should be fsck /dev/hda1 (/dev/hdapartition nuber)

or you may do a fsck /

Kapil

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Redhat 9 Server Recovery - HELP

2005-04-13 Thread Navneet Choudhary
On Wed, 13 Apr 2005 Sandip Bhattacharya wrote :

  When i power on my system this morning , it shows below message (and as per 
  message i run fsck /dev/hda without any argument/switch.
 

/dev/hda is the whole hard disk. You need to run this command on a
partition!

For an automated correction of the partition with a progress display,
run the following on every ext2/ext3fs disk *partition*.

e2fsck -f -y -v -C 0 /dev/hdXX

Where X is the partition number

Well, thanks for correcting me.

System has been recovered by running fsck /dev/hdaX

But, some files not being recoved completly.
Since, after recovery system hostname switched back to default name 
localhgost.
Also, there is some read/write error in device ide0(3,5).Refer below for 
deatils:

=#tail -300 /var/log/messages|more=
Apr 12 13:06:38 localhost kernel: 03:05: rw=0, want=1098730844, limit=17968671
Apr 12 13:06:38 localhost kernel: EXT3-fs error (device ide0(3,5)): ext3_readdir
: directory #1940147 contains a hole at offset 1329831936
Apr 12 13:06:38 localhost kernel: attempt to access beyond end of device
Apr 12 13:06:38 localhost kernel: 03:05: rw=0, want=1098730844, limit=17968671
Apr 12 13:06:38 localhost kernel: EXT3-fs error (device ide0(3,5)): ext3_readdir
: directory #1940147 contains a hole at offset 1329836032
Apr 12 13:06:38 localhost kernel: attempt to access beyond end of device
Apr 12 13:06:38 localhost kernel: 03:05: rw=0, want=1098730844, limit=17968671
Apr 12 13:06:38 localhost kernel: EXT3-fs error (device ide0(3,5)): ext3_readdir
: directory #1940147 contains a hole at offset 1329840128
Apr 12 13:06:38 localhost kernel: attempt to access beyond end of device
Apr 12 13:06:38 localhost kernel: 03:05: rw=0, want=1098730844, limit=17968671
Apr 12 13:06:38 localhost kernel: EXT3-fs error (device ide0(3,5)): ext3_readdir
: directory #1940147 contains a hole at offset 1329844224
Apr 12 13:06:38 localhost kernel: attempt to access beyond end of device
Apr 12 13:06:38 localhost kernel: 03:05: rw=0, want=1098730844, limit=17968671
[EMAIL PROTECTED] root]# tail -300  /var/log/messages|more
Apr 12 13:06:38 localhost kernel: attempt to access beyond end of device
Apr 12 13:06:38 localhost kernel: 03:05: rw=0, want=1098730844, limit=17968671
Apr 12 13:06:38 localhost kernel: EXT3-fs error (device ide0(3,5)): 
ext3_readdir: directory #19401
47 contains a hole at offset 1329827840
Apr 12 13:06:38 localhost kernel: attempt to access beyond end of device
Apr 12 13:06:38 localhost kernel: 03:05: rw=0, want=1098730844, limit=17968671
Apr 12 13:06:38 localhost kernel: EXT3-fs error (device ide0(3,5)): 
ext3_readdir: directory #19401
47 contains a hole at offset 1329831936
Apr 12 13:06:38 localhost kernel: attempt to access beyond end of device
EOF

What does this line means:-
Apr 12 13:06:38 localhost kernel: EXT3-fs error (device ide0(3,5)): 
ext3_readdir: directory #19401
47 contains a hole at offset 1329831936 

Regards,
Navneet
NOTE: Server is serving users!

- Sandip

--
Sandip Bhattacharya*Puroga Technologies   * [EMAIL PROTECTED]
Work: http://www.puroga.com   *Home/Blog: http://www.sandipb.net/blog

PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3


___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Redhat 9 Server Recovery - HELP

2005-04-13 Thread Mithun Bhattacharya
--- Navneet Choudhary [EMAIL PROTECTED] wrote:
 Well, thanks for correcting me.
 
 System has been recovered by running fsck /dev/hdaX
 
 But, some files not being recoved completly.
 Since, after recovery system hostname switched back to default name
 localhgost.
 Also, there is some read/write error in device ide0(3,5).Refer below
 for deatils:

Before you embark on any theoretical discussion on the merits of any
message I would strongly urge you to take a full backup of this machine
and change the hard disk.


Mithun



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Redhat 9 Server Recovery - HELP

2005-04-13 Thread Sandip Bhattacharya
On Wed, 2005-04-13 at 11:34 +, Navneet Choudhary wrote:
 Also, there is some read/write error in device ide0(3,5).Refer below
 for deatils:

Hmm. Your hard disk seems truly fsck-ed. Run badblocks on the partitions
now!

- Sandip

--
Sandip Bhattacharya*Puroga Technologies   * [EMAIL PROTECTED]
Work: http://www.puroga.com   *Home/Blog: http://www.sandipb.net/blog

PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3



___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/