0

HI guys I have an annoying problem. I wanted to replace windows with Ubuntu on my labtop. I used my USB to install ubuntu successfully but now when I reboot it without the USB it says no boot able device or something like that. I used the boot repair software to try to fix it but it didn't work. http://paste2.org/pn7mxkj7 is the url I was told to write down to help me fix it. Can someone please help me

    ubuntu@ubuntu:~$ sudo lsblk -o name,mountpoint,label,size,fstype;sudo parted -l
NAME         MOUNTPOINT                                LABEL        SIZE FSTYPE
sda                                                                29.6G 
└─sda1       /cdrom                                    UBUNTU 16_0 29.6G vfat
loop0        /rofs                                                  1.4G squashf
mmcblk0rpmb                                                           4M 
mmcblk0boot0                                                          4M 
mmcblk0boot1                                                          4M 
mmcblk0                                                            29.1G 
├─mmcblk0p1                                                         512M vfat
├─mmcblk0p2  /media/ubuntu/1cbc9f59-3734-4d9c-92f2-177             26.7G ext4
└─mmcblk0p3                                                         1.9G swap
Model: PNY USB 3.0 FD (scsi)
Disk /dev/sda: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  31.7GB  31.7GB  primary  fat32        boot, lba


Error: /dev/mmcblk0rpmb: unrecognised disk label
Warning: Error fsyncing/closing /dev/mmcblk0rpmb: Input/output error
Retry/Ignore?                                                             
L. D. James
  • 25,444

1 Answers1

0

You apparently installed Grub on the USB stick during the install, not the /dev/sda. You can fix this by installing grub on /dev/sda.

Perform the steps provided here for a different question, but the same resolution (the details of all the steps are in the link) Click on the link:

Dual Boot don't work on Windows 10:
https://askubuntu.com/a/831175/29012

Perform these steps at the terminal command prompt after booting into the Live media:

Replace /dev/sdaX with the partition where Ubuntu is installed.
Replace /dev/sdX with the drive in your computer which is /dev/sda.

The "$" symbol is the terminal prompt you see where you type the command. The "$" prompt is a normal user. The "#" prompt is when running as root. The prompt will change while performing the steps. Copy and paste the command that appears after the prompt. The prompts are showing that the lines are terminal commands.

$ sudo mount /dev/sdaX /mnt
$ for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt/$i"; done
$ sudo chroot /mnt  
$ sudo grub-install /dev/sdX
# update-grub  
# exit  
$ sudo for i in /sys /proc /run /dev; do sudo umount "/mnt/$i"; done  
$ sudo umount /mnt
$ exit

Now reboot the computer and you'll be all set without the USB device.

L. D. James
  • 25,444