Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
REsolved! > Issue with Virtualbox install and Grub2
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
crisdean
n00b
n00b


Joined: 24 Jul 2009
Posts: 48

PostPosted: Wed Oct 26, 2016 7:54 am    Post subject: REsolved! > Issue with Virtualbox install and Grub2 Reply with quote

Hi guys,

I finally bit the bullet and tried to install Gentoo in Virtualbox 5.1 on my desktop machine. I followed the handbook to the letter and am now pretty much at the end where the umount commands are being sent. I encountered a few issues.

1) Upon first reboot I encountered fatal error 18. Ifixed this with help of this community by removing the image file from Virtualbox (chose hdd to boot first)
2) Then Grub2 showed me the boot menu and I selected Gentoo. Got stuck at freeing kernel...... with help of community found https://forums.gentoo.org/viewtopic-t-1051578.html. Checked udev and removed the null file and made those mknod changes. Although with two files it says file exists
3) Then used umount -l for the two umount commands

Now I do have the problem that I see grub>

No GUI anymore. I tried a ls (hd0,gpt1) etc. and it says filesystem unknown. I don't see any partitions such as /boot etc. I tried then the following:

set root (hd0,gpt1)
chainloader +1
boot

Boots straight into the grub shell again.

I hope that I described my issue well enough for someone to help me with my issue. I decided to use Gentoo to learn more about Linux but my knowledge isn't that great yet. A dummy instruction woudl therefore be appreciated as I don't know my way around Linux and especially Gentoo yet.

Thank you!

P.S.: I used a stage4 tarball. Maybe that's a mistake?


Last edited by crisdean on Thu Oct 27, 2016 6:07 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Wed Oct 26, 2016 10:17 am    Post subject: Reply with quote

crisdean,

grub> is grubs prompt. Grub has loaded but can't find /boot/grub/grub.cfg so doesn't know what to do.

Boot your Virtualbox guest into a System Rescue CD image so we can look at your Gentoo
You will be following a chunk of the handbook to do that.
Do all the filesystem mounting but do not do the chroot step.

Your gentoo is now at /mnt/gentoo.

ls /mnt/gentoo/boot will show the content of your Gentoo /boot.
The next commands will put things onto a pastebin. Post the URLs

Code:
ls -l /mnt/gentoo/boot | wgetpaste
ls -l /mnt/gentoo/boot/grub | wgetpaste
wgetpaste /mnt/gentoo/boot/grub/grub.cfg


They will show the contents of your Gentoo /boot and /boot/grub directories.
The last command will show the content of grub.cfg or return an error if its missing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
crisdean
n00b
n00b


Joined: 24 Jul 2009
Posts: 48

PostPosted: Wed Oct 26, 2016 12:11 pm    Post subject: Reply with quote

Hey there,

ls -l /mnt/gentoo/boot: -> http://bpaste.net/show/b9f8ff10bb7c
ls -l /mnt/gentoo/sda2/grub -> http://bpaste.net/show/a8ee1ccdf9f9
wgetpaste /mnt/gentoo/sda2/grub/grub.conf -> http://bpaste.net/show/493c5649313f

I couldn't find anything in the same dev/sda device so it seems that maybe I made a mistake somewhere? Not sure.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Wed Oct 26, 2016 1:01 pm    Post subject: Reply with quote

crisdean,

Your grub configuration file is incorrectly named.

Legacy grub uses grub.conf
grub2 uses grub.cfg

You have grub2. Fix the configuration file name.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
crisdean
n00b
n00b


Joined: 24 Jul 2009
Posts: 48

PostPosted: Thu Oct 27, 2016 5:55 am    Post subject: Reply with quote

NeddySeagoon wrote:
crisdean,

Your grub configuration file is incorrectly named.

Legacy grub uses grub.conf
grub2 uses grub.cfg

You have grub2. Fix the configuration file name.


I did but then sbin/init is moaning. Tried systemrescuecd and found that there is an issue with the sda1 partition which is set to bios flag and grub. The devicemap is empty also. Not sure why but I think GRUB2 made a mess out of things.

I'll try it with LILO and see if that works. Any other suggestions would be hugely aprpeciated. Otherwise I'll start a second brand new install.

Edit: I'm such an idiot. I forgot one of the most important steps of all. Making the partitions active...I mark this as resolved.

Edit2: New install worked well. Am now properly using Gentoo and am impressed so far :)
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