Announcement

Collapse
No announcement yet.

Deleted Bootmgr

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Deleted Bootmgr

    Hi,

    I had Kubuntu 9.1 running. I wanted a dual boot with Windows 7. In this process I accidentally removed the bootmgr.
    I have two harddrives (SATA). It's booting from the smallest drive (this had (befor an earlier crash Windows data on it (NTFS formatted). The system is on the biggest drive (750 GB formatted in a Linux way). If I start up now and with the Windows 7-CD in the CD-rom it is very slow and the installation hangs showin the message Starting setup (something similar). If I try the repair option from the Windows 7 CD it does not work. Booting with the Kubuntu CD does not work either.
    I used a Vista installation disk and discoverd that my PC does not recognize my above mentioned hard drives !

    What I had was Kubuntu running. What I want is Windows 7 as the primary OS and Kubuntu (or probably Ubuntu) as a second possibilty.

    I hope I am clear enough to get some workeable answers !!

    Thanks in advance !!

    Remmelt

    #2
    Re: Deleted Bootmgr

    "I hope I am clear enough to get some workeable answers !!"

    Well, no, but it doesn't matter, you did a pretty good try, though.
    You may have several issues, very hard to sort them out without actually being there at your PC.

    If you had 9.10 installed and wanted to install 7, this would guide you through the safe way, step by step:
    Vista *** The definitive dual-booting guide: Linux, Vista, 7, and XP step-by-step
    http://apcmag.com/dualboot
    (pick your case from their extensive menu of configurations)

    If you are dual booting on two hard drives, and if you install GRUB 2 (the bootloader for 9.10) to the drive that is NOT set to boot first in your BIOS, there is a known bug that could delay the booting:
    Current grub-pc takes several minutes to show menu
    https://bugs.launchpad.net/ubuntu/+s...b2/+bug/420933

    Usually, in these cases, it is sufficient to simply re-install GRUB 2.
    You can do that from live Kubuntu CD or from inside your new Kubuntu (if you can't boot into your new Kubuntu, you can use Super Grub Disk to boot into it, then re-install GRUB 2):
    GRUB 2 A Guide for Users
    http://kubuntuforums.net/forums/inde...opic=3106368.0
    Super Grub Disk, new site: http://www.supergrubdisk.org/

    If you were to start from scratch, you should first use GParted Live CD to partition your drive(s), then run the Kubuntu installer and the 7 installer; it is always best to install Windows FIRST (but see the apcmag link I gave you above):
    GParted (Live CD, USB, HD)
    http://gparted.sourceforge.net/livecd.php
    New Manual. New man page. See Documentation:
    http://gparted.sourceforge.net/documentation.php

    If you install 7 AFTER Kubuntu and on a non-first hard drive, you may have to run
    sudo update-grub
    to generate a new, correct boot menu (called /boot/grub/grub.cfg in GRUB 2, in your Kubuntu OS).
    GRUB 2 should be able to take care of your 7 without issues, but just in case, you may have to fix things.


    This is not much help to you. It basically says to start from scratch reading and try to sort out what's going on, but these links are important.

    These statements, in particular, are perplexing issues:
    "If I try the repair option from the Windows 7 CD it does not work. Booting with the Kubuntu CD does not work either. I used a Vista installation disk and discovered that my PC does not recognize my above mentioned hard drives !"


    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: Deleted Bootmgr

      Hi,

      Has supergrub been updated since last year november ? I have that version and that one has not those options.

      I am able to install Ubuntu 8.04 !! stange, Kubuntu 9,1 won't work.

      Thanks sofar,

      Remmelt

      Comment


        #4
        Re: Deleted Bootmgr

        Yes SGD has been updated, but your should do it also.
        As for 8.04, I'm happily using Kubuntu 8.04.3 (after getting its updates) and it's a good choice for an OS to use.

        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

        Comment


          #5
          Re: Deleted Bootmgr

          Which version of grub does super grub install?
          Specification: 3.06 GHZ Pentium 4, 1 gig ram, 17" monitor, ECS P4M800PRO-M version 2 and 500 gig Hitachi desk star
          Linux Mint 7 Gloria KDE community editon.
          Based on Kubuntu 9.04 Jaunty Jackalope.

          Comment


            #6
            Re: Deleted Bootmgr

            Btw, you might try to get a clearer picture of your setup (and for us, too), if you can boot into your Ubuntu or Kubuntu or use a Live K/Ubuntu CD,
            at Konsole
            sudo fdisk -lu
            and copy the results here, telling what OS is where, and what drive your BIOS is set to boot from.

            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

            Comment


              #7
              Re: Deleted Bootmgr

              Hi,

              This is output from sudo fdisk -lu

              remmelt@remmelt-desktop:~$ sudo fdisk -lu
              [sudo] password for remmelt:

              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
              Disk identifier: 0x4effcce4

              Device Boot Start End Blocks Id System
              /dev/sda1 * 2048 976771071 488384512 7 HPFS/NTFS

              Disk /dev/sdb: 750.1 GB, 750156374016 bytes
              255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
              Units = sectors of 1 * 512 = 512 bytes
              Disk identifier: 0x000ea936

              Device Boot Start End Blocks Id System
              /dev/sdb1 63 1446910289 723455113+ 83 Linux
              /dev/sdb2 1446910290 1465144064 9116887+ 5 Extended
              /dev/sdb5 1446910353 1465144064 9116856 82 Linux swap / Solaris

              Disk /dev/sdc: 2021 MB, 2021654528 bytes
              63 heads, 62 sectors/track, 1010 cylinders, total 3948544 sectors
              Units = sectors of 1 * 512 = 512 bytes
              Disk identifier: 0xb0bcd68e

              This doesn't look like a partition table
              Probably you selected the wrong device.

              Device Boot Start End Blocks Id System
              /dev/sdc1 ? 3223366781 3470046704 123339962 78 Unknown
              Partition 1 has different physical/logical beginnings (non-Linux?):
              phys=(518, 102, 15) logical=(825234, 44, 50)
              Partition 1 has different physical/logical endings:
              phys=(743, 0, 62) logical=(888388, 51, 15)
              Partition 1 does not end on cylinder boundary.
              /dev/sdc2 ? 432871117 1208554935 387841909+ 10 OPUS
              Partition 2 has different physical/logical beginnings (non-Linux?):
              phys=(205, 7, 0) logical=(110822, 6, 14)
              Partition 2 has different physical/logical endings:
              phys=(920, 235, 50) logical=(309409, 54, 34)
              Partition 2 does not end on cylinder boundary.
              /dev/sdc3 ? 1869562563 3788792630 959615034 8b Unknown
              Partition 3 has different physical/logical beginnings (non-Linux?):
              phys=(260, 125, 54) logical=(478638, 40, 56)
              Partition 3 has different physical/logical endings:
              phys=(893, 46, 60) logical=(969992, 62, 35)
              Partition 3 does not end on cylinder boundary.
              /dev/sdc4 ? 698875904 707198975 4161536 a OS/2 Boot Manager
              Partition 4 has different physical/logical beginnings (non-Linux?):
              phys=(269, 111, 50) logical=(178923, 43, 1)
              Partition 4 has different physical/logical endings:
              phys=(0, 0, 0) logical=(181054, 33, 6)
              Partition 4 does not end on cylinder boundary.

              Partition table entries are not in disk order
              remmelt@remmelt-desktop:~$

              -------------

              Remmelt

              Comment


                #8
                Re: Deleted Bootmgr

                Off hand, looks like Windows is on the hard drive that is set to boot first in BIOS, namely sda1. If so, good.
                Looks like Kubuntu is on sdb1. If so, good.
                Looks like you have a 2 GB flash drive plugged in that has a bunch of weirded-out stuff on it (including a boot manager? -> OS/2 Boot Manager). If so, bad.
                I'd start by unplugging that flash drive before I did anything.
                An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                Comment


                  #9
                  Re: Deleted Bootmgr

                  Hi,

                  What about formatting the drive from which my PC boots ? It is a Windows thing but am have no windows installed (the files there (the boot stuff) are probably relics from a previous Window OS.

                  Remmelt

                  Comment


                    #10
                    Re: Deleted Bootmgr

                    Yeah, you can do that. Also remove that very strange flash drive (do you recognize any of that stuff on it?). Also, the flash drive seems to have some strange MBR/partition table issues. To format the hard drive, I would use GParted Live CD.


                    Seems you need a plan Lay out what you want the finished result to be.
                    Best if Windows goes on the first drive, but that's up to you. With GRUB 2, it shouldn't matter as it runs os-prober and uses devicemap automatically and should locate your Windows no matter where it is and make a proper boot menu entry for it.

                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment


                      #11
                      Re: Deleted Bootmgr

                      Originally posted by Remmelt

                      This is output from sudo fdisk -lu
                      show me the content of /boot/grub/menu.lst or /boot/grub/grub.cfg
                      Linux tawee2009 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux - Desktop@Office<br /><br />Acer Aspire 3810TZ : Dual Boots : Vista/Kubuntu9.10

                      Comment


                        #12
                        Re: Deleted Bootmgr

                        Hi,

                        My plan is this:
                        Have Windows on the largest 750 GB drive (the sdb drive).
                        Have Kubuntu and maybe also Ubuntu (wanna play with them ) on the second drive (the current sda drive). I want to partition it with a Linux patition (for (K)Ubuntu) and a Windows partition for backup stuff. The Linux partiton about 50 GB and the Windows 500 - 50 = 450 GB on sda-drive.

                        This night I moved all my relevant stuff to the sdb drive (750 GB drive). This evening (I am at work now) I will format the sda drive with GParted Live CD. So after that that drive should be clean. But then what should I do, taking into account my above mentioned plan ? I think that I will move all my stuff to the recently formatted sda drive. After that I will install Windows 7 (which by the way looks more and more like Kubuntu IMHO ?!) on the sda drive. Move data again and the install (K)Ubuntu on the sda drive and makin my PC dual boot.

                        Another possibility is that I can use a Virtual Box with Windows 7 as the host and K(U)buntu as the guest.

                        This evening I will show the requested output of the commands mentioned by the last poster tawee.

                        Thanks Qqmike sofar !!

                        Remmelt

                        Comment


                          #13
                          Re: Deleted Bootmgr

                          Originally posted by Remmelt
                          Hi,

                          My plan is this:
                          Have Windows on the largest 750 GB drive (the sdb drive).....
                          .........................
                          ......................
                          This night I moved all my relevant stuff to the sdb drive (750 GB drive).,,,.

                          maybe, you need not do such a tedious task, show me the content of /boot/grub/menu.lst or /boot/grub/grub.cfg by 'sudo cat' the filename
                          Linux tawee2009 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux - Desktop@Office<br /><br />Acer Aspire 3810TZ : Dual Boots : Vista/Kubuntu9.10

                          Comment


                            #14
                            Re: Deleted Bootmgr

                            Sounds like your plan will work, step by step; also follow the guidelines of the apcmag site.
                            If you install 7 first, it will have its own bootloader. Then when you install K/Ubuntu, the 7 bootloader will be overwritten by the Kubuntu bootloader (GRUB 2), and, in theory, all should work well. (Worst case: sometimes, some folks have to re-install GRUB 2--NOT all of Kubuntu, just GRUB 2--and that can be done from a Live CD or using Super Grub Disk to boot into Kubuntu and do it from there--see the GRUB 2 Guide link.)

                            But, yes, first see what tawee2009 has in mind.
                            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                            Comment


                              #15
                              Re: Deleted Bootmgr

                              Hi,

                              Below the menu.lst. The file grub.cfg is not found in the directory you mentioned.


                              # menu.lst - See: grub(8), info grub, update-grub(8)
                              # grub-install(8), grub-floppy(8),
                              # grub-md5-crypt, /usr/share/doc/grub
                              # and /usr/share/doc/grub-doc/.

                              ## default num
                              # Set the default entry to the entry number NUM. Numbering starts from 0, and
                              # the entry number 0 is the default if the command is not used.
                              #
                              # You can specify 'saved' instead of a number. In this case, the default entry
                              # is the entry saved with the command 'savedefault'.
                              # WARNING: If you are using dmraid do not use 'savedefault' or your
                              # array will desync and will not let you boot your system.
                              default 0

                              ## timeout sec
                              # Set a timeout, in SEC seconds, before automatically booting the default entry
                              # (normally the first entry defined).
                              timeout 3

                              ## hiddenmenu
                              # Hides the menu by default (press ESC to see the menu)
                              hiddenmenu

                              # Pretty colours
                              #color cyan/blue white/blue

                              ## password ['--md5'] passwd
                              # If used in the first section of a menu file, disable all interactive editing
                              # control (menu entry editor and command-line) and entries protected by the
                              # command 'lock'
                              # e.g. password topsecret
                              # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
                              # password topsecret

                              #
                              # examples
                              #
                              # title Windows 95/98/NT/2000
                              # root (hd0,0)
                              # makeactive
                              # chainloader +1
                              #
                              # title Linux
                              # root (hd0,1)
                              # kernel /vmlinuz root=/dev/hda2 ro
                              #

                              #
                              # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

                              ### BEGIN AUTOMAGIC KERNELS LIST
                              ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
                              ## by the debian update-grub script except for the default options below

                              ## DO NOT UNCOMMENT THEM, Just edit them to your needs

                              ## ## Start Default Options ##
                              ## default kernel options
                              ## default kernel options for automagic boot options
                              ## If you want special options for specific kernels use kopt_x_y_z
                              ## where x.y.z is kernel version. Minor versions can be omitted.
                              ## e.g. kopt=root=/dev/hda1 ro
                              ## kopt_2_6_8=root=/dev/hdc1 ro
                              ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
                              # kopt=root=UUID=ca91c746-ab9c-4707-af60-50ab76999004 ro

                              ## default grub root device
                              ## e.g. groot=(hd0,0)
                              # groot=ca91c746-ab9c-4707-af60-50ab76999004

                              ## should update-grub create alternative automagic boot options
                              ## e.g. alternative=true
                              ## alternative=false
                              # alternative=true

                              ## should update-grub lock alternative automagic boot options
                              ## e.g. lockalternative=true
                              ## lockalternative=false
                              # lockalternative=false

                              ## additional options to use with the default boot option, but not with the
                              ## alternatives
                              ## e.g. defoptions=vga=791 resume=/dev/hda5
                              # defoptions=quiet splash

                              ## should update-grub lock old automagic boot options
                              ## e.g. lockold=false
                              ## lockold=true
                              # lockold=false

                              ## Xen hypervisor options to use with the default Xen boot option
                              # xenhopt=

                              ## Xen Linux kernel options to use with the default Xen boot option
                              # xenkopt=console=tty0

                              ## altoption boot targets option
                              ## multiple altoptions lines are allowed
                              ## e.g. altoptions=(extra menu suffix) extra boot options
                              ## altoptions=(recovery) single
                              # altoptions=(recovery mode) single

                              ## controls how many kernels should be put into the menu.lst
                              ## only counts the first occurence of a kernel, not the
                              ## alternative kernel options
                              ## e.g. howmany=all
                              ## howmany=7
                              # howmany=all

                              ## should update-grub create memtest86 boot option
                              ## e.g. memtest86=true
                              ## memtest86=false
                              # memtest86=true

                              ## should update-grub adjust the value of the default booted system
                              ## can be true or false
                              # updatedefaultentry=false

                              ## should update-grub add savedefault to the default options
                              ## can be true or false
                              # savedefault=false

                              ## ## End Default Options ##

                              title Ubuntu 8.10, kernel 2.6.27-7-generic
                              uuid ca91c746-ab9c-4707-af60-50ab76999004
                              kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=ca91c746-ab9c-4707-af60-50ab76999004 ro quiet splash
                              initrd /boot/initrd.img-2.6.27-7-generic
                              quiet

                              title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
                              uuid ca91c746-ab9c-4707-af60-50ab76999004
                              kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=ca91c746-ab9c-4707-af60-50ab76999004 ro single
                              initrd /boot/initrd.img-2.6.27-7-generic

                              title Ubuntu 8.10, memtest86+
                              uuid ca91c746-ab9c-4707-af60-50ab76999004
                              kernel /boot/memtest86+.bin
                              quiet

                              ### END DEBIAN AUTOMAGIC KERNELS LIST

                              Comment

                              Working...
                              X