0

I installed Ubuntu on a USB drive and my partition table is

Disk /dev/sdb: 14.5 GiB, 15514730496 bytes, 30302208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb643db4f

 Device     Boot    Start      End  Sectors  Size Id     Type
/dev/sdb1  *        2048 20537343 20535296  9.8G  83     Linux
/dev/sdb2       20539390 30300159  9760770  4.7G   5     Extended
/dev/sdb5       20539392 30300159  9760768  4.7G  82     Linux swap / Solaris

I created my kernel following by this link http://arjunsreedharan.org/post/82710718100/kernel-101-lets-write-a-kernel

when I add menuentry in etc/default/grub (grub.cfg)

menuentry 'mykernel' {
    set root='(hd1,msdos1)'
    multiboot /boot/mykernel-01 ro
}

and when run command

update-grub
this gives error

/usr/sbin/grub-mkconfig: 6: /etc/default/grub: menuentry: not found

How can I resolve this issue.

  • Does Ubuntu use grub-mkconfig command, what system is this? – George Udosen Mar 11 '17 at 17:33
  • I have windows10 on my ssd and Ubuntu 16.04 LTS on my 16 gb usb. – suleman Mar 11 '17 at 17:38
  • please change ure tag to 16.04 – George Udosen Mar 11 '17 at 17:39
  • I changed it, any solution for this error. – suleman Mar 11 '17 at 17:43
  • please look at this article – George Udosen Mar 11 '17 at 18:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.