- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- howto remove GRUB from the partition using fdisk ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 08:11 AM
тАО01-17-2005 08:11 AM
howto remove GRUB from the unix partition, without damage the partition (partition table) using linux fdisk ?
kind regards
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 11:33 AM
тАО01-17-2005 11:33 AM
Re: howto remove GRUB from the partition using fdisk ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 11:41 AM
тАО01-17-2005 11:41 AM
Re: howto remove GRUB from the partition using fdisk ?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 05:54 PM
тАО01-17-2005 05:54 PM
Re: howto remove GRUB from the partition using fdisk ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 06:20 PM
тАО01-17-2005 06:20 PM
Re: howto remove GRUB from the partition using fdisk ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 06:45 PM
тАО01-17-2005 06:45 PM
Re: howto remove GRUB from the partition using fdisk ?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 09:48 PM
тАО01-17-2005 09:48 PM
Re: howto remove GRUB from the partition using fdisk ?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 10:13 PM
тАО01-17-2005 10:13 PM
Re: howto remove GRUB from the partition using fdisk ?
"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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 02:15 AM
тАО01-18-2005 02:15 AM
Re: howto remove GRUB from the partition using fdisk ?
my problem is to remove GRUB from the unix slice.
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 02:34 AM
тАО01-18-2005 02:34 AM
Re: howto remove GRUB from the partition using fdisk ?
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 06:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 06:22 AM
тАО01-18-2005 06:22 AM
Re: howto remove GRUB from the partition using fdisk ?
open your linux pc in CLI mode and type
dd if=/dev/zero of=/dev/hda bs=400 count=1
then reboot your pc
i hope u got ur dentination.
ayion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2005 11:49 AM
тАО01-20-2005 11:49 AM
Re: howto remove GRUB from the partition using fdisk ?
dd if=/dev/zero of=/dev/hda bs=400 count=1
that's good idea !
I think, fdisk is not a good tool to do that, what I want.
fdisk cannot selectively delete only parts of a partition !
in this partition I have important data.
anyway I saved everything using freesbie.
maybe other solution is to use /dev/random, but I have never used before.
Knows someone, how it should work using /dev/random ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2005 06:38 PM
тАО01-20-2005 06:38 PM
Re: howto remove GRUB from the partition using fdisk ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 08:02 PM
тАО02-01-2005 08:02 PM
Re: howto remove GRUB from the partition using fdisk ?
dd if=/dev/zero of=/dev/hda bs=446 count=1
this will not overwrite the partition table !
the partition table is kept in the last 66 bytes of the MBR.
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 11:40 PM
тАО02-01-2005 11:40 PM
Re: howto remove GRUB from the partition using fdisk ?
Maybe a:
dd if=/dev/hda of=backupmbr bs=446 count=1
will be good before
dd if=/dev/zero of=/dev/hda bs=446 count=1
So if something goes wrong, you can boot from a rescue disc and do:
dd if=backupmbr of=/dev/hda bs=446 count=1
to restore the parition table.(replace backupmbr with yours favorite file name)
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 11:47 PM
тАО02-01-2005 11:47 PM
Re: howto remove GRUB from the partition using fdisk ?
but I don't have any MBR BACKUPS !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2005 04:26 PM
тАО03-16-2005 04:26 PM
Re: howto remove GRUB from the partition using fdisk ?
I sincerely hope you didn't follow any of the advice given so far, especially the stuff about overwriting the first xxx bytes of /dev/hda!
Folks, he said, several times, that grub is installed on a PARTITION. It is NOT installed on the Master boot record. In fact, it's not even on drive hda at all.
The difference is if you went into grub and said
setup (hd0) # Installs to /dev/hda, like everyone has been assuming
and
setup (hd1,4) # Installs to /dev/hdb5, which is what Chris said.
Chris, I found this thread in the first place because I'm looking for the same info.
If you use dd on anything the output file (of = parameter) will be /dev/hdb5, not /dev/hda.
What I DON'T know right now is whether copying 400, 446 or 512 bytes of zeros will mess up your partition.
Copying 512 bytes will be the entire first sector of the partition, and will definitely get rid of grub on it. It may also screw up your partition badly. You haven't said what you have on it, how hard it would be to recover, etc.
What effects are you seeing from this?
In my own case, I deliberately installed it on hda7, because I already had a different grub installed on hda. Long story short, it now wants to double boot, once from hda, then from hda7.
I have stuff I want to keep on hda7, so I'm a little leery of trying anything drastic.
If I find an answer or try something drastic and it works, I'll post a followup.
Hope this helps,
Charles Lacour