You are not logged in.

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

venky80
Member
Registered: 2007-05-13
Posts: 1,002

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


Acer Aspire V5-573P Antergos KDE

Offline

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

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
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: 1,002

Re: removing grub from a specific partition

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


Acer Aspire V5-573P Antergos KDE

Offline

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

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
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