Operating System - Linux
1752722 Members
7341 Online
108789 Solutions
New Discussion юеВ

Re: howto remove GRUB from the partition using fdisk ?

 
SOLVED
Go to solution
'chris'
Super Advisor

howto remove GRUB from the partition using fdisk ?

hi

howto remove GRUB from the unix partition, without damage the partition (partition table) using linux fdisk ?

kind regards
chris
17 REPLIES 17
xyko_1
Esteemed Contributor

Re: howto remove GRUB from the partition using fdisk ?

Hi Chris,

What you want to do ? If you remove grub from mbr you will not be able to boot your computer unless you have a bootdisk or using rescue mode from de installation CD.

waiting for more information.
xyko
'chris'
Super Advisor

Re: howto remove GRUB from the partition using fdisk ?

sorry, the GRUB was installed on the wrong unix partition and I don't need GRUB in my case.

I use only NT-Bootloader from WIN2000 installed on the primary hard disk.

to boot linux and unix with NT-Bootloader I use bootpart:
http://www.winimage.com/bootpart.htm

this combination works very well !

my problem is to remove GRUB from the linux partition /dev/hdb5
and I'm not worried about booting.

Andrey Dmitriev
New Member

Re: howto remove GRUB from the partition using fdisk ?

If you use windows start "fdisk /mbr"
Huc_1
Honored Contributor

Re: howto remove GRUB from the partition using fdisk ?

Beware I am not sure I understant this correctly ! , but if you dont need Grub and are sure you do not use it or want it then you could backup the file from /boot/grub to some where safe (to be delete when your sure this will not be needed ... better safe then sorry)

If you want to get uninstall grub from system
fist do a
#rpm -ql grub
just to see what is installed where

#rpm -e grub
!!! will erase it

This should do it , the quetion is do you realy need to do this grub does not use very many blocks... and if its not in the way why bother or have not understood this ?

Jean-Pierre
Smile I will feel the difference
Andrew Cowan
Honored Contributor

Re: howto remove GRUB from the partition using fdisk ?

Chris,

Is "hd5" also your root partition or do you have a separate "/boot"? If this is the case and you use a tool such as Partition Magic to delete the disk partition and reclaim the space, your partition numbering in "/etc/fstab" will then be wrong and the system will fail to boot. In this case you can:

(AFTER DELETING) boot into single-user using the installation CD-ROM and edit "/etc/fstab"

or

(BEFORE DELETING) edit "/etc/fstab" and move all your slices down one. E.g. "/ = /dev/hda6" becomes "/ = /dev/hda5".

This operation would be largely a waste of time unless you need to reclaim a partition to use elsewhere, as "/boot" is generally very small.
David Timms
Frequent Advisor

Re: howto remove GRUB from the partition using fdisk ?

If it's still unclear from previous responses,
can you post: [mod hd? to appropriate disk)
/sbin/fdisk -l /dev/hda

if grub is installed in the MBR, then
you need to replace the mbr with a suitable
alternate one: eg from XP: fdisk /mbr
[I don't know if this can be done from linux - although maybe its possible to use dd to write a suitable 512 bytes ???]

if grub is installed on a partition, then ...
i'm not sure!

dave.
Andrew Cowan
Honored Contributor

Re: howto remove GRUB from the partition using fdisk ?

Maybe I'm reading this wrong but Chris said:

"howto remove GRUB from the unix partition, without damage the partition (partition table) using linux fdisk ?"

He never mentioned the MBR so I assume he means remove a disk slice because he has grub installed in the root partition?

Chris can you please clarify this?
'chris'
Super Advisor

Re: howto remove GRUB from the partition using fdisk ?

I don't mean MBR and don't want any changes on MBR,
my problem is to remove GRUB from the unix slice.

greetings
chris
Andrew Cowan
Honored Contributor

Re: howto remove GRUB from the partition using fdisk ?

When you boot Linux does it basically appear to boot twice because it uses your utility then starts Grub, and so you get two boot menus, and thus its just an inconvenience, or is Grub causing the boot to fail?

Is it possible that you can talk us through your boot procedure/experience?

When you mention fdisk it makes me think that you have a specific slice that you want to remove?