You are not logged in.

#1 2010-03-30 10:43:36

bgalakazam
Arch Linux f@h Team Member
From: California, USA
Registered: 2008-09-01
Posts: 76

[solved] Messed up MBR, help :)

Sooo... I did something rather stupid. Long story short, I reinstalled Windows 7 on my other patition and I lost GRUB. Why did I reinstall? Because the Arch partition was the main one where the bootloader was located so I couldn't get in Windows 7.

Here is my configuration:

/dev/sda1  ~20GB Arch partition (not seen in windows 7)
/dev/sda2  ~70GB NTFS Windows 7
/dev/sda3  2GB swap

I can't install GRUB from the Arch installation image as it says /dev/sda (tried /dev/hda as well) not found. FDISK does find it, though and sees everything.

I used 1 hard drive, divided in two. What was C: is now /dev/sda1, what was D: (now is C: in Windows 7) is /dev/sda2.

How can I get GRUB back without reinstalling Arch (not that I have anything important, but don't want to go through hassle again)?

Cheers.

Last edited by bgalakazam (2010-03-30 23:05:58)

Offline

#2 2010-03-30 11:00:49

chao06
Member
Registered: 2009-10-13
Posts: 12

Re: [solved] Messed up MBR, help :)

have you tried 'grub-install /dev/sda'?


Acer Aspire One AOA150-1329 RT running Arch/Ubuntu 9.10
Dell Inspiron 6000 running Ubuntu 9.10
Dell Dimension 2100 running Arch
Dell Optiplex SX270 running nothing at the moment

Offline

#3 2010-03-30 15:37:45

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved] Messed up MBR, help :)

which grub? (edit: grub 1 or 2?)

did you try http://wiki.archlinux.org/index.php/GRU … stallation ?

Last edited by fsckd (2010-03-30 15:41:50)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#4 2010-03-30 19:51:29

bgalakazam
Arch Linux f@h Team Member
From: California, USA
Registered: 2008-09-01
Posts: 76

Re: [solved] Messed up MBR, help :)

chao06 wrote:

have you tried 'grub-install /dev/sda'?

bgalakazam wrote:

I can't install GRUB from the Arch installation image as it says /dev/sda (tried /dev/hda as well) not found.

fsckd wrote:

which grub? (edit: grub 1 or 2?)

did you try http://wiki.archlinux.org/index.php/GRU … stallation ?

GRUB 1 from the installation image.


setup (hd0) cannot find the drive.
setup (ho0,0) works, but it's pointless as Windows 7 holds the MBR.
grub-install /dev/sda doesn't work as it says not found.

I think I will just reinstall Arch, it's my fault that I didn't set up Windows properly before installing Arch.

Any other helpful thoughts?

Offline

Board footer

Powered by FluxBB