Windows 7 cannot boot after Ubuntu install
Solution 1
Can you boot into Ubuntu?
If so try running sudo update-grub2
That has always fixed windows boot problems for me!
Solution 2
BCD Repair
Windows have a tool for this purpose, called BCDboot.
If the system partition has been corrupted, you can use BCDboot to replace the system partition files with new copies of these files from the Windows partition.
When you have booted to the Windows disc, then go to the command prompt (see here) and type the following to recreate the BCD on the C drive:
-
attrib -r -s -h c:\boot\bcd
- unhide BCD so it can be deleted -
del c:\boot\bcd
- delete the current BCD -
bcdboot C:\windows
- create a new BCD on the C drive
Method 2
- Put the Windows installation disc in the disc drive, and then start the computer.
- Press a key when the message indicating
Press any key to boot from CD or DVD...
. appears. - Select a language, a time, a currency, and a keyboard or another input method, and then click Next.
- Click Repair your computer.
- Click the operating system that you want to repair, and then click Next.
- In the System Recovery Options dialog box, click Command Prompt.
- Try the bootec commands and then run StartUp Repair twice from your Windows Disk. Enter these commands:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
From here you should be able to boot into Windows again.
If does not work, you can try to solve this problem using Boot Repair (as already mentioned), see here
.
Related videos on Youtube
Iter Ator
Updated on September 18, 2022Comments
-
Iter Ator over 1 year
I would like to play a video using
VideoView
:videoView.setVideoURI(Uri.parse("http://192.168.1.10:7777/mov_bbb.mp4")); videoView.start();
It works randomly. 20% of the time the video is loaded, and it starts. But 80% of the time, I get this error:
Can't play this video
This is outputted to the console:
W/MediaPlayer: Couldn't open http://192.168.1.10:7777/... java.io.FileNotFoundException: No content provider: http://192.168.1.10:7777/mov_bbb.mp4 at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1673) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1503) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1420) at android.media.MediaPlayer.attemptDataSource(MediaPlayer.java:1101) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1073) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1097) at android.widget.VideoView.openVideo(VideoView.java:412) at android.widget.VideoView.access$2200(VideoView.java:83) at android.widget.VideoView$7.surfaceCreated(VideoView.java:694) at android.view.SurfaceView.updateSurface(SurfaceView.java:758) at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:155) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1088) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2745) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1721) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7598) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:966) at android.view.Choreographer.doCallbacks(Choreographer.java:790) at android.view.Choreographer.doFrame(Choreographer.java:725) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:951) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) V/MediaHTTPService: MediaHTTPService(android.media.MediaHTTPService@969a5ef): Cookies: null D/EGL_emulation: eglMakeCurrent: 0xe331a180: ver 3 0 (tinfo 0xe330f830) V/MediaHTTPService: makeHTTPConnection: CookieHandler (java.net.CookieManager@abffe09) exists. V/MediaHTTPService: makeHTTPConnection(android.media.MediaHTTPService@969a5ef): cookieHandler: java.net.CookieManager@abffe09 Cookies: null D/EGL_emulation: eglMakeCurrent: 0xe331a180: ver 3 0 (tinfo 0xe330f830) D/EGL_emulation: eglMakeCurrent: 0xe331a180: ver 3 0 (tinfo 0xe330f830) W/MediaHTTPConnection: readAt 516238 / 32768 => java.net.ProtocolException E/MediaPlayerNative: error (1, -2147483648) E/MediaPlayer: Error (1,-2147483648)
I have no idea how to debug this. Is it possible to catch these errors, disable the alert, and just silently retry?
If I open the url in a browser, the video loads and plays perfectly.
-
Quentin over 10 yearsThanks for the reply but I cannot find my partitions. The path was not found -C:\boot
-
Admin over 10 yearsThis solution will wipe out the grub, which will in turn leave Windows bootable but ubuntu not bootable. Check my answer for another solution.
-
stderr over 10 years@moses You have any reference or link to confirm this? I did not understand why the vote down.
-
Iter Ator over 3 yearsMy video is not in the external storage
-
Mohit kumar jha over 3 yearsoh, so where is it? can you tell from where you want to fetch the video to play in VideoView.?
-
Mohit kumar jha over 3 yearsok. So you are using the URL to set the VideoView. so It's better to use setVideoPath method instead of setVideoUri.
-
Mohit kumar jha over 3 yearsvideoView.setVideoPath("http:// 192.168.1.10:7777/mov_bbb.mp4"); videoView.start();