Code:
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 [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd2,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 57a36ed3-3399-4ea1-b923-ac01dea48801
else
search --no-floppy --fs-uuid --set=root 57a36ed3-3399-4ea1-b923-ac01dea48801
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-57a36ed3-3399-4ea1-b923-ac01dea48801' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd2,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2 6c0dc053-3fad-4006-9ec1-fffe48802ebf
else
search --no-floppy --fs-uuid --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
fi
linux /vmlinuz-3.8.0-19-generic root=UUID=57a36ed3-3399-4ea1-b923-ac01dea48801 ro quiet splash $vt_handoff
initrd /initrd.img-3.8.0-19-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-57a36ed3-3399-4ea1-b923-ac01dea48801' {
menuentry 'Ubuntu, with Linux 3.8.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-advanced-57a36ed3-3399-4ea1-b923-ac01dea48801' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd2,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2 6c0dc053-3fad-4006-9ec1-fffe48802ebf
else
search --no-floppy --fs-uuid --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
fi
echo 'Loading Linux 3.8.0-19-generic ...'
linux /vmlinuz-3.8.0-19-generic root=UUID=57a36ed3-3399-4ea1-b923-ac01dea48801 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.8.0-19-generic
}
menuentry 'Ubuntu, with Linux 3.8.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-recovery-57a36ed3-3399-4ea1-b923-ac01dea48801' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd2,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2 6c0dc053-3fad-4006-9ec1-fffe48802ebf
else
search --no-floppy --fs-uuid --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
fi
echo 'Loading Linux 3.8.0-19-generic ...'
linux /vmlinuz-3.8.0-19-generic root=UUID=57a36ed3-3399-4ea1-b923-ac01dea48801 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.8.0-19-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+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/25_custom ###
menuentry "Windows UEFI bkpbootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 549B-0CFC
chainloader (${root})/EFI/Microsoft/Boot/bkpbootmgfw.efi
}
menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root 549B-0CFC
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}
menuentry "efi/EFI/Boot/bkpbootx64.efi" {
search --fs-uuid --no-floppy --set=root 6c0dc053-3fad-4006-9ec1-fffe48802ebf
chainloader (${root})/efi/EFI/Boot/bkpbootx64.efi
}
### END /etc/grub.d/25_custom ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
sda - 1tb hdd I had files and programs for windows installed on.
sdb - 64gb ssd I had windows installed on.
sdc - 750gb hdd I just had some files stored on, it was all one ntfs partition originally. I cleared 480gb of free space on it and created the ubuntu partitions here.
Code:
sudo blkid
/dev/sda1: UUID="00FE6632FE662060" TYPE="ntfs"
/dev/sdb1: UUID="549B-0CFC" TYPE="vfat"
/dev/sdb3: UUID="4E4E9BC44E9BA2EF" TYPE="ntfs"
/dev/sr0: LABEL="UDF Volume" TYPE="udf"
/dev/sdc1: UUID="5E8C94A58C94796B" TYPE="ntfs"
/dev/sdc2: UUID="6c0dc053-3fad-4006-9ec1-fffe48802ebf" TYPE="ext4"
/dev/sdc5: UUID="57a36ed3-3399-4ea1-b923-ac01dea48801" TYPE="ext4"
/dev/sdc6: UUID="a8abace4-ab46-4484-84ce-96197c628c5d" TYPE="ext4"
/dev/sdc7: UUID="b5da3fed-0168-4ceb-9227-cb049d4c9fd0" TYPE="swap"
Code:
sudo parted -l
Model: ATA ST1000DM003-9YN1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 1000GB 1000GB primary ntfs
Model: ATA SAMSUNG SSD 830 (scsi)
Disk /dev/sdb: 64.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot
2 106MB 240MB 134MB Microsoft reserved partition msftres
3 240MB 64.0GB 63.8GB ntfs Basic data partition
Model: ATA ST3750528AS (scsi)
Disk /dev/sdc: 750GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 226GB 226GB primary ntfs
2 226GB 226GB 500MB primary ext4
3 226GB 750GB 524GB extended
5 226GB 246GB 20.0GB logical ext4 boot
6 246GB 742GB 496GB logical ext4
7 742GB 750GB 7999MB logical linux-swap(v1)
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: /dev/sr0: unrecognised disk label
Originally Posted by
ahallubuntu
The link you pointed to tells you how to use the Windows boot loader to boot Ubuntu. This should work for 13.04 (the guide was written for 12.04), but there are numerous steps you need to perform correctly. Did you successfully shrink your Windows partition(s)? Did you choose to let Ubuntu install in the free space?
Yes I made ~480gb of free space on sdc.
One important step in that guide is to change where the Grub boot sector is written. If you didn't change it as instructed, it will overwrite the Windows boot sector - normally that's what you want (so Grub boots and lets you choose Windows or Ubuntu), but in this case, you needed to choose your new Ubuntu partition instead - so Windows could still boot up.
I did what it said and chose the boot partition I just made to install grub.
You may wish to run down exactly what you did.
Also, if you can boot up your Ubuntu disc or USB again and type the output of this command (open a terminal with Ctrl Alt t):
When you booted your Windows 7 disc to do the repair, how did you do it? I've found that trying automatic boot repair may not work in Windows 7. However, you can try doing it manually (assuming the Windows 7 partition(s) are still there). (FYI, there may have been a tiny Windows 7 boot partition when you started - sure that one is still there if it was there originally?) Anyway, you could try booting the Windows disc again and dropping into a command prompt, then typing:
Code:
bootrec.exe /fixmbr
and then trying to reboot. If your Windows partitions are intact, that should do it. (Sometimes "bootrec.exe /fixboot" - I've never quite understood the difference.)
I at first tried the automatic startup repair but after that didn't find anything I went into the cmd and use those two commands, and they didn't work.
Bookmarks