Ask Your Question

Windows doesn't appear in grub after installing fedora?

asked 2014-05-28 17:00:40 -0500

Laser88 gravatar image

updated 2014-05-29 18:17:18 -0500

I just installed fedora 20 and windows doesn't appear in grub. (I'm new to linux.) I tried running "grub2-mkconfig -o boot/grub2/grub.cfg", which didn't work.

When I try to mount the partition with windows on it, I get this message:

Error mounting /dev/sda4 at /run/media/terry/Windows8_OS: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda4" "/run/media/terry/Windows8_OS"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda4': Operation not permitted 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.

I assume that the fact that I can't mount this is part of the problem. Does anyone know what to do?

The output of "parted -l" is

odel: ATA TOSHIBA MQ01ACF0 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  1050MB  1049MB  ntfs                                       hidden, diag
 2      1050MB  1322MB  273MB   fat16        EFI system partition          boot
 3      1322MB  1456MB  134MB                Microsoft reserved partition  msftres
 4      1456MB  263GB   261GB   ntfs         Basic data partition
 5      263GB   263GB   524MB   ext4
 7      263GB   264GB   524MB   ext4
 8      264GB   481GB   217GB                                              lvm
 6      481GB   500GB   18.8GB  ntfs                                       hidden, diag

Model: StoreJet Transcend (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      32.8kB  1000GB  1000GB  primary  fat32        boot, lba

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/fedora_sjc228n233-home: 155GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system  Flags
 1      0.00B  155GB  155GB  ext4

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/fedora_sjc228n233-swap: 8338MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system     Flags
 1      0.00B  8338MB  8338MB  linux-swap(v1)

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/fedora_sjc228n233-root: 53.7GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0.00B  53.7GB  53.7GB  ext4

The output of "efibootmgr -v" is

BootCurrent: 0016
Timeout: 0 seconds
BootOrder: 0016,0015,000E,0014,0007,0008,0009,000A,000B,000C,000D
Boot0000  Setup 
Boot0001  Boot Menu 
Boot0002  Diagnostic Splash Screen  
Boot0003  Lenovo Diagnostics    
Boot0004  Startup Interrupt Menu    
Boot0005  Rescue and Recovery   
Boot0006  MEBx Hot Key  
Boot0007* USB CD    030a2400d23878bc820f604d8316c068ee79d25b86701296aa5a7848b66cd49dd3ba6a55
Boot0008* USB FDD   030a2400d23878bc820f604d8316c068ee79d25b6ff015a28830b543a8b8641009461e49
Boot0009* ATAPI CD0 030a2500d23878bc820f604d8316c068ee79d25baea2090adfde214e8b3a5e471856a35402
Boot000A* ATA HDD0  030a2500d23878bc820f604d8316c068ee79d25b91af625956449f41a7b91f4f892ab0f600
Boot000B* ATA HDD1  030a2500d23878bc820f604d8316c068ee79d25b91af625956449f41a7b91f4f892ab0f601
Boot000C* ATA HDD2  030a2500d23878bc820f604d8316c068ee79d25b91af625956449f41a7b91f4f892ab0f602
Boot000D* USB HDD   030a2400d23878bc820f604d8316c068ee79d25b33e821aaaf33bc4789bd419f88c50803
Boot000E* PCI LAN   030a2400d23878bc820f604d8316c068ee79d25b78a84aaf2b2afc4ea79cf5cc8f3d3803
Boot000F* IDER BOOT CDROM   ACPI(a0341d0,0)PCI(16,2)ATAPI(0,1,0)
Boot0010* IDER BOOT Floppy  ACPI(a0341d0,0)PCI(16,2)ATAPI(0,0,0)
Boot0011* ATA HDD   030a2400d23878bc820f604d8316c068ee79d25b91af625956449f41a7b91f4f892ab0f6
Boot0012* ATAPI CD  030a2400d23878bc820f604d8316c068ee79d25baea2090adfde214e8b3a5e471856a354
Boot0013* PCI LAN   030a2400d23878bc820f604d8316c068ee79d25b78a84aaf2b2afc4ea79cf5cc8f3d3803
Boot0014* Windows ...
edit retag flag offensive close merge delete


Please don't use # in tags. I have removed them

mether gravatar imagemether ( 2014-05-28 17:01:55 -0500 )edit

Have you tried the suggestion on mounting the volume read only ? On terminal do sudo mount -o ro /dev/sda4 /mnt this will try to mount the volume as read only. Then again run grub2-mkconfig..... command and see if helped.

NickTux gravatar imageNickTux ( 2014-05-28 18:50:38 -0500 )edit

Thanks, but it didn't work. (I was able to mount the windows partition though.)

Laser88 gravatar imageLaser88 ( 2014-05-28 19:02:17 -0500 )edit

Windows 8 has a fast start-up feature, you probably will need to disable it to be able to access the windows partition from Linux see randomuser's answer in this question.

This might also enable grub2 to detect the windows installation.

Ahmad Samir gravatar imageAhmad Samir ( 2014-05-29 01:31:36 -0500 )edit

@ahmad-samir , the question here is how the user can boot into Windows 8, when he/she hasn't any Grub entry about Windows. A thought might be to boot from a repair DVD/USB of Windows - reinstall the Windows bootloader only, then boot into Windows and disable hibernation/fast startup, then restore Grub and update(grub). Yes, a bit tricky but I cannot think something else right now.

NickTux gravatar imageNickTux ( 2014-05-29 02:07:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-30 02:56:29 -0500

abadrinath gravatar image

Hi !

Welcome to :).

Assuming you have a Windows 8/8.1 dual-boot working, and based on your parted -l results, here is probably the issue:

1) You cannot mount the Windows partition w/ fast startup (as Ahmad Samir said)

2) You can tell GRUB to look for the Windows 8 bootloader in /dev/sda2 (just a guess). If you want to do this (the best idea), head over to Part 2.

3) Your disk might be corrupt or not accesible. Check booting into Windows from the BIOS boot menu.

Part 2

  1. Edit the file /etc/grub.d/40_custom using your favorite text editor. If you're using a terminal, vi is good enough.
  2. Once you have opened the file, paste this bit at the end:

    menuentry 'Microsoft Windows 8' { set root='hd0,gpt2' chainloader /EFI/Microsoft/Boot/bootmgfw.efi boot }

  3. Execute grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg (if you installed in UEFI mode) or grub2-mkconfig /boot/grub2/grub.cfg (if you installed in legacy mode)

  4. Reboot and select the Microsoft Windows 8 option. Have fun! :D

Hope it helps!

edit flag offensive delete link more


The OP can't boot windows using the UEFI boot manager, which means it's a problem with the windows installation itself rather than GRUB.

Ahmad Samir gravatar imageAhmad Samir ( 2014-05-30 03:48:46 -0500 )edit

@Ahmad Samir "I just installed fedora 20 and windows doesn't appear in grub" on first line of post.

abadrinath gravatar imageabadrinath ( 2014-06-13 01:00:08 -0500 )edit

In one of the comments above, the OP says he can't boot windows when he selects it in the UEFI boot manager.

Ahmad Samir gravatar imageAhmad Samir ( 2014-06-14 00:02:12 -0500 )edit

Question Tools


Asked: 2014-05-28 17:00:40 -0500

Seen: 15,397 times

Last updated: May 30 '14