LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2013, 01:37 PM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
Boot problem with grub2 - Windows doesnot boot


I have installed Mint and Windows 7 on different partition.
I boot Mint and added that to 40_custom

Code:
menuentry “Windows 7″ {
set root=(hd0,1)
chainloader /bootmgr
}
and Windows is installed in
Code:
/dev/sda1: LABEL="Windows7" UUID="0484706A8470605A" TYPE="ntfs"
When I restart and try to boot Windows 7, it shows me error.
Code:
Invalid Signature TYPE="ntfs"
What colud be the problem?

Last edited by miros84; 01-07-2013 at 01:41 PM.
 
Old 01-07-2013, 04:41 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Where has

Code:
/dev/sda1: LABEL="Windows7" UUID="0484706A8470605A" TYPE="ntfs"
come from? Is that output from a command (if so, which one) or is it something you've put into a file?

Can you also tell us the exact steps you've gone through in order to configure/install grub, please? (i.e. did you follow a particular guide?)
 
Old 01-08-2013, 01:45 AM   #3
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Hi Snark1994,

Command is blkid. It outputs me where is installed Windows 7 and Linux Mint.

About grub I did:

Quote:
grub-install /dev/sda
Add en entry to 40_custom
update-grub
 
Old 01-09-2013, 04:02 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Hm. What does
Code:
sudo fdisk -l /dev/sda
print? And can you post your grub.cfg, please?

Regards,
 
Old 01-09-2013, 04:11 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I'm surprised you need to do anything with Mint - been a couple of releases since I looked at it though.
"update-grub" doesn't build a complete grub.cfg ?.
 
Old 01-09-2013, 09:43 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Have you run 'sudo os-prober' and 'sudo update-grub' from Mint?

I have Mint 13 and can boot windows 7 with the grub.cfg entry below. You would obviously need to replace the uuid after --set=root with your own:

Quote:
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root A0A03A5CA03A395C
chainloader +1
}
 
Old 01-09-2013, 02:49 PM   #7
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Yeah, update-grub found Windows 8 bootloader, because I have Windows 8 installed too.
But I hate Windows 8 bootloader. I prefer Windows 7 loader and that's why I want to chainloader bootmgr instead first 512 bytes.

---------- Post added 01-09-13 at 03:49 PM ----------

Yeah, update-grub found Windows 8 bootloader, because I have Windows 8 installed too.
But I hate Windows 8 bootloader. I prefer Windows 7 loader and that's why I want to chainloader bootmgr instead first 512 bytes.
 
Old 01-09-2013, 05:34 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
Yeah, update-grub found Windows 8 bootloader, because I have Windows 8 installed too.
That would have been useful information for your first post. Grub usually just chainloads to windows and historically their bootloaders have been backward compatible only. The link below indicates it should be possible to do with EasyBCD. Make sure all your 7 boot files are where they need to be. Are both 7 and 8 on primary partitions?:

http://www.youtube.com/watch?v=gSACjBulq5Q

Last edited by yancek; 01-09-2013 at 05:37 PM.
 
Old 01-10-2013, 04:01 AM   #9
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by miros84 View Post
Yeah, update-grub found Windows 8 bootloader, because I have Windows 8 installed too.
But I hate Windows 8 bootloader. I prefer Windows 7 loader and that's why I want to chainloader bootmgr instead first 512 bytes
As yancek said, that's important information. Are you using UEFI to boot or BIOS? The two need very different setup processes (on Arch, anyway)... Could you try running the command I posted,

Code:
sudo fdisk -l /dev/sda
?

My suspicion is that you've got a GPT, and Windows boots with UEFI, so you won't be able to boot using the MBR.
 
Old 01-11-2013, 01:19 AM   #10
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Here it is:

Code:
  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *      206848   207570943   103682048    7  HPFS/NTFS/exFAT
/dev/sda2       207570944   295598079    44013568    7  HPFS/NTFS/exFAT
/dev/sda3       295598080   315123711     9762816   83  Linux
/dev/sda4       315123712  1953521663   819198976    7  HPFS/NTFS/exFAT
UEFI or Bios. This motherboard is asrock N68. I think it has no UEFI. Should be BIOS.
 
Old 01-11-2013, 09:29 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
The link below indicates that there have been significant changes to the windows bootloader in windows8 and the sites I visited all suggest installing w8 last.

http://www.7tutorials.com/how-dual-b...-or-windows-xp
 
Old 01-12-2013, 03:35 PM   #12
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I managed to install the Arch (Grub 2) bootloader after Windows 8, using https://wiki.archlinux.org/index.php/GRUB2 - but it was a bit of a pain (though I was using UEFI not the old MBR bootloaders).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub2 refuses to boot Windows 7 pwrightfl Debian 12 02-12-2014 09:21 PM
Set up Windows as boot option in Grub2 arubin Slackware 1 09-07-2012 07:21 AM
[SOLVED] Editing Default GRUB2 Boot Entry from Windows newmanium2001 Linux - Software 2 04-01-2012 11:25 AM
grub2 can not boot windows 7 jtrol Slackware 1 12-10-2010 04:50 AM
[SOLVED] Multi-boot grub2 destroyed on windows 7 reboot hhoyt Linux - Software 5 08-17-2010 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration