![](https://seccdn.libravatar.org/avatar/816bc5ae4aa065e5fd96d7837bdfa4e1.jpg?s=120&d=mm&r=g)
I knew from earlier versions of openSUSE that it was possible to reset the MBR, but I lost how to do that. Can anybody tell me? Thanks, André den Oudsten -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/504ea95a4576e6592281bc9e2e98204f.jpg?s=120&d=mm&r=g)
On Tue, 24 Jun 2008 20:09:17 +0200
"A. den Oudsten"
I knew from earlier versions of openSUSE that it was possible to reset the MBR, but I lost how to do that. Can anybody tell me?
The dd(1) command can be used to do that.
This zeroes only the MBR
dd if=/dev/zero of=/dev/sda bs=446 count=1
This zeroes the MBR and partition table.
dd if=/dev/zero of=/dev/sda bs=512 count=1
If you are running GRUB, and want GRUB to do it, you can use
Yast/System/bootloader.
If you use LILO, then the command /sbin/lilo will rewrite the MBR.
--
Jerry Feldman
![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-06-24 at 20:09 +0200, A. den Oudsten wrote:
I knew from earlier versions of openSUSE that it was possible to reset the MBR, but I lost how to do that. Can anybody tell me? Thanks,
I think Yast, bootloader, write generic mbr or something like that, hidden somewhere. I mean that it moves around from version to version. But, if grub is already saved in the MBR, then modify a global setting like the timeout, and commit the change. This forces grub to be written again. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIb3GltTMYHG2NR9URAilkAJ43Jo1lfPxhbll1waPUHxWDPpY62gCZAdVR Mog3RyletXz5Ev6XaSPYeXk= =9Hog -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
A. den Oudsten
-
Carlos E. R.
-
Jerry Feldman