PDA

View Full Version : [ubuntu] No bootable drives after Ubuntu Dual-Boot with Windows 7



ADCooper
October 8th, 2012, 12:18 AM
I tried to install Ubuntu 12.04 on my new ASUS k55a laptop today, and somehow managed to lose access to all partitions on my computer. I tried boot-repair and reinstalling ubuntu but it's not helping. When I try to turn on my computer after the installation, it says to "Reboot and Select Proper Boot Device" on a black screen. In BIOS, there's no noticeable bootable options aside from the disk drive (I'm on Ubuntu Live CD).

I'm not completely sure what to post here, but I uninstalled all my partitions except the two windows partitions (OS and Recovery). What new partitions do I need to make when I install Ubuntu to make sure it loads up correctly? Here's my boot-repair prior to re-deleting the partitions:


Boot Info Script 0.61.full + Boot-Repair extra info [Boot-Info September 18th 2012]


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
411648 of the same hard drive for core.img. core.img is at this location
and looks for (,gpt2)/boot/grub on this drive.

sda1: __________________________________________________ ________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sda2: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda3: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda4: __________________________________________________ ________________________

File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:

sda5: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /boot/bcd

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 976,773,167 976,773,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 411,647 409,600 EFI System partition
/dev/sda2 350,423,040 924,342,961 573,919,922 Data partition (Windows/Linux)
/dev/sda3 673,792 350,423,039 349,749,248 Data partition (Windows/Linux)
/dev/sda4 411,648 673,366 261,719 BIOS Boot partition
/dev/sda5 924,344,320 976,773,119 52,428,800 Windows Recovery Environment (Windows)

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda2 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1 ext4
/dev/sda3 8AF24081F240738B ntfs OS
/dev/sda5 AC7A43BA7A438056 ntfs Recovery
/dev/sr0 iso9660 Ubuntu 12.04 LTS i386

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== sda2/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# 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_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=10
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 ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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.2.0-31-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
linux /boot/vmlinuz-3.2.0-31-generic-pae root=UUID=3ec5cfde-6ae4-4a18-90ae-7df86290f8f1 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-31-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-31-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
echo 'Loading Linux 3.2.0-31-generic-pae ...'
linux /boot/vmlinuz-3.2.0-31-generic-pae root=UUID=3ec5cfde-6ae4-4a18-90ae-7df86290f8f1 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-31-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=3ec5cfde-6ae4-4a18-90ae-7df86290f8f1 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
echo 'Loading Linux 3.2.0-23-generic-pae ...'
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=3ec5cfde-6ae4-4a18-90ae-7df86290f8f1 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
}
### 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_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 3ec5cfde-6ae4-4a18-90ae-7df86290f8f1
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/sda3)" --class windows --class os {
insmod part_gpt
insmod ntfs
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 8AF24081F240738B
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda5)" --class windows --class os {
insmod part_gpt
insmod ntfs
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root AC7A43BA7A438056
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 ###
--------------------------------------------------------------------------------

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=3ec5cfde-6ae4-4a18-90ae-7df86290f8f1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda1 during installation
#UUID=b0a48c0b-d0bb-4497-bf82-d8bf4ed9134d none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

293.233436584 = 314.857005056 boot/grub/core.img 1
293.228546143 = 314.851753984 boot/grub/grub.cfg 1
168.980579376 = 181.441515520 boot/initrd.img-3.2.0-23-generic-pae 1
168.648582458 = 181.085036544 boot/initrd.img-3.2.0-31-generic-pae 2
293.227779388 = 314.850930688 boot/vmlinuz-3.2.0-23-generic-pae 1
168.419708252 = 180.839284736 boot/vmlinuz-3.2.0-31-generic-pae 1
168.980579376 = 181.441515520 initrd.img 1
293.227779388 = 314.850930688 vmlinuz 1


ADDITIONAL INFORMATION :
=================== log of boot-repair 2012-10-07__18h36 ===================
boot-repair version : 3.193-0ppa23~precise
boot-sav version : 3.193-0ppa40~precise
glade2script version : 0.3.2.1-0ppa7~precise
boot-sav-nonfree version : 3.18-0ppa20~precise
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 460 not upgraded.
dpkg-preconfigure: unable to re-open stdin: No such file or directory
boot-repair is executed in live-session (Ubuntu 12.04 LTS, precise, Ubuntu, i686)
CPU op-mode(s): 32-bit, 64-bit
file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== os-prober:
/dev/sda2:Ubuntu 12.04 LTS (12.04):Ubuntu:linux
/dev/sda3:Windows 7 (loader):Windows:chain
/dev/sda5:Windows Recovery Environment (loader):Windows1:chain

=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda2: UUID="3ec5cfde-6ae4-4a18-90ae-7df86290f8f1" TYPE="ext4"
/dev/sda3: LABEL="OS" UUID="8AF24081F240738B" TYPE="ntfs"
/dev/sda5: LABEL="Recovery" UUID="AC7A43BA7A438056" TYPE="ntfs"
/dev/sr0: LABEL="Ubuntu 12.04 LTS i386" TYPE="iso9660"


1 disks with OS, 3 OS : 1 Linux, 0 MacOS, 2 Windows, 0 unknown type OS.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.



=================== sda2/etc/default/grub :

# 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"




=================== sda2/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Apr 23 11:38 grub.d
total 56
-rwxr-xr-x 1 root root 6715 Apr 17 18:16 00_header
-rwxr-xr-x 1 root root 5522 Apr 17 17:53 05_debian_theme
-rwxr-xr-x 1 root root 7399 Apr 17 18:16 10_linux
-rwxr-xr-x 1 root root 6335 Apr 17 18:16 20_linux_xen
-rwxr-xr-x 1 root root 1588 Nov 27 2011 20_memtest86+
-rwxr-xr-x 1 root root 7603 Apr 17 18:16 30_os-prober
-rwxr-xr-x 1 root root 214 Apr 17 18:16 40_custom
-rwxr-xr-x 1 root root 95 Apr 17 18:16 41_custom
-rw-r--r-- 1 root root 483 Apr 17 18:16 README


=================== dmesg | grep EFI :
This live-session is not EFI-compatible.


=================== PARTITIONS & DISKS:
sda2 : sda, not-sepboot, grubenv-ok grub2, grub-pc, update-grub, 32, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, farbios, /mnt/boot-sav/sda2.
sda3 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda3.
sda5 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-kernel, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda5.

sda : GPT, BIOS_boot, has-no-EFIpart, not-usb, has-os, 2048 sectors * 512 bytes


=================== parted -l:

Model: ATA ST9500325AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 211MB 210MB EFI system partition boot, hidden
4 211MB 345MB 134MB bios_grub
3 345MB 179GB 179GB ntfs Basic data partition hidden
2 179GB 473GB 294GB ext4
5 473GB 500GB 26.8GB ntfs Basic data partition hidden, diag


Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!

=================== parted -lm:

BYT;
/dev/sda:500GB:scsi:512:512:gpt:ATA ST9500325AS;
1:1049kB:211MB:210MB::EFI system partition:boot, hidden;
4:211MB:345MB:134MB:::bios_grub;
3:345MB:179GB:179GB:ntfs:Basic data partition:hidden;
2:179GB:473GB:294GB:ext4::;
5:473GB:500GB:26.8GB:ntfs:Basic data partition:hidden, diag;

Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!


=================== mount:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda2 on /mnt/boot-sav/sda2 type ext4 (rw)
/dev/sda3 on /mnt/boot-sav/sda3 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda5 on /mnt/boot-sav/sda5 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): agpgart autofs block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency disk dri dvd dvdrw ecryptfs fb0 fd full fuse hpet input kmsg log mapper mcelog mei mem net network_latency network_throughput null oldmem port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uinput urandom usbmon0 usbmon1 usbmon2 usbmon3 usbmon4 v4l vga_arbiter video0 zero
ls /dev/mapper: control
ls /mnt/boot-sav/sda3: Windows Users Information Volume System $RECYCLE.BIN Recovery (x86) Files Program Files Program ProgramData PerfLogs pagefile.sys MinGW K55VD.BIN K55A.BIN Intel hiberfil.sys eSupport Settings and Documents BOOTSECT.BAK boot-sav bootmgr Boot AsusVibeData

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== df -Th:

Filesystem Type Size Used Avail Use% Mounted on
/cow overlayfs 2.0G 136M 1.8G 7% /
udev devtmpfs 2.0G 12K 2.0G 1% /dev
tmpfs tmpfs 784M 828K 783M 1% /run
/dev/sr0 iso9660 702M 702M 0 100% /cdrom
/dev/loop0 squashfs 673M 673M 0 100% /rofs
tmpfs tmpfs 2.0G 32K 2.0G 1% /tmp
none tmpfs 5.0M 4.0K 5.0M 1% /run/lock
none tmpfs 2.0G 76K 2.0G 1% /run/shm
/dev/sda2 ext4 274G 7.1G 253G 3% /mnt/boot-sav/sda2
/dev/sda3 fuseblk 167G 58G 110G 35% /mnt/boot-sav/sda3
/dev/sda5 fuseblk 25G 13G 13G 52% /mnt/boot-sav/sda5

=================== fdisk -l:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x527cd163

Device Boot Start End Blocks Id System
/dev/sda1 1 976773167 488386583+ ee GPT


EFIFILEPRESENCE , QTY_SUREEFIPART 0
EFIFILEPRESENCE , QTY_SUREEFIPART 0
Partition outside the disk detected.

=================== Recommended repair
Recommended-Repair
This setting will reinstall the grub2 of sda2 into the MBR of sda.
Additional repair will be performed: unhide-bootmenu-10s


grub-install (GRUB) 1.99-21ubuntu3,grub-install (GRUB) 1.

Reinstall the GRUB of sda2 into the MBR of sda
grub-install --recheck /dev/sda: Installation finished. No error reported.
exit code of grub-install /dev/sda:0

chroot /mnt/boot-sav/sda2 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-31-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-31-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda3
Found Windows Recovery Environment (loader) on /dev/sda5
Unhide GRUB boot menu in sda2/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.


The boot files of [Ubuntu 12.04 LTS] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)
pastebinit packages needed
User refused to install pastebinit


sudo fdisk -l returns:




WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x527cd163

Device Boot Start End Blocks Id System
/dev/sda1 1 976773167 488386583+ ee GPT

darkod
October 8th, 2012, 09:17 AM
You see the first partition saying EFI System partition?

That means your laptop is using UEFI boot, not the older type BIOS boot.

Not sure if win7 boot is OK now, but to install ubuntu on UEFI you have to boot the cd in UEFI mode, not the standard mode. On UEFI boards usually there will be separate UEFI cd-rom as boot device.

If you don't boot the installer in uefi, it won't install in uefi and it won't work.

If you deleted the efi system partition (because you posted the bootinfo resulsts from before deleting partitions, the win7 boot is broken too. If the partition and the files are still there, you might be able to add a win7 boot option in the uefi boot manager which should be somewhere in the bios.

ADCooper
October 8th, 2012, 01:10 PM
Thanks a bunch for the response! It says the Booting from UEFI is enabled, I'll look into if its actually booting that way and try reinstalling alongside windows again

ADCooper
October 8th, 2012, 03:08 PM
So Ubuntu actually works now which is great! But the only small problem is I still can't access windows, even though it does come up in the grub menu.

When I choose windows 7, it asys invalid EFI file path. I tried boot-repair to no avail with the separate EFI boot partition option on.

Here's the boot-repair log:

http://paste.ubuntu.com/1267436/

darkod
October 8th, 2012, 03:29 PM
The EFI system partition is second (/dev/sda2). It always needs to be the first one, at least that's what people that use UEFI say here. :)

Try creating new windows entry in the UEFI menu, and also from ubuntu open the efi partition and see if there are any boot files that resemble windows boot files there.

ADCooper
October 8th, 2012, 04:09 PM
The EFI system partition is second (/dev/sda2). It always needs to be the first one, at least that's what people that use UEFI say here. :)

Try creating new windows entry in the UEFI menu, and also from ubuntu open the efi partition and see if there are any boot files that resemble windows boot files there.


Thanks a ton for all the help. Is there a way to change the ordering of partitions without losing the data? Also, any chance you know of any links concerning how to add new windows entries to the UEFI menu? Not even completely sure what the UEFI menu is to be honest. Complete newbie to Ubuntu

oldfred
October 9th, 2012, 01:19 AM
While we always say the efi partition must be first, but I did see a couple of systems with it second or even third. The issue may be that since it is FAT32 and the driver built into UEFI can then only read so far into the drive. Easier just to write specification to say it must be first than get into details of where on a drive it must be inside of. So if it works it should be ok where it is.

I wonder if system was booting Windows in BIOS/MBR mode and you installed Ubuntu in UEFI mode, converting drive from MBR to gpt and doing something to Windows.
Normal windows installs have the efi partition, a small hidden unformatted space for some Windows code -MSR, and the main Windows install.

Windows Recommended UEFI-Based Disk-Partition Configurations
http://technet.microsoft.com/en-us/library/dd744301%28WS.10%29.aspx

Change the booting style of Windows Vista or 7 x86_64 versions from BIOS-MBR mode to UEFI-GPT mode without formatting or reinstalling
https://gitorious.org/tianocore_uefi_duet_builds/pages/Windows_x64_BIOS_to_UEFI


Windows installs the efi bootloader to (ESP)/EFI/Microsoft/Boot/ which is identical to (WINDOWS_SYSTEM_PART)/boot/microsoft/ incase of BIOS systems.
The dir mainly consists of bootmgfw.efi, bootmgr.efi, memtest.efi and 'bcd'.
Post #76
http://ubuntuforums.org/showthread.php?t=1719851&page=8
efi\Microsoft\Boot\bootmgfw.efi

YannBuntu
October 9th, 2012, 10:33 PM
While we always say the efi partition must be first, but I did see a couple of systems with it second or even third. The issue may be that since it is FAT32 and the driver built into UEFI can then only read so far into the drive. Easier just to write specification to say it must be first than get into details of where on a drive it must be inside of. So if it works it should be ok where it is.

+1
ADCooper's EFI partition (sda2) is not an original Windows ESP.
Currently there is no Windows EFI file, so it is impossible to boot Windows in UEFI mode.

Either Windows was not installed in EFI, or its EFI file was delete by mistake.

However, Windows seems to have also the boot files to be able to boot in Legacy mode, so I would first try to:

1) setup the BIOS to boot the HDD in Legacy (not UEFI) mode: see https://help.ubuntu.com/community/UEFI#Setup_the_BIOS_in_EFI_or_Legacy_mode

2) then convert Ubuntu in Legacy mode: see https://help.ubuntu.com/community/UEFI#Converting_Ubuntu_into_Legacy_mode (indicate the new URL provided by Boot-Repair, and indicate what you observe after reboot)