Re: [gentoo-user] Shouldn't grub setup overwrite lilo in MBR

2005-12-21 Thread Neil Bothwick
On Tue, 20 Dec 2005 17:21:31 -0600, [EMAIL PROTECTED] wrote:

  dd if=/?? of=?? -b 512? with the right stuff in there can clean the
  mbr right?

That will zero the whole disk. Even adding count=1 will still wipe the
partition table. I think the command you want is 
dd if=/dev/zero of=/dev/dha bs=466 count=1


-- 
Neil Bothwick

Daddy? What's this little red button for?


signature.asc
Description: PGP signature


Re: [gentoo-user] Shouldn't grub setup overwrite lilo in MBR

2005-12-21 Thread Heinz Sporn
Am Mittwoch, den 21.12.2005, 09:46 + schrieb Neil Bothwick:
 On Tue, 20 Dec 2005 17:21:31 -0600, [EMAIL PROTECTED] wrote:
 
   dd if=/?? of=?? -b 512? with the right stuff in there can clean the
   mbr right?
 
 That will zero the whole disk. Even adding count=1 will still wipe the
 partition table. I think the command you want is 
 dd if=/dev/zero of=/dev/dha bs=466 count=1

bs=466 will make your disk unusable as well. It should be 446 and not
466. You may want to look here first:
http://home.teleport.com/~brainy/fat32.htm

 
 
-- 
Mit freundlichen Grüßen

Heinz Sporn

SPORN it-freelancing

Mobile:  ++43 (0)699 / 127 827 07
Email:   [EMAIL PROTECTED]
 [EMAIL PROTECTED]
Website: http://www.sporn-it.com
Snail:   Steyrer Str. 20
 A-4540 Bad Hall
 Austria / Europe

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Shouldn't grub setup overwrite lilo in MBR

2005-12-21 Thread Neil Bothwick
On Wed, 21 Dec 2005 11:22:26 +0100, Heinz Sporn wrote:

  That will zero the whole disk. Even adding count=1 will still wipe the
  partition table. I think the command you want is 
  dd if=/dev/zero of=/dev/dha bs=466 count=1
 
 bs=466 will make your disk unusable as well. It should be 446 and not
 466.

Good catch. I knew it was 446, that was a typo, the most insidious of
weapons of mass destruction :(


-- 
Neil Bothwick

The facts, although interesting, are irrelevant.


signature.asc
Description: PGP signature


Re: [gentoo-user] Shouldn't grub setup overwrite lilo in MBR

2005-12-21 Thread Shawn Singh
Heinz,

Thanks for that link.

ShawnOn 12/21/05, Neil Bothwick [EMAIL PROTECTED] wrote:
On Wed, 21 Dec 2005 11:22:26 +0100, Heinz Sporn wrote:  That will zero the whole disk. Even adding count=1 will still wipe the  partition table. I think the command you want is  dd if=/dev/zero of=/dev/dha bs=466 count=1
 bs=466 will make your disk unusable as well. It should be 446 and not 466.Good catch. I knew it was 446, that was a typo, the most insidious ofweapons of mass destruction :(
--Neil BothwickThe facts, although interesting, are irrelevant.-- Shawn Singh


[gentoo-user] Shouldn't grub setup overwrite lilo in MBR

2005-12-20 Thread reader
I thought I'd try once more to get grub working in my prefered
resolution.  I've been able to get what I want with lilo right along.

I just assumed grub would overwrite lilo code in the MBR but I'm
finding it does not.  It cripples lilo boot so that it doesn't work
but I still get the dreaded ..`Li..' hang on boot.

Just for the record, shouldn't grub setup (hd0,0) overwrite any other
code in MBR?  If it does not what does it mean?

Grub would show a failure if it did not find /boot/grub and the files
under there when setup is run so it seems to succeed.  I'm sure lilo
is aimed at hda as well and can see it in lilo.conf, further if it
were running from another parition it wouldn't get crippled from
running grub against hda... right?

So I guess I need to zero out the mbr somehow.  I faintly remember
some dd syntax involving 0 (zero) but can't find it now to refresh my
memory. 

 dd if=/?? of=?? -b 512? with the right stuff in there can clean the
 mbr right?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Shouldn't grub setup overwrite lilo in MBR

2005-12-20 Thread Boyd Stephen Smith Jr.
On Tuesday 20 December 2005 17:21, [EMAIL PROTECTED] wrote about 
'[gentoo-user]  Shouldn't grub setup overwrite lilo in MBR':
 Just for the record, shouldn't grub setup (hd0,0) overwrite any other
 code in MBR?  If it does not what does it mean?

It think you really mean just (hd0).

-- 
Boyd Stephen Smith Jr.
[EMAIL PROTECTED]
ICQ: 514984 YM/AIM: DaTwinkDaddy
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Shouldn't grub setup overwrite lilo in MBR

2005-12-20 Thread Richard Fish
On 12/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I thought I'd try once more to get grub working in my prefered
 resolution.  I've been able to get what I want with lilo right along.

 I just assumed grub would overwrite lilo code in the MBR but I'm
 finding it does not.  It cripples lilo boot so that it doesn't work
 but I still get the dreaded ..`Li..' hang on boot.

 Just for the record, shouldn't grub setup (hd0,0) overwrite any other
 code in MBR?  If it does not what does it mean?

No, it says to install the boot code into the first partition of the
disk, not the mbr.  This would be useful if you use a microsoft mbr
(fdisk /mbr, or fixboot from a recovery console), which looks for the
'active' partition to determine which OS to load.

You want setup (hd0)

-Richard

-- 
gentoo-user@gentoo.org mailing list