DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I understand you installed Debian first, then put Fedora next to it, correct? If so, this is essentially a Fedora issue Key is that Fedora controls the Grub menu in that case, so when fsck has finished, run the update command for grub:
Code:
update-grub
Then, if you choose to have Grub controlled by Debian, install Grub from Debian with
Code:
grub-install /dev/sda
It's wise (but probably not necessary) to re-run the grub update command again. It reports the entries it has found, so you can take action before rebooting if something goes haywire
I understand you installed Debian first, then put Fedora next to it, correct?
Yes,that is correct.
Quote:
If so, this is essentially a Fedora issue Key is that Fedora controls the Grub menu in that case, so when fsck has finished, run the update command for grub:
Code:
update-grub
Now I can't start Debian any more. It is not displayed on GRUB prompt. Where shall I run "update-grub"?
Quote:
Then, if you choose to have Grub controlled by Debian, install Grub from Debian with
Code:
grub-install /dev/sda
It's wise (but probably not necessary) to re-run the grub update command again. It reports the entries it has found, so you can take action before rebooting if something goes haywire
In a dual boot scenario only one of the installed OS can control the bootloader, so you don't need to install grub in both - just install it from the first OS on the disk and control it from there.
In a dual boot scenario only one of the installed OS can control the bootloader, so you don't need to install grub in both - just install it from the first OS on the disk and control it from there.
Please advise how can I correct it. I installed Debian first. I expect Debian to have grub installed there. Thanks
Please advise how can I correct it. I installed Debian first. I expect Debian to have grub installed there.
Dutch Master already gave you the reason.
Quote:
Key is that Fedora controls the Grub menu in that case, so when fsck has finished, run the update command for grub:
When you installed Fedora, you installed GRUB again (correct?). That means, at the moment it is Fedora's GRUB. You need to update it to include both systems.
update-grub is not a program/package, it's part of Grub2, so you can't install it separately.
Code:
yum install grub2
Alternatively, boot a Knoppix CD and install Grub from there.
# yum install grub2
Code:
Loaded plugins: langpacks, presto, refresh-packagekit
Package 1:grub2-2.0-0.38.beta6.fc17.x86_64 already installed and latest version
Nothing to do
# update-grub
Code:
bash: update-grub: command not found...
Quite strange ?
Previously I ran;
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Code:
[sudo] password for satimis:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.6.1-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.6.1-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.5.6-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.5.6-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.3.4-5.fc17.x86_64
Found initrd image: /boot/initramfs-3.3.4-5.fc17.x86_64.img
No volume groups found
done
There is probably no "update-grub" script in fedora... so instead do it the manual way:
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
For some other distros it may be
Code:
grub-mkconfig -o /boot/grub/grub.cfg
This will regenerate the config.
Warning: When fiddling with bootloaders it's a good idea to have some kind of livecd handy to enable you to chroot into the system if it becomes unbootable.
Last edited by unSpawn; 10-15-2012 at 10:49 AM.
Reason: (..)
There is probably no "update-grub" script in fedora... so instead do it the manual way:
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
# grub2-mkconfig -o /boot/grub2/grub.cfg
Code:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.6.1-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.6.1-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.5.6-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.5.6-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.3.4-5.fc17.x86_64
Found initrd image: /boot/initramfs-3.3.4-5.fc17.x86_64.img
No volume groups found
Found Debian GNU/Linux (6.0.6) on /dev/sda5
done
In a dual boot scenario only one of the installed OS can control the bootloader, so you don't need to install grub in both - just install it from the first OS on the disk and control it from there.
Noted. Thank
During installation
- created LVM group
- created LVM partions taking up half HD space leaving the rest unused
- installed Debian
- installed Fedora on the unused space. But I was not allowed to create another LV group. The new LVM partitions still remained in the original LVM group
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.