Grub error for Bare Bones OS.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
codeblaster
Posts: 14
Joined: Fri Apr 24, 2015 1:25 pm
Libera.chat IRC: coder

Grub error for Bare Bones OS.

Post by codeblaster »

Hi,

I created the small OS mentioned in http://wiki.osdev.org/Bare_Bones.
It is working fine in QEMU.
But when I create its bootable usb using

Code: Select all

sudo dd if=myos.iso of=/dev/sdb && sync

it doesn't load correctly during booting. Though it is able to detect the flash drive, It throws error
disk is not loaded ,going to grub rescue mode.

What to do next?
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Grub error for Bare Bones OS.

Post by iansjack »

Google "Create bootable USB from ISO".

And can I respectfully suggest that Google is a good starting point for relatively trivial queries.
codeblaster
Posts: 14
Joined: Fri Apr 24, 2015 1:25 pm
Libera.chat IRC: coder

Re: Grub error for Bare Bones OS.

Post by codeblaster »

I got unetbootin and I made a bootable disk :)
But now When I select the OS from usb, it does nothing.
The selection menu doesn't go away. I can select it again and again, nothing happens. :(
Codesmith
Posts: 3
Joined: Wed May 06, 2015 12:13 pm

Re: Grub error for Bare Bones OS.

Post by Codesmith »

When I burn my iso to usb, I usually run with -bs specified.

Specifically I run

Code: Select all

dd if=myos.iso of=/dev/sdx bs=4M
Of course /dev/sdx is the device to write the image to.

I usually insert this a script after I wrote to /dev/sda several times late at night.
ExeTwezz
Member
Member
Posts: 104
Joined: Sun Sep 21, 2014 7:16 am
Libera.chat IRC: exetwezz

Re: Grub error for Bare Bones OS.

Post by ExeTwezz »

This is pretty easy.

1. Make a partition table and a partition on the USB pen drive.
2. Create a file system on the partition.
3. Mount the created partition.
4. Copy your files (kernel, etc.) there.
5. Unmount.
6. Install GRUB on the USB pen drive (not partition) using grub2-install (or maybe grub-install, as in Ubuntu).
7. Reboot and boot from the USB pen drive.
Post Reply