LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Grub loader shows Windows, but Windows load comes up with boot error 0xc0000225 (https://www.linuxquestions.org/questions/fedora-35/grub-loader-shows-windows-but-windows-load-comes-up-with-boot-error-0xc0000225-4175424670/)

scorpiobleue 08-29-2012 08:19 PM

Grub loader shows Windows, but Windows load comes up with boot error 0xc0000225
 
Hello, I am a newbie to Linux. I am taking a class on it and I needed to have Fedora 15 installed on my Windows 64 Home Premium laptop. I used a live usb stick to do so. Since this was the first time I was doing this I used the guide How to dual-boot Fedora 15 and Windows 7. When I restarted the computer I didn't get the option to load Windows or Fedora, just the live disk. So, thinking that the install didn't work I re-installed Fedora again except I chose to Replace Existing Linux System(s) instead of Shrink Current System like I did on the first install and kept all the other options the same. The grub loader shows

Fedora (2.6.43.8-1.fc15.i686)
Fedora (2.6.43.8-1.rc1.fc15.i686)
Windows

When I saw this I realized what I did wrong. After I installed Fedora the first time and rebooted my computer the computer rebooted from the live usb stick that was still plugged into it. I logged into the first Fedora entry and everything was fine there. I restarted the computer and chose to boot Windows which did not work. I received the below message:

Windows failed to start. A recent hardware or software chanfe might be the problem....
Status: 0xc0000225
Info: The boot selection failed because a required device is inaccessible.


I pulled up disk utility and it says it's sda1 NTFS partitioning as Master Boot Record but it's not mounted for some reason. I mounted the drive then rebooted my computer and tried to boot Windows and it would not work. I also noticed through disk utility that the sda2 partition would not mount when I tried to mount it. It gave me this reason:

Error mounting: mount exited with exit code 12: Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?


I also ran Boot Info Script to get a full view of everything. The results are below.

Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> Grub Legacy0.97-71.fc15 is installed in the MBR of /dev/sda and looks at
sector 243801634 on boot drive #1 for the stage2 file. A stage2 file is
at this location on /dev/sda. Stage2 looks on partition #3 for
/grub/grub.conf..

sda1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /grub.conf /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: According to the info in the boot sector, sda2 has
624726771 sectors, but according to the info from
fdisk, it has 243363839 sectors.
Mounting failed: Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

sda3: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/menu.lst /grub/grub.conf

sda4: __________________________________________________________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________________________________

File system: LVM2_member
Boot sector type: -
Boot sector info:

vg_userhp-lv_swap': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount: unknown filesystem type ''

vg_userhp-lv_home': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount: unknown filesystem type ''
mount: unknown filesystem type ''

vg_userhp-lv_root': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to read last sector (624726771): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 409,599 407,552 7 NTFS / exFAT / HPFS
/dev/sda2 409,600 243,773,439 243,363,840 7 NTFS / exFAT / HPFS
/dev/sda3 243,773,440 244,797,439 1,024,000 83 Linux
/dev/sda4 244,797,440 625,141,759 380,344,320 5 Extended
/dev/sda5 244,799,488 625,141,759 380,342,272 8e Linux LVM


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/mapper/vg_userhp-lv_home 25300477-95d2-492c-9093-6e3fc024c95b ext4
/dev/mapper/vg_userhp-lv_root 4f8e465c-381d-42f5-aa97-cf31c1aadff5 ext4 _Fedora-15-i686-
/dev/mapper/vg_userhp-lv_swap 9ee360cf-4b9d-40c7-88f6-8017fd7bcc49 swap
/dev/sda1 0840633E4063319C ntfs SYSTEM
/dev/sda2 CE1465A014658BF1 ntfs
/dev/sda3 295f4f2c-f963-4923-840a-03e5b5631152 ext4
/dev/sda5 FwWrCS-OI22-i38n-nsUD-eRLe-e4yz-PoGgBX LVM2_member

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
vg_userhp-lv_home
vg_userhp-lv_root
vg_userhp-lv_swap

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/mapper/vg_userhp-lv_home /home ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/mapper/vg_userhp-lv_home /home ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/mapper/vg_userhp-lv_root /tmp ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/mapper/vg_userhp-lv_root / ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/mapper/vg_userhp-lv_root /var/tmp ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/sda3 /boot ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)


