LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2005, 06:18 AM   #1
pete-wilko
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Rep: Reputation: 0
filesystem rebuild error,


Hi everyone,

i've got a redhat 7.3 server which contained a raid 0 scsi array. One of the disks failed and after repeated attempts to resurrect the disk we admitted defeat, found a replacement disk and rebuilt the array.

We had a backup image on an IDE disk. Put that in the machine and copied across with dd.

After fixing a few problems with Lilo not being able to see the root partition (and lilo itself not working for a while, because the array had changed from /dev/sda6 to /dev/sda3) finally got the OS to boot.

Now the following error is occuring:

-------------------------------
Error message(s):

Checking root filesystem
/: The filesystem size (according to the superblock) is 17165444 blocks
The physical size of the device is 17147379 blocks
Either the superblock or the partition table is likely to be corrupt!


/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.


------ End message ------

Ran fsck, it again identifies a device size mismatch according to the superblock, and prompts again, so ran fsck and on Pass 1 things are fine until block 17163085, then numerous more errors occur.

Pass 2 then kicks in checking the directory structure , get the following:

------------
Missing '.' in directory inode 8570453

Setting filetype for entry '.' in Error readking block 17147383 (Attempting to read block from filesystem resulted in short read). Ignore error?
-------------

then get a fair few more of these (assuming same number as in 1st pass)

Anyways after a few more errors and EXT2 directory corrupted messages, fsck finishes, reboot, then it gets to the exact same point in the boot and the same occurs again.

So a bit stumped at the moment. I'm thinking that when the filesystem was rebuilt that the sizes dont match and that the partition table is not accurate. Either that or the superblock is wrong.

Suggestions on how to proceed would be great.

Cheers,
Pete
 
Old 05-26-2005, 11:19 AM   #2
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Quote:
found a replacement disk and rebuilt the array.
Did you get one that was EXACTLY the same or more in size?

Which leads to:

Quote:
So a bit stumped at the moment. I'm thinking that when the filesystem was rebuilt that the sizes dont match and that the partition table is not accurate. Either that or the superblock is wrong.
That is correct. But before me giving you how-to continue and re-rebuilding the system, let's wait a few more hours and see what others have to say.

--Abid Kazmi
 
Old 05-27-2005, 06:40 AM   #3
pete-wilko
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Hi Abid, thanks a bunch for the response.

The replacement disk was from another server and was the same make, model and size (as in GB). We still have the other disk, we got it to spin again and recovered partial data off it, but only 14gb of the 17 on it. We could probably rebuild that disk, not sure though what is exactly wrong with it except that it wasn't spinning but is now, so wouldn't be that comfortable in deploying it again.

One other thing, probably demonstrating my naive ways, but booting with knoppix (been doing that a fair bit) we have been able to browse and open the files that were copied back across, so the data looks like its fine on disk.

Thanks again for the input,

Cheers,
Pete

Last edited by pete-wilko; 05-27-2005 at 06:44 AM.
 
Old 05-27-2005, 11:00 AM   #4
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Maybe the older disk will fail in the near future and I wouldn't recommend you putting it back in there. I have three servers at my school, all with four raid drives at 17GB each, one for part and the rest of the data.

Anyways, I am myself getting a little confused at this point.

1.) You had a 17GB disk that failed.
2.) You managed to recover 14GB of files.
3.) You don't/or shouldn't put it back into the raid.
4.) You got another same drive of another server.
5.) Placed it in and got the filesystem error:
Code:
/: The filesystem size (according to the superblock) is 17165444 blocks
The physical size of the device is 17147379 blocks
Either the superblock or the partition table is likely to be corrupt!
/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

Quote:
Stephen Tweedie reported (930515): `Most reports of superblock corrup-
tion turn out to be due to bad partitioning, with one filesystem over-
running the start of the next and corrupting its superblock. I have
even had this problem with the supposedly-reliable DRDOS. This was
quite possibly due to DRDOS-6.0's FDISK command. Unless I created a
blank track or cylinder between the DRDOS partition and the immediately
following one, DRDOS would happily stamp all over the start of the next
partition. Mind you, as long as I keep a little free disk space after
any DRDOS partition, I don't have any other problems with the two coex-
isting on the one drive.'
http://unixhelp.ed.ac.uk/CGI/man-cgi?sfdisk+8
Even though this is for DRDOS bootdisk, it can be placed in a raid position.
I believe that is your problem, the filesystem is overriding the new drive that you put in, causing the error Either the superblock or the partition table is likely to be corrupt!. Now I don't understand WHY it would be doing that when you got the SAME drive in size and model. From that, I believe you should wipe out the drive you got from the other server and place it back into your server that had a failed drive.

Again, if it does not bother you or your work, I have contacted one of my colleague to help you with this problem and back up my statements. I will post in while.

--Abid Kazmi
 
Old 05-30-2005, 06:22 AM   #5
pete-wilko
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Hi again Abid,

just to clarify, 'cause the last post was probably a bit muddled, what has happened is:

1) The server had 4 17gb disks in a raid 0 config.
2) Disk 3/4 failed, raid 0 gone
3) Attempted to retrieve data from the failed drive, only got 14gb, should have been more, so discarded.
4) Replaced disk 3/4 with a disk of same make and size from another machine
5) Rebuilt raid 0 array across the 4 disks making 1 logical drive
6) From a backup image stored on an IDE disk, dd'd the data onto the raid array
7) Stuffed around with LILO to get the machine to boot, finally booted after a bit of stuffing around
8) OS manages to mount '/' boot continues but then we run into these fsck issues and these remain unresolved.

Hope that clarifys things somewhat on what has happened on this end. Sorry if this wasn't clear in the first place, and thanks again for the help so far.

Cheers,
Pete
 
Old 05-30-2005, 12:04 PM   #6
pete-wilko
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Original Poster
Rep: Reputation: 0
As a follow-up to this, and perhaps to add more diagnositc info, a run of gpart (with flags -f -l -c -v -v -v /dev/sda) produced an error code of 3 and the following output:


Code:

dev(/dev/sda) mss(512) chs(8810/255/63)(LBA) #s(141532650) size(69107mb)
Primary partition(1)
   type: 131(0x83)(Linux ext2 filesystem) (BOOT)
   size: 78mb #s(160587) s(63-160649)
   chs:  (0/1/1)-(9/254/63)d (0/1/1)-(9/254/63)r
   hex:  80 01 01 00 83 FE 3F 09 3F 00 00 00 4B 73 02 00

Primary partition(2)
   type: 130(0x82)(Linux swap or Solaris/x86)
   size: 2047mb #s(4192965) s(160650-4353614)
   chs:  (10/0/1)-(270/254/63)d (10/0/1)-(270/254/63)r
   hex:  00 00 01 0A 82 FE 7F 0E 8A 73 02 00 C5 FA 3F 00

Primary partition(3)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 66981mb #s(137179035) s(4353615-141532649)
   chs:  (271/0/1)-(1023/254/63)d (271/0/1)-(8809/254/63)r
   hex:  00 00 41 0F 83 FE FF FF 4F 6E 42 00 9B 2F 2D 08

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


dev(/dev/sda) master boot record (w/o partition table):
   0000:   fa eb 7c 6c 62 61 4c 49 4c 4f 01 00 15 04 5a 00
           .  .  |  l  b  a  L  I  L  O  .  .  .  .  Z  . 
   0010:   00 00 00 00 cd a2 88 42 42 3f c0 00 01 43 3f c0
           .  .  .  .  .  .  .  B  B  ?  .  .  .  C  ?  . 
   0020:   00 01 41 3f c0 00 01 01 44 5a 45 3f c0 00 01 46
           .  .  A  ?  .  .  .  .  D  Z  E  ?  .  .  .  F 
   0030:   3f c0 00 01 5a 02 c0 00 01 5b 02 c0 00 01 5c 02
           ?  .  .  .  Z  .  .  .  .  [  .  .  .  .  \  . 
   0040:   c0 00 01 5d 02 c0 00 01 5e 02 c0 00 01 5f 02 c0
           .  .  .  ]  .  .  .  .  ^  .  .  .  .  _  .  . 
   0050:   00 01 60 02 c0 00 01 61 02 c0 00 01 62 02 c0 00
           .  .  `  .  .  .  .  a  .  .  .  .  b  .  .  . 
   0060:   01 63 02 c0 00 01 64 02 c0 00 01 00 00 00 00 00
           .  c  .  .  .  .  d  .  .  .  .  .  .  .  .  . 
   0070:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b8
           .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
   0080:   c0 07 8e d8 8c 06 7a 00 89 36 78 00 89 1e 7c 00
           .  .  .  .  .  .  z  .  .  6  x  .  .  .  |  . 
   0090:   88 16 7e 00 b8 00 9a 8e c0 b9 00 01 29 f6 29 ff
           .  .  ~  .  .  .  .  .  .  .  .  .  )  .  )  . 
   00A0:   fc f3 a5 ea a8 00 00 9a 8e d8 b8 00 90 8e d0 bc
           .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
   00B0:   00 b0 fb b0 0d e8 69 00 b0 0a e8 64 00 b0 4c e8
           .  .  .  .  .  .  i  .  .  .  .  d  .  .  L  . 
   00C0:   5f 00 be 34 00 68 00 0b 07 31 db ad 91 ac a8 60
           _  .  .  4  .  h  .  .  .  1  .  .  .  .  .  ` 
   00D0:   75 0f 4e ad 89 c2 09 c8 74 1c ac b4 02 cd 13 eb
           u  .  N  .  .  .  .  .  t  .  .  .  .  .  .  . 
   00E0:   0e 88 c2 ad f6 c2 20 75 02 30 e4 97 e8 3b 00 72
           .  .  .  .  .  .     u  .  0  .  .  .  ;  .  r 
   00F0:   0f 80 c7 02 eb d5 b0 49 e8 26 00 ea 00 00 00 0b
           .  .  .  .  .  .  .  I  .  &  .  .  .  .  .  . 
   0100:   b0 20 e8 1c 00 e8 06 00 31 c0 cd 13 eb b4 c1 c0
           .     .  .  .  .  .  .  1  .  .  .  .  .  .  . 
   0110:   04 e8 03 00 c1 c0 04 24 0f 04 30 3c 3a 72 02 04
           .  .  .  .  .  .  .  $  .  .  0  <  :  r  .  . 
   0120:   07 50 30 ff b4 0e cd 10 58 c3 56 51 53 88 d3 80
           .  P  0  .  .  .  .  .  X  .  V  Q  S  .  .  . 
   0130:   e2 8f f6 c3 40 75 33 bb aa 55 b8 00 41 cd 13 72
           .  .  .  .  @  u  3  .  .  U  .  .  A  .  .  r 
   0140:   29 81 fb 55 aa 75 23 f6 c1 01 74 1e 5b 59 1e 31
           )  .  .  U  .  u  #  .  .  .  t  .  [  Y  .  1 
   0150:   f6 56 56 57 51 06 53 6a 01 6a 10 89 e6 16 1f b8
           .  V  V  W  Q  .  S  j  .  j  .  .  .  .  .  . 
   0160:   00 42 cd 13 8d 64 10 1f eb 44 5b 59 53 52 57 51
           .  B  .  .  .  d  .  .  .  D  [  Y  S  R  W  Q 
   0170:   06 b4 08 cd 13 07 72 38 51 c0 e9 06 86 e9 89 cf
           .  .  .  .  .  .  r  8  Q  .  .  .  .  .  .  . 
   0180:   59 88 f0 fe c0 80 e1 3f f6 e1 96 58 5a 39 f2 73
           Y  .  .  .  .  .  .  ?  .  .  .  X  Z  9  .  s 
   0190:   23 f7 f6 39 f8 77 1d c0 e4 06 86 e0 92 f6 f1 fe
           #  .  .  9  .  w  .  .  .  .  .  .  .  .  .  . 
   01A0:   c4 00 e2 89 d1 5a 5b 86 f0 b8 01 02 cd 13 5e c3
           .  .  .  .  .  Z  [  .  .  .  .  .  .  .  ^  . 

Begin scan...
Possible partition(Linux ext2), size(54mb), offset(0mb)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 54mb #s(112392) s(63-112454)
   chs:  (0/1/1)-(6/254/63)d (0/1/1)-(6/254/63)r
   hex:  00 01 01 00 83 FE 3F 06 3F 00 00 00 08 B7 01 00

Possible extended partition at offset(54mb)
   Possible partition(Linux swap), size(1764mb), offset(54mb)
      type: 130(0x82)(Linux swap or Solaris/x86)
      size: 1764mb #s(3614560) s(112518-3727077)
      chs:  (7/1/1)-(231/254/61)d (7/1/1)-(231/254/61)r
      hex:  00 01 01 07 82 FE 3D E7 86 B7 01 00 60 27 37 00

   Possible partition(Linux swap), size(2047mb), offset(78mb)
      type: 130(0x82)(Linux swap or Solaris/x86)
      size: 2047mb #s(4192960) s(160650-4353609)
      chs:  (10/0/1)-(270/254/58)d (10/0/1)-(270/254/58)r
      hex:  00 00 01 0A 82 FE 7A 0E 8A 73 02 00 C0 FA 3F 00

   Possible partition(Linux ext2), size(67287mb), offset(1819mb)
      type: 131(0x83)(Linux ext2 filesystem)
      size: 67287mb #s(137805504) s(3727143-141532646)
      chs:  (232/1/1)-(1023/254/63)d (232/1/1)-(8809/254/60)r
      hex:  00 01 01 E8 83 FE FF FF 27 DF 38 00 C0 BE 36 08

Possible extended partition at offset(2055mb)
   Possible partition(Linux ext2), size(67052mb), offset(2125mb)
      type: 131(0x83)(Linux ext2 filesystem)
      size: 67052mb #s(137323552) s(4353615-141677166)
      chs:  (271/0/1)-(1023/254/63)d (271/0/1)-(8818/253/58)r
      hex:  00 00 41 0F 83 FE FF FF 4F 6E 42 00 20 64 2F 08

End scan.

Checking partitions...

* Warning: Discarded 2 overlapping partition guesses.
Partition(Linux ext2 filesystem): primary 
   type: 131(0x83)(Linux ext2 filesystem)
   size: 54mb #s(112392) s(63-112454)
   chs:  (0/1/1)-(6/254/63)d (0/1/1)-(6/254/63)r
   hex:  00 01 01 00 83 FE 3F 06 3F 00 00 00 08 B7 01 00

   Partition(Linux swap or Solaris/x86): logical 
      type: 130(0x82)(Linux swap or Solaris/x86)
      size: 1764mb #s(3614560) s(112518-3727077)
      chs:  (7/1/1)-(231/254/61)d (7/1/1)-(231/254/61)r
      hex:  00 01 01 07 82 FE 3D E7 86 B7 01 00 60 27 37 00

   Partition(Linux ext2 filesystem): logical 
      type: 131(0x83)(Linux ext2 filesystem)
      size: 67287mb #s(137805504) s(3727143-141532646)
      chs:  (232/1/1)-(1023/254/63)d (232/1/1)-(8809/254/60)r
      hex:  00 01 01 E8 83 FE FF FF 27 DF 38 00 C0 BE 36 08

Ok.

Guessed primary partition table:
Primary partition(1)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 54mb #s(112392) s(63-112454)
   chs:  (0/1/1)-(6/254/63)d (0/1/1)-(6/254/63)r
   hex:  00 01 01 00 83 FE 3F 06 3F 00 00 00 08 B7 01 00

Primary partition(2)
   type: 015(0x0F)(Extended DOS, LBA)
   size: 69052mb #s(141420195) s(112455-141532649)
   chs:  (7/0/1)-(1023/254/63)d (7/0/1)-(8809/254/63)r
   hex:  00 00 01 07 0F FE FF FF 47 B7 01 00 A3 E6 6D 08

Primary partition(3)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The IDE disk that contains the backup image from which we dd'd from had an error code of 1 and produced:

Code:

dev(/dev/hda) mss(512) chs(30394/255/63)(LBA) #s(488279610) size(238417mb)
Primary partition(1)
   type: 131(0x83)(Linux ext2 filesystem) (BOOT)
   size: 54mb #s(112392) s(63-112454)
   chs:  (0/1/1)-(6/254/63)d (0/1/1)-(6/254/63)r
   hex:  80 01 01 00 83 FE 3F 06 3F 00 00 00 08 B7 01 00

Primary partition(2)
   type: 005(0x05)(Extended DOS)
   size: 69052mb #s(141420195) s(112455-141532649)
   chs:  (7/0/1)-(1023/254/63)d (7/0/1)-(8809/254/63)r
   hex:  00 00 01 07 05 FE FF FF 47 B7 01 00 A3 E6 6D 08

   Logical partition
      type: 130(0x82)(Linux swap or Solaris/x86)
      size: 2000mb #s(4096512) s(112518-4209029)
      chs:  (7/1/1)-(261/254/63)d (7/1/1)-(261/254/63)r
      hex:  00 01 01 07 82 FE 7F 05 3F 00 00 00 00 82 3E 00

      type: 001(0x01)(Primary DOS with 12 bit FAT)
      size: 0mb #s(0) s(112984-112983)
      chs:  (0/170/0)-(766/0/3)d (7/8/26)-(7/8/25)r
      hex:  55 AA 00 00 01 00 83 FE 11 02 00 00 00 00 00 00

   Logical partition
      type: 131(0x83)(Linux ext2 filesystem)
      size: 67052mb #s(137323557) s(4209093-141532649)
      chs:  (262/1/1)-(1023/254/63)d (262/1/1)-(8809/254/63)r
      hex:  00 01 41 06 83 FE FF FF 3F 00 00 00 25 64 2F 08

Primary partition(3)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


dev(/dev/hda) master boot record (w/o partition table):
   0000:   fa eb 7c 6c 62 61 4c 49 4c 4f 01 00 15 04 5a 00
           .  .  |  l  b  a  L  I  L  O  .  .  .  .  Z  . 
   0010:   00 00 00 00 7f 7a 93 42 42 3f c0 00 01 43 3f c0
           .  .  .  .  .  z  .  B  B  ?  .  .  .  C  ?  . 
   0020:   00 01 41 3f c0 00 01 01 44 5a 45 3f c0 00 01 46
           .  .  A  ?  .  .  .  .  D  Z  E  ?  .  .  .  F 
   0030:   3f c0 00 01 5a 02 c0 00 01 5b 02 c0 00 01 5c 02
           ?  .  .  .  Z  .  .  .  .  [  .  .  .  .  \  . 
   0040:   c0 00 01 5d 02 c0 00 01 5e 02 c0 00 01 5f 02 c0
           .  .  .  ]  .  .  .  .  ^  .  .  .  .  _  .  . 
   0050:   00 01 60 02 c0 00 01 61 02 c0 00 01 62 02 c0 00
           .  .  `  .  .  .  .  a  .  .  .  .  b  .  .  . 
   0060:   01 63 02 c0 00 01 64 02 c0 00 01 00 00 00 00 00
           .  c  .  .  .  .  d  .  .  .  .  .  .  .  .  . 
   0070:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b8
           .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
   0080:   c0 07 8e d8 8c 06 7a 00 89 36 78 00 89 1e 7c 00
           .  .  .  .  .  .  z  .  .  6  x  .  .  .  |  . 
   0090:   88 16 7e 00 b8 00 9a 8e c0 b9 00 01 29 f6 29 ff
           .  .  ~  .  .  .  .  .  .  .  .  .  )  .  )  . 
   00A0:   fc f3 a5 ea a8 00 00 9a 8e d8 b8 00 90 8e d0 bc
           .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
   00B0:   00 b0 fb b0 0d e8 69 00 b0 0a e8 64 00 b0 4c e8
           .  .  .  .  .  .  i  .  .  .  .  d  .  .  L  . 
   00C0:   5f 00 be 34 00 68 00 0b 07 31 db ad 91 ac a8 60
           _  .  .  4  .  h  .  .  .  1  .  .  .  .  .  ` 
   00D0:   75 0f 4e ad 89 c2 09 c8 74 1c ac b4 02 cd 13 eb
           u  .  N  .  .  .  .  .  t  .  .  .  .  .  .  . 
   00E0:   0e 88 c2 ad f6 c2 20 75 02 30 e4 97 e8 3b 00 72
           .  .  .  .  .  .     u  .  0  .  .  .  ;  .  r 
   00F0:   0f 80 c7 02 eb d5 b0 49 e8 26 00 ea 00 00 00 0b
           .  .  .  .  .  .  .  I  .  &  .  .  .  .  .  . 
   0100:   b0 20 e8 1c 00 e8 06 00 31 c0 cd 13 eb b4 c1 c0
           .     .  .  .  .  .  .  1  .  .  .  .  .  .  . 
   0110:   04 e8 03 00 c1 c0 04 24 0f 04 30 3c 3a 72 02 04
           .  .  .  .  .  .  .  $  .  .  0  <  :  r  .  . 
   0120:   07 50 30 ff b4 0e cd 10 58 c3 56 51 53 88 d3 80
           .  P  0  .  .  .  .  .  X  .  V  Q  S  .  .  . 
   0130:   e2 8f f6 c3 40 75 33 bb aa 55 b8 00 41 cd 13 72
           .  .  .  .  @  u  3  .  .  U  .  .  A  .  .  r 
   0140:   29 81 fb 55 aa 75 23 f6 c1 01 74 1e 5b 59 1e 31
           )  .  .  U  .  u  #  .  .  .  t  .  [  Y  .  1 
   0150:   f6 56 56 57 51 06 53 6a 01 6a 10 89 e6 16 1f b8
           .  V  V  W  Q  .  S  j  .  j  .  .  .  .  .  . 
   0160:   00 42 cd 13 8d 64 10 1f eb 44 5b 59 53 52 57 51
           .  B  .  .  .  d  .  .  .  D  [  Y  S  R  W  Q 
   0170:   06 b4 08 cd 13 07 72 38 51 c0 e9 06 86 e9 89 cf
           .  .  .  .  .  .  r  8  Q  .  .  .  .  .  .  . 
   0180:   59 88 f0 fe c0 80 e1 3f f6 e1 96 58 5a 39 f2 73
           Y  .  .  .  .  .  .  ?  .  .  .  X  Z  9  .  s 
   0190:   23 f7 f6 39 f8 77 1d c0 e4 06 86 e0 92 f6 f1 fe
           #  .  .  9  .  w  .  .  .  .  .  .  .  .  .  . 
   01A0:   c4 00 e2 89 d1 5a 5b 86 f0 b8 01 02 cd 13 5e c3
           .  .  .  .  .  Z  [  .  .  .  .  .  .  .  ^  . 

Begin scan...
Possible partition(Linux ext2), size(54mb), offset(0mb)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 54mb #s(112392) s(63-112454)
   chs:  (0/1/1)-(6/254/63)d (0/1/1)-(6/254/63)r
   hex:  00 01 01 00 83 FE 3F 06 3F 00 00 00 08 B7 01 00

Possible extended partition at offset(54mb)
   Possible partition(Linux swap), size(2000mb), offset(54mb)
      type: 130(0x82)(Linux swap or Solaris/x86)
      size: 2000mb #s(4096512) s(112518-4209029)
      chs:  (7/1/1)-(261/254/63)d (7/1/1)-(261/254/63)r
      hex:  00 01 01 07 82 FE 7F 05 86 B7 01 00 00 82 3E 00

   Possible partition(Linux ext2), size(67052mb), offset(2055mb)
      type: 131(0x83)(Linux ext2 filesystem)
      size: 67052mb #s(137323552) s(4209093-141532644)
      chs:  (262/1/1)-(1023/254/63)d (262/1/1)-(8809/254/58)r
      hex:  00 01 41 06 83 FE FF FF C5 39 40 00 20 64 2F 08

End scan.

Checking partitions...
Partition(Linux ext2 filesystem): primary 
   type: 131(0x83)(Linux ext2 filesystem)
   size: 54mb #s(112392) s(63-112454)
   chs:  (0/1/1)-(6/254/63)d (0/1/1)-(6/254/63)r
   hex:  00 01 01 00 83 FE 3F 06 3F 00 00 00 08 B7 01 00

   Partition(Linux swap or Solaris/x86): logical 
      type: 130(0x82)(Linux swap or Solaris/x86)
      size: 2000mb #s(4096512) s(112518-4209029)
      chs:  (7/1/1)-(261/254/63)d (7/1/1)-(261/254/63)r
      hex:  00 01 01 07 82 FE 7F 05 86 B7 01 00 00 82 3E 00

   Partition(Linux ext2 filesystem): logical 
      type: 131(0x83)(Linux ext2 filesystem)
      size: 67052mb #s(137323552) s(4209093-141532644)
      chs:  (262/1/1)-(1023/254/63)d (262/1/1)-(8809/254/58)r
      hex:  00 01 41 06 83 FE FF FF C5 39 40 00 20 64 2F 08

Ok.

Guessed primary partition table:
Primary partition(1)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 54mb #s(112392) s(63-112454)
   chs:  (0/1/1)-(6/254/63)d (0/1/1)-(6/254/63)r
   hex:  00 01 01 00 83 FE 3F 06 3F 00 00 00 08 B7 01 00

Primary partition(2)
   type: 015(0x0F)(Extended DOS, LBA)
   size: 69052mb #s(141420195) s(112455-141532649)
   chs:  (7/0/1)-(1023/254/63)d (7/0/1)-(8809/254/63)r
   hex:  00 00 01 07 0F FE FF FF 47 B7 01 00 A3 E6 6D 08

Primary partition(3)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Sorry for info overload, hope this helps my dodgy explanations.

Cheers,
Pete
 
Old 05-30-2005, 09:51 PM   #7
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Wow... thanks for all that. Took in ten minutes to go through each line. Ok, back to the topic.
Code:
* Warning: Discarded 2 overlapping partition guesses.
It keeps going back to the filesystem error and I don't believe there is any other way to match up the partitions exactly for fsck to accept it as being the correct one. Try to reformat it and dd the image back on their from the IDE. If it doesn't work or you don't want to, reply back.

Thanks

--Abid Kazmi
 
Old 06-01-2005, 09:57 AM   #8
pete-wilko
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks again Abid,

this time recopied the data across and have found a potential snag. Using 'dd' we got the following:

Code:
root@ttyp0[knoppix]# dd  < /dev/hda > /dev/sda
dd: writing to `standard output': No space left on device
141541377+0 records in
141541376+0 records out
72469184512 bytes transferred in 27557.563519 seconds (2629738 bytes/sec)
So it is somehow running out of space. We didn't reformat though before doing the dd but seeing as how it copies all bytes this didn't appear to be an issue.

May try again with this, but have got the system working off the backup IDE disk at the moment as my patience was wearing out a bit

Anyways the system is working, so may reconfigure the raid array to raid 5 (as it should have been in the first place and all of this would have been a lot easier!) and use it for a system backup.

But yeah might retry with a rebuild of the array and see if that has an impact. Otherwise that may well explain the fsck differences! But can't figure out why as the drives are the same, only thing I can think of is that there were a fair few bad blocks that have been picked up and hence flagged.

Anyways thanks again,

Cheers,
Pete
 
Old 06-01-2005, 10:27 AM   #9
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Your welcome Pete.
Anyways, did you see the usage statistics on /dev/sda? Maybe the hdd really IS full? Any with this kind of stuff, you got to have patience. I have a 30gig ide hdd that i've been trying to fix for more than a year (did buy a replacement though). So, if you want, try the raid5 config and post the results.

--Abid Kazmi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
revdep-rebuild error in Gentoo vharishankar Linux - Distributions 2 06-10-2005 04:05 AM
rpm -- rebuild error! i666an Linux - Newbie 2 06-03-2005 03:12 AM
rpmbuild --rebuild qmail-1.03 gets error aggiesoft Red Hat 0 03-02-2004 01:14 PM
rebuild kernel error granny Linux - General 2 02-26-2004 08:42 PM
How do you Rebuild a filesystem rootlinux Linux - General 2 05-21-2002 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration