windows 7 does not boot after debian install - linux

I installed linux debian as a 2nd system and it works fine, however when I choose Windows in loader(lilo) to boot, it stops on a windows logo.
I tried to boot in safe mode, and it stops on classpnp.sys driver.
I'm not sure whether the problem is in classpnp or in some other driver which is failed to load after it.
I also tried to boot with bootlog (ntbtlog), however it is not created (I check C:\Windows).
It seems like smth is wrong with hard drive configuration with several partitions.
I've googled a lot of similiar issues with classpnp.sys, but none of the solutions helped:
-I tried to change bios SATA coniguration from IDE to AHCI,
-restore backup configuration files (SAM, DEFAULT, SECURITY etc).
If anyone knows what else can I do with this, please help.

This belongs on super user, but you need to press F8 and select safe mode. There you can fix your problems

Related

I've done some research and I can't find the reason to why the USB ports stop working when trying to boot ubuntu

I've looked around a lot at many people's different questions and can't find one that is the same situation as the problem I'm having. Essentially a friend brought me an old PC of theirs with the request that there are some files they want taken off the hard drive. Unfortunately, their version of Windows had corrupted, so my solution was to boot Ubuntu from a USB drive without affecting the hard drive, to access the files and then the computer is going to scrap anyway. Unfortunately, as soon as the ubuntu software starts to load the lights on the keyboard and mouse turn off and when I eventually get to the option of 'Try Ubuntu', neither are responsive. I've tried restarting, I've tried different ports, I've tried unplugging and plugging back in, I've tried a different keyboard and mouse but I cannot find a solution. I installed the latest version of ubuntu from their website. I can use the keyboard in the BIOS settings etc. Anyone know what is happening? All help is greatly appreciated.

Stuck on EFI shell while trying to run macOS Catalina 10.15 on virtualbox

I have been trying to install macOS Catalina on virtual box foloowing this tutorial:
https://techsprobe.com/install-macos-catalina-virtualbox-windows/
When getting to the step of having to actually install catalina the virtual machine boots into an EFI shell
The same person who wrote the tutorial wrote a supposed fix:
https://techsprobe.com/how-to-fix-efi-internal-shell-on-macos-catalina-on-virtualbox/
The fix adds an ISO file which contains parts of an apple file system which is loaded via a startup.nsh file which you create in the shell.
The fix itself however does not work either. Now I have no idea about how EFI shells work or how "fs#" relates to loading files from the apfs ISO. Here is the startup.nsh file as well as the error associated with trying to run it:
Now like I said I dont have much of an idea of how EFI works or whats going on here in general, so feel free to educate me.
I was able to fix the UEFI problems as follows (credit to techrechard website):
At UEFI prompt: Type exit
You’ll be brought into an EFI text-mode GUI.
Select Boot Maintenance Manager and click.
Select Boot From File and click
You should see two entries in a list (they are cryptic looking PCI bus paths).
The first PCI path in the list is probably the boot partition that doesn’t contain bootable firmware. The second PCI path is probably to the recovery partition, the one you need to boot from. If the 2nd partition isn’t the recovery partition, look under the paths in the list to see if one of them is it. If the recovery partition isn’t present and valid, these instructions won’t work.
Click the 2nd entry, you should see (and then click):
macOS Install Data
Then click:
Locked Files
Then (if present), click
Boot Files
And finally click:
boot.efi
Installation will continue, or you will boot into the OS or get the Recovery Utilities menu (where macOS can be reinstalled from or Disk Utilities run). The ambiguity of that last statement is I did that awhile before writing this comment and I don’t recall what I booted into first, only that it worked and was not hard to figure out what to do at that point. If you have a recovery partition, to boot directly into the Recovery Mode turn on the Mac and immediately press and hold (⌘)-R
Apparently if you follow this link how to install catalina, you will get an error like the one you got (This is probably due tu the way virtualbox reads disks--> uefi or legacy). Mine was :‘FSL: \ system/library/coreservices \ boot EFI’ is not recognized as an internal or external command, operable program, or script file?. On another forum I found this command:
> Install.nsh
If you write it in the command line of your virtualbox MAC environment it should proceed. It worked fine when I typed it.

screen becomes weird when switching from ubuntu to windows on a dual boot system

I have a dual boot system with windows 7 and ubuntu. When I switch from winddows to ubuntu, the ubuntu OS starts up very smoothly. But when i switch to windows from ubuntu, the screen goes purple and i need to restart the system. Sometimes I need to restart it many times for windows to load properly. This also happens when I try to start windows first.
Please let me know the reason why this could be happening and solution if any.
Thanks in advance I
I was able to solve this problem by starting Windows through the boot CD and selecting the repair option. Windows got repaired and now is running fine.

how to install XMHF on ubuntu 12.04

I am new to linux OS. According to the requirement of my project I have to install extensible Hypervisor Framework( XMHF) and then build the required hypapp over it. Grub is supposed to load the XMHF at boot time and then the ubuntu OS has to laod over it, But when i am trying to boot the system according to the steps mentioned to install XMHF the system stops at the Starting up.... state at the time of booting. I dont know where i have done mistake. I have checked it many times but nothing useful. Can anyone please help me with this?? "Installing XMHF" manual can be found at http://xmhf.sourceforge.net/doc/xmhf/doc/installing-xmhf.md.html
My grub entry for XMHF is
title XMHF
rootnoverify (hd0,0) // as i have no primary partition for the hard drive
kernel /boot/init-x86.bin
module /boot/hypervisor.bin.gz
modulenounzip (hd0)+1
I had the exact same problem.
I had to properly configure serial output, either physically or serial-over-lan, to see XMHF's output. In my case, I missed a Intel VT related switch in BIOS.
How to configure serial console can be found here: https://www.cyberciti.biz/faq/linux-serial-console-howto/
go through this http://xmhf.sourceforge.net/doc/xmhf/doc/installing-xmhf.md.html this will be helpful :D

Using JNA or similar to shutdown and restart computer in linux and mac

I am trying to write a function in java that will shutdown, force shutdown, restart and force restart the computer and it should work on Windows, Linux and Mac.
Windows is not a problem, but I am unable to run commands to shutdown on Linux due to the sudo privileges. I was therefore thinking of using JNA to shut down the computer (i know you can use JNA to do this on windows), but I can't find any examples online for linux or mac.
Can anyone help me out? It will be much appreciated!
Even if it's not through JNA, it would help me a lot as long as I can find some way to accomplish this.
If you could simply override system protections just by using Java, that would be a big security flaw! I'm surprised you can do this on Windows.
Anyway, it can only be done if you have administrative access to your machine to set the program in a certain group which has the rights to shutdown/restart. Otherwise, you can't just do that.
I think you could give directly these rights to your JVM, but that could be dangerous if other java programs try to do shutdown.

Resources