On 2010/08/03 14:07 (GMT-0300) Marco Calistri
I'm going to format my Windows partition:
I have a dual boot Vista/openSUSE-11.2 system onto a single 250GB HDD.
I wish to use that space as additional linux archiving volume.
Before to proceed, wonder if exist a *certified
way* to verify where
Grub installation is located: disk-MBR or disk-partition.
Certified? Don't know.
# dd if=/dev/sda bs=446 count=1 # for MBR on disk 1
# dd if=/dev/sdb10 bs=446 count=1 # for partition 10 on disk 2
Those will dump relevant portion of contents of indicated devices' first
sectors to screen. If output includes string "GRUB" somewhere, then you know
Grub's there. Screen may scramble, so you'd need to log out and back in or
maybe init 2; init <whatever> to continue.
The above produces a binary display. I use dd to create a disk file (just add
"of=filename" to the above), and then use xxd to read it in hex. If grub is in
either the MBR or PBR, you will see the literal "GRUB" near the end of the
record. If Windows is in the MBR you will see the literal "Missing Operating
System" near the end, and if Vista is in the PBR you will see (IIRC) the literal
"BOOTMGR is missing".
Be very careful when using dd. If you use mistakenly use "of" for
"if" or the reverse, you can overwrite the record.
Not sure what you mean by "certified". All MBR and PBR installation programs
are one-way; whether the code and pointer there is actually used depends on how the boot
is configured (this is true of Windows, too). If it is not used, it just stays there
indefinitely, essentially harmless.
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org