OSDev.org
https://forum.osdev.org/

Grub error for Bare Bones OS.
https://forum.osdev.org/viewtopic.php?f=1&t=29269
Page 1 of 1

Author:  codeblaster [ Sun Apr 26, 2015 8:36 am ]
Post subject:  Grub error for Bare Bones OS.

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:
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?

Author:  iansjack [ Sun Apr 26, 2015 9:10 am ]
Post subject:  Re: Grub error for Bare Bones OS.

Google "Create bootable USB from ISO".

And can I respectfully suggest that Google is a good starting point for relatively trivial queries.

Author:  codeblaster [ Sun Apr 26, 2015 10:44 am ]
Post subject:  Re: Grub error for Bare Bones OS.

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. :(

Author:  Codesmith [ Thu May 07, 2015 5:23 pm ]
Post subject:  Re: Grub error for Bare Bones OS.

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

Specifically I run
Code:
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.

Author:  ExeTwezz [ Thu May 07, 2015 9:54 pm ]
Post subject:  Re: Grub error for Bare Bones OS.

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/