Page 1 of 1
Grub error for Bare Bones OS.
Posted: Sun Apr 26, 2015 8:36 am
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?
Re: Grub error for Bare Bones OS.
Posted: Sun Apr 26, 2015 9:10 am
by iansjack
Google "Create bootable USB from ISO".
And can I respectfully suggest that Google is a good starting point for relatively trivial queries.
Re: Grub error for Bare Bones OS.
Posted: Sun Apr 26, 2015 10:44 am
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.
Re: Grub error for Bare Bones OS.
Posted: Thu May 07, 2015 5:23 pm
by Codesmith
When I burn my iso to usb, I usually run with -bs specified.
Specifically I run
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.
Re: Grub error for Bare Bones OS.
Posted: Thu May 07, 2015 9:54 pm
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.