LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-28-2013, 02:42 PM   #1
shadowofgrael
LQ Newbie
 
Registered: Sep 2010
Distribution: Debian, Ubuntu, Windows 7 and various others
Posts: 25

Rep: Reputation: 0
Grub 2 entry help and one other small issue


Original setup:
120GB SSD: Win7
2TB HDD: 500GB misc storage (NTFS)

Current setup:

- parted results:
Code:
root@kali:/boot/grub# parted -l
Model: ATA INTEL SSDSC2CT12 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  106MB  105MB  primary  ntfs         boot
 2      106MB   108GB  108GB  primary  ntfs


Model: ATA Hitachi HDS5C302 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
 1      17.4kB  134MB   134MB                   Microsoft reserved partition  msftres
 2      135MB   524GB   524GB   ntfs            Basic data partition
 3      524GB   554GB   30.0GB  ext4            Kali                          boot
 4      1996GB  2000GB  4000MB  linux-swap(v1)  Linux Swap
While trying to install several operating systems on my second disk I made windows inaccessible. Fortunately I noticed this on my first install (Kali linux), thus removing a lot of potential entropy from the situation.

During install Kali decided that the following was a good entry for booting window7:

Code:
menuentry "Windows Vista (loader)" {
set root=(hd0,msdos1) search --no-floppy --fs-uuid --set EC0AD10F0ADGD7A2 chainloader +1
}
This seems like it should work to me, but I am familiar with boot arguments for anything. Trying to use the entry this creates results int the following error

Code:
error: no argument specified.
error: no such partition.

Press any key to continue...
I took a stab in the dark and tried a more simple entry in case the arguments were unneeded and causing the issue

Code:
menuentry "Windows 7" {
set root=(hd0,msdos1) chainloader +1
}
This produced only one of the two errors

Code:
error: no such partition. 

Press any key to continue...
I have tried several other minor tweaks but they were all pretty much guess work and were as ineffective as expected

The primary goal here is to get windows to boot off of grub on a different disk, but while I have some community attention some advice in one other area would be much appreciated:

In Kali I cannot see all of my screen regardless of what resolution I use. I see most of what the system is trying to send me, but am blind on the edges. My graphics card is an NVIDIA GTX 580 and I am using a vizio HDTV for a monitor. Using zoom on the monitor does not make things at all better and only makes the image smaller, not filling in my missing edges. It seems like I am always being a signal that is just a bit too wide and too tall.
 
Old 04-29-2013, 02:06 PM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,225

Rep: Reputation: 251Reputation: 251Reputation: 251
Don't know if either will help, but FWIW, here's my single-disk system's:
1. Windows entry in grub.conf (aka menu.lst) in the boot partition:
Code:
title Windows
  rootnoverify (hd0,0)
  chainloader +1
2. Windows entry in grub2's grub.cfg from my Fedora 19 partition:
Code:
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-365829FF5829BF0D' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  365829FF5829BF0D
	else
	  search --no-floppy --fs-uuid --set=root 365829FF5829BF0D
	fi
	chainloader +1
My system boots with legacy grub to a boot partition. Legacy grub then chainloads the selected OS's bootloader located on that OS's partition. Win7 is located in sda1; Fedora is in sda7
 
1 members found this post helpful.
Old 04-29-2013, 09:01 PM   #3
shadowofgrael
LQ Newbie
 
Registered: Sep 2010
Distribution: Debian, Ubuntu, Windows 7 and various others
Posts: 25

Original Poster
Rep: Reputation: 0
I tried 4 entries

1: your grub legacy entry
-rootnoverify is no longer a command in grub2
-this did not work

2: an exact copy of your grub 2 entry with 365829FF5829BF0D replaced with EC0AD10F0ADGD7A2 (uuid? what is this identifier actually called?)
-no errors were encountered and windows booted correctly

3: the same as 2 but with the baremetal flag removed
-this also worked, suggesting that Kali might have forgotten to add '=root' after set
-it may also simply indicate that only relevant hint arguments are needed in the first block of the if statement

4: my original entry as a control
-this still doesn't work and hopefully never will

Overall I think the solution was changing --set to --set=root but I could be wrong. Thank you so much for your help even though it was just a copy of what you had. I can now make use of windows again and install a few other OSes I would like to have access to more easily
 
Old 04-30-2013, 07:45 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,225

Rep: Reputation: 251Reputation: 251Reputation: 251
Glad you were able to get your system working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
konqueror's bookmark menu entry too small devdol Linux - Desktop 1 02-25-2012 07:53 PM
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 03:03 AM
GRUB Entry halfbrazilian Fedora - Installation 3 11-09-2007 07:15 AM
grub entry? quaylet Linux - Newbie 2 06-14-2005 01:30 PM
GRUB Entry for 2.6.8 Codegen Linux - Distributions 1 08-14-2004 08:54 PM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration