LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 06-05-2010, 05:59 PM   #1
telestrial
LQ Newbie
 
Registered: May 2008
Posts: 26

Rep: Reputation: 15
Updated to Ubuntu 10.04 and can't boot into windows 7 (test disk)


I am DYING for an answer to this issue. I updated from Karmic to Lucid and now I can't boot into Windows 7. I've tried testdisk, and I've tried the windows repair disc bootrec.exe thing.

I would be willing to try those things again in a new order..or something.

I really would like to get to the bottom of this.

Basically:

Every time I try to boot windows 7 from grub I either get a sudden reboot or a blinking cursor in the upper left corner. The cursor never goes away no matter how long I wait.



Sorry..I'm sure you're dealing with many of these issues, but I've searched and tried many things.

Thanks in advance for any help you can provide.
 
Old 06-05-2010, 07:22 PM   #2
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
Can you boot into Ubuntu? If so, open a terminal and do

Code:
cat /boot/grub/grub.cfg
Please post the results.
 
Old 06-05-2010, 08:25 PM   #3
telestrial
LQ Newbie
 
Registered: May 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
john@laptop:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-20-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
echo 'Loading Linux 2.6.31-20-generic ...'
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry 'Ubuntu, with Linux 2.6.28-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
linux /boot/vmlinuz-2.6.28-14-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro quiet splash
initrd /boot/initrd.img-2.6.28-14-generic
}
menuentry 'Ubuntu, with Linux 2.6.28-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
echo 'Loading Linux 2.6.28-14-generic ...'
linux /boot/vmlinuz-2.6.28-14-generic root=UUID=8f45b3cf-2e1e-4647-8a2d-5001ac882729 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.28-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8f45b3cf-2e1e-4647-8a2d-5001ac882729
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set ac1c474e1c4712ae
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 ###

Thanks
 
Old 06-05-2010, 08:56 PM   #4
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
Quote:
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set ac1c474e1c4712ae
chainloader +1
I'm curious if the bolded number may have changed.

Can you run
Code:
sudo blkid /dev/sda2
and post the results?
 
Old 06-05-2010, 09:28 PM   #5
telestrial
LQ Newbie
 
Registered: May 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Afraid not..

Code:
/dev/sda2: UUID="AC1C474E1C4712AE" TYPE="ntfs"
 
Old 06-05-2010, 10:38 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
If you upgraded, how did you wind up with grub2 ?. And what sort of "windows repair disc bootrec.exe thing." did you do ?.
Let's see "sudo fdisk -l" (lower case ell).
 
Old 06-05-2010, 10:52 PM   #7
telestrial
LQ Newbie
 
Registered: May 2008
Posts: 26

Original Poster
Rep: Reputation: 15
I installed grub2 on my own. The install worked absolutely fine. I tested out all the options before running the "legacy-grub" command thing. I can't recall the exact syntax. I hope that was hopeful in describing what I did. I know for a fact all the options worked. After 10.04 something fubar'd and here I am. I saw something using the Windows 7 repair disc to get to the command prompt:

BootRec.exe /fixmbr #updates MBR master boot record do not run if you still want grub
chkdsk /r
BootRec.exe /FixBoot #updates PBR partition boot
BootRec.exe /ScanOs
BootRec.exe /RebuildBcd

My computer simply won't load anything if I do this. Black screen with a blinking cursor one line down from the one I get with grub installed. I realize that may indicate it is a Window's issue. However, Ubuntu updating grub is the only thing that has occurred. It has to be something the grub update did, so that's why I'm here.

sudo fdisk -l:

Code:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0f7f14c6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda2   *           1       24625   197800281    7  HPFS/NTFS
/dev/sda3           24626       30401    46395720    5  Extended
/dev/sda5           24626       25371     5992213+  82  Linux swap / Solaris
/dev/sda6           25372       30401    40403443+  83  Linux
 
Old 06-05-2010, 11:24 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
After "BootRec.exe /fixmbr" (as the comment suggests) I wouldn't expect you to see grub at all.
Do those bootrec commands come back with anything, or just a prompt ?. Have you tried the repair option rather than dropping to the command window ?.

Try this as root from a linux terminal to see if that boot sector record is o.k.
Code:
dd if=/dev/sda2 count=1 2> /dev/null | strings | grep -Ei "(ntfs|grub)"

Last edited by syg00; 06-05-2010 at 11:33 PM. Reason: s/recovery/repair/
 
Old 06-06-2010, 09:47 AM   #9
telestrial
LQ Newbie
 
Registered: May 2008
Posts: 26

Original Poster
Rep: Reputation: 15
That command does nothing. It just brings up another command line.

Sorry, but I think I must have explained improperly. Once I do the bootrec.exe stuff my laptop literally becomes a brick. I just get a black screen with a blinking cursor that is one line down from the one I get when grub is installed.
 
Old 06-06-2010, 05:02 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
My concern would be that you may have installed grub to the partition rather than the MBR at some point. If so, the /fixboot may not be sufficient to repair it, and you may be up for a (Win7) reinstall.
Try that command (as root) I gave you with count=3.
 
Old 06-06-2010, 06:33 PM   #11
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
Quote:
Originally Posted by telestrial View Post
I can't boot into Windows 7.
Not sure why you'd want to, . On a serious note, can you mount the Windows partition and see your files?
 
Old 06-07-2010, 09:55 AM   #12
telestrial
LQ Newbie
 
Registered: May 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Bootrec doesn't just come back with another prompt. It says things like "Command Success"...the
"bootup repair" windows application says it can't find anything wrong, I can mount the partition and look at the files...and the output of that commmand you told me to run again is:

Code:
3+0 records in
3+0 records out
1536 bytes (1.5 kB) copied, 0.0350573 s, 43.8 kB/s
I hope that was everything.
 
  


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
How do i boot from windows disk while running ubuntu netbook WC Aftermath Linux - Newbie 15 03-18-2010 11:25 AM
running Ubuntu and Windows on one disk namif Linux - Software 0 07-28-2009 06:04 AM
Adding second hard disk with windows to boot with grub on first hard disk rushadrenaline Linux - Hardware 3 07-08-2009 04:39 AM
Dual boot, two disk Fedora Windows only opens Windows Javkin Fedora 2 10-20-2006 03:47 AM
X windows in Boot disk aditya Linux - Newbie 6 10-17-2002 04:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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