i need your guys help


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users i need your guys help
# 8  
Old 03-28-2002
Did you format the hard drive or just overwrite the partition table? That seems to be the first question to answer clearly. Based on what I've read so far, seems that you did not format the drive, but only changed the partition table.

This implies that you can recover the disk by rebuilding the partition table and master boot record, right?

After we identify the exact situation.... we can consider tools like:

http://www.dtidata.com/products_bundle_01.asp

http://www.r-studio.ca/?GW09

The trick is NOT TO PANIC and NOT TO OVERWRITE THIS DISK, OK?

http://download.cnet.com/downloads/0...y&cn=&ca=10001

http://www.diydatarecovery.nl/
# 9  
Old 03-28-2002
The partition table is really quite simple, as long as the partition ID is OK, info on tracks and sectors are intact (all that can be done with Linix fdisk) then should there be some more data needed, that may be gotten off an alternative partition table.

This will be reall yinteresting, I like these things actually Smilie
# 10  
Old 03-28-2002
AtleRamsli,

Are you saying that he must take his broken XP hard disk and install it on a Linux system... and run fdisk ?

How does this work? Fdisk will try to read the partition table and the partition table is wiped out, right?

I am not sure that this will work......... and can't recommend using fdisk based on what I've read so far.
# 11  
Old 03-28-2002
Read this first ....

Souldier,

Recommend you read this first....

http://www.diydatarecovery.nl/

Very good info there and it seems like what you need based on what I've read so far.


Quote:
DIY DataRecovery MBR-Rescue


MBR-rescue 2.x is a command line utility that can only help recover from data loss that occurred as a result of MBR corruption. MBR-Rescue is build upon the experience of recovering hundreds of harddrives manually from MBR damage. MBR-Rescue is safe to use, you can back up the current MBR, MBR-Rescue does NOT overwrite any user data!


The current version recovers FAT16 and 32, NTFS and extended partitions. MBR-Rescue also allows the backing up of the MBR and partition tables to prevent dataloss as a result of a corrupt MBR

The MBR is the first sector on the harddrive and consists of 512 bytes only. The first 446 bytes contain bootcode. This bootcode can be standard as it is put there by fdisk, or nonstandard, if disk manager software or bootmanagers are used. A virus can also replace the bootcode. MBR-Rescue can restore a standard bootloader any time.

The next 64 bytes are reserved for defining partitions. Per partition 16 bytes are used, so 4 partitions can be defined here. The damage to this information is more serious. The information on the harddrive can not be accessed anymore. MBR-Rescue can either restore a backup of this information if it was created prior to the dataloss, or can rebuild the partition table from scratch.

This links (below) is more technical reading ... and might help.... but seems to mathematical for most people ....

http://www.datarescue.com/laboratory/
# 12  
Old 03-28-2002
Neo!

Maybe I didn't explain this well enough: The problem is really simple:
As a result of an operation, some bytes on the disk have been reset, and they must be set back.

The tool used for that is really irrelevant, as long as the bytes get set back to their original values, disk structure, partition structure and type.
My suggestion was to start with the simplest, compare one partition table with another using fdisk's binary dump facility, and take it from there.


Of course it is not sure to work, if the more than these few bytes have been altered, then there is really no way to fix it, because there is no telling what those bytes were.

But, as for the ones that are part of the table:
Linux fdisk has a couple of options that let you make a binary dump of the partition table
You will start by m, to list th eoptions,
then x to list the advance options, and there are:
options to change info on cylingers, heads, sector/track
in most cases, the partition table is simply marked as 'unused' - this is what happened to me, so I could just put it back to 'used by linux '=83

But, of course, that is all it can do!

I found this info about the Microsoft boot sector layout

Field Offset Length
----- ------ ------
Bytes Per Sector 11 2
Sectors Per Cluster 13 1
Reserved Sectors 14 2
FATs 16 1
Root Entries 17 2
Small Sectors 19 2
Media Descriptor 21 1
Sectors Per FAT 22 2
Sectors Per Track 24 2
Heads 26 2
Hidden Sectors 28 4
Large Sectors 32 4

Last edited by AtleRamsli; 03-28-2002 at 08:06 AM..
# 13  
Old 03-28-2002
MBR-Rescue sounds an aweful lot like the command "fdisk \MBR" on a DOS or Windows machine.

Also, the way I took AtleRamsli's post was an example of how he could do it - in that case, grab a Linux boot disk (for example, one of my favorite is tomsrtbt) that can get an x86 off the ground, then to use the tools within to get to fixing the hard disk setting...

I somewhat like that idea, since you don't have to sync anything to the disk prior to the change (like you would if you booted up Windows).
# 14  
Old 03-28-2002
It also helps a LOT if have something to compare the dump to, it is often the case that you can restore the whole thing by comparing the different versions of MBR (in case more than just the type is overwritten)

In any case: Law nr.1: Stay k00l Smilie

I think I forgot to mention the most obvious advantage:

If it works, which, as it has been pointed out, you can not be sure of, you have fixed the whol problem in about 10 keystrokes or so ... this probably my main argument for giving it a shot before taking the more drastic measures ...

Last edited by AtleRamsli; 03-28-2002 at 11:19 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help me guys

how to print first line of each repeated 2 fields only if i got files like : USA|Tony|12:25:22:431 USA|John|14:22:42:981 USA|John|08:22:12:349 France|Adam|14:22:42:981 Italy|Tony|18:22:42:212 Italy|Tony|04:22:42:212 Italy|Tony|08:22:42:212 to make output like : ... (9 Replies)
Discussion started by: teefa
9 Replies

2. Cybersecurity

Hey guys

Hey guys, new geek here, sorry I didnt see a intro section. But I do have a question and hope to make my stay here perma. I am interested in IT security, ands I really want to learn, I was hoping for whatever questions I had you guys could lead me through the narrowest path with a broad selection... (1 Reply)
Discussion started by: abeja
1 Replies

3. Shell Programming and Scripting

Please help me guys...

Hi All! I need to write a script which reads a file and tries to insert into the DB using those values... file format: var1 var2 var3 var4 var5 var6 Now I want to read from the above file and trying to insert like... insert into table1 values( var1, var2, var3 ); in a loop to... (2 Replies)
Discussion started by: games_icon
2 Replies

4. UNIX for Advanced & Expert Users

Please Help Guys Important

Dear All I have an important request: I have a pattern which look like this: 2 20080219_21:43:22.194 ISC-Libya Belgium1 24 IAM 20115139248 218913265641 b 11672 ACM b 20614 CPG b 20619 CPG b 20626 CPG f 33925 REL b 34215 RLC :COMMA: NCI=00,FCI=6001,CPC=0A,TMR=00,USI: :COMMB: BCI=0201:... (15 Replies)
Discussion started by: zanetti321
15 Replies

5. UNIX for Advanced & Expert Users

Please Help Me Guys

Dear All I have a pattern which look like this : 2 20080226_18:02:09.749 ISC-Libya Egypt-Cairo2 111 IAM 2913258040 218927157966 b 61 REL f 143 RLC :COMMA:NCI=10,FCI=6101,CPC=0A,TMR=00,OFI=80,USI: :COMMB:: :RELCAUSE:15: 2 20080226_18:02:11.629 ISC-Libya Egypt-Cairo2 170 IAM 93572641... (8 Replies)
Discussion started by: zanetti321
8 Replies

6. UNIX for Advanced & Expert Users

Hi guys...

I want a Bash Shell Script for taking backup of all files created to day and killing all the Process still active of mine at evening every day (1 Reply)
Discussion started by: vinayraj
1 Replies

7. Shell Programming and Scripting

Help guys!

Hello Guys, I have written the following script to do certain job. I have more than 300 files, all are .pdb & .out files. and the files are (1,3,5,7,11,13,15,17,21,.......787,791,793,795).pdb /.out . But the way I created the for loop in my script works only one file at a time. But that is not... (2 Replies)
Discussion started by: chuchu
2 Replies

8. AIX

Thanks guys

Hi guys, I would like to inform you that I have cleared .... IBM Certified Specialist - p5 and pSeries Administration and Support for AIX 5L V5.3 with 89% thanks to you all. Manu (0 Replies)
Discussion started by: b_manu78
0 Replies

9. UNIX for Dummies Questions & Answers

Hi again guys

actually i have important question about unix / linux i'm working on visuall basic and visuall c++ i heared from someone that i can't open them while i useing unix / linux is that right? if yes .......... what's the solution if no ............. thanks :) :D :D thanks my friends (1 Reply)
Discussion started by: M_Hafez
1 Replies
Login or Register to Ask a Question