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/
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. AIX
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
3. Shell Programming and Scripting
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
4. UNIX for Advanced & Expert Users
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
5. UNIX for Advanced & Expert Users
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
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
7. Shell Programming and Scripting
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
8. Cybersecurity
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
9. Shell Programming and Scripting
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
LEARN ABOUT FREEBSD
gptboot
GPTBOOT(8) BSD System Manager's Manual GPTBOOT(8)
NAME
gptboot -- GPT bootcode for UFS on BIOS-based computers
DESCRIPTION
gptboot is used on BIOS-based computers to boot from a UFS partition on a GPT-partitioned disk. gptboot is installed in a freebsd-boot par-
tition with gpart(8).
IMPLEMENTATION NOTES
The GPT standard allows a variable number of partitions, but gptboot only boots from tables with 128 partitions or less.
PARTITION ATTRIBUTES
gptboot checks and manages several attributes of GPT UFS partitions.
bootme Attempt to boot from this partition. If more than one partition has the bootme attribute set, gptboot will attempt to boot each
one until successful.
bootonce Attempt to boot from this partition only one time. Setting this attribute with gpart(8) automatically also sets the bootme
attribute. Multiple partitions may have the bootonce and bootme attributes set.
bootfailed The bootfailed attribute marks partitions that had the bootonce attribute set, but failed to boot. This attribute is managed by
the system. See BOOTING and POST-BOOT ACTIONS below for details.
USAGE
For normal usage, the user does not have to set or manage any of the partition attributes. gptboot will boot from the first UFS partition
found.
The bootonce attribute can be used for testing an upgraded operating system on an already-working computer. The existing system partition is
left untouched, and the new version of the operating system to be tested is installed on another partition. The bootonce attribute is set on
that new test partition. The next boot is attempted from the test partition. Success or failure will be shown in the system log files.
After a successful boot of the test partition, a user script can check the logs and change the bootme attributes so the test partition
becomes the new system partition. Because the bootonce attribute is cleared after an attempted boot, a failed boot will not leave the system
attempting to boot from a partition that will never succeed. Instead, the system will boot from the older, known-working operating system
that has not been modified. If the bootme attribute is set on any partitions, booting will be attempted from them first. If no partitions
with bootme attributes are found, booting will be attempted from the first UFS partition found.
BOOTING
gptboot first reads the partition table. All freebsd-ufs partitions with only the bootonce attribute set, indicating a failed boot, are set
to bootfailed. gptboot then scans through all of the freebsd-ufs partitions. Boot behavior depends on the combination of bootme and
bootonce attributes set on those partitions.
bootonce + bootme Highest priority: booting is attempted from each of the freebsd-ufs partitions with both of these attributes. On each
partition, the bootme attribute is removed and the boot attempted.
bootme Middle priority: booting is attempted from each of the freebsd-ufs partitions with the bootme attribute.
If neither bootonce nor bootme attributes are found on any partitions, booting is attempted from the first freebsd-ufs partition on the disk.
POST-BOOT ACTIONS
The startup script /etc/rc.d/gptboot checks the attributes of freebsd-ufs partitions on all GPT disks. Partitions with the bootfailed
attribute generate a ``boot from X failed'' system log message. Partitions with only the bootonce attribute, indicating a partition that
successfully booted, generate a ``boot from X succeeded'' system log message. The bootfailed attributes are cleared from all the partitions.
The bootonce attribute is cleared from the partition that successfully booted. There is normally only one of these.
FILES
/boot/gptboot bootcode binary
/boot.config parameters for the boot blocks (optional)
EXAMPLES
gptboot is installed in a freebsd-boot partition, usually the first partition on the disk. A ``protective MBR'' (see gpart(8)) is typically
installed in combination with gptboot.
Install gptboot on the ada0 drive:
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
gptboot can also be installed without the PMBR:
gpart bootcode -p /boot/gptboot -i 1 ada0
Set the bootme attribute for partition 2:
gpart set -a bootme -i 2 ada0
Set the bootonce attribute for partition 2, automatically also setting the bootme attribute:
gpart set -a bootonce -i 2 ada0
SEE ALSO
boot.config(5), rc.conf(5), boot(8), gpart(8)
HISTORY
gptboot appeared in FreeBSD 7.1.
AUTHORS
This manual page written by Warren Block <wblock@FreeBSD.org>.
BSD
February 5, 2014 BSD