You are not logged in.

#1 2011-01-02 11:45:07

whitetimer
Member
Registered: 2010-05-23
Posts: 207

[ SOLVED ] Still not understanding how to reinstall Grub ?

Hi All

I currently have a dual boot windows 7 & Arch system and i have to wipe the Windows partition and reinstall.  But i am still confused as to how to reinstall Grub once i have reinstalled windows 7.  The wiki post is not longer available and have not found anything that explains what i need to do ... So can anyone point me in the right direction or explain what i need to do ?

Many Thanks

Last edited by whitetimer (2011-01-03 15:48:49)

Offline

#2 2011-01-02 11:51:24

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

I think the easiest solution is to chroot into your arch install after you finish with the windows install. Then it should be fairly easy to reinstall grub to the mbr.

For chroot check out https://wiki.archlinux.org/index.php/Chroot
And for grub this should help you on the way: https://wiki.archlinux.org/index.php/Grub

Hope this helps.


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#3 2011-01-02 13:10:14

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

To be clear, you should use the live CD to boot the system if you are unable to boot into Arch after Windows rapes your MBR.

*does a quick search*
This should help: https://bbs.archlinux.org/viewtopic.php?pid=88002


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2011-01-02 14:15:13

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

Offline

#5 2011-01-02 15:05:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

https://wiki.archlinux.org/index.php/In … Fdev_nodes

Feel free to use my setup_chroot script after you boot from a live CD to do it:

https://github.com/graysky2/configs/tre … ul_scripts


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2011-01-02 15:48:55

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

Thanks for the advice ... The LiveCD, do you mean the normal 'Install from Net iso'  as i cant seem to see the LiveCD for download ?

Offline

#7 2011-01-02 15:58:58

darkbeanies
Member
Registered: 2009-01-14
Posts: 142

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

# FLAWLESS GRUB REINSTALL GUIDE BY DARKBEANIES ASSUMING YOU USE EXT3 FILESYSTEM

# Boot arch install cd and login as root, and type the following commands in order, replacing X and Y values with the number of the partition/disk(MAKE SURE YOU GET THIS RIGHT, ASK IF YOU DON'T KNOW)

cd /
mount -t ext3   /dev/sdaX /mnt
mount -t proc   proc      /mnt/proc
mount -t sysfs  sys       /mnt/sys
mount -o bind   /dev      /mnt/dev
chroot /mnt /bin/bash

#------------------------------------------------------------------------
#IMPORTANT-ONLY IF YOU HAVE SEPARATE BOOT PARTITION

mount -t ext3   /dev/sdaX  /boot

#------------------------------------------

#Then try:

grub-install /dev/sdaX

# -WHEN- this fails type this:

grub
root (hdY,X)
setup (hdY)

#Then reboot:

cd /
umount -a
exit
cd /
umount -a
reboot

#That's it!

Why oh why was this page removed from the wiki I do not know...

Live CDs of various flavours available HERE: (Don't you have the CD or whatever you used to install to begin with?)

http://www.archlinux.org/download/

Last edited by darkbeanies (2011-01-02 17:24:55)

Offline

#8 2011-01-02 16:46:43

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

@ darkbeanies

Yes i do, i just wanted to clarify that the installation cd was infact the LiveCD

Many Thanks

Offline

#9 2011-01-02 17:01:22

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

@whitetimer
Yes, both the net and core installation CDs are live CDs.

@darkbeanies
Please use code tags for code.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2011-01-03 14:56:33

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: [ SOLVED ] Still not understanding how to reinstall Grub ?

All Sorted

Many Thanks

Last edited by whitetimer (2011-01-03 15:48:26)

Offline

Board footer

Powered by FluxBB