You are not logged in.

#1 2009-08-16 11:32:26

b0uncyfr0
Member
Registered: 2008-05-11
Posts: 140

GRUB has been wiped..(Solved)..

GRUB was wiped by Win 7. Totally forgot about it when i was installing. I have tried to restore it myself but im just getting more confused. Right now the Win 7 bootloader is working fine but i want to get into Arch soon.

I have tried the stuff on the arch wiki -Reinstalling GRUB, but its not working . I keep getting an error 17 "Cannot mount this partition". All i can tell so far is this:

1) Its the second partition in my boottable (/boot). So that makes it (hd0,1) right? (in accordance to grub)
2) Its dev name is sda4
3) I only have one hard drive.

I have used the arch 2009.02 images to bootup the live system and done { grub - root (hd0) - setup (hd0,1) }. This gives no stage1 files found. Could this be because both my /boot and / are ext4?

Can someone please help me out. I really need to get Arch running again.

Last edited by b0uncyfr0 (2009-08-16 12:17:58)

Offline

#2 2009-08-16 11:58:07

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

Re: GRUB has been wiped..(Solved)..

If you're certain the partition is the #2 one, it should be /dev/sda2 not /dev/sda4 - your partition table is screwed up.
Do this:

Boot w/ the arch cd, log in as root, then

# fdisk /dev/sda

Once you're in fdisk, enter e[x]tra/expert mode, [f]ix the partition order, then [w]rite the table and exit. You'll do this by three keys, X, F, W. Now exit fdisk.

Now reinstall grub on your MBR:

# grub
grub> root (hd0,1)
grub> setup (hd0)
grub> quit

You'll need to add a chainloader line to your /grub/menu.lst to get into windows 7...


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

Offline

#3 2009-08-16 12:17:39

b0uncyfr0
Member
Registered: 2008-05-11
Posts: 140

Re: GRUB has been wiped..(Solved)..

Thank you. It worked wonderfully. lol

Offline

#4 2009-08-16 15:36:42

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

Re: GRUB has been wiped..(Solved)..

Glad it worked smile


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

Offline

Board footer

Powered by FluxBB