LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2014, 01:57 AM   #1
acoustee3012
LQ Newbie
 
Registered: Dec 2014
Posts: 5

Rep: Reputation: Disabled
No Windows Boot option show in operating system list Boot after installed Debian


Hi. I have a Windows 7 computer and I've installed Debian/Linux amd64 . Then after I restart computer, the screen booting just show 2 options: Debian/Linux amd64 and Debian/Linux amd64 Recovery Mode. So I can't access the Windows 7 OS, although I didn't erase any old partitions. So how to show the Windows 7 option in the booting list?? Tks u guys
 
Old 12-19-2014, 08:27 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
When grub menu comes press 'c'.

You are now in command mode. then type root ( and press tab. It would show possible disks wih partition. Select the one with windows and complete the command.
Now type chainloader +1
Now press CTRL+x
And you boot to Windows

If you boot to debian. Login as root. and run fdisk -l /dev/sda
It would show available partitions. Check there is windows. Also find where grub installed partition is. Mount that partition and edit grub.cfg and add for windows boot option.
 
1 members found this post helpful.
Old 12-19-2014, 08:31 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,267

Rep: Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370
Open a terminal in Debian as root user and run the following command: fdisk -l(Lower Case Letter L in the command) and post it here as it will show your windows partitions. You can try running the command below to generate a new menu file as root user. If that doesn't work, try running os-prober first.

Quote:
grub-mkconfig -o /boot/grub/grub.cfg
 
2 members found this post helpful.
Old 12-19-2014, 10:16 AM   #4
CShannFan
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Download iso image supergrub2disk200s2 and burn to cd;Access Windows 7 partition

I don't know about the feasibility of your access to the internet to download an iso image of super-grub2 but here is the website:http://www.supergrubdisk.org/2014/05...00s2-released/.

For basic directions, after burning the iso that is valid i386, x86_64 and x86_64_efi to cd,
reboot with the cd and go into your boot menu and select cd/dvd.
Once the gui appears, you should see options. One of which is to boot manually. You'll have to use your arrow keys on keybd and press return to select it.
Then you see a set of options one of which is Operating systems. Select it and press enter. You should get a list of all operating systems on your computer including Windows 7 and press enter to select it and it should boot it.
This is clearly not a complete solution but it will get you going.
 
1 members found this post helpful.
Old 12-21-2014, 03:47 AM   #5
acoustee3012
LQ Newbie
 
Registered: Dec 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
When I run the command fdisk -l, it shown as below


Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1920219135 960108544 83 Linux
/dev/sda2 1920221182 1953523711 16651265 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5 1920221184 1953523711 16651264 82 Linux swap / Solaris


So I'm not sure there still Windows 7 still exist in computer or not. Can I make dual boot in Debian?
 
Old 12-21-2014, 07:04 AM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,009

Rep: Reputation: 282Reputation: 282Reputation: 282
your windows is gone. If you have installation/restore disks you can reinstall windows and try again.
 
1 members found this post helpful.
Old 12-21-2014, 10:04 AM   #7
acoustee3012
LQ Newbie
 
Registered: Dec 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Tks...so how to mount windows 7 into grub??? can u help me what to do after reinstall windows 7..?
 
Old 12-21-2014, 11:29 AM   #8
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 562

Rep: Reputation: 133Reputation: 133
According to fdisk -l command output, you have no any Windows installed at your hard drive (at least at sda drive).
So you can't add it to Grub menu. It's impossible to add something that doesn't exists.

Probably you overwrote your Windows installation when installed Linux

P.S.
How many HDD you have at your computer? If one, you really lost your Windows, have to reinstall it.

Last edited by Teufel; 12-21-2014 at 11:34 AM.
 
2 members found this post helpful.
Old 12-21-2014, 12:21 PM   #9
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by acoustee3012 View Post
Tks...so how to mount windows 7 into grub??? can u help me what to do after reinstall windows 7..?
You will have to chroot into your Debian system and re-install grub.

Load up a Debian live .iso and mount your Debian partition from the command line:
Code:
# mkdir /mnt/debian
# mount /dev/sda1 /mnt/debian
Then mount /proc /sys & /dev:
Code:
# cd /mnt/debian
# mount -t proc proc proc/
# mount --rbind /sys sys/
# mount --rbind /dev dev/
Then chroot into your Debian system:
Code:
# chroot /mnt/debian /bin/bash
Load the local BASH configuration and then re-install & update GRUB:
Code:
# source /etc/profile
# source /home/<user name>/.bashrc
# grub-install --target=i386-pc --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
If you get a permission error during the chroot, remount your system using `mount -o remount,exec /mnt/debian`

I may be wrong about the `grub-install` command syntax -- Debian uses lots of different versions and I'm more used to Arch...

Of course if it's a new system it's probably much simpler to just re-install Debian as well (after you re-install Windows).
 
1 members found this post helpful.
Old 12-21-2014, 03:14 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,267

Rep: Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370
Quote:
Tks...so how to mount windows 7 into grub??? can u help me what to do after reinstall windows 7..?
The fdisk output you posted above shows your Debian on sda1 which takes up almost the entire drive. The first thing you should do is to resize (shrink) that partition to create room on which to install windows. You can probably do that with the Debian installation medium which should have GParted partition manager on it. You won't be able to do it from the installed Debian. Make sure you select the correct partition when installing windows so you don't overwrite Debian.
 
1 members found this post helpful.
Old 12-21-2014, 10:17 PM   #11
acoustee3012
LQ Newbie
 
Registered: Dec 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
But does this data on my old Windows 7 have lost or not?? ( I have reinstall windows 7 then these is only one disk C and entire capacity (1Tb) OMG!
 
Old 12-21-2014, 10:22 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,267

Rep: Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370
If you reinstalled windows then yes, all the data on your previous windows install is gone. Can't say whether your Debian is still there as a standard default windows is incapable of recognizing a Linux system.
 
1 members found this post helpful.
Old 12-22-2014, 12:40 AM   #13
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 562

Rep: Reputation: 133Reputation: 133
If your data were really important and it must be recovered at any cost, the best you could do is search your location for some skillfull guy who could help you to restore your data. Note, the more you use the drive right now, the less chance to save data.
And yes, recovery should be carried out on other computer. You have to have another computer to attach your drive there.

If your data wasn't vital, just forget about it. Do not despair, almost all of us went this way in past
If you still want to have both Windows and Linux at your box, some notes:
Do not create too large partitions for you systems. It is more than enough 100-150 Gb for Windows and 20-30 Gb for Debian. All the rest drive space should be issued as a seperate storage partition (to save your data there). This partition must be ntfs formatted in order to be accessible from both systems (Windows and Debian). And optionally, you could create little swap partition.
Do not use Debian installer or Windows installer partitioning tools. There is GParted liveCD with intuitive Gparted tool for partitioning. Make partitioning and start with Windows installation. Once it will be installed install Debian.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual OS installed. Win7 and Mint. Not boot option. Windows loads. filipm Linux - Newbie 11 12-06-2013 11:00 AM
[SOLVED] Installed Zorin will not display dual boot option with Windows 7 grahamthouard Zorin OS 1 10-26-2013 10:15 PM
Using qemu to boot a full hardware installed Windows partion on dual boot system dwmolyneux Linux - General 8 05-13-2012 12:11 PM
Need to add Windows 7 boot option to Debian Grub boot loader VRich Linux - Newbie 3 03-05-2012 08:44 AM
reinstalled windows 98 lost debian boot option llefty Linux - Newbie 5 08-01-2003 09:03 AM


All times are GMT -5. The time now is 05:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration