OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 11:21 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Grub error for Bare Bones OS.
PostPosted: Sun Apr 26, 2015 8:36 am 
Offline

Joined: Fri Apr 24, 2015 1:25 pm
Posts: 14
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?


Top
 Profile  
 
 Post subject: Re: Grub error for Bare Bones OS.
PostPosted: Sun Apr 26, 2015 9:10 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
Google "Create bootable USB from ISO".

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


Top
 Profile  
 
 Post subject: Re: Grub error for Bare Bones OS.
PostPosted: Sun Apr 26, 2015 10:44 am 
Offline

Joined: Fri Apr 24, 2015 1:25 pm
Posts: 14
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. :(


Top
 Profile  
 
 Post subject: Re: Grub error for Bare Bones OS.
PostPosted: Thu May 07, 2015 5:23 pm 
Offline

Joined: Wed May 06, 2015 12:13 pm
Posts: 3
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.


Top
 Profile  
 
 Post subject: Re: Grub error for Bare Bones OS.
PostPosted: Thu May 07, 2015 9:54 pm 
Offline
Member
Member

Joined: Sun Sep 21, 2014 7:16 am
Posts: 104
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot], kerravon and 78 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group