[SOLVED] How to make grub recognize my win7 hd after power outage.
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to make grub recognize my win7 hd after power outage.
I have a custom dual boot machine with Ubuntu Linux and Windows 7. After power outage my Windows 7 can't load login screen. Ubuntu loads fine and I can access files for Windows 7 through it; however, when I try to log in to Windows, it refuses to load. The reason I want to log into windows is because I do graphics programming using Visual Studio and have everything set up for that. I tried all kinds of things that I was able to Google about how to fix a broken win7 boot, but no success. The problem is that Windows doesn't present any operating system to choose when I try to run "startup repair" so I cannot run "sfc /scanf" or any other restore command since the harddrive is not recognized. But I know that it's not the problem with HD or its connection to the motherboard since I can still access Window files through Linux. I tried posting on Windows7 forum with no success so I that the chances are higher that someone from the Linux community will be able to help me out. I installed Grub Customizer after firing it up and clicking on my Windows 7 (loader) (on /dev/sdc1) I see:
insmod part_msdos
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 AC7ACA3A7ACA0156
else
search --no-floppy --fs-uuid --set=root AC7ACA3A7ACA0156
fi
parttool ${root} hidden-
chainloader +1
does anyone see anything that can help fix the issue or is there another way to make Linux grub recognize win7 hd so I can boot into windows?
I tried doing that, but when I try to boot to win7 it still can't display the login screen after "start windows" phase. If I try to do a "startup repair" it doesn't display and OS in the "choose os repair" field and if I run startup repair anyway it throws an error that the hard disk cannot be found and if it is there it is not responding.
Update: The problem was that win7 disk was too old, so it complained about drivers and didn't recognize the hd, but it only had to do with os cd being corrupted. Took me a bunch of time to figure that out. I ended up copying data from the hd and installing a fresh copy of win 10. It was time for an upgrade anyway
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.