Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Dual boot Ubuntu and Windows 7 - does not detect disk!

  1. #1
    Join Date
    Feb 2013
    Beans
    5

    Dual boot Ubuntu and Windows 7 - does not detect disk!

    Hi all,

    I have a Dell Inspiron 14z (5423) Ultrabook that came pre-installed with the stock Windows 7 64-bit.
    For those that are unaware here is the way its setup:
    • It has a 32GB mSATA cache + 500GB disk in a RAID configuration

    • Windows is pre-installed on the 500GB disk

    • The 32GB disk is all but invisible; it is merely for caching the operating system in such a way that the boot time reduces dramatically.


    I wanted to do the following:
    • replace the optical drive with a 128GB SSD

    • partition that into 90GB for Windows-7 64-bit, 30GB for Ubuntu 12.04 64-bit

    • Use the 500GB + 32GB for storage.


    I followed instructions on links such as http://ubuntuforums.org/showthread.php?t=2038121. I was able to successfully install Ubuntu and Windows 7 on the SSD. The 500GB data drive is also visible.

    However, upon boot, the 128GB disk is not recognized!
    It loads a "grub rescue" prompt that does not recognize any commands.
    To fix this, every time I boot I have to press F12 and choose "boot from hard disk". It then shows the bootloader.

    What I have tried
    • Try reordering the boot order in BIOS. Out of the available choices I have tried putting "HDD", "Second HDD", "CD/DVD drive" first. No luck.


    I am willing to clean-install Ubuntu if necessary, but not Windows 7 if possible. Lots of data there.

    Ubuntu is crazy fast with the SSD, and I feel like I'm almost there! Any advice to fix this?

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    Some of those have SSD's built into mother board. It is not really two drives.

    Just to see what Linux sees. Install Boot-Repair to your live flash installer or DVD.

    Post the link to the BootInfo report that this creates. Is part of Boot-Repair:
    https://help.ubuntu.com/community/Boot-Info
    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair
    You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration and diagnose advanced problems.
    Install in Ubuntu liveCD or USB or Full RepairCD with Boot-Repair (for newer computers)
    http://sourceforge.net/p/boot-repair/home/Home/
    https://help.ubuntu.com/community/UbuntuSecureRemix
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Feb 2013
    Beans
    5

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    Here is the Boot-Info:
    http://paste.ubuntu.com/1603365/

    Also, earlier I mentioned that it boots automatically to grub rescue. Here is the error:
    Code:
    error: no such device: ff50e06d-.....
    grub rescue> set
    prefix=(hd0,6)/boot/grub
    root=hd0,6
    And ff50 is the UUID of /dev/sdc6, as evidenced by
    Code:
    ls -l /dev/disk/by-uuid/
    Looks like one problem is that there are two grubs and the wrong one gets loaded? I may have done some weird stuff during the initial stages of getting things to work. It was a while ago so I forgot exactly what I did.

  4. #4
    Join Date
    Feb 2008
    Location
    London, On, Canada
    Beans
    88

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    Could we get your grub config file.


    There is no need to re-install a OS. Re-installing a boot loader might be easier. In which case i would recommend lilo. But post your config file and we will go from there.
    Last edited by serpantman; February 3rd, 2013 at 06:44 AM. Reason: corretion

  5. #5
    Join Date
    Feb 2013
    Beans
    5

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    Quote Originally Posted by serpantman View Post
    Could we get your grub config file.
    Thanks for the reply. I am trying to learn as I go along; what's the thinking behind that?

    Also, am I correct when I wonder that maybe there are two grubs installed, and the wrong one gets loaded?

    Attached: foo.txt is my grub.cfg.
    Attached Files Attached Files
    Last edited by savishy; February 3rd, 2013 at 03:57 PM.

  6. #6
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    From other threads seen here, I think a disk installed into a dvd-rom is not sued to boot from. It all looks normal, but it can't boot a bootloader from it.

    I suggest to try putting grub2 to another disk, like /dev/sda. Also, make sure the hdd and ssd, sda and sdb are separated, and you are not using them in any sort of special relationship like Intel SRT or similar.

    Use the ubuntu cd in live mode in terminal try something like:
    Code:
    sudo mount /dev/sdc6 /mnt
    sudo grub-install --root-directory=/mnt /dev/sda
    Then set in BIOS to boot from sda, the 500GB disk. And see how it goes.

    The combination of hdd+ssd cache disk is usually configured as some sort of raid array. Depending how yours was configured and whether you did something about it, like disabling the raid setting in bios, you might also need to delete raid meta data from sda and sdb so that linux can correctly see them as separate and not as raid. From the bootinfo they do seem correctly recognized as separate, so you might not need to do anything about this.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  7. #7
    Join Date
    Feb 2013
    Beans
    5

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    Quote Originally Posted by darkod View Post
    From other threads seen here, I think a disk installed into a dvd-rom is not sued to boot from. It all looks normal, but it can't boot a bootloader from it.I suggest to try putting grub2 to another disk, like /dev/sda.
    @Darkod I think there is a grub2 installed in MBR of /dev/sda as well as the MBR of /dev/sdc. See the Boot-Info at http://paste.ubuntu.com/1603365/

    Also, make sure the hdd and ssd, sda and sdb are separated, and you are not using them in any sort of special relationship like Intel SRT or similar.
    sda is the 500GB hard disk.
    sdb is the 32GB mSATA SSD.
    sdc is the 128GB SSD I replaced the opticaldrive with.

    sda and sdb are indeed in Intel SRT, but my operating system is in Sdc. Do you think that affects matters?

  8. #8
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    I saw there is grub2 in /dev/sda but we have to make sure it is connected to /dev/sdc6, so running the above commands can't hurt.

    Yes, I think Intel SRT can affect things. This is my logic:
    1. Grub2 from /dev/sdc will not be able to boot because that disk is in a dvd caddy. We have seen that on other threads.
    2. /dev/sda and /dev/sdb are shown separately by ubuntu and bootinfo, and there is grub2 on /dev/sda, but if the machine/bios considers the hdd+ssd as "one device" due to Intel SRT, it might not even try to boot the grub2 from /dev/sda correctly.

    The above is only my assumption but I think it's worth considering.

    First reinstall grub2 on /dev/sda with the commands I gave you and try booting from /dev/sda.

    If that still doesn't work, you have to consider whether Intel SRT is affecting your boot process.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  9. #9
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    In addition to Darko's comments so far.

    You have installed grub2's boot loader to the Windows PBR or partition boot sector. Normally grub in not installed to a PBR and never to a NTFS PBR as that has to have Windows boot code. It has a backup that can be used to restore if only written once. Testdisk will say if backup is ok or not.

    Code:
    sdc1: _______________________
    
        File system:       ntfs
        Boot sector type:  Grub2 (v1.99-2.00)
        Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sdc1 
                           and looks at sector 222239264 of the same hard drive 
                           for core.img. core.img is at this location and looks 
                           for (,msdos6)/boot/grub on this drive. No errors found 
                           in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe
    Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
    If win7 use small 'system reserved' NTFS partition instead of the partition where windows was installed for win7
    This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.
    http://sourceforge.net/apps/mediawik...ms:Boot_Sector
    You want to get to this screen:
    http://www.cgsecurity.org/wiki/TestD...ector_recovery

    OR:

    [HowTo] Repair the bootsector of a Windows partition - YannBuntu
    https://help.ubuntu.com/community/BootSectorFix
    http://ubuntuforums.org/showthread.php?t=1926510
    Also check for /boot/grub in addition to /Boot
    Since ntfs partitions are case insensitive this leads to confusions between "/boot" and the already existing folder "/Boot"
    http://sourceforge.net/apps/mediawik...ore_On_Windows
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  10. #10
    Join Date
    Feb 2013
    Beans
    5

    Re: Dual boot Ubuntu and Windows 7 - does not detect disk!

    Hi darkod,

    Sorry for going invisible without warning - got suddenly busy at work.

    I got some spare time again and did the following things:

    Quote Originally Posted by darkod View Post
    I saw there is grub2 in /dev/sda but we have to make sure it is connected to /dev/sdc6, so running the above commands can't hurt.
    * Disabled the RAID Coupling between the 32-GB SSD and the 500GB HDD through Windows. (This is possible using the Intel Rapid Storage Technology software package)
    * I did not change boot controller. Currently it's set to "Intel RST", and if I change it to AHCI, I get blue-screens.
    * I booted from an Ubuntu liveUSB and did the grub-install commands you mention. This did not work, i.e I saw the same behavior as earlier.

    If that still doesn't work, you have to consider whether Intel SRT is affecting your boot process.
    At this point I have to consider that this could be an issue.

    So, any next steps?
    * I am willing to reinstall my Ubuntu if needed - will that help?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •