Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5774  / 2 Years ago, mon, july 18, 2022, 11:04:13

I installed 7 operating systems in my PC. All worked very well. (Ubuntu 11, Ubuntu 14, EduBoss, Redhat6, Nodezero, Windows 8, Win 7). I frequently used Windows 8 and Ubuntu 14 last 6-7 months, I enjoy all operating system but one day after CHKDSK perform by Win7 my PC was unable to start with windows boot. If I try to start windows PC restarts very fast and shows nothing to any options just restart.



All other Linux O.S. work but no any other Win boot is working.
As per my knowledge I guesses that problem occurred by file corruption or by CHKDSK operation by Windows.



Can I repair Windows boot option by Linux? (without win bootable disk)




  • Architect i386

  • 2 Gb ram

  • Intel quad core

  • OS. First I installed windows and then Linux.


More From » boot

 Answers
0

One of the methods using Linux is to use fsck.msdos command which is found majorly in most of the Linux Distributions. While you've not mentioned that is there any error shown by Windows and, it is not mentioned too whether it is possible to boot into Safe Mode by pressing and holding Shift and tapping F8 repeatedly. Based on the dearth of information here, I advise booting into Linux, open the Terminal, and type:




  • sudo fsck.msdos /dev/XYZ where XYZ is the partition where Windows is installed(say sda1).


There are many parameters available which can be accessed by typing fsck.msdos -h but the basic command should be able to correct your Windows.



If that went well, you will want to check whether Linux is able to detect Windows loader now or not. Besides, you need to generate a new GRUB configuration file too. I'm assuming the Linux you're booted into is running Grub 2.0. To Probe the Boot Loader, type the command:



  • sudo os-probe, it shall give you an output like this:



/dev/sda1:Windows 7 (loader):Windows:chain



If you receive any such output, you can go ahead for building new Grub configuration file. In Terminal, type:




  • sudo grub-mkconfig -o /boot/grub/grub.cfg, if your grub.cfg is at some other location then replace the path in the command with your file location.

  • Type sudo grub-install /dev/sda where sda is my primary HDD having Windows and Linux installed.



Reboot, and choose Windows in Grub Menu. it should boot. If it doesn't we can try other methods but your question demands only Linux-specific solution.


[#21048] Monday, July 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nsuainner

Total Points: 141
Total Questions: 102
Total Answers: 109

Location: Maldives
Member since Sat, Jan 29, 2022
2 Years ago
;