I currently have a Windows 10 and Ubuntu 16.04 dual boot on my PC. This issue happened because i have installed windows after Ubuntu.
I have tried to boot from a live-USB and reinstalling Grub using the terminal following this link http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
Also using the grub repair tool but with no success!
And now I am stuck in this grub2 command line screen:
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.
grub>
I got this output after running lsblk; sudo parted -l
Model: ATA WDC WD3000HLFS-0 (scsi)
Disk /dev/sda: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ntfs boot
2 525MB 300GB 300GB primary ntfs
Model: ATA WDC WD3000HLFS-0 (scsi)
Disk /dev/sdb: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 300GB 300GB primary ext4
Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdc: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 8002MB 8001MB primary linux-swap(v1)
2 8003MB 500GB 492GB extended
5 8003MB 28.0GB 20.0GB logical ext4
6 28.0GB 28.5GB 500MB logical ext4
7 28.5GB 43.5GB 15.0GB logical ext4
8 43.5GB 58.5GB 15.0GB logical ext4
9 58.5GB 88.5GB 30.0GB logical ext4 boot
10 88.5GB 500GB 412GB logical ext4
Model: JetFlash Transcend 16GB (scsi)
Disk /dev/sdd: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 15.8GB 15.8GB primary fat32 boot, lba
lsblk; sudo parted -l
to your question? – L. D. James Oct 04 '16 at 13:25sdc6
the/boot
-partition? If so you should have mounted the partition as well during your repair-attempt. After the first command (following your link)sudo mount /dev/sdXY /mnt
you would have to mount the boot-partitionsudo mount /dev/sdc6 /mnt/boot
and then go on with the other commands in the link. We can't see whatsdc6
is, but looking at the size it could be a/boot
-partition, you are the one who knows... – mook765 Oct 04 '16 at 14:40/dev/sdaXY
and/dev/sdX
? Also when you performed the steps, did you get any errors at all? And finally, do you know for sure which partition has your Ubuntu insalled? – L. D. James Oct 04 '16 at 14:59/sda
. You repaired a boot configuration that may not be used. There are two options. Set your BIOS to boot to/dev/sdc
or update the grub in/dev/sda
. Follow the steps in the link again. And let me know the outcome. – L. D. James Oct 04 '16 at 15:28/dev/sda
) is to ensure that you haveUEFI
enabled if your computer is capable. If your computer was booting before and stopped it might be that you may have inadvertently disabledUEFI
. Thanks for the update. By the way, you shouldn't make any manual changes to the drive... Allow Grub to fix the problem. – L. D. James Oct 04 '16 at 15:46/dev/sda
isn't a partition. It's the physical drive. Run the steps in the link you posted with this as the replacement for/dev/sdX
. In your command you have/dev/sdXY
correct. But you have/dev/sdX
as/dev/sdc
. It should be/dev/sda
. Also insure you haveUEFI
enabled. I'll put the steps in a formatted answer to make it easier to follow. – L. D. James Oct 04 '16 at 15:59grub-install
andupdate-grub
modifies that partition, leaving it compatible for both Windows and Grub. You might have to reinstall Windows or Reinstall Grub to fix that partition that you emptied out. I'll empty out a partition on a machine in my shop and see what the best way to handle it. – L. D. James Oct 04 '16 at 16:10