LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-03-2011, 04:01 PM   #1
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Rep: Reputation: Disabled
Question Windows disappeared after installing Linux


Hello,

DUAL-BOOT TROUBLE here

I am in sort of some BIG trouble here...so would you please help ...my windows is gone after installing Linux . When turning the computer on Linux starts. Even though I also have Windows installed on this machine I don't receive any dual boot question sort of thing . Linux simply pops up. Now I know windows is still there because I cant see the windows drive from Linux so its alive. now the question is what happened? Isn't dual booting sort of automatic?....Am I doing something wrong?

PS: I have created the partition for Linux with magic Partitioning from windows and then installed Linux.

Last edited by Miday8; 11-03-2011 at 04:05 PM.
 
Old 11-03-2011, 04:26 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Need to know a couple of little teeny bits of information: what Windows do you have (you know, XP, Vista, Win7, something else); what Linux distribution did you install (it does matter)?

You might want to, in the My LQ click My Profile and edit your details as to where you are in the world, your Linux Distribution, stuff like that.

Hope this helps some.
 
1 members found this post helpful.
Old 11-03-2011, 04:34 PM   #3
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
In had Windows Xp installed, and Linux is the Ubuntu last version.
Where do I find My Lq?...This may sound stupid but I haven't worked on Linux before. I needed it for school so I'm sort of gliding. Sorry for the little help I can provide just could you please give me a complete path?...or
 
Old 11-03-2011, 04:42 PM   #4
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Never mind I found that now well I filled it in. But I'm assuming that it wont miraculously fix my computer .

So things I know:

1) I installed Linux on my computer on a new partition
2) after installation the C: partition with windows XP can't be seen in any way
3) my computer won't dual boot...Linux pops up and rules everything
4) I really really really need help with this so PLEASE any suggestions as to what happened
 
Old 11-03-2011, 05:18 PM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,637

Rep: Reputation: 112Reputation: 112
Hi Miday8,

I believe the first thing to do is to have a look at the layout of your drive. To do this open a terminal (I assume you are running Ubuntu with Unity so click on the Ubuntu icon on the button bar thing on the left side of the screen and type terminal). Enter the command
Quote:
sudo fdisk -l
and supply your password when prompted. Drag across the text in the terminal to highlight it, right click and select Copy. Paste the results back to this forum and we can work through the results to find where your Windows partition is.

Next task will be to mount the Windows partition from Linux and backup any data you have there if you have not done so already.

The last task will be to make grub (the boot loader program) aware of the presence of Windows and tell it to present you with the option to select Windows at boot time.

At least that sounds like a good plan to me.

Ken
 
1 members found this post helpful.
Old 11-03-2011, 05:30 PM   #6
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Great plan please help me go through it.


miha@Miha-Home-PC:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x362b362a

Device Boot Start End Blocks Id System
/dev/sda1 63 81674459 40837198+ 17 Hidden HPFS/NTFS
/dev/sda2 81674521 265136127 91730803+ f W95 Ext'd (LBA)
/dev/sda3 * 266164920 312576704 23205892+ 83 Linux
/dev/sda4 265136760 266164919 514080 82 Linux swap / Solaris
/dev/sda5 81674523 227716700 73021089 7 HPFS/NTFS/exFAT
/dev/sda6 260947968 265136127 2094080 82 Linux swap / Solaris
/dev/sda7 227717120 256751615 14517248 83 Linux
/dev/sda8 256753664 260943871 2095104 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdf: 4023 MB, 4023386112 bytes
255 heads, 63 sectors/track, 489 cylinders, total 7858176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdf1 * 128 7858175 3929024 7 HPFS/NTFS/exFAT
miha@Miha-Home-PC:~$ ^C
miha@Miha-Home-PC:~$

Last edited by Miday8; 11-03-2011 at 05:31 PM.
 
Old 11-03-2011, 05:53 PM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Sorry but I can't help you with Ubuntu (know less than zero about Ubuntu) but it looks like you're in good hands.
 
1 members found this post helpful.
Old 11-03-2011, 05:55 PM   #8
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi tronayne,

Thank you for replying and trying to help. I really apreciate it

Miday8
 
Old 11-03-2011, 06:04 PM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,226

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
try running
Code:
sudo update-grub
and paste the output
also paste the contents of /boot/grub/grub.cfg (both in code tags of course )
 
Old 11-03-2011, 06:20 PM   #10
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
to frieza

Quote:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done
miha@Miha-Home-PC:~$ ^C
miha@Miha-Home-PC:~$

miha@Miha-Home-PC:~$ /boot/grub/grub.cfg
bash: /boot/grub/grub.cfg: Permission denied
miha@Miha-Home-PC:~$ ^C

Last edited by Miday8; 11-03-2011 at 06:27 PM.
 
Old 11-03-2011, 06:25 PM   #11
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
sory found it this is grub.cfg

Quote:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 79751346-1476-468e-9b05-00140749958e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 79751346-1476-468e-9b05-00140749958e
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 79751346-1476-468e-9b05-00140749958e
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=79751346-1476-468e-9b05-00140749958e ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 79751346-1476-468e-9b05-00140749958e
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=79751346-1476-468e-9b05-00140749958e ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 79751346-1476-468e-9b05-00140749958e
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 79751346-1476-468e-9b05-00140749958e
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root B678B16378B122D3
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

 
Old 11-03-2011, 07:24 PM   #12
impert
Member
 
Registered: Feb 2009
Posts: 282

Rep: Reputation: 54
Hi,
Have you tried rebooting since you did the update-grub? You should see a menu.

If not, try rebooting again, and press the shift key immediately the BIOS messages have finished. This should bring the menu up.
If not, you can edit the /etc/default/grub file
Code:
sudo gedit /etc/default/grub
You'll be asked for your password.

Look for a line that says:
Code:
GRUB_HIDDEN_TIMEOUT=0
If it has no # symbol at the beginning of the line, ie it is as I have written it above, then you can add the # to get the menu to show. You may also want to alter the value of GRUB_TIMEOUT, and you may want to change the default OS (0 means the first one listed, 1 the next, etc).
When you have finished your changes, save and close the file, and in the terminal type
Code:
sudo update-grub
which will make the necessary changes to the grub.cfg
 
1 members found this post helpful.
Old 11-03-2011, 07:36 PM   #13
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,637

Rep: Reputation: 112Reputation: 112
Looks like a couple of votes for GOOD news. This smells like two Windows partitions
Quote:
/dev/sda1 63 81674459 40837198+ 17 Hidden HPFS/NTFS
/dev/sda2 81674521 265136127 91730803+ f W95 Ext'd (LBA)
and from this update-grub output
Quote:
Found Microsoft Windows XP Professional on /dev/sda1
it seems that Windows XP is present.

Just a quick thing to try - Boot the PC and see if it offers to run Windows now. Running update-grub might have fixed the problem. If not and you want to access the Windows partitions to copy data off to a USB drive or something similar.

Open a terminal and enter this command to create a directory to mount the Windows partition to
Quote:
sudo mkdir /joe
The name of the directory is up to you. Then mount the first Windows partition thusly
Quote:
sudo mount /dev/sda1 /joe
You can now open your home directory from the menu stripe thing on the left side of the screen (I hate Unity!) and you should see a shortcut to File System. Click on File System and you will see the folder representing the directory /joe. It will contain your Windows files. It should be relatively safe to copy FROM /joe but I would not write to the Windows partition. When you are done close the file browser and issue the command
Quote:
sudo umount /joe
in the terminal. You can access the other Windows partition by substituting /dev/sda2 for /dev/sda1. /joe will still work.

Please let us know what progress you make and I am sure the grub and XP can be reconnected.

Ken
 
1 members found this post helpful.
Old 11-04-2011, 04:08 AM   #14
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi impert,

Well this is the specified grub file, but it seems ok to me.
Quote:
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
Should I only leave a 1 at the GRUB_Timeout, how do I change the listed OP's. I don't see them listed.

this is the content of the file...Could you please tell me which values should I change? As for my computer it won't dual boot after doing the sudo update-grub command.
Quote:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
 
Old 11-04-2011, 04:15 AM   #15
Miday8
LQ Newbie
 
Registered: Nov 2011
Location: Romania
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
hi taylorkh,


I tried accesing my windows partition with those commands but I keep getting this error, could you please tell me if I'm messing something up, and this is why it isn't working?

Quote:

miha@Miha-Home-PC:~$ sudo mkdir /windo
miha@Miha-Home-PC:~$ sudo mount /dev/sda1/windo
mount: can't find /dev/sda1/windo in /etc/fstab or /etc/mtab
miha@Miha-Home-PC:~$
 
  


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
disappeared application windows corky383 Linux - Desktop 1 08-15-2010 09:06 PM
Windows Borders Disappeared in Gnome daniell Linux - Newbie 27 10-04-2009 03:17 PM
Grub Disappeared When I Installed Windows Xp mesh2005 Linux - General 6 05-11-2006 02:26 AM
Windows partition disappeared after Linux install wl2 Linux - Newbie 9 11-15-2004 04:52 PM
windows disappeared Tinku Linux - General 1 10-04-2004 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 AM.

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