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-grubthis gives error
/usr/sbin/grub-mkconfig: 6: /etc/default/grub: menuentry: not found
How can I resolve this issue.
grub-mkconfig
command, what system is this? – George Udosen Mar 11 '17 at 17:3316.04
– George Udosen Mar 11 '17 at 17:39set root=(hd1,msdos1)
– George Udosen Mar 11 '17 at 18:50set root='hd1,msdos1'
– George Udosen Mar 11 '17 at 18:54