Page 1 of 1
grub-install does nothing
Posted: Thu Feb 25, 2016 12:35 am
by snasim2002
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.
Re: grub-install does nothing
Posted: Thu Feb 25, 2016 1:04 am
by iansjack
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?
Re: grub-install does nothing
Posted: Thu Feb 25, 2016 1:10 am
by snasim2002
1) my BIOS can boot from a pendrive.
2)the /boot directory is empty, no files are there.
Re: grub-install does nothing
Posted: Thu Feb 25, 2016 1:14 am
by FallenAvatar
where is it stated that /boot == /dev/sdb?
Re: grub-install does nothing
Posted: Thu Feb 25, 2016 1:24 am
by snasim2002
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.
Re: grub-install does nothing
Posted: Thu Feb 25, 2016 1:41 am
by FallenAvatar
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
Re: grub-install does nothing
Posted: Thu Feb 25, 2016 1:53 am
by iansjack
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.