I recently installed Ubuntu with the grub boot loader that comes with it. After the install Grub fails to find the Windows.
My setup:
- HD1 & HD2 -> Samsung SSDs in Raid0 via Motherboard containing Windows (and probably a partition for windows recovery)
- HD 3 -> (3TB Western Digitral) Containing two paritions: Ubuntu / NTFS (if I remember correctly, just with files, not bootable)
- HD4 -> NTFS with files
The error:
When loading up grub I am presented with four options:
- Ubuntu
- Advanced options for Ubuntu
- Windows 10 (loader) (on /dev/mapper/pdc_dagafhccb1)
- Windows 10 (loader) (on /dev/mapper/pdc_dagafhccb2)
Selecting either of those windows options will provide similar errors:
error: no such device: 966027106026F721
error: unknown argument `hidden-'.
Press any key to continue...
Things I have tried:
I have never needed to manipulate the boot loader until now as they typically just worked like magic and got the job done without my help. Going into the command line for grub I typed in ls
which promptly showed me all my drives. The ls utility for grub was not able to recognize a MSDOS Windows partition (or any windows partition). However I do know that the hard drive is intact since I can mount the volume and read files perfectly from the windows partition.
Online sources I found highly recommended an automated utility to scan and fix the grub partition called boot-repair
. I installed and followed its instructions with no luck in repairing the boot loader from recognizing the partition as a boot-able entity. I have tried this about 15 times with varying modifications to its settings. The last log from the utility is http://paste2.org/6OEaEMnt.
The logs (from what I can gather) show that sda1 through 3 could not be mounted and read Mounting failed: mount: unknown filesystem type ''
Which would make sense if utility was trying to access the disk independently of the Motherboards RAID System (? yet again, little experience on how the RAID is actually set up and performed, I just know that both drives are plugged into the Motherboard and set up for RAID0).
sdc2
Appears to be the Windows partition since it found Windows 7/2008: NTFS
.
You can also see what it set grubs launch script for Windows to:
menuentry 'Windows 10 (loader) (on /dev/mapper/pdc_dagafhccb1)' --class windows --class os $menuentry_id_option 'osprober-chain-94F01FB0F01F9796' {
insmod part_msdos
insmod ntfs
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 94F01FB0F01F9796
else
search --no-floppy --fs-uuid --set=root 94F01FB0F01F9796
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
Part of the command makes sense to me, but a lot of the command does not due to lack of experience. So debugging this thing on my own would be futile. One of the largest concerns I have is how it found the magic number: 94F01FB0F01F9796
. That is beyond me. It is also the error that I presume is stopping me from loading the windows partition (potentially among others).
I might be missing more options to tell grub that this partition is a RAID, it might be loading in a misaligned sector of the disk with the magic number, I am honestly unsure. I am hoping the internet can save my sorry computer.
--EDIT--
BIOS settings:
- Hard Disk Boot Priority:
- SCSI-0 : SAMSUNG SSD 830 Series
- SCSI-1 : SAMSUNG SSD 830 Series
- SCSI-2 : ST3000DM001-1CH166
- Bootable Add-in Cards
- EFI CD/DVD Boot Option: Auto
- First Boot Device: USB-HDD
- Second Boot Device: LS120
- Third Boot Device: Hard Disk
- HDD S.M.A.R.T. Capability: Enabled
- OnChip SATA Controller: Enabled
- OnChip SATA Type: AHCI
- OnChip SATA Port4/5 Type: As SATA type
- OnChip SATA3.0 Support: Enabled
- F_USB30 Controller: Enabled
- eSATA3 Controller: Enabled
- eSATA3 Ctrl Mode: AHCI
--Actual RAID Settings--
Under the RAID Configuration Utility:
View Drive Assignments:
- 01:01 (SSD 830 Series) [SMART] SATA 6G 128.03GB (127.96GB) LD 1-1
- 02:01 (SSD 830 Series) [SMART] SATA 6G 128.03GB (127.96GB) LD 1-1
- 06:01 (ST3000DM001-1CH166) [SMART] SATA 6G 3000.59
LD View Menu:
- LD 1, RAID 0, Drive 2, Capacity 253.99GB, Functional
Controller Configuration:
- Controller IRQ: 11
- AHCI HBA MMIO Base Address: FDFFF000