You are not logged in.

#1 2009-10-31 02:24:48

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Computer won't boot after windows 7 install.... :( [Solved]

I have 2 hard drives. The first drive is my main arch linux install. The second drive I use to install various operating systems. My school was selling windows7 for $30...I couldn't resist the cheap price...now I'm paying for it ><

I unplugged the hard drive with my arch linux install from my computer. (sda) Then installed windows 7 on the second hard drive. I reattached the first hard drive to my computer. (this was so i could avoid having to re-install grub)

My computer would not boot. I decided to install linux mint -- something I was going to do anyway -- that way I could boot into arch linux and fix things. Mint installed fine. But my computer STILL won't boot. I get grub error 22. What's up with that? Is this something to do with windows7?

Hard Drives:

/dev/sda1   ext2  /boot  100 MB
/dev/sda2   extended
    /dev/sda5  ext3 arch /  130 GB
/dev/sda3  ext3  arch /home  166 GB
/dev/sda4  swap  1.72 GB

/dev/sdb1  ntfs  windows7  65 GB
/dev/sdb4  ext3  mint / 19GB
/dev/sdb2  swap  1GB
/dev/sdb3  ext3  media  900 GB

Should I install grub to the MBR?

I checked to make sure that nothing in my arch linux install was erased using the arch install cd... I really need to get this fixed before classes on monday so any help would be appreciated.

Last edited by Meskarune (2009-10-31 04:26:39)


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#2 2009-10-31 02:34:17

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: Computer won't boot after windows 7 install.... :( [Solved]

yeah, i think windows installs its own bootloader to mbr, that's why i remember always having to install windows on it's own main 1st partition first, then install linux on a secondary drive/partition and overwrite windows mbr boot loader afterwards, so i think you will have to install grub to mbr.


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#3 2009-10-31 02:42:13

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Computer won't boot after windows 7 install.... :( [Solved]

Typically, the procedure is to install Windows first and then Linux second. If you can't do that you will have to reinstall your linux bootloader to overwrite the Windows loader and then chainload your Windows install.

Offline

#4 2009-10-31 02:44:46

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Computer won't boot after windows 7 install.... :( [Solved]

Reinstall grub to mbr. Do it though a live cd / through a chrooted arch / through the arch installation cd

Offline

#5 2009-10-31 02:51:41

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: Computer won't boot after windows 7 install.... :( [Solved]

Installing grub to the MBR worked. Thanks. Now I have no excuse to not write my essay... tongue

@IBertus  I realize that. But I've run arch linux for a little over a year now and really don't want to reinstall. Also I just recently got windows 7. I unplugged the hard drive that arch linux was installed on when I installed windows. The last time I installed windows it was windows xp and I did the same thing -- unplugged the hard drive-- and had no problems, my arch linux grub was unchanged after I plugged the hard drive back in. But the windows 7 install was different, though I am not sure why.

PS. I heard that windows will override the MBR when it updates... so consequently it is bad to install grub to the MBR in a dual boot system. Will I have to be reinstalling grub all the time?


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#6 2009-10-31 02:59:41

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

Re: Computer won't boot after windows 7 install.... :( [Solved]

You should keep the mbr on the same disk as Arch. You could then install anything to the second disk as if it were the main disk (after setting the boot order in bios or removing/disabling the first disk), reset your settings and just chainload the second disk from grub on the first. Each disk gets its own mbr and you don't have to deal with Windows' stupidity.

Then again, when you buy Windows, I suppose you're looking for the authentic Windows experience.


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

Offline

#7 2009-10-31 03:04:09

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: Computer won't boot after windows 7 install.... :( [Solved]

Xyne wrote:

Then again, when you buy Windows, I suppose you're looking for the authentic Windows experience.

big_smile

I was going to say, even at $30 you still managed to get the full windows experience at first boot!

Meskarune wrote:

PS. I heard that windows will override the MBR when it updates... so consequently it is bad to install grub to the MBR in a dual boot system. Will I have to be reinstalling grub all the time?

God i hope not.  just stay away from windows if that happens big_smile
just thinking about tihs is giving me headaches.

Last edited by toxygen (2009-10-31 03:06:12)


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#8 2009-10-31 03:19:14

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

Re: Computer won't boot after windows 7 install.... :( [Solved]

Why not run Windows in a vm? That's what I'd do if I had the hardware.


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

Offline

#9 2009-10-31 04:03:14

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: Computer won't boot after windows 7 install.... :( [Solved]

@fsckd I do run windows in a vm big_smile I have windows xp installed under arch and use it for japanese homework primarily. I installed windows 7 so I can play some newer games. Bioshock looks fantastic...and mirror's edge...

Also I need to stay on top of how the new versions of windows works. That way I can keep my job as a computer lab admin... big_smile


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

Board footer

Powered by FluxBB