Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New Gentoo Install Grub2 problem [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Fri Jan 09, 2015 1:16 am    Post subject: New Gentoo Install Grub2 problem [SOLVED] Reply with quote

Hi there,

need a little help

My install was going very well this time until I tried:
# grub2-mkconfig -o /boot/grub/grub.cfg

Code:

 * Messages for package sys-boot/grub-2.02_beta2-r3:

 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *
 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *
 * For information on how to configure GRUB2 please refer to the guide:
 *     http://wiki.gentoo.org/wiki/GRUB2_Quick_Start
 * Install sys-boot/os-prober to enable detection of other operating systems using grub2-mkconfig.
 * Install dev-libs/libisoburn to enable creation of rescue media using grub2-mkrescue.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Regenerating GNU info directory index...
 * Processed 83 info files.
livecd / # grub2-mkconfig -o /boot/grub/grub.cfg
/usr/sbin/grub2-mkconfig: line 232: /boot/grub/grub.cfg.new: No such file or directory



I am going to assume I did something wrong somehow. My install was Gentoo using the Handbook:AMD64 | Installation and also documention for Nvidia/Xorg/Gnome

only previous error I had was emerging app-admin/syslog-ng and I fixed that with emerging virtual/udev

So not sure how I did something wrong.

Can anyone point me in the rigth direction?
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400


Last edited by chekdalaypa on Fri Jan 09, 2015 1:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 319
Location: 39.885° N. -88.913° W.

PostPosted: Fri Jan 09, 2015 3:36 am    Post subject: Reply with quote

chekdalaypa

You didn't have /boot mounted when you ran the command
Code:
grub2-mkconfig -o /boot/grub/grub.cfg


Mount it as root and run the command again.
Back to top
View user's profile Send private message
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Fri Jan 09, 2015 4:29 am    Post subject: Reply with quote

tryn wrote:
chekdalaypa

You didn't have /boot mounted when you ran the command
Code:
grub2-mkconfig -o /boot/grub/grub.cfg


Mount it as root and run the command again.


tryn,

I checked that and did it again same issue.

Code:
livecd gentoo # mkdir /mnt/gentoo/boot                                         
mkdir: cannot create directory ‘/mnt/gentoo/boot’: File exists                 
livecd gentoo # mount /dev/sda2 /mnt/gentoo/boot
mount: /dev/sda2 is already mounted or /mnt/gentoo/boot busy
       /dev/sda2 is already mounted on /mnt/gentoo/boot
livecd gentoo # chroot /mnt/gentoo /bin/bash
livecd / # source /etc/profile
livecd / # export PS1="(chroot) $PS1"
(chroot) livecd / # grub2-mkconfig -o /boot/grub/grub.cfg
/usr/sbin/grub2-mkconfig: line 232: /boot/grub/grub.cfg.new: No such file or directory


Any other ideas?

thank you,
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400
Back to top
View user's profile Send private message
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Fri Jan 09, 2015 4:50 am    Post subject: Reply with quote

I re emerged,
Code:
# emerge --ask sys-boot/grub

>>> Installing (1 of 1) sys-boot/grub-2.02_beta2-r3
 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *
 *
 * Your boot partition was detected as being mounted as /boot.
 * Files will be installed there for grub to function correctly.
 *
 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *
 *
 * Your boot partition was detected as being mounted as /boot.
 * Files will be installed there for grub to function correctly.
 *
 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *
 *
 * Your boot partition was detected as being mounted as /boot.
 * Files will be installed there for grub to function correctly.
 *
 * For information on how to configure GRUB2 please refer to the guide:
 *     http://wiki.gentoo.org/wiki/GRUB2_Quick_Start

 * Messages for package sys-boot/grub-2.02_beta2-r3:

 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *

 * Messages for package sys-boot/grub-2.02_beta2-r3:

 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *
 *
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 *
 * For information on how to configure GRUB2 please refer to the guide:
 *     http://wiki.gentoo.org/wiki/GRUB2_Quick_Start
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Regenerating GNU info directory index...
 * Processed 83 info files.
(chroot) livecd / # grub2-mkconfig -o /boot/grub/grub.cfg
/usr/sbin/grub2-mkconfig: line 232: /boot/grub/grub.cfg.new: No such file or directory
(chroot) livecd / # mount /boot


You can see above it states "...Your boot partition was detected as being mounted as /boot..."

So I am note sure what to try next.

anyone have a suggestion?

thank you,
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400
Back to top
View user's profile Send private message
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Fri Jan 09, 2015 1:15 pm    Post subject: Reply with quote

Good morning,

Well I figured it out. I'm going to chalk it to staying up to late and being tired.

I figured I did something wrong and I did, I skipped a step and found it this morning I soon as I looked at the hand book.

After I did
emerge --ask sys-boot/grub

I should have done
grub2-install /dev/sda

but instead I had skipped over it and went to
grub2-mkconfig -o /boot/grub/grub.cfg

I corrected it this morning and my output is below.

Code:
(chroot) livecd / # grub2-install /dev/sda
Installing for i386-pc platform.                                                                   
Installation finished. No error reported.                                                           
(chroot) livecd / # grub2-mkconfig -o /boot/grub/grub.cfg                               
Generating grub configuration file ...                                                             
Found linux image: /boot/vmlinuz-3.17.7-gentoo                                                     
done                               


thank you to everyone who looked to help and this forum certainly has.
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum