OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 12:42 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: grub-install does nothing
PostPosted: Thu Feb 25, 2016 12:35 am 
Offline
Member
Member

Joined: Sat Apr 11, 2015 9:37 am
Posts: 37
i recently began building a minimal linux system. For booting the Kernel, i needed to install grub.
when i run "sudo grub-install /dev/sdb", grub says "installation finished. No errors detected."; But i can see that it has done nothing. no changes are made to the device. I'm using GRUB2, so i do not have access to the grub shell.


Top
 Profile  
 
 Post subject: Re: grub-install does nothing
PostPosted: Thu Feb 25, 2016 1:04 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
Grub2 does have a command-line interface.

Are you sure you have set sdb as the boot device in the BIOS?

How are you determining that no changes have been made to /dev/sdb?


Top
 Profile  
 
 Post subject: Re: grub-install does nothing
PostPosted: Thu Feb 25, 2016 1:10 am 
Offline
Member
Member

Joined: Sat Apr 11, 2015 9:37 am
Posts: 37
1) my BIOS can boot from a pendrive.
2)the /boot directory is empty, no files are there.


Top
 Profile  
 
 Post subject: Re: grub-install does nothing
PostPosted: Thu Feb 25, 2016 1:14 am 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 283
where is it stated that /boot == /dev/sdb?


Top
 Profile  
 
 Post subject: Re: grub-install does nothing
PostPosted: Thu Feb 25, 2016 1:24 am 
Offline
Member
Member

Joined: Sat Apr 11, 2015 9:37 am
Posts: 37
i meant no files are installed under <my device>/boot/.

i have previously used grub-mkrescue to make ISO9960 readonly images. grub's files were installed in <image>/boot/grub.


Top
 Profile  
 
 Post subject: Re: grub-install does nothing
PostPosted: Thu Feb 25, 2016 1:41 am 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 283
You used 2 different commands (grub-install vs. grub-mkrescue)

What linux distro are you running this on? What version?
What version of grub are you using?
What config files did you create? What is in them?

- Monk


Top
 Profile  
 
 Post subject: Re: grub-install does nothing
PostPosted: Thu Feb 25, 2016 1:53 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
snasim2002 wrote:
i meant no files are installed under <my device>/boot/.

You only specified that the mbr be installed on /dev/sdb, no other files. Read the grub2 manual for the correct command.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 23 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