My first partition of 106MB is lost, boots fine to F21 but choosing Windows in boot menu gives some errors. any suggestion would be appreciated.
Background; For some reason, I am not able to boot into my Windows (10) anymore. It has been a long time that I have been busy with Fedora and do not remember since when it has been lost. It might be because of a couple of errors I had, during loging into Fedora from "Joualctl" and entering to "emergency mode" that I fixed it by "Fdisk -l and Fsck".
Now I have my Fedora and Windows options in boot menu but choosing Windows goes to error, saying;
Error; no such a device xxxxxx
Error; HD0,msdos1 not found
Error; HD0,msdos1 not found
Fdisk gives me these with /dev/sda1 missing which is now 106MB of free "unallocated space" (according to Linux "GParted") but not shown here and no device marked as "BOOT" but boots to Fedora just fine.
fdisk -l /dev/sda
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x7dceab2d
Device Boot Start End Sectors Size Id Type
/dev/sda2 206848 209020927 208814080 99.6G 7 HPFS/NTFS/exFAT
/dev/sda3 209020928 209942527 921600 450M 27 Hidden NTFS WinRE
/dev/sda4 209942528 468860927 258918400 123.5G 5 Extended
/dev/sda5 209944576 210968575 1024000 500M 83 Linux
/dev/sda6 210970624 344743935 133773312 63.8G 8e Linux LVM
/dev/sda7 344745984 468860927 124114944 59.2G 7 HPFS/NTFS/exFAT
The computer firmware is BIOS and I do not know what sort of information were sitting in that wiped partition.
One suggested scenario, to fix this would be, to create the partition (NTFS, BOOT?) in that /dev/sda1 unallocated space and then to reinstall the grub, but the question is: How to reinstall the Windows Boot loader (by Windows recovery media or Fedora and GRUB)? and would Grub recognise the Windows and Fedora partition later to boot from? If Windows could recover itself with Windows recovery media, would it then take over the Boot loader and remove Fedora? If yes, do you think Fedora could then also be recovered too?
Looks like my grub and grub2 have issues also, when I run grub2-mkconfig, I get these errors;
grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.1.13-100.fc21.x86_64
Found initrd image: /boot/initramfs-4.1.13-100.fc21.x86_64.img
Found linux image: /boot/vmlinuz-3.17.4-301.fc21.x86_64
Found initrd image: /boot/initramfs-3.17.4-301.fc21.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-5bc3b0146bfa44b1b157766d86d3d8f8
Found initrd image: /boot/initramfs-0-rescue-5bc3b0146bfa44b1b157766d86d3d8f8.img
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 147
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub2/grub.cfg.new file attached.
done
I wish to fix this problem without wiping off my Windows nor Fedora (because of all the installed software and saved projects and settings). Otherwise, would just use my Windows USB recovery media to rewrite the MBR Boot partition and reinstall Fedora to 23.
Any help would be much appreciated.
برچسب:
نویسنده: استخدام کار