FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2013
    Location
    DE
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Where's my windows8?

    Hi @all,

    today my new laptop arrived with pre-installed win8 Pro.

    First thing I did was installing Fedora 18. For this I make the windows partition smaller and installed f18 on the free disk space.

    My fedora works fine but I cannot boot from my windows partition any more because it is not shown in the boot manager.

    Currently my partition table is
    Code:
    [christian@dev ~]$ cat /proc/partitions
    major minor  #blocks  name
    
       8        0  976762584 sda
       8        1     512000 sda1
       8        2      40960 sda2
       8        3     131072 sda3
       8        4     512000 sda4
       8        5  768000000 sda5
       8        6   14336728 sda6
       8        7       1024 sda7
       8        8     512000 sda8
       8        9  152651776 sda9
      11        0    1048575 sr0
     253        0    8060928 dm-0
     253        1   52428800 dm-1
     253        2   92160000 dm-2
    sda5 is my windows partition, sda8 the grub boot partitionl

    I tried to grub2-mkconfig, but no Windows partition has been found:
    [christian@dev ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    grub.cfg wird erstellt â¦
    Thema gefunden: /boot/grub2/themes/system/theme.txt
    Linux-Abbild gefunden: /boot/vmlinuz-3.7.8-202.fc18.x86_64
    initrd-Abbild gefunden: /boot/initramfs-3.7.8-202.fc18.x86_64.img
    Linux-Abbild gefunden: /boot/vmlinuz-3.6.10-4.fc18.x86_64
    initrd-Abbild gefunden: /boot/initramfs-3.6.10-4.fc18.x86_64.img
    erledigt
    So I tried to mount my my windows partition. This failed:
    Code:
    [christian@dev ~]$ sudo mount  -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/run/media/christian/OS"
    Windows is hibernated, refused to mount.
    Failed to mount '/dev/sda5': Die Operation ist nicht erlaubt
    The NTFS partition is in an unsafe state. Please resume and shutdown
    Windows fully (no hibernation or fast restarting), or mount the volume
    read-only with the 'ro' mount option.
    Then I tried to mount it ro, which succeeded, but grub2-mkconfig did not add windows8 to my boot menu.

    So finally I am confused. Who can help me to boot windows again?

    Cheers

    Chris

  2. #2
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    46
    Posts
    4,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    So you are confidend that Windows 8 is on sda5??
    I dont think so, just because windows (usualy) has to be installed first, so it doesnt overwrite the linux bootloader (whether that would be lilo, grub [1,2]).

    Whats the output of this (to make certain windows 8 is sda5):
    Code:
    lsblk
    sudo fdisk -l /dev/sda
    Easy said, NOT really accurate
    Furthermore, with Windows8 there is the introduction of SecureBoot, a hell'ish blocker that doesnt allow to boot anything else but windows.
    You might need to disable secureboot in the BIOS.
    ERR: that would be the case if you couldnt book linux... sorry and nevermind...

    Hope this helps
    * Shell Wrapper and Runtime Modifier (SWARM): https://github.com/sri-arjuna/SWARM
    * Yet Another Simple Script Installer (YASSI): https://forums.fedoraforum.org/showthread.php?323099
    * EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    * Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  3. #3
    Join Date
    Oct 2012
    Location
    Fort Wayne, IN
    Posts
    1,133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    Try updating GRUB.

    fedoraproject.org/wiki/GRUB_2

  4. #4
    Join Date
    Jan 2011
    Location
    Woonsocket, RI
    Posts
    521
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    Quote Originally Posted by sea
    Whats the output of this (to make certain windows 8 is sda5):
    Code:
    lsblk
    sudo fdisk -l /dev/sda
    These are both useful commands, except that the installation probably uses EFI and GPT disks, and fdisk is useless on GPT disks. (In fact, even if Linux is installed in BIOS mode, the disk is almost certainly GPT, since the computer came with Windows 8.) Instead of fdisk, use gdisk ("gdisk -l /dev/sda") or parted ("parted /dev/sda print").

    Still more diagnostic information can be obtained by running the Boot Info Script. It produces an output file called RESULTS.txt. Post it (or a link to it) here.

    All that said, my guess is that the GRUB configuration is messed up. There are several possible solutions to this problem:

    • Generate a new grub.cfg file by typing "grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg" as root. This might not work, though, and there's a slim chance that it will make matters worse. You should probably back up the existing grub.cfg file before proceeding.
    • Use your firmware's own boot manager to choose whether to boot Linux or Windows. You can typically access it by typing a function key at boot time, but the details vary from one computer to another.
    • Install another boot manager to manage the boot between Windows and Linux. My own rEFInd is likely to be the easiest to install and use; just install the RPM and it should work without further configuration. You could use gummiboot if you prefer something more minimalistic, but it will require more configuration, especially if you're booting with Secure Boot active.

  5. #5
    Join Date
    Jan 2013
    Location
    DE
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    Ok, guys, thank you for your answers.

    @Ihatewindows: This page is not useful at all. It deals with version of Fedora < 18 or even < 17 (!) and windows version < 8.
    Code:
    sudo fdisk -l /dev/sda
    
    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
    
    
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
    Units = Sektoren of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x1d9f3af2
    
       Gerät  boot.     Anfang        Ende     Blöcke   Id  System
    /dev/sda1   *           1  1953525167   976762583+  ee  GPT
    Code:
    [root@dev ~]# lsblk
    NAME                       MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda                          8:0    0 931,5G  0 disk
    ââsda1                       8:1    0   500M  0 part
    ââsda2                       8:2    0    40M  0 part
    ââsda3                       8:3    0   128M  0 part
    ââsda4                       8:4    0   500M  0 part
    ââsda5                       8:5    0 732,4G  0 part
    ââsda6                       8:6    0  13,7G  0 part
    ââsda7                       8:7    0     1M  0 part
    ââsda8                       8:8    0   500M  0 part /boot
    ââsda9                       8:9    0 145,6G  0 part
      ââfedora_dev-swap (dm-0) 253:0    0   7,7G  0 lvm  [SWAP]
      ââfedora_dev-root (dm-1) 253:1    0    50G  0 lvm  /
      ââfedora_dev-home (dm-2) 253:2    0  87,9G  0 lvm  /home
    sr0                         11:0    1  1024M  0 rom
    Code:
    gdisk -l /dev/sda
    GPT fdisk (gdisk) version 0.8.5
    
    Partition table scan:
      MBR: protective
      BSD: not present
      APM: not present
      GPT: present
    
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): A492F83F-B939-4568-AF06-4B7E752D7F38
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 80129981 sectors (38.2 GiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            2048         1026047   500.0 MiB   EF00  EFI system partition
       2         1026048         1107967   40.0 MiB    FFFF  Basic data partition
       3         1107968         1370111   128.0 MiB   0C01  Microsoft reserved part
       4         1370112         2394111   500.0 MiB   2700  Basic data partition
       5         2394112      1538394111   732.4 GiB   0700  Basic data partition
       6      1924849664      1953523119   13.7 GiB    2700  Microsoft recovery part
       7      1538394112      1538396159   1024.0 KiB  EF02
       8      1538396160      1539420159   500.0 MiB   0700
       9      1539420160      1844723711   145.6 GiB   8E00
    Code:
    parted /dev/sda print
    Modell: ATA ST1000LM024 HN-M (scsi)
    Festplatte  /dev/sda:  1000GB
    SektorgröÃe (logisch/physisch): 512B/512BPartitionstabelle: gpt
    Disk Flags: pmbr_boot
    
    Nummer  Anfang  Ende    GröÃe   Dateisystem  Name                          Flags
     1      1049kB  525MB   524MB   fat32        EFI system partition          boot
     2      525MB   567MB   41,9MB  fat32        Basic data partition          versteckt
     3      567MB   701MB   134MB                Microsoft reserved partition  msftres
     4      701MB   1226MB  524MB   ntfs         Basic data partition          versteckt, diag
     5      1226MB  788GB   786GB   ntfs         Basic data partition
     7      788GB   788GB   1049kB                                             bios_grub
     8      788GB   788GB   524MB   ext4
     9      788GB   944GB   156GB                                              lvm
     6      986GB   1000GB  14,7GB  ntfs         Microsoft recovery partition  versteckt, diag
    ("versteckt" means "hidden")

    The grub2_mkconfig, followed by an install did not help.

    Tried to do a quick install of rEFind:
    Code:
    [root@dev refind-bin-0.6.7]# ./install.sh
    Installing rEFInd on Linux....
    //boot/efi doesn't seem to be on a VFAT filesystem. The ESP must be
    mounted at //boot or //boot/efi and it must be VFAT! Aborting!
    To cut a long story shot: I try to get a recovery CD from Dell and do a re-install of Windows 8. Might take a few days.

    But I am still wondering what went wrong. O.o

  6. #6
    Join Date
    Jul 2009
    Posts
    1,234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    See if you have os-prober installed in Fedora. If not, install that, then recreate grub.cfg.
    Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)

  7. #7
    Join Date
    Jan 2011
    Location
    Woonsocket, RI
    Posts
    521
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    Quote Originally Posted by ChrisGGG
    Ok, guys, thank you for your answers.

    Code:
    gdisk -l /dev/sda
    ...
    Number  Start (sector)    End (sector)  Size       Code  Name
    ...
       7      1538394112      1538396159   1024.0 KiB  EF02
    The gdisk type code EF02 refers to a BIOS Boot Partition, which GRUB uses to boot in BIOS mode. New Windows 8 computers, however, ship configured to boot in EFI mode. Thus, I strongly suspect that you accidentally did a BIOS-mode install of Fedora, and now your computer is booting Fedora in BIOS mode by default. You can probably change this by tweaking your firmware settings, but then the computer will boot nothing but Windows until you adjust the firmware settings again. Fortunately, there are solutions to this problem. The difficulty is that there are several solutions, and they all involve some futzing about and/or pose a risk of failure, thus making it hard to choose which solution to use....

    Tried to do a quick install of rEFind:
    Code:
    [root@dev refind-bin-0.6.7]# ./install.sh
    Installing rEFInd on Linux....
    //boot/efi doesn't seem to be on a VFAT filesystem. The ESP must be
    mounted at //boot or //boot/efi and it must be VFAT! Aborting!
    I've quoted this because it leads into one possible solution: Do precisely what you tried, but precede it with the following, typed as root:

    Code:
    mkdir -p /boot/efi
    mount /dev/sda1 /boot/efi
    When run from a BIOS-booted version of Linux, rEFInd's install.sh script attempts to install rEFInd by installing itself using either the fallback EFI boot loader filename (EFI/BOOT/bootx64.efi) or by moving the Windows boot loader (EFI/Microsoft/Boot/bootmgfw.efi) down one level and using its name. Mounting the ESP (/dev/sda1) will enable install.sh to do an install in this way. If you do nothing but this, chances are you'll still boot straight into Linux; but if you also tweak your firmware settings to boot in EFI mode but to disable Secure Boot, you should boot normally. (You can subsequently re-enable Secure Boot if you like, or even do it before rebooting, but you'll need to manually install shim or PreBootloader.) Note that my following suggestions also require disabling Secure Boot, at least temporarily.

    A variant on this procedure, which is a little bit cleaner, is to reconfigure the firmware to boot Windows and then install rEFInd from Windows. You'll need to also install an EFI driver for ext4fs (one comes with rEFInd). The first time you boot Linux, you'll need to do so by hitting F2 or Insert twice and adding "ro root=/dev/mapper/{volume_for_fedora_root}" to the boot options, where "/dev/mapper/{volume_for_fedora_root}" is the path to the Fedora root volume. Once you've booted Fedora, running the mkrlconf.sh script that comes with rEFInd will create a configuration file that will enable rEFInd to launch Linux without your entering this information. This procedure takes a bit more effort than the previous one, but it's a bit cleaner, since rEFInd isn't masquerading as the Windows boot loader.

    Another variant on this procedure is to download the USB flash drive or CD-R image version of rEFInd and boot using it. You can then boot into Linux by adding the root device option, as just described, and install rEFInd onto the hard disk. When Linux is booted in EFI mode, rEFInd installs itself in a more "proper" way, so this method is a bit "cleaner" than the first, from an EFI purist's point of view.

    Another option is to boot an emergency disk in EFI mode and install the EFI boot loader of your choice on the computer. There's probably a way to do this with the Fedora installer, so as to replace the BIOS version of GRUB with the EFI version of GRUB; however, I don't know the exact procedure to do this. Alternatively, you could use System Rescue CD, which supports EFI-mode boots. You'd need to track down a suitable boot loader binary if you do that, though. Your best options if you take this route are probably rEFInd and Fedora's patched version of GRUB Legacy. If you're comfortable enough with RPM and/or with chroot, you could probably install the EFI version of GRUB 2 using a Fedora package, but you'll need to be sure your ESP (/dev/sda1) is mounted at the target's /boot/efi.

    To cut a long story shot: I try to get a recovery CD from Dell and do a re-install of Windows 8. Might take a few days.
    This won't help. Right now, Windows is not booting because your firmware is configured to boot in BIOS mode, and there's no BIOS-mode boot loader for Windows. Re-installing Windows from an OEM disc will almost certainly install it in EFI mode again, leaving you with the same problem; or maybe flipping it so that Linux won't boot. You need to adjust your firmware options to get Windows booted. Alternatively, you could convert Windows to boot in BIOS mode, although that will be tricky because it will require converting the disk from GPT to MBR and re-installing Windows using a retail disc, and all this activity could trash your Linux installation. At the very least, it will require re-installing Linux. Thus, following this path is possible, but is likely to be painful.

    One more comment: It's possible that your firmware is booting in BIOS mode because it's detected a BIOS-mode boot loader on your hard disk. If so, you'll need to wipe that boot loader, which you can do from Linux with dd (as root):

    Code:
    sudo dd if=/dev/zero of=/dev/sda bs=440 count=1
    This command is potentially dangerous, though. If you get it wrong (especially the of= device, the bs= value, or the count= value), you could do significant damage to your disk. What's more, if you try this, your BIOS-mode boot loader for Linux will stop working, so if you do this before you get EFI-mode booting working, you'll be in trouble. Of course, you'd presumably be doing this in an effort to get EFI-mode booting working, so it's a significant risk if you need to try this. I recommend you study your firmware options carefully before you try wiping the BIOS-mode boot loader from the MBR. Also, you can buy yourself some insurance by installing rEFInd to a USB flash drive or a CD-R. (You can create a bootable USB drive using the main binary zip file; or there are prepared USB flash drive and CD-R images you can download.) This may give you a way to boot the computer if removing the MBR-resident boot loader makes things go wrong.

    But I am still wondering what went wrong. O.o
    My guess is that you changed a firmware option without fully understanding the consequences of doing so. If you're sure you didn't do this, then chances are the installer booted in BIOS mode because of the way your firmware is designed, and then installation of a BIOS-mode boot loader in the MBR has locked it into booting in BIOS mode (or at least favoring a BIOS-mode boot).

    ---------- Post added at 06:50 PM ---------- Previous post was at 06:46 PM ----------

    Quote Originally Posted by David Batson
    See if you have os-prober installed in Fedora. If not, install that, then recreate grub.cfg.
    That won't help. ChrisGGG has a mixed-mode setup: Windows in EFI mode, GRUB/Linux in BIOS mode. The firmware is booting in BIOS mode by default. GRUB can't boot from BIOS-mode to EFI-mode (or the other way, for that matter), so no amount of fiddling with the existing GRUB installation will fix the problem. The best solution is to get both OSes booting in the same mode, and the easiest way to do this is to reconfigure the firmware to boot in EFI mode and install an EFI-mode boot loader for Linux. There are other solutions, but that's the best one, IMHO.

  8. #8
    Join Date
    Jan 2013
    Location
    DE
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    Quote Originally Posted by srs5694
    ...Thus, I strongly suspect that you accidentally did a BIOS-mode install of Fedora, and now your computer is booting Fedora in BIOS mode by default.
    ...
    ChrisGGG has a mixed-mode setup: Windows in EFI mode, GRUB/Linux in BIOS mode. The firmware is booting in BIOS mode by default. GRUB can't boot from BIOS-mode to EFI-mode (or the other way, for that matter), so no amount of fiddling with the existing GRUB installation will fix the problem. The best solution is to get both OSes booting in the same mode, and the easiest way to do this is to reconfigure the firmware to boot in EFI mode and install an EFI-mode boot loader for Linux. There are other solutions, but that's the best one, IMHO.
    Thank you very much for this long post.
    I think I can remember that I "adjusted" these very new "boot settings" (BIOS -> EFI). So I strongly guess, that you are right.

    Gonna try your solutions.

  9. #9
    Join Date
    Aug 2010
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where's my windows8?

    You need to turn off secure boot, windows 8 comes with secure boot on...

Tags for this Thread

Posting Permissions

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