Announcement

Collapse
No announcement yet.

First attempt to create a dual boot failed

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

    First attempt to create a dual boot failed

    Hi, I'm looking to rejoin the Linux world. I had an Ubuntu 8.04 PC set up as my jukebox PC (with Amarok). I had it set up as a tri-boot with Windows 7 and XP on one hard drive and Ubuntu on its own drive. Sadly, the Ubuntu drive crashed. I just kept using it as a dual boot with the two Windows versions.

    Fast forward to today. I want to rejoin the Linux world, but after testing both the Ubuntu DVD and the Kubuntu one, I think I want to go with the latter. It's the same PC as before, except now it only has one hard drive. XP is gone and it's just a Windows 7 PC. I watched some videos on how to install Kubuntu as a dual boot on a PC that already has Windows 7. All of them used the Win 7 tool to create an unallocated space on the drive that Kubuntu could format. I did things a little differently. I have a Gparted boot CD which I used to make an ext4 partition of about 450 gigabytes. I figured the Kubuntu installer would see that partition and offer to install on it. It didn't, at least not in a way that was obvious to me.

    So I went back with Gparted and deleted the ext4 partition, leaving it unallocated. I hoped the installer would see that and offer to format it and install onto it. I went through the install process and instead ended up with a Kubuntu PC using the entire 1 TB hard drive and Windows 7 overwritten. Don't worry. That's not a disaster. I had the PC fully backed up with a ghosting utility named Acronis True Image. It's restoring back to a Windows 7 PC as I write this.

    I guess the Youtube videos I used didn't sink in or weren't the right instructions or whatever. I was hoping someone could refer me to an online guide that I can just print and follow step by step. That's what I did some years back when I made the Win 7/XP/Ubuntu PC.
    Kubuntu 22.04 (desktop & laptop), Windows 7 &2K (via VirtualBox on desktop PC)
    ================================

    #2
    The easiest way for a dual boot is always start with the Windows install and then partition the disk using the Windows tool as you originally did.
    A problem with that particular tool is it will not allow you to make more than about 50% of the total disk available, in case of need you can now follow it up with Gparted from the Live CD/DVD/USB drive and shrink the Windows partition even more.

    The (K)Ubuntu installer will offer the option to install on the free disk space but it's much more transparent to do the partitioning as a separate operation with Gparted from the Live disk.

    For the Linux install you need 1 partition but ideally you want at least three:
    15-20 GB for root or /,
    At least equivalent to your RAM (like 4 GB or so) as swap,
    The rest as home or /home.

    I suggest you use ext4 for the root and home, swap has it's own thing.

    A separate home will be VERY handy when time comes to do a reinstall, this way most of your settings and all of your documents are saved.
    It is possible to run a smaller root but it will cause issues when it's time to upgrade because this is where the temp files normally go.
    Years ago the rule for swap space was 1.5 - 2 x RAM but these days with many Gigs of it it's for most of us sufficient to have a swab at least equal to the amount of RAM, swapping hardly ever happens but suspense to disk is done in the swap space and is basically an image of your RAM.

    Recap:
    Reinstall Win7, use it to free some disk space.
    Run the Live disk and use Gparted to split the free space in three partitions as per above.
    Select the install option from the Live Disk desktop and use for Manual Partitioning to assign the just created partitions as above.
    At this point you can also assign the Windows partition (C-drive) to /Windows or /Dos.

    The first time you don't need to (re)format anything, during a reinstall of Linux you'd only reformat the root and keep /home in tact.

    Comment


      #3
      Thanks for your help. Here's where I am. The computer I described in my previous post may have hardware issues. I'm therefore not going to install Kubuntu on it until I resolve its possible issues. However, I have been working on getting it installed on my Lenovo Windows 7 laptop.

      I decided I would follow your guide and do it approximately as follows:

      340 GB ntfs partition remains as Windows 7 drive
      wipe 30 gig Lenovo recovery partition, which I don't need
      340 GB partition becomes Kubuntu home drive
      30 GB partition becomes Kubuntu root partition
      4 GB partition becomes swap partition

      I booted with the Gparted boot disk and wiped the Lenovo recovery partition. I don't need it. My Windows 7 installation is well backed up from the original install to numerous incarnations. I split approximately 320 Gig off the main partition, making it unallocated. Then I combined that with the 30 gig that formerly was the recovery partition. (These numbers are all estimates.)

      However, Gparted only lets me make one more partition. If I try to make more than one, I get this error:

      It is not possible to create more than 4 primary partitions.
      Okay, I don't really need to separate home from root. I see why that's a good strategy for some people, but it's not for me. I don't keep any of my work data on any of my PCs. For me, the internal hard drive is for the operating system and all applications and nothing else. I keep all my work data on external media like thumb drives and external hard drives. I typically work with a thumb drive and then just before I finish, copy everything from that drive to yet another thumb drive so I always have two copies, none of which are on the internal drive.

      Okay, so I wanted to go with just one big Kubuntu partition and a 4 Gig swap file. I created the ext4 partition (approx 340 Gig) and had about 4 Gig unallocated space for the swap partition. However, when I try to turn that into an ext4 partition, in Gparted, I get the dreaded error again:

      It is not possible to create more than 4 primary partitions.
      What the hey? The above are all approximate numbers. I've typed up the exact numbers as it now stands and you can see that here:



      How do I proceed and make sure that the Kubuntu installs on my 337 Gig ext4 partition and then uses the 3.9 Gig unallocated space as the swap file? I want to make sure it doesn't wipe out my Windows 7 and take the whole space.

      Also, will Kubuntu 13.04 automatically create the Grub file that gives the user the choice between Kubuntu or Windows 7? Or am I going to need to manually edit that? I remember I needed to edit it back when I was installing Ubuntu 8.04.
      Kubuntu 22.04 (desktop & laptop), Windows 7 &2K (via VirtualBox on desktop PC)
      ================================

      Comment


        #4
        You might want to slow down just a bit - a little reading about partitioning might be in order.

        If your system is using MBR (vs. GPT) drive formatting, you are indeed limited to 4 primary partitions per hard drive. However, one of those can be exchanged for an extended partition. Linux can address up to 15 logical partitions with a scsi (sata) drive or 63 logical partitions if it's IDE - within the extended partition.

        So with your current setup as listed above, I would delete the "New Partition", create a new Extended partition, and then any number of Logical partitions within the extended partition.

        If you want to control the installation process, select "Manual Partitioning" during install and select the correct partition.

        I suggest you create 3 logical partitions: 12-16 GB for /, 2-4 GB for swap, and whatever's left over for /home.

        Note the logical partition numbers will begin at 5 and increase from there as 1-4 are reserved for primary/extended partitions.

        Please Read Me

        Comment


          #5
          Originally posted by oshunluvr View Post
          You might want to slow down just a bit - a little reading about partitioning might be in order.

          If your system is using MBR (vs. GPT) drive formatting, you are indeed limited to 4 primary partitions per hard drive. However, one of those can be exchanged for an extended partition. Linux can address up to 15 logical partitions with a scsi (sata) drive or 63 logical partitions if it's IDE - within the extended partition.

          So with your current setup as listed above, I would delete the "New Partition", create a new Extended partition, and then any number of Logical partitions within the extended partition.

          If you want to control the installation process, select "Manual Partitioning" during install and select the correct partition.

          I suggest you create 3 logical partitions: 12-16 GB for /, 2-4 GB for swap, and whatever's left over for /home.

          Note the logical partition numbers will begin at 5 and increase from there as 1-4 are reserved for primary/extended partitions.
          Thanks for the info, oshunluvr. I tried making extended partitions in Gparted, but I still got that same error message. The partition I created definitely was extended. It said so right next to it. So instead I left the space unallocated and used Kubuntu's installer to do all the partitioning. I found a page with information on how to do partitioning via the Kubuntu installer:

          http://www.linuxbsdos.com/2011/05/12...kubuntu-11-04/

          That was helpful. I got through the install process. Here are the settings I used:



          [Image not showing in the preview ... if it doesn't post, here's the link to it: http://imageshack.us/photo/my-images/545/m29q.jpg/ ]

          I might change some things later, but that's how it's set at least for now. The thing is, I don't keep any of my work files on any of my computers. I use thumb drives and external hard drives for everything (and keep at least two copies of everything). That way I can always reinstall any PC without having to backup and restore any data.

          Right now the laptop still boots up straight to Windows 7 without offering the choice of Kubuntu. I suspect I'm going to need to edit the Grub file. Right? I remember I needed to do that back when I created my Win 7/XP/Ubuntu 8.04 PC. That one had a hard drive just for Ubuntu and then a different physical hard drive for Win 7 and XP. It would boot to the Ubuntu drive and then Grub would give the person the choice of Ubuntu or Windows. If you chose Windows, then there was some kind of tool from the Windows drive that would give the user the choice of 7 or XP. Not super elegant, but it worked.

          I'm trying to remember what that Windows boot tool was. Maybe that's what I need to give the user the choice of Win 7 or Kubuntu? Not Grub?

          Right now I need to dash, but I'll be back to look up info on all this. If you have any favorite resources for that, please speak up.
          Kubuntu 22.04 (desktop & laptop), Windows 7 &2K (via VirtualBox on desktop PC)
          ================================

          Comment


            #6
            Weird you did not see or get the option to make extended partitions.

            I'm not sure what's in the /boot with ext2, it and it's size are unusual.

            During a regular install there should have been an option to chose where to install the Grub boot loader, because you don't get the option to select Ubuntu I suspect something went wrong...

            Comment


              #7
              To me, the three Windows partitions look normal enough: sda1 = boot. sda2 = system, sda3 = recovery.

              I don't know if it's your terminology or if you are in fact trying what you're describing but you can't have extended partitionS, only one. It will hold the logical partitions. So create sda4 as extended, then select it and select Create>Logical. You should then get the full range of creation options and be able to create sda5, sda6, sda7, et al...

              Please Read Me

              Comment


                #8
                I'm still used to Microsoft terminology, which confusingly calls them "logical drives," even though they're not drives at all.

                Anyway, I think this thing is installed, but I haven't properly set up the option to boot to Kubuntu somehow. I can show you what I'm seeing. First, here's an image of Gparted showing me the drive and everything I've done:



                I booted up in Kubuntu via the install DVD and looked at everything. Here are the images of that:









                Looks like the OS is there to me. Plus, the Kubuntu install wizard said it was successfully installed when I got to the end of it. It's just booting straight to Windows 7. I used some kind of Windows-based boot organizing utility back when I set up my Win 7/XP/Ubuntu 8.04 PC. I wish I remembered the name of it. I had a primary hard drive in which you chose between Windows and Ubuntu. For that choice, I edited Grub. If the person chose Ubuntu, the Windows drive (a separate physical drive) was not used at all. If Windows were chosen, the secondary drive would be accessed and then the person would be given the option of Windows 7 or XP. That was done with this Windows-based utility, but I remember from the instructions that you could also use it to choose between Windows and Linux. I'm going to look into my records to see if I can remember the name of that utility. I'd bet it's an edit of a Windows file that can give the user the choice.

                Of course, if I need to, I can wipe this thing and start again. Windows 7 and all my applications are fully backed up, and there's no work or personal data at risk.

                Edit:
                I remembered the name of the Windows-based utility that helps you set up dual or multi-boot systems. It's Easy BCD and I still have it. Though it's Windows-based, it supports Linux OSes. Tomorrow I'll see if it can help me make this work.
                Last edited by Tom_ZeCat; Jul 03, 2013, 02:37 AM. Reason: remembered one more thing
                Kubuntu 22.04 (desktop & laptop), Windows 7 &2K (via VirtualBox on desktop PC)
                ================================

                Comment


                  #9
                  All that looks good. Why wipe it?

                  Now you need to research dual booting with Win7. You can use the windows boot manager or Grub.

                  Did you by any chance select a partition to install grub to or did you select /dev/sda ?

                  Please Read Me

                  Comment


                    #10
                    Originally posted by oshunluvr View Post
                    All that looks good. Why wipe it?

                    Now you need to research dual booting with Win7. You can use the windows boot manager or Grub.

                    Did you by any chance select a partition to install grub to or did you select /dev/sda ?
                    I selected a partition to install it to, or at least I thought I did. I've now used that Easy BCD utility and have successfully gotten a menu that gives users the choice of Windows 7 or Kubuntu. Unfortunately, if you choose Kubuntu, you don't get it. You get a Grub4DOS command line instead.

                    I've been looking for an online tutorial specifically on setting up a Windows 7/Kubuntu dual boot, but have not found anything. I did find this tut on Win 7/Ubunutu:
                    http://lifehacker.com/5403100/dual+b...erfect-harmony

                    I'm going to use that to see if I can figure out how to get Grub or bootloader set up to handle these two OSes.
                    Kubuntu 22.04 (desktop & laptop), Windows 7 &2K (via VirtualBox on desktop PC)
                    ================================

                    Comment


                      #11
                      You can't boot to a partition. If you installed grub to a partition you can't boot it directly, you have to boot from the MBR first.

                      Either use the Win7 bootloader (I believe you have to have your /boot partition as FAT32) or re-install grub to the MBR. You can do that from the liveDVD or USB without re-installing.

                      Please Read Me

                      Comment


                        #12
                        No offence intended but I don't believe you can't find any posts on the web about dual booting with Windows 7 - there must be thousands and at least several dozen threads here. Your search criteria is faulty somehow. I searched for "dual boot linux Windows 7" and got 3,550,000 hits using google.

                        I recommend this:

                        Boot to the LiveDVD/USB.
                        Back up your MBR to a thumb drive.
                        Install grub to the MBR (/dev/sda NOT /dev/sda1, etc.)
                        Reboot.

                        Likely, it will just work. The first time you boot into Windows again it will run a disk check, but that's fine.

                        Re. the webpage you linked to: I'd be careful following directions that are 4 years old, however I've not run into any insurmountable problems doing this.

                        Please Read Me

                        Comment


                          #13
                          Originally posted by oshunluvr View Post
                          No offence intended but I don't believe you can't find any posts on the web about dual booting with Windows 7 - there must be thousands and at least several dozen threads here. Your search criteria is faulty somehow. I searched for "dual boot linux Windows 7" and got 3,550,000 hits using google.

                          I recommend this:

                          Boot to the LiveDVD/USB.
                          Back up your MBR to a thumb drive.
                          Install grub to the MBR (/dev/sda NOT /dev/sda1, etc.)
                          Reboot.

                          Likely, it will just work. The first time you boot into Windows again it will run a disk check, but that's fine.

                          Re. the webpage you linked to: I'd be careful following directions that are 4 years old, however I've not run into any insurmountable problems doing this.
                          That's just it. I've found plenty of information on dual booting, but absolutely nothing specifically about Win 7/Kubuntu 13.04. Some of it recommends editing Grub from the Live Linux disk. Some recommends using Easy BCD or some other utility. Would you say material back to Kubuntu 11.04 is fairly safe? What about Ubuntu, not Kubuntu? Interchangeable?
                          Kubuntu 22.04 (desktop & laptop), Windows 7 &2K (via VirtualBox on desktop PC)
                          ================================

                          Comment


                            #14
                            Yeah, grub hasn't changed much since then - at least not in ways that matter for install. I've never had to use any utilities of any kind that aren't already in your install and I've messed about with grub a lot (see some of my other threads ). Making a backup of your MBR will allow you to restore it to pre-grub state if something goes wrong. Instructions to do that are here (see post #4).

                            You'll need to boot into a liveDVD or USB session and open a konsole to do those commands. Be sure you address the correct drive. Once the file is saved somewhere, then from the same konsole, re-install grub. I'll post back later if you need more help. There should be a thread here somewhere explaining how to restore grub.

                            Please Read Me

                            Comment


                              #15
                              Originally posted by oshunluvr View Post
                              Yeah, grub hasn't changed much since then - at least not in ways that matter for install. I've never had to use any utilities of any kind that aren't already in your install and I've messed about with grub a lot (see some of my other threads ). Making a backup of your MBR will allow you to restore it to pre-grub state if something goes wrong. Instructions to do that are here (see post #4).

                              You'll need to boot into a liveDVD or USB session and open a konsole to do those commands. Be sure you address the correct drive. Once the file is saved somewhere, then from the same konsole, re-install grub. I'll post back later if you need more help. There should be a thread here somewhere explaining how to restore grub.
                              Thanks for your help. Here's where I'm at. Long story -- but I've done a complete system restore from my previous ghost image so that the Lenovo laptop was exactly as it was before. Then I used the Windows utility to make space for Linux. After that I installed Ubuntu 13.04 (not Kubuntu) using the "side by side" setting. The result of this install means my drive/partitions is in this shape (as shown by Gparted):



                              Prior to this Ubuntu install, with only Windows 7 on the PC, it had looked like this:



                              [Hot link is refusing to work for some reason -- here it is: http://imageshack.us/photo/my-images/203/q6ii.jpg]

                              One of the utilities I had tried had messed up Windows' boot -- but that's what ghost images are for. Ubuntu offered that side-by-side install option that I did not find in Kubuntu, and I wanted to try it. I researched it and found that it's supposed to be not hard to migrate from Ubuntu to Kubuntu, so Kubuntu is on hold for now and I'm just working to get the dual boot working with Ubuntu.

                              Per your advice, I backed up my MBR without a hitch. I've got that safety net, and of course the additional safety net of the ghost image. Plus, none of my work or personal data is anywhere on this PC. It's all on external drives, saved redundantly.

                              I've googled your instruction "install grub to MBR Ubuntu" and have found some material that hopefully will lead to success. Here's a link that seems promising:
                              http://askubuntu.com/questions/19759...mmon-scenarios

                              Does that material look like it's good quality for what I'm doing? I found other promising links. I'll paste them at the end of this post. My brain is too fried right now to attempt this, so I'll hit it tomorrow. If there's an instruction link that you think is better than the one I've found, and it's not too much trouble, please post it. I very much appreciate your help.

                              cheers, Tom

                              the other links:

                              Install grub to MBR
                              https://help.ubuntu.com/community/Grub2/Installing

                              Multiple OS Installation
                              http://ubuntuguide.org/wiki/Multiple_OS_Installation

                              restore grub
                              http://www.kubuntuforums.net/showthr...D-Restore-Grub

                              defenitive dual booting guide
                              http://apcmag.com/the_definitive_dua...stepbystep.htm
                              Kubuntu 22.04 (desktop & laptop), Windows 7 &2K (via VirtualBox on desktop PC)
                              ================================

                              Comment

                              Working...
                              X