Ubuntu, Grub, and Windows 7


Recommended Posts

Hello,

So recently I have set up my new computer (craigslist finds many deals for those of you in the US :)). Anyway, I have three hard drives hooked up in this order, My first hard drive has Windows 7 on it (C:, or /dev/sda1), My second hard drive which holds my Ubuntu installation (/dev/sdb1), and then my third drive which is just a backup.

My first drive I have my Windows boot loader on it, with two entries: One for Windows 7 and one for Ubuntu. My second hard drive I installed Grub onto, which has a menu for the various kernels and of course to boot up Windows.

Here is my issue and what I did to try to solve it, but to no avail. Every time I boot into Windows, everything is fine until I restart my computer or shut down. After I exit Windows, and try to boot into Ubuntu, Grub can no longer see my Ubuntu installation (No such device found, no partition found). Of course my second hard drive is fine, I am able to boot into my recovery CD and fix Grub after a few hours, and boot back into my Ubuntu. But the second I launch Windows 7, it screws with my Ubuntu boot partition somehow. Grub is fine, it has the right menu but is Unable to see any hard drive except /dev/sda1 [Windows].

So I want to install Grub to my Windows boot loader, /dev/sda, but to have my boot partition on /dev/sdb3 (I just re-sized my partition for 500 megabytes specifically for /boot). I tried following a tutorial on the internet to install Grub, however I am afraid if I choose to install my Grub onto /dev/sda, that it will somehow corrupt my Windows Partition.

How do I install just the boot loader onto /dev/sda while having the Grub Stage 2 files on my /dev/sdb3 partition? Also, how to I configure Ubuntu to mount /dev/sdb3 as /boot automatically, as that partition was not originally there when I installed it.

Thank you!

Link to comment
https://www.neowin.net/forum/topic/1075093-ubuntu-grub-and-windows-7/
Share on other sites

From what I can remember you need to install grub onto the windows drive, although saying this, it has been a while since I dual booted linux and windows on a machine, but installing it on the windows partition will not screw up the boot sequences and it should fix the problems you are having, Windows will just have to be selected from the grub menu to boot into unless you edit the config file for it to default boot into windows.

Well I ended up switching my Linux drive and Windows drive physically to the opposite slots they were in, and reinstalled Ubuntu. Now I can boot into Ubuntu fine, but for some reason Grub will not boot into Windows now, giving me the error that Ubuntu previously had:

error: no such device

error: no such partition

I recovered the Windows MBR, using bootsect /nt60 all, bootsect /nt60 sys /mbr bootrec /fixmbr, etc, then I reinstalled Grub onto my Linux drive, and reconfigured the menu.lst file. However, I still get the same error when trying to boot into Windows from Grub. Does it sound like a hardware issue, or Grub sucks at seeing the two different hard drives?

Grub needs to be the initial boot sector, then windows, for some reason, the way you have set things up is messing this up.

Computer On --> Grub --> Windows

Computer On --> Grub --> Linux

Either way grub needs to be installed to the 1st device set to boot from.

Going back to your original setup....

sda1 - Windows (Has to be installed 1st)

sdb1 - Linux (Has to be installed last)

Boot partition is to be set on sda1 so as grub manages the boot up and os.

Everything works then as it should.

Other option

Install Windows

Disconnect windows hard drive

Install Linux on other drive

Reconnect Windows drive

Use your computers bios boot device selector to change which os to boot from (Usually F11)

Mostly I use Windows XP on my virtual machine since it's much easier to setup and configure then using it on my host machine. Since i don't use plugins or anything on my host machine that's why.

