I lost Windows boot option on installation of Fedora 22

Bill Oliver vendor at billoblog.com
Sat May 30 18:58:52 UTC 2015


On Fri, 29 May 2015, Christopher Bachner wrote:

> 
> You can find bootmgr.exe on your Windows 7 Disk.
> 
> If the system partition has been removed,  I don’t think you are actually screwed.
> 
> 
> Sorry, I think it was not clear enough. I meant Windows 7 Installation Disk.
> 
>

Thanks for the suggestion.  I don't find anything about Windows in my /boot/efi directory.  But... there does seem to be something in /dev/sda5 (see below).

Using the following map:


/dev/sda1: LABEL="WINRE" UUID="C0125289125283F6" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="5049eae8-8677-437b-b94c-e4b1beef7e11"
/dev/sda2: SEC_TYPE="msdos" LABEL="efi" UUID="9AC3-5063" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="1c7ee56b-2983-4f32-a96e-7cf9aa3233af" 
/dev/sda4: LABEL="Windows" UUID="9AAEDC99AEDC6EEF" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="89988b85-0f51-4072-b87c-9faf6314be74" 
/dev/sda5: LABEL="RECOVERY" UUID="6CE4E22AE4E1F5EC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="9a35b4bb-c899-4c66-98ad-56136f037766" 
/dev/sda6: LABEL="root" UUID="9d7d5f49-6803-43e4-9920-130788991f5b" TYPE="ext4" PARTUUID="a104a97d-d5a3-414d-9607-b1189d1fb3f9" 
/dev/sda7: LABEL="swap" UUID="bb3f6351-ad6b-4c95-8c3a-64270fd01954" TYPE="swap" PARTUUID="ee291490-853d-421a-9b8a-5f99d55c33c2" 
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="24552e97-5182-4d3b-8900-065f02062b4c"






When I try to mount the Windows partitions, I get:


% mount /dev/sda4 /mnt/sda4
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.

.. so I mount them read only and ...


***************************
%ls -la /mnt/sda1

ls -la /mnt/sda1
total 8
drwxrwxrwx  1 root root 4096 Mar  4 02:55 .
drwxr-xr-x. 9 root root 4096 May 30 09:18 ..
drwxrwxrwx  1 root root    0 Mar  4 02:10 Recovery
drwxrwxrwx  1 root root    0 Mar  4 02:55 System Volume Information


***************************
/dev/sda2 is already mounted as /boot/efi



***************************
/dev/sda3 won't mount.  I get:

% mount /dev/sda3 /mnt/sda3
mount: /dev/sda3 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
        missing codepage or helper program, or other error

        In some cases useful info is found in syslog - try
        dmesg | tail or so.


(Is this some Microsoft version of swap?)




***************************
%ls -la /mnt/sda4

ls -la /mnt/sda4
total 6256461
drwxrwxrwx  1 root root       8192 May  8 20:18 .
drwxr-xr-x. 9 root root       4096 May 30 09:18 ..
-rwxrwxrwx  1 root root     398356 Mar 18  2014 bootmgr
-rwxrwxrwx  1 root root          1 Jun 18  2013 BOOTNXT
lrwxrwxrwx  2 root root         60 Aug 22  2013 Documents and Settings
-> /mnt/sda4/Users
-rwxrwxrwx  1 root root 4459966464 May  8 20:32 hiberfil.sys
drwxrwxrwx  1 root root          0 Oct 31  2014 HP
drwxrwxrwx  1 root root          0 Apr  2  2014 inetpub
-rwxrwxrwx  1 root root 1677721600 May  8 20:32 pagefile.sys
drwxrwxrwx  1 root root          0 Aug 22  2013 PerfLogs
drwxrwxrwx  1 root root       4096 Mar  4 01:15 ProgramData
drwxrwxrwx  1 root root       8192 Mar  4 01:21 Program Files
drwxrwxrwx  1 root root       8192 Mar  4 01:15 Program Files (x86)
drwxrwxrwx  1 root root       4096 May  8 19:31 $Recycle.Bin
-rwxrwxrwx  1 root root  268435456 May  8 20:33 swapfile.sys
drwxrwxrwx  1 root root      16384 Mar  4 02:59 SWSetup
drwxrwxrwx  1 root root       4096 May  8 19:30 SYSTEM.SAV
drwxrwxrwx  1 root root       4096 Mar  4 01:59 System Volume
Information
drwxrwxrwx  1 root root       4096 May  8 19:30 Users
drwxrwxrwx  1 root root      24576 May  8 19:32 Windows



***************************
%ls -la /mnt/sda5
  ls -la /mnt/sda5
total 2029
drwxrwxrwx  1 root root    4096 Mar  4 04:12 .
drwxr-xr-x. 9 root root    4096 May 30 09:18 ..
drwxrwxrwx  1 root root    8192 Mar  4 02:53 Boot
-rwxrwxrwx  1 root root  427680 Aug 22  2013 bootmgr
-rwxrwxrwx  1 root root 1612128 Aug 22  2013 bootmgr.efi
drwxrwxrwx  1 root root       0 Mar  4 02:53 EFI
drwxrwxrwx  1 root root   16384 Mar  4 02:53 preload
drwxrwxrwx  1 root root       0 Mar  4 02:53 Recovery
drwxrwxrwx  1 root root       0 Mar  4 04:12 $RECYCLE.BIN
-rwxrwxrwx  1 root root      55 Mar  4 02:36 RP.ini
drwxrwxrwx  1 root root       0 Nov 20  2013 sources
drwxrwxrwx  1 root root       0 Mar  4 04:13 System Volume Information



/dev/sda6 is my Fedora root partition



/dev/sda7 is my Fedora swap partition.





So... It looks like I've got two different "bootmgr"s, one on /dev/sda4
and one on /dev/sda5.

There's a bootmgr.efi file on /dev/sda5.  That sounds encouraging encouraging!  But what do I do with it?


I appreciate you folks' help.  It looks like I'm making progress here...


billo





More information about the users mailing list