Announcement

Collapse
No announcement yet.

Partition rebuilding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Partition rebuilding

    I had this project off to the side but I want to get on track and finish it.

    Well for a year I have had a Silicon Graphics 4D/20 sitting under my desk and all the time I have been waiting to back the drive up before it goes south.
    Well a few months back I finally had a second SGI arrive and I first set out to see if I could mount the thing.
    I couldn't mount but running FX on the drive to view it's drive data gave me this:
    Code:
    ----- current drive parameters-----
    Error correction enabled     Enable data transfer on error
    Don't report recovered errors   Do delay for error recovery
    Do transfer bad blocks      Error retry attempts     18
    No auto bad block reallocation (read)
    No auto bad block reallocation (write)
    Drive readahead enabled     Drive buffered writes disabled
    Drive disable prefetch  65535  Drive minimum prefetch     0
    Drive maximum prefetch   53  Drive prefetch ceiling    53
    Number of cache segments   1
    Read buffer ratio    0/256  Write buffer ratio    128/256
    Command Tag Queueing disabled
    
    ----- current drive geometry-----
       Tracks/zone =  15    Sect/track =  53
      Alt sect/zone =  3    Interleave =  1    Cylinders = 1658
    Alt track/volume =  15  Cylinder skew =  14      Heads =  15
      Alt track/zone =  0    Track skew =  7  Data bytes/sec = 512
    
    ----- partitions-----
    part type    blocks      Megabytes  (base+size)
     0: efs    3168 + 32472     2 + 16  
     1: raw    35640 + 81576     17 + 40  
     6: efs   117216 + 1195128    57 + 584 
     7: efs    3168 + 1309176    2 + 639 
     8: volhdr    0 + 3168      0 + 2  
    10: volume    0 + 1312344    0 + 641 
    
    ----- bootinfo-----
    root partition = 0   swap partition = 1  bootfile = /unix
    
    ----- directory entries-----
    0: sgilabel  block 795 size   512 2: ide    block 2162 size 505344
    1: sash    block 797 size 208384
    
    ----- sgi-info-----
      serial = 0000             name = FUJITSU M2263S-512   0168
    After a looked at it I then Inserted a DAT tape into it's drive and proceeded to back the drive up.

    Guess what happened just before I started the backup......The drive committed suicide

    It didn't crash but several blocks on the drive went bad. By chance they did this right at that moment.
    This caused the backup to fail and according to FX the drive got hosed.
    Code:
    ***CURRENT DRIVE INFO***
    
    ----- partitions-----
    part type    blocks      Megabytes  (base+size)
     8: volhdr    0 + 82022      0 + 40  
    10: volume    0 + 1312344    0 + 641
    ----- bootinfo-----
    root partition = 0   swap partition = 0  bootfile =
    ----- directory entries-----
    ----- sgi-info-----
      serial = 0000             name = FUJITSU M2263S-512   0168
    I then resorted to a more crude backup method and ran ddrescue on the drive.
    Code:
    pentium@Ubuntu:~$ sudo ddrescue /dev/sda /home/pentium/4Dbu/bu1
    Password:
    
    
    Press Ctrl-C to interrupt
    rescued:  671891 kB, errsize:  28672 B, current rate:    0 B/s
      ipos:   65024 B,  errors:   56,  average rate:   845 kB/s
      opos:   65024 B
    The great thing about FX is that I can manually re-enter the lost header data and so long as I manage to add into the new drive geometry that bad 28672 B of data I should be able to get the drive back into a state where I can successfully mount it and properly back it up.

    The thing is, how do I do it?
    There's stuff on the drive I don't want to lose.
    Find Nedry!


    Check the Vending machines!!

    <----Computer says I need more beer.
Working...