=============================== sda1/grub.conf: ================================

--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_userhp-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.43.8-1.fc15.i686)
root (hd0,2)
kernel /vmlinuz-2.6.43.8-1.fc15.i686 ro root=/dev/mapper/vg_userhp-lv_root rd_LVM_LV=vg_userhp/lv_root rd_LVM_LV=vg_userhp/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.43.8-1.fc15.i686.img
title Fedora (2.6.38.6-26.rc1.fc15.i686)
root (hd0,2)
kernel /vmlinuz-2.6.38.6-26.rc1.fc15.i686 ro root=/dev/mapper/vg_userhp-lv_root rd_LVM_LV=vg_userhp/lv_root rd_LVM_LV=vg_userhp/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.38.6-26.rc1.fc15.i686.img
title Other
rootnoverify (hd0,0)
chainloader +1
--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

?? = ?? grub.conf 1

============================= sda3/grub/grub.conf: =============================

--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_userhp-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.43.8-1.fc15.i686)
root (hd0,2)
kernel /vmlinuz-2.6.43.8-1.fc15.i686 ro root=/dev/mapper/vg_userhp-lv_root rd_LVM_LV=vg_userhp/lv_root rd_LVM_LV=vg_userhp/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.43.8-1.fc15.i686.img
title Fedora (2.6.38.6-26.rc1.fc15.i686)
root (hd0,2)
kernel /vmlinuz-2.6.38.6-26.rc1.fc15.i686 ro root=/dev/mapper/vg_userhp-lv_root rd_LVM_LV=vg_userhp/lv_root rd_LVM_LV=vg_userhp/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.38.6-26.rc1.fc15.i686.img
title Windows 7 64 Home Premium
root (hd0,0)
makeactive
chainloader +1
--------------------------------------------------------------------------------

=================== sda3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

