[opensuse] deleting grub as boot manager on the hard disk (error 22)
Hi, I installed the boot manager grub with Suse 10.0 some years ago and after installing Suse 11.0 with the live cd recently the system could not be started without the cd. I partitioned the hard disk again, even did it with windows xp , and also I installed Windows XP again - nothing helped. I installed Suse 11.0 with the live cd and in Yast I wanted to delete the boot manager which is no option there. I tried to find anything in the partition setup as well. I can´t get the grub manager deleted. I have tried several things which I found on the internet like using fdisk with the dos boot floopy, fdisk mbr, with the recovery disk.. I used several cd´s with different programms to delete the hard disk but nothing helped. Bios doesn´t give the option to delete the boot manager. How can I delete grub? I need to install later Win xp and on the same hard disk Suse 11.0 thanks for your help Francis -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 24 July 2008 15:15:47, Franz Preihs wrote:
Hi, I installed the boot manager grub with Suse 10.0 some years ago and after installing Suse 11.0 with the live cd recently the system could not be started without the cd.
Maybe stupid question, anyway: did you tell Yast to install the bootloader into the MBR? If not it cannot boot from there... If you have a virgin disk for a dual boot system, first install M$-stuff then Linux on top of it, because Linux cares for pre-installed systems while M$ doesn't. But youll explicitely have to say that you want the bootloader saved into the MBR - here on 10.3 it's in a separate tab of the bootloader configuration dialog - don't know about 11... hth Daniel -- Daniel Bauer photographer Basel Barcelona professional photography: http://www.daniel-bauer.com erotic art photos: http://www.bauer-nudes.com Madagascar special: http://www.fotograf-basel.ch/madagascar/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, Jul 24, 2008 at 6:15 AM, Franz Preihs
Hi, I installed the boot manager grub with Suse 10.0 some years ago and after installing Suse 11.0 with the live cd recently the system could not be started without the cd. I partitioned the hard disk again, even did it with windows xp , and also I installed Windows XP again - nothing helped. I installed Suse 11.0 with the live cd and in Yast I wanted to delete the boot manager which is no option there. I tried to find anything in the partition setup as well. I can´t get the grub manager deleted. I have tried several things which I found on the internet like using fdisk with the dos boot floopy, fdisk mbr, with the recovery disk.. I used several cd´s with different programms to delete the hard disk but nothing helped. Bios doesn´t give the option to delete the boot manager.
How can I delete grub?
Does your machine have anything in the bios about hard drive protection, boot sector locking, etc? When you grab a dos boot disk (or windows bootable CD) and run bootdisk /mbr what exactly are the error messages? Are you sure there is only one disk in this machine and you are not whacking the wrong disk? -- ----------JSA--------- There are 10 kinds of people in this world, those that can read binary and those that can't. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi,
I wanted to format the complete harddisk.
I deleted everything but the grub boot manager in the MBR is still
there. I couldn't delete it.
I overwrote MBR already with windows recovery cd but it didn't help.
Is there a possibility to overwrite the MBR?
2008/7/24, John Andersen
On Thu, Jul 24, 2008 at 6:15 AM, Franz Preihs
wrote: Hi, I installed the boot manager grub with Suse 10.0 some years ago and after installing Suse 11.0 with the live cd recently the system could not be started without the cd. I partitioned the hard disk again, even did it with windows xp , and also I installed Windows XP again - nothing helped. I installed Suse 11.0 with the live cd and in Yast I wanted to delete the boot manager which is no option there. I tried to find anything in the partition setup as well. I can´t get the grub manager deleted. I have tried several things which I found on the internet like using fdisk with the dos boot floopy, fdisk mbr, with the recovery disk.. I used several cd´s with different programms to delete the hard disk but nothing helped. Bios doesn´t give the option to delete the boot manager.
How can I delete grub?
Does your machine have anything in the bios about hard drive protection, boot sector locking, etc?
When you grab a dos boot disk (or windows bootable CD) and run bootdisk /mbr what exactly are the error messages?
Are you sure there is only one disk in this machine and you are not whacking the wrong disk?
I will try tomorrow if it helps. thanks Francis -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 24 July 2008 05:04:31 pm Franz Preihs wrote:
Hi, I wanted to format the complete harddisk. I deleted everything but the grub boot manager in the MBR is still there. I couldn't delete it. I overwrote MBR already with windows recovery cd but it didn't help. Is there a possibility to overwrite the MBR?
dd if=/dev/zero of=/dev/sda bs=512 count=1 should fill with zeroes first 512 bytes of hard disk. Note it is /dev/sda whole hard disk, not some partition. If you see any errors post them. -- Regards, Rajko http://en.opensuse.org/Portal needs helpful hands. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Thu, 24 Jul 2008, Rajko M. wrote:
On Thursday 24 July 2008 05:04:31 pm Franz Preihs wrote:
Hi, I wanted to format the complete harddisk. I deleted everything but the grub boot manager in the MBR is still there. I couldn't delete it. I overwrote MBR already with windows recovery cd but it didn't help. Is there a possibility to overwrite the MBR?
dd if=/dev/zero of=/dev/sda bs=512 count=1 should fill with zeroes first 512 bytes of hard disk. Note it is /dev/sda whole hard disk, not some partition.
Watch it! That also deletes all primary partitions, including an extended partition and thus also all logical partitions. To only delete the bootcode, use: dd if=/dev/zero of=/dev/sda bs=1 count=446 That leaves the partitiontable intact. Or use 'fixmbr' from a WinNT/XP/Vista Recovery Console. Or just use 'install-mbr' (e.g. from a KNOPPIX CD/DVD), which installs a XP compatible MBR. I don't have the exact syntax in memory, but it's IIRC something like 'install-mbr -p 1 -e 1 /dev/sda' to install a MBR that automatically (and only) boots a WinNT/XP/Vista on /dev/sda1. -dnh -- Max, do you realize, that you just hooked up with your ex-girlfriend, who's the ex-girlfriend of your other ex-girlfriend? -- "Tommy" [from www.striptease.com] -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 24 July 2008 06:49:39 pm David Haller wrote:
Hello,
On Thu, 24 Jul 2008, Rajko M. wrote:
On Thursday 24 July 2008 05:04:31 pm Franz Preihs wrote:
Hi, I wanted to format the complete harddisk. I deleted everything but the grub boot manager in the MBR is still there. I couldn't delete it. I overwrote MBR already with windows recovery cd but it didn't help. Is there a possibility to overwrite the MBR?
dd if=/dev/zero of=/dev/sda bs=512 count=1 should fill with zeroes first 512 bytes of hard disk. Note it is /dev/sda whole hard disk, not some partition.
Watch it!
That also deletes all primary partitions, including an extended partition and thus also all logical partitions.
To only delete the bootcode, use:
dd if=/dev/zero of=/dev/sda bs=1 count=446
With Vista is: dd if=/dev/zero of=/dev/sda bs=1 count=440 otherwise Vista will not boot.
That leaves the partitiontable intact.
Though I have answered the question, not assuming that there is another hard disk in the system, and he wants to format whole hard disk so preservation of partition table is not necessary.
Or use 'fixmbr' from a WinNT/XP/Vista Recovery Console.
It seems that was already done without result, which gives Carlos idea that there are 2 disks and OP is trying everything on wrong one very good chance to be true.
Or just use 'install-mbr' (e.g. from a KNOPPIX CD/DVD), which installs a XP compatible MBR. I don't have the exact syntax in memory, but it's IIRC something like 'install-mbr -p 1 -e 1 /dev/sda' to install a MBR that automatically (and only) boots a WinNT/XP/Vista on /dev/sda1.
-dnh
-- Regards, Rajko http://en.opensuse.org/Portal needs helpful hands. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2008-07-24 at 18:04 -0500, Rajko M. wrote:
On Thursday 24 July 2008 05:04:31 pm Franz Preihs wrote:
Hi, I wanted to format the complete harddisk. I deleted everything but the grub boot manager in the MBR is still there. I couldn't delete it. I overwrote MBR already with windows recovery cd but it didn't help. Is there a possibility to overwrite the MBR?
dd if=/dev/zero of=/dev/sda bs=512 count=1 should fill with zeroes first 512 bytes of hard disk. Note it is /dev/sda whole hard disk, not some partition. If you see any errors post them.
Notice that this also deletes the partition table... You have to use an offset, but I can't find the note I made of this. However, I think the OP is not booting the right disk. The bios may be booting from a different disk than he thinks, or he is trying to erase grub on a disk that is not the one that boots. Here: http://en.opensuse.org/SDB:Howto_repair_boot_manager_Grub_on_opensuse_10.3 there are instructions and links. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIiR4UtTMYHG2NR9URAiPeAJ422sVPH6CMdZPM5Hv1JqqaiBTzMwCfdT1J 0t/xMr7ufenXriwV6v7KfZc= =fmMd -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Carlos E. R.
-
Daniel Bauer
-
David Haller
-
Franz Preihs
-
John Andersen
-
Rajko M.