On 11-09-19 02:53 PM, Andy Pintar wrote:
On Mon, 19 Sep 2011, Jérôme Oufella wrote:
----- Leslie S Satenstein wrote:
If you know a quick way to produce an empty or non empty mbr, please
let me know. Perhaps grub-install would do that, but how can I verify
that it did it?
Also, you can check your disk's mbr contents with something like that.
# file - < /dev/sda
/dev/stdin: x86 boot sector; GRand Unified Bootloader, stage1 version
0x3, boot drive 0x80, 1st sector stage2 0x84a6a; partition 1:
ID=0x83, active, starthead 32, startsector 2048, 1024000 sectors;
partition 2: ID=0x8e, starthead 221, startsector 1026048, 975747072
sectors, code offset 0x63
Jerome
Neat trick. I've been a fan of CLEARING my hdds with:
dd if=/dev/zero of=<physical disk> bs=1024 (or whatever) count=blah
I'll just throw in that if you use ddrescue rather than dd you can
actually interrupt and resume dd operations if you use the log option.
ie
ddrescue input output logfile
In ubuntu you can get it by installing gddrescue.
To OP:
You can examine your MBR with:
sudo dd if=/dev/sdX bs=512 count=1 | file -
grub-install should take care of installing it on the disk for you.
Jeremy
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca