Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When can I reboot (during Install)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jun 11, 2018 12:34 am    Post subject: Reply with quote

StevenC21,

To be using UEFI is a VBox guest, you must have made some configuration changes to your virtual machine.
To install to use UEFI, you must be using a GPT disk lable. fdisk will show that but you cut of that part of the output.

Code:
sudo fdisk -l /dev/sda
Password:
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos


You need to know the Disklabel type.
If its dos, you cannot use EFI.
_________________
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
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Mon Jun 11, 2018 12:38 am    Post subject: Reply with quote

Steven,

as far as networking and virtualbox goes, If i remember correctly, you want to goto network options of your VM and change "attached to" to bridged instead of NAT. this will allow more direct access without doing anything else. dhcp should just work at this point.
Back to top
View user's profile Send private message
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Mon Jun 11, 2018 12:42 am    Post subject: Reply with quote

Yes, yes it does now. Thank you!
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Mon Jun 11, 2018 12:55 am    Post subject: Reply with quote

sorry neddy and hu, didn't see the thread split until after.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9646
Location: almost Mile High in the USA

PostPosted: Mon Jun 11, 2018 1:23 am    Post subject: Reply with quote

You could look at how mint was installed assuming you're installing Gentoo using the same VM method.

Is there a /sys/firmware/efi in mint (or any other boot disk)? If there is, then likely you will need to continue with EFI install. If not, then you should go with MBR install.

Actually if you're using the Gentoo mininstaller CD, that, last I recall, uses MBR boot and as that works, you might well continue using MBR.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jun 11, 2018 11:36 am    Post subject: Reply with quote

eccerr0r,

Virtualbox doesn't care. It supports both. The default is BIOS but UEFI can be selected in the configuration options for the individual VM.
Its not related to the real hardware at all.

Its on the VM System menu on the Motherboard tab.
There is a check box Enable EFI (special OSes only).

-- edit --

StevenC21,
That's the clincher. How is that checkbox set in your VM setup?
_________________
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
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Mon Jun 11, 2018 12:06 pm    Post subject: Reply with quote

It is set for BIOS. Should I change that to UEFI? I am fairly sure that I'm going to have to try again from square one anyways.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9646
Location: almost Mile High in the USA

PostPosted: Mon Jun 11, 2018 1:43 pm    Post subject: Reply with quote

Actually, it seems that virtualbox does care - it does need to know how the boot media is set up - unless it was somehow actually set to autodetect, then which the boot select option would not need to exist!

EFI can boot off of MBR disks just fine, I have a tablet that boots grub readily off a USB SD card, I did not have to convert it to GPT.

Anyway, at this point, you should choose whichever method you want to do. You have a half baked EFI system it seems, one way is to switch Vbox to EFI mode, then convert one of your 100M partition to FAT and use that as your ESP. Else you could go MBR, and simply ignore any EFI instructions for grub (EFI should be easier, but grub install works quite well, hiding the ugly details of MBR boot...)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?


Last edited by eccerr0r on Mon Jun 11, 2018 1:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jun 11, 2018 1:44 pm    Post subject: Reply with quote

StevenC21,

It doesn't matter if its set for BIOS or EFI.
What matters is that you know what it is and set up Grub accordingly.

It doesn't change your install in any way. Well, if you leave it at BIOS, grub-install should just work.
If you set it to EFI, /boot will need to be vfat.

Its BIOS. Follow the grub Install instructions for BIOS.

There is no reason to redo you install. Its very difficult to break gentoo so badly that its the only way out.
Reinstalling won't help your learning and only allows you to make a different mistake. :)
Its a bad habit you need to unlearn.

There is one more wrinkle you need to beware of but that depends on your disk label, which you haven't posted yet.
_________________
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
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9646
Location: almost Mile High in the USA

PostPosted: Wed Jun 13, 2018 1:16 pm    Post subject: Reply with quote

Let us know if you're in EFI mode or not: Tell us if there's anything in
Code:
$ ls /sys/firmware/efi

This should tell if your kernel is in EFI mode or not (or you can force it in Vbox, but assuming you don't want to muck with vbox options...).

Then there's the disk label: Are you using fdisk or parted? If you're using fdisk,

Code:
# fdisk /dev/sda # (or whichever disk you're using)

Welcome to fdisk (util-linux 2.30.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

If you're using parted,

Code:
# parted /dev/sda # (or whichever disk...)
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print

These will eventually say "Disklabel type: xxx" or "Partition Table: xxx" where xxx is the label type. I suppose this is just for completeness, but this will clarify whether you're using a GPT or MSDOS/MBR label.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Wed Jun 13, 2018 1:48 pm    Post subject: Reply with quote

Oh, hey guys! Sorry for forgetting about this post. I actually managed to get it all working with the help of a member of the forums here, so no need to spend time on me!

Thanks for all your help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jun 13, 2018 8:31 pm    Post subject: Reply with quote

StevenC21,

Please post what you did. It will help others who find this thread.
_________________
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
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Wed Jun 13, 2018 9:41 pm    Post subject: Reply with quote

Well, its kinda complex. We ended up doing an awful lot. What I mean is, it got to a point where it worked. I honestly don't know what worked and what didn't. We also abandoned GRUB and went to LILO, so a lot of changes. Even I don't know whether that VM is using BIOS or UEFI at this point. Sorry, I would if I could.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Jun 13, 2018 9:49 pm    Post subject: Reply with quote

StevenC21, it sounds like it's fixed but not solved since you don't understand why it was broken or even what.

That saddens us because we not only want to help but to help other gentoo users understand what the problem was. And to help YOU understand what the problem was.
As NeddySeagoon has said often "teach you to fish".


Last edited by Tony0945 on Thu Jun 14, 2018 2:11 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9646
Location: almost Mile High in the USA

PostPosted: Wed Jun 13, 2018 10:08 pm    Post subject: Reply with quote

Well, trying to read between the lines here for further readers ...

- looks like VBox was indeed running MBR mode (or compatibility mode, but it doesn't matter) and left there because:
- Using the very old sys-boot/lilo as your bootloader solved the problem. Since elilo was not mentioned, this was the evidence that EFI boot was not used or not enabled.

I'm sure grub could have been just as easily used in MBR mode.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jun 13, 2018 10:13 pm    Post subject: Reply with quote

eccerr0r,

Lilo is oblivious to EFI/BIOS, its just /sbin/lilo.
grub-install has two different invocations depending on the firmware in use.

I'm with you, I suspect grub-install would have worked if it wasn't told to use EFI.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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