Topic: [Solved] Help with re-installing grub
Hi guys I have been using a mbp for a couple years now, dual booting with bootcamp win 7 when I need to. Before that I built a hackintosh, and before that I used to use Ubuntu Ubuntu 4.10 (i'm talking waaay back). Anyways, I recently came across an old HP Dv1000 laptop and figured I'd put it to use with a small linux distro. I could Crunchbang and the rest is history.
Anyways, I am going traveling and figured it'd be the perfect computer to bring overseas in case it gets jacked or breaks, no real loss. I love crunchbang, but my buddy who is traveling with me needs windows 7. so i did some research and found I could install windows 7 with xp drivers and whatnot and so i did. I made sure to use gparted to resize the original 2 partition (100gigs SDA1 plus a small swap partition). I formatted the newly created unallocated partition fat32 so the windows installer could see it, and reformatted the partition in windows installer, and continued with installation. Mind you I'd been running a single OS configuration for over a month (crunchbang) and I know from past experience with old ubuntu that its easy to install win 7 first and Linux after so Grub can account for both OS's. Anyways, I figured i could rewrite grub after all was done. Only, a lot has changed it seems. I really need to brush up on my terminal usage, its been to long.
So now I can boot to windows 7 and i even edited the windows 7 bootmanager with easybcd to open the linux partition in the boot menu, but when i select it it just hangs with the cursor flashing...
I decided i'd try reinstalling grub on the SDA1 partition with my crunchbang on it. So i booted a live crunchbang, and opened up terminal and did this:
sudo fdisk -lI find my linux partiton is SDA1
so then I type:
sudo mount /dev/sda1 /mntThat mounts my hd linux partiton, everything so far is good!
now it is time to reinstall grub on SDA1, right?
sudo grub-install --root-directory=/mnt /dev/sdathis spits back something saying" grub-install not found" or doesnt exist...
Am I missing something here? i dont mind if grub becomes my boot manager, infact i'd prefer that... just i cant understand why i cant reinstall grub with a command, am I doing something wrong?
Last edited by mikeosoft (2012-02-04 04:31:37)