116.275881767 = 124.850277376 grub/grub.conf 1
116.275881767 = 124.850277376 grub/menu.lst 1
116.253793716 = 124.826560512 grub/stage2 1
116.271042824 = 124.845081600 initramfs-2.6.38.6-26.rc1.fc15.i686.img 2
116.293568611 = 124.869268480 initramfs-2.6.43.8-1.fc15.i686.img 2
116.251838684 = 124.824461312 vmlinuz-2.6.38.6-26.rc1.fc15.i686 1
116.275868416 = 124.850263040 vmlinuz-2.6.43.8-1.fc15.i686 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000 47 cc 87 47 ef ba 19 86 8c a0 71 16 39 d3 1d 67 |G..G......q.9..g|
00000010 85 72 66 fd 94 ba b7 3d 5a eb 9a b7 f6 66 b7 70 |.rf....=Z....f.p|
00000020 51 86 91 8c 66 45 c9 c6 59 59 92 dd a9 35 f0 31 |Q...fE..YY...5.1|
00000030 68 76 ba a3 b1 b4 ec e5 e9 b8 74 b8 58 a3 98 c3 |hv........t.X...|
00000040 9c c2 65 ce 46 3f de c9 3b 00 89 00 8f 97 89 92 |..e.F?..;.......|
00000050 34 85 41 87 7b 9e 81 01 68 80 d4 66 78 78 d5 53 |4.A.{...h..fxx.S|
00000060 7e 5e 1a df b5 78 b3 76 7f 67 37 32 cf 20 1e 18 |~^...x.v.g72. ..|
00000070 ff 27 07 d5 44 a9 66 68 31 15 90 c6 db cf 23 48 |.'..D.fh1.....#H|
00000080 01 e5 8d 8f 59 b7 97 c4 68 f3 b9 36 5e 96 1b 56 |....Y...h..6^..V|
00000090 c4 a6 6e ed eb f2 67 bd cc 9c d4 db 9e 04 d2 8d |..n...g.........|
000000a0 6c 6a 5a 24 90 6a 5b 7a 51 ad 94 79 d5 93 34 5f |ljZ$.j[zQ..y..4_|
000000b0 68 be 6d a8 0a fa de b8 3a 9c ac 32 98 16 56 99 |h.m.....:..2..V.|
000000c0 9d 46 81 bd bd e1 0e d8 7d 1b 38 17 a8 5b bd 77 |.F......}.8..[.w|
000000d0 19 d6 68 43 00 83 00 8b 8d 0d 29 00 1a e0 b6 89 |..hC......).....|
000000e0 be ed b0 20 a1 41 d9 ac a6 d5 44 7f ea 06 7f f5 |... .A....D.....|
000000f0 62 ac e3 71 63 7e d6 90 cd cc 3a 21 62 6a 7a cb |b..qc~....:!bjz.|
00000100 83 26 ed 2a 1a c6 68 a1 4c 0c d2 53 0a 78 3b 48 |.&.*..h.L..S.x;H|
00000110 e8 16 30 88 2e 95 39 a2 8c ca 10 11 4f 2b 05 03 |..0...9.....O+..|
00000120 7a 8b 85 52 46 50 55 e8 51 cc 70 67 23 d9 32 13 |z..RFPU.Q.pg#.2.|
00000130 49 87 3f 4a 8c 7d d6 4a 66 18 6b 85 6e c1 92 0a |I.?J.}.Jf.k.n...|
00000140 7b 16 8b b3 f2 c5 bd 3a 5d 74 3f 6b 8f 28 5a 8a |{......:]t?k.(Z.|
00000150 d5 ad 43 cf b8 35 52 bc cd 06 86 00 8b 93 25 b2 |..C..5R.......%.|
00000160 28 60 d3 e1 9e 9b 43 a6 a6 06 10 d0 a4 ac a4 b3 |(`....C.........|
00000170 69 2d 3f ef 55 aa 4b 70 6b eb 4f 1f 77 67 ed 0a |i-?.U.Kpk.O.wg..|
00000180 09 4d 3e 6b 42 52 81 c4 eb 69 45 b6 7f e7 33 33 |.M>kBR...iE...33|
00000190 80 0b e8 e7 93 5b 4c 1b f5 d8 a5 dd 89 eb 59 f9 |.....[L.......Y.|
000001a0 92 b4 21 f9 48 15 d1 7c 1d 8f 4a 16 3b 57 00 90 |..!.H..|..J.;W..|
000001b0 bd c4 70 e2 c2 12 96 5e 62 78 9d 18 73 de 00 fe |..p....^bx..s...|
000001c0 ff ff 8e fe ff ff 00 08 00 00 00 90 ab 16 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

Unknown BootLoader on vg_userhp-lv_swap'


Unknown BootLoader on vg_userhp-lv_home'


Unknown BootLoader on vg_userhp-lv_root'



=============================== StdErr Messages: ===============================

One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_userhp-lv_swap': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_userhp-lv_swap': No such file or directory
hexdump: /dev/mapper/vg_userhp-lv_swap': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_userhp-lv_home': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_userhp-lv_home': No such file or directory
hexdump: /dev/mapper/vg_userhp-lv_home': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_userhp-lv_root': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_userhp-lv_root': No such file or directory
hexdump: /dev/mapper/vg_userhp-lv_root': Bad file descriptor
mdadm: No arrays found in config file or automatically


I've been scouring Google and different places to find out some way to get my Windows to work. Thank you guys for taking the time to read this and help. Any help given is much appreciated!

yancek 08-30-2012 09:06 AM

Your windows filesystem seems to have problems. You should run chkdsk from windows is you have a windows CD/DVD. You might google repairing windows filesystem. I'm not sure if that is the exact command and it may need options (chkdsk /f). I haven't used windows for some time. Here's a link to microsoft:

http://answers.microsoft.com/en-us/w...7-d8d385dcbb12

You also have some errors in regard to LVM which apparently wasn't completed or set up correctly. If you look at the bootinfoscript, you will also see boot files on sda1 include grub.conf. That's your windows partition and it should not be there. If you have a windows installation CD/DVD, you could try booting that and repairing the bootloader and start over again with Fedora.

scorpiobleue 09-03-2012 11:51 PM

Thanks for the link. I ended up having to do a clean install of Windows, which I'm okay with, no bloatware. Now I'm going to try and dual boot Fedora correctly.


All times are GMT -5. The time now is 05:54 PM.