You are not logged in.

#1 2008-10-16 20:43:18

venky80
Member
Registered: 2007-05-13
Posts: 996

removing grub from a specific partition

I have vista in /dev/sda1 and arch on /dev/sda3

my vista boot loader wiped my grub from MBR so when i did the following in grub pompt

grub> find /boot/grub/stage1
(hd0,2)
grub> root (hd0,2)
grub> setup (hd0,2) this was a mistake coz i wanted setup (hd0)

how can i delete grub from my /dev/sda3 and instead have it in my MBR

Thanks


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#2 2008-10-16 21:35:13

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 4,705
Website

Re: removing grub from a specific partition

This *should* do it. Of course, it may completely screw it.

dd if=/dev/zero of=/dev/sda2 bs=446 count=1

http://www.cyberciti.biz/faq/linux-how- … tall-grub/

Last edited by fukawi2 (2008-10-16 21:35:26)

Offline

#3 2008-10-16 21:44:15

venky80
Member
Registered: 2007-05-13
Posts: 996

Re: removing grub from a specific partition

well that does not help wink can someone confirm is it will not screw my root partition?


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#4 2008-10-16 21:57:55

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 4,705
Website

Re: removing grub from a specific partition

That's just a standard disclaimer tongue

If you want a bit of a safe-guard, make a backup of the bytes you're overwriting first to a USB key or another partition:

dd if=/dev/sda2 of=/mnt/usb-key bs=446 count=1

Then if it does screw things up, restore that part of the disk with:

dd if=/mnt/usb-key of=/dev/sda2 bs=446 count=1

Offline

Board footer

Powered by FluxBB