Same with ubuntu, just use it on a virtual machine since it's much easier to configure and setup without knowing that it will have problems on the host machine.

  • 2 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • They aren't going to want to. Most would just go with the 17 Pro and save money. Why would they want to spend $300 for basically the same thing? It's not worth it if there are hardly any changes from year to year.
    • 24H2 rolled out to the Release Preview Channel in early June 2024, so this coming a bit later in the Experimental Channel (formerly Dev) doesn't really say much more than earlier H2 releases that came out in October. I am not sure what the thinking is here by putting it in Experimental, one would think that the 26H2 stamp means features are locked down and it's now bug tested until October? I don't even pretend to understand Microsoft's strategy for Windows Insider Program though
    • Nothing Ear (a) and CMF Buds Pro 2 with active noise cancellation drop to lowest price ever by Fiza Ali With Prime Day 2026 scheduled to run from Tuesday 23 to Friday 26 June, Amazon has already begun rolling out early access offers ahead of the main event. Particularly, Nothing Ear (a) and CMF Buds Pro 2 wireless earbuds have dropped to their lowest price ever with limited Prime deal offering 33% and 24% discounts, respectively. Nothing Ear (a) are equipped with 11mm dynamic drivers featuring a PM1 + TPU diaphragm. For noise control, the earbuds offer active noise cancellation (ANC) of up to 45dB across frequencies reaching 5,000Hz. The smart ANC algorithm adapts to surrounding noise levels, while a Transparency Mode allows users to remain aware of their environment when needed. Connectivity is handled via Bluetooth 5.3, with support for AAC, SBC, and LDAC audio codecs. Additional features include IP54-rated earbuds for dust and splash resistance, paired with an IPX2-rated charging case. Furthermore, users also benefit from pinch controls, in-ear detection, Google Fast Pair, Microsoft Swift Pair, dual-device connectivity, and a low-latency mode designed for gaming and video playback. The Nothing X app unlocks a range of customisation options, including a personalised equaliser, bass enhancement, control remapping, ear tip fit testing, firmware updates, dual-device management, a Find My Earbuds feature, and low-latency mode settings. When it comes to the battery, the earbuds house a 46mAh lithium-ion battery, while the charging case contains a 500mAh cell. With ANC disabled, users can expect up to 9.5 hours of playback from the earbuds and up to 42.5 hours in total with the charging case. With ANC enabled, battery life is rated at up to 5.5 hours per charge and up to 24.5 hours combined with the case. Finally, fast charging is also supported that should provide up to 10 hours of playback from a 10-minute charge with ANC turned off. Nothing Ear (a) Wireless Earbuds (Black): $53.20 (Amazon US) - 33% The CMF Buds Pro 2 feature a dual-driver audio system consisting of an 11mm bass driver and a 6mm micro-planar tweeter. The earbuds use PU (polyurethane) and PET (polyethylene terephthalate) titanium-coated diaphragms and are tuned by Nothing to deliver balanced audio performance. They further support active noise cancellation of up to 50dB across a frequency range of up to 5,000Hz, and noise control features include a Smart ANC algorithm, Adaptive ANC, Transparency Mode, and Clear Voice Technology 2.0. For calls, the CMF Buds Pro 2 use a total of six microphones and feature an environmental noise-cancelling algorithm, Clear Voice Technology 3.0, and Wind Noise Reduction 3.0 that should improve voice clarity during conversations. Furthermore, when it comes to the connectivity, it is provided through Bluetooth 5.4. Additional features include an IP55 rating for dust and water resistance, Google Fast Pair, Microsoft Swift Pair, in-ear detection, a low-latency mode, and a Find My Earbuds function. Moreover, through the Nothing X app for Android and iOS, users can access custom EQ settings, a bass enhancement algorithm, customisable controls, Find My Earbuds, low-latency mode, dual-device connectivity, an ear tip fit test, and firmware updates. The earbuds contain a 60mAh rechargeable lithium-ion battery, while the charging case houses a 460mAh battery. A full charge of the earbuds and case via USB-C should take approximately 85 minutes, while the earbuds alone should be fully recharged in the case in around 60 minutes. Battery life is rated at up to 11 hours of playback on a single charge and up to 43 hours with the charging case when ANC is turned off. With ANC enabled, playback time is reduced to up to 6.5 hours on the earbuds and up to 26 hours with the charging case. Talk time is rated at up to 6 hours on the earbuds and 25 hours with the case with ANC disabled, or up to 4.8 hours and 18.6 hours, respectively, with ANC enabled. CMF Buds Pro 2 Wireless Earbuds (Dark Grey): $37.05 (Amazon US) - 24% Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • The entire world moved to the vastly superior and now universally supported Dolby Atmos technology a very long time ago, mate.
  • Recent Achievements

    • Collaborator
      ryansurfer98 went up a rank
      Collaborator
    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      542
    2. 2
      +Edouard
      186
    3. 3
      Michael Scrip
      77
    4. 4
      PsYcHoKiLLa
      75
    5. 5
      Steven P.
      71
  • Tell a friend

    Love Neowin? Tell a friend!