LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-15-2015, 11:27 AM   #1
Jerry Houston
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled
os-prober not finding Windows on disk that fdisk confirms is present


I've repurposed a desktop machine to create a Linux development workstation. I left the original Windows 7 disk in it as hdc, and installed two new 1.5 TB disks for the system (sdb) and a /projects mount (sda).

After installing openSUSE 13.2, and using GRUB2 as the loader, I'm able to boot SUSE without any drama, but am no longer able to access Windows, as it doesn't show up in the GRUB2 menu. Using fdisk -l verifies that the Windows disk is present as sdc:

Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sdc2 206848 1953521663 1953314816 931.4G 7 HPFS/NTFS/exFAT

however, os-prober doesn't find it:

No volume groups found
/dev/sdb3penSUSE 13.2 (x86_64):SUSE:linux

This explains why none of my efforts to update GRUB2 has worked. Does anyone know why os-prober wouldn't see the Windows OS?

Thanks for any help with this,

Jerry
 
Old 02-16-2015, 01:14 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Windows expects to be on drive C:, the automatic default booted disk. Try making it sda, and moving the others around.

If you're sure that isn't the problem, google for windows <version> rescue disk. Guys make these up and they are 32 or 64 bit, and use files expected to be on your windows install. They can usually fix boot issues, vista rebooting, and so forth.
 
Old 02-16-2015, 01:26 PM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
From the GNU documentation for GRUB2:
Quote:
If you have installed DOS (or Windows) on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command drivemap (see drivemap), like this:
Code:
drivemap -s (hd0) (hd1)
This performs a virtual swap between your first and second hard drive.
http://www.gnu.org/software/grub/man...OS_002fWindows
 
Old 02-16-2015, 04:16 PM   #4
Jerry Houston
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
os-prober not finding Windows on disk that fdisk confirms is present

Thanks to both of you for your quick answers. Since I didn't know what side-effects diskmap might have, I decided to change the Windows disk to sda. That was easy, just requiring a data cable swap. However, it didn't solve the problem. My primary issue at this time is not getting Windows to boot, but getting it to simply show up in the GRUB2 menu.

fdisk -l now reports:

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 1953521663 1953314816 931.4G 7 HPFS/NTFS/exFAT

but os-prober still tells me:

No volume groups found
/dev/sdb3penSUSE 13.2 (x86_64):SUSE:linux

I created the 15_Windows script like this:

#! /bin/sh -e
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}
EOF

and I've verified that it shows up in grub2.cnf like so:

### BEGIN /etc/grub.d/15_Windows ###
menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/15_Windows ###

but still no joy in os-prober, so I'm not surprised that it doesn't show up in the GRUB2 menu.

Can anyone spot what I might have done wrong?

Thanks for any help,

Jerry
 
Old 02-16-2015, 04:27 PM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Try this in instead:
Code:
menuentry "Windows" {
	insmod chain
	insmod ntfs
	set root=(hd0,1)
	chainloader +1
}
http://www.gnu.org/software/grub/man...in_002dloading

I think this should be in the main grub.cfg file but I don't use a bootloader so I may be wrong.
 
  


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
disk drive for / is not ready yet or not present arunkumarev Linux - Newbie 3 10-08-2012 11:25 PM
grub/boot problem: the disk drive for /windows/c is not yet ready or is not present bth73 Linux Mint 5 07-05-2012 12:11 PM
Disk Space shows more used disk thank size of files present in folder vinvar Linux - Virtualization and Cloud 2 11-02-2009 11:59 PM
Problem Finding HardDrive with fdisk InJesus Slackware 5 03-14-2007 06:40 PM
fdisk-udeb. Having trouble finding it during installation. microsoft/linux Debian 2 06-14-2005 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:45 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