So having done that, it seems grub is in the right place now, but all I'm getting is the grub prompt screen, so am not able to boot into either OS.
Announcement
Collapse
No announcement yet.
Dual Boot - Can't Boot Kubuntu
Collapse
This topic is closed.
X
X
-
Originally posted by bngllghr View Post/usr/sbin/grub-bios-setup: warning: Sector 32 is already in use by the program `FlexNet'; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
/usr/sbin/grub-bios-setup: warning: Sector 33 is already in use by the program `FlexNet'; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported.
What you have to do is wipe the Boot part of the MBR clean a then reinstall grub as instructed above. To do this you must use DD. I caution you to BE VERY CAREFUL using DD. It has no sanity checks and you can wipe your whole disk clean with it.
First step: boot to the USB and mount your install partition. <<TIP>> Cut n' paste these commands! Avoid missing things like spaces and such! <<>>
sudo mount /dev/sda6 /mnt/install
Then we make a back up of your first 63 sectors just in case.
sudo dd if=/dev/sda of=/mnt/install/sda_mbr_backup.bin bs=512 count=63
You now have made a backup of the MBR and the first 63 sectors. We are now going to wipe only the empty (usually) sectors and leave the MBR and partition section intact. Don't worry, as long as you did the previous step correctly, you can recover from a mess up.
sudo dd if=/dev/zero of=/dev/sda bs=512 count=62 seek=1
Now you can begin again with the above steps to install grub. It should work this time. I've done these exact steps on one of my laptops and it worked just as planned.
- Top
- Bottom
Comment
-
Here's exactly what I did:
sudo mkdir /mnt/install
...
sudo mount /dev/sda6 /mnt/install
...
sudo dd if=/dev/sda of=/mnt/install/sda_mbr_backup.bin bs=512 count=63
...
sudo dd if=/dev/zero of=/dev/sda bs=512 count=62 seek=1
...
sudo grub-install --boot-directory=/mnt/install /dev/sda
Seemed ok, no errors, 'installation successful'. Rebooted. Got the grub prompt screen. Booted again from USB and tried:
Code:kubuntu@kubuntu:~$ sudo update-grub /usr/sbin/grub-probe: error: failed to get canonical path of /cow. kubuntu@kubuntu:~$
5. Reboot. Grub should come up. Log in, open a terminal again.
6. sudo update-grub
- Top
- Bottom
Comment
-
That should have worked. At least grub installed with no errors so that's out of the way. There must not be a grub.cfg on your system. Reboot and try this at the grub prompt:
set root=(hd0,msdos6)
set prefix=(hd0,msdos6)/boot/grub
insmod normal
normal
boot
If that fails try:
set root=(hd0,msdos6)
linux /vmlinuz root=/dev/sda6
initrd /initrd.img
boot
This second one will only work if the /boot directory on sda6 has symlinks "vmlinuz" and "initrd.img" properly defined. If not, type in the full name of those files like /boot/vmlinuz-3.8.0-35-generic or whatever yours is.
If either of these work, run update-grub and you should be good to go.
Here's the good news: All this trouble was caused by Flexnet using sector 32. Now at least you have wiped that off, so IF you wanted to - a re-install should work and you'd have a booting system again.Last edited by oshunluvr; Jan 17, 2014, 09:28 AM.
- Top
- Bottom
Comment
-
set root=(hd0,msdos6)
set prefix=(hd0,msdos6)/boot/grub
insmod normal
normal
boot
set root=(hd0,msdos6)
linux /vmlinuz root=/dev/sda6
initrd /initrd.img
boot
I also tried:
Code:set root=(hd0,msdos6) linux /vmlinuz-3.11.0.14-generic root=/dev/sda6 initrd /initrd.img-3.11.0.14-generic boot
Below is the Terminal output for update-grub.
Code:ben@ben-Ideapad-Z570:~$ ls -l /boot total 70120 -rw-r--r-- 1 root root 1005798 Oct 9 17:49 abi-3.11.0-12-generic -rw-r--r-- 1 root root 1006439 Nov 12 17:33 abi-3.11.0-14-generic -rw-r--r-- 1 root root 163251 Oct 9 17:49 config-3.11.0-12-generic -rw-r--r-- 1 root root 163255 Nov 12 17:33 config-3.11.0-14-generic drwxr-xr-x 5 root root 4096 Jan 17 18:16 grub -rw-r--r-- 1 root root 26037102 Jan 2 19:53 initrd.img-3.11.0-12-generic -rw-r--r-- 1 root root 25269813 Jan 2 19:55 initrd.img-3.11.0-14-generic -rw-r--r-- 1 root root 176500 Jun 17 2013 memtest86+.bin -rw-r--r-- 1 root root 178680 Jun 17 2013 memtest86+_multiboot.bin -rw------- 1 root root 3285893 Oct 9 17:49 System.map-3.11.0-12-generic -rw------- 1 root root 3286278 Nov 12 17:33 System.map-3.11.0-14-generic -rw-r--r-- 1 root root 5600032 Jan 2 19:45 vmlinuz-3.11.0-12-generic -rw------- 1 root root 5601072 Nov 12 17:33 vmlinuz-3.11.0-14-generic ben@ben-Ideapad-Z570:~$ sudo update-grub [sudo] password for ben: Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.11.0-14-generic Found initrd image: /boot/initrd.img-3.11.0-14-generic Found linux image: /boot/vmlinuz-3.11.0-12-generic Found initrd image: /boot/initrd.img-3.11.0-12-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows 7 (loader) on /dev/sda1 Found Windows Vista (loader) on /dev/sda2 Found Windows Recovery Environment (loader) on /dev/sda4 done ben@ben-Ideapad-Z570:~$
Last edited by bngllghr; Jan 17, 2014, 12:36 PM.
- Top
- Bottom
Comment
-
I'm running out of ideas.
OK, boot into Kubuntu again. Run:
sudo grub-install /dev/sda
sudo update-grub
and post the contents of /boot/grub/grub.cfg and /boot/grub/device.map. Then reboot again and report results.
- Top
- Bottom
Comment
-
Tried the first command but got this
Code:ben@ben-Ideapad-Z570:~$ sudo grub-install /dev/sda [sudo] password for ben: source_dir doesn't exist. Please specify --target or --directory ben@ben-Ideapad-Z570:~$ sudo grub-install /dev/sda source_dir doesn't exist. Please specify --target or --directory ben@ben-Ideapad-Z570:~$
Code:# # 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='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 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_GB insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=5 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### 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 'GNU/Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fd9264a6-85cd-403a-b55b-3a14a9fd9543' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 fi linux /boot/vmlinuz-3.11.0-14-generic root=UUID=fd9264a6-85cd-403a-b55b-3a14a9fd9543 ro initrd /boot/initrd.img-3.11.0-14-generic } submenu 'Advanced options for GNU/Linux' $menuentry_id_option 'gnulinux-advanced-fd9264a6-85cd-403a-b55b-3a14a9fd9543' { menuentry 'GNU/Linux, with Linux 3.11.0-14-generic' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-14-generic-advanced-fd9264a6-85cd-403a-b55b-3a14a9fd9543' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 fi echo 'Loading Linux 3.11.0-14-generic ...' linux /boot/vmlinuz-3.11.0-14-generic root=UUID=fd9264a6-85cd-403a-b55b-3a14a9fd9543 ro echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.11.0-14-generic } menuentry 'GNU/Linux, with Linux 3.11.0-14-generic (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-14-generic-recovery-fd9264a6-85cd-403a-b55b-3a14a9fd9543' { recordfail load_video insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 fi echo 'Loading Linux 3.11.0-14-generic ...' linux /boot/vmlinuz-3.11.0-14-generic root=UUID=fd9264a6-85cd-403a-b55b-3a14a9fd9543 ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.11.0-14-generic } menuentry 'GNU/Linux, with Linux 3.11.0-12-generic' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-advanced-fd9264a6-85cd-403a-b55b-3a14a9fd9543' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 fi echo 'Loading Linux 3.11.0-12-generic ...' linux /boot/vmlinuz-3.11.0-12-generic root=UUID=fd9264a6-85cd-403a-b55b-3a14a9fd9543 ro echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.11.0-12-generic } menuentry 'GNU/Linux, with Linux 3.11.0-12-generic (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-recovery-fd9264a6-85cd-403a-b55b-3a14a9fd9543' { recordfail load_video insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 fi echo 'Loading Linux 3.11.0-12-generic ...' linux /boot/vmlinuz-3.11.0-12-generic root=UUID=fd9264a6-85cd-403a-b55b-3a14a9fd9543 ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.11.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,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 fi linux16 /boot/memtest86+.bin } menuentry 'Memory test (memtest86+, serial console 115200)' { insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 fd9264a6-85cd-403a-b55b-3a14a9fd9543 else search --no-floppy --fs-uuid --set=root fd9264a6-85cd-403a-b55b-3a14a9fd9543 fi 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/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-6296E81596E7E80D' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 6296E81596E7E80D else search --no-floppy --fs-uuid --set=root 6296E81596E7E80D fi chainloader +1 } menuentry 'Windows Vista (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-6246E9C246E996D7' { insmod part_msdos insmod ntfs set root='hd0,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 6246E9C246E996D7 else search --no-floppy --fs-uuid --set=root 6246E9C246E996D7 fi chainloader +1 } menuentry 'Windows Recovery Environment (loader) (on /dev/sda4)' --class windows --class os $menuentry_id_option 'osprober-chain-C420EFB620EFAE1C' { insmod part_msdos insmod ntfs set root='hd0,msdos4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 C420EFB620EFAE1C else search --no-floppy --fs-uuid --set=root C420EFB620EFAE1C fi drivemap -s (hd0) ${root} chainloader +1 } ### 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 ###
/boot/grub/device.map
Also, not sure whether it's important but of the two files 'vmlinuz-3.11.0-12-generic' and 'vmlinuz-3.11.0-14-generic', the former shows as 'DOS/Windows Executable' while the latter shows as an 'unknown' file type.Last edited by bngllghr; Jan 17, 2014, 03:17 PM.
- Top
- Bottom
Comment
-
Ok, manually boot back into your install and try this:
sudo apt-get update
sudo apt-get install --reinstall grub-pc
- Top
- Bottom
Comment
-
Still the same after trying that.
Occassionally
set root=(hd0,msdos6)
set prefix=(hd0,msdos6)/boot/grub
insmod normal
normal
GNU/Linux
Advance Options for GNU/Linux
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Windows 7 (loader) (on /dev/sda1)
Windows Recover Environment Environment (loader) (on /dev/sda4)
But regardless of what I select, I just get a list of errors. I photographed the screen if it's useful?
- Top
- Bottom
Comment
-
-
Do this for me: run
sudo dd if=/dev/sda of=mbrsectors.bin bs=512 count=63
and attach the file mbrsectors.bin to your next post. I want to compare your sectors to mine.
- Top
- Bottom
Comment
-
And list the output from:
ll /boot/grub
from sda6 of course.
Lets see your defaults too. Post or attach a copy of /etc/default/grubLast edited by oshunluvr; Jan 17, 2014, 07:34 PM.
- Top
- Bottom
Comment
-
Did you re-run
sudo grub-install /dev/sda
sudo update-grub
after you ran
sudo apt-get update
sudo apt-get install --reinstall grub-pc
??
- Top
- Bottom
Comment
-
Did you re-run
sudo grub-install /dev/sda
sudo update-grub
after you ran
Code:sudo apt-get update sudo apt-get install --reinstall grub-pc
So, I redid it and .... IT WORKS!! Both Kubunutu and Windows now boot up fine.
I do have an error displayed in the boot process though:
Code:* Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated [OK] * Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated [fail]
Code:* Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated[164G[ OK ] * Setting up X socket directories... [170G [164G[ OK ] * Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated[164G[[31mfail[39;49m]
Being as I'm not networking printers, am I ok to just leave this as it is?
I did try:
sudo apt-get install --reinstall cups
As instructed here: https://www.kubuntuforums.net/showth...is-not-running
But that didn't fix it. It doesn't seem to be causing any problems though ...
- Top
- Bottom
Comment
Comment