LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Crunchbang, Grub2 (http://www.linuxquestions.org/questions/linux-newbie-8/crunchbang-grub2-868599/)

garyozzy 03-14-2011 09:38 PM

Crunchbang, Grub2
 
I just installed CrunchBang Linux and it's great!

But I can't boot into windows anymore.

I'm sure it didn't delete my Windows partition-it's mounted.

My linux partition is /dev/sda1
Windows is /dev/sda2

Code:

sudo update-grub
Found linux image: ....
Found initrd image: ....
Found linux image: ....
Found initrd image: ....
done

Anyone have any idea of how I can get Windows to reappear? I've had bad luck with Grub in the past and I don't want to fight it on my own...

EDDY1 03-14-2011 09:53 PM

Did you install windows 1st?
Post output of
Quote:

fdisk -l

garyozzy 03-14-2011 10:11 PM

Code:


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76692ca8

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        2167    17405403+  83  Linux
/dev/sda2  *        2168      60801  470977541+  7  HPFS/NTFS
gary@simba:~$


EDDY1 03-14-2011 10:13 PM

Was windows already installed.

garyozzy 03-14-2011 10:14 PM

Quote:

Originally Posted by EDDY1 (Post 4291012)
Was windows already installed.


Yes.

I did startup repair on a Windows 7 CD and could boot into it.

Then I reinstalled Linux and now I can't again.

EDDY1 03-14-2011 10:20 PM

Was linux always on 1st partition or was wins the original os?
Are you using grub or grub2?
http://www.dedoimedo.com/computers/grub.html
http://www.dedoimedo.com/computers/grub-2.html

garyozzy 03-14-2011 10:22 PM

grub2

EDDY1 03-14-2011 11:17 PM

try
Quote:

update-grub
or
Quote:

sudo update-grub

garyozzy 03-15-2011 06:27 AM

Quote:

Originally Posted by EDDY1 (Post 4291039)
try

Code:

sudo update-grub

That worked beautifully, but I swear it didn't work until the second time I installed #! after doing startup repair.

Thank you kind sir, you are a gentleman and a scholar.


Gary

EDDY1 03-15-2011 06:30 AM

You're welcome.


All times are GMT -5. The time now is 07:43 PM.