Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installation Hangs -- Parted + GPT + UEFI = Confusion
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
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 344
Location: Salem, OR

PostPosted: Wed Nov 09, 2016 12:57 pm    Post subject: Installation Hangs -- Parted + GPT + UEFI = Confusion Reply with quote

I have installed Gentoo countless times and find myself confused. I have a new Atom-based Supermicro computer. I tried installing and configuing for a Xen Server in one shot and failed, so I switched to Debian as recommended by the Xen Wiki. Then I ran into problems with Debian: lvm2 was still in "test" mode and therefore not available to my "Jessie" build. I concluded I had run into a package Hell, so I returned to Mother Gentoo and decided to go for the 2 round install for a Xen server. It's in my first round, a simple basic installation, and I have become gated.

I went through the usual Handbook install. I decided to use GPT instead of MBR and I suspect that was my First Disobedience. And I thought I could use what I traditionally have used: 1)boot,2)swap,3)root,4)extra disks/dvd.

On booting up with LILO, there displays an orange box with:

Code:
 "GNU/Linux - LIO 24 - Boot Menu"
  |U | gentoo|
[/quote]
Then here's what is below the box:
  [quote] boot:
   Loading gentoo..........
   ...
   ...
   ...
   ......... [blinking underscore]

and the system just hangs.

I used parted to create the partitions.
Code:
livecd ~ # parted
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA TOSHIBA MG04ACA4 (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  135MB   134MB   ext2            boot  boot, esp
 2      135MB   672MB   537MB   linux-swap(v1)  swap
 3      672MB   21.6GB  21.0GB  ext4            root

(parted)


here's fdisk:
Code:
fdisk -l
Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

...[other /dev/ram##]

Disk /dev/ram15: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/loop0: 231.5 MiB, 242737152 bytes, 474096 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

Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C888FE01-4F3D-49EA-B637-4F5BC0E9C546

Device       Start      End  Sectors  Size Type
/dev/sda1     2048   264191   262144  128M EFI System
/dev/sda2   264192  1312767  1048576  512M Linux filesystem
/dev/sda3  1312768 42272767 40960000 19.5G Linux filesystem
livecd ~ #


Finally, here's my LILO config:
Code:
livecd ~ # cat /mnt/gentoo/etc/lilo.conf
boot=/dev/sda             # Install LILO in the MBR
prompt                    # Give the user the chance to select another section
timeout=50                # Wait 5 (five) seconds before booting the default section
default=gentoo            # When the timeout has passed, boot the "gentoo" section

image=/boot/kernel-genkernel-x86_64-4.4.26-gentoo
    label=gentoo            # Name we give to this section
    read-only               # Start with a read-only root. Do not alter!
    root=/dev/sda3          # Location of the root filesystem
    initrd=/boot/initramfs-genkernel-x86_64-4.4.26-gentoo

livecd ~ #


I referred to the Parted User's Manual which states in its section 2.1 Inroduction to Partitioning:
Quote:
This manual used to introduce the reader to these systems and their working. This content has moved to the GNU Storage Guide.


But it appears the GNU Storage Guide does not exist and has been lost in some GIT commit. I'm not finding a good resource that explains the concepts of partitioning and the interaction with BIOS.

This machine is intended to be a Xen Server, I do not want to be able to dual boot it into a Microsoft product; however, I would like to be able to run Windows within Xen. I plan to use LVM for the remainder of my disk.

Have I shot myself in my foot having only three partitions and not a "Bios/Grub" partition? Can I remedy my predicament through managing the partitions without having to rebuild and recompile? And finally, what is a good resource for learning about partitioning and UEFI -- the "Preparing Disks" section of the Handbook did not give me an adequate understanding.


Last edited by jlpoole on Wed Nov 09, 2016 4:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Nov 09, 2016 1:19 pm    Post subject: Reply with quote

My opinion.

I basically redo the installtion several times recenlty because of my backup strategy. I did sevearl times creating the partitions, setting up the bootloader and fs recently.

I suggest:

Stick to the handbook
Create those paritions as said in the handbook
Use grub2
use gpt
Pay attention to the filesystem and size what the handbook says

e.g.

Code:
Device      Start       End   Sectors   Size Type
/dev/sda1    2048      6143      4096     2M BIOS boot
/dev/sda2    6144    268287    262144   128M EFI System
/dev/sda3  268288    530431    262144   128M Linux filesystem
/dev/sda4  530432 234440703 233910272 111,6G Linux filesystem


I use lvm for my root. grub2 as bootlaoder. initramfs to be able to use lvm2 + luks + ext4. genkernel for the initramfs, created once, used since that. self made kernel.

--

lilo may work with uefi. the binary backup installtion years ago has forced me to deal with grub2, when gentoo used at that time only grub1. so i know the syntax by now and i stick to that.

you can use several ways to boot up your kernel. lilo / grub2 are only a few options. you may look into other options.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Wed Nov 09, 2016 2:45 pm    Post subject: Reply with quote

efi reference: http://www.rodsbooks.com/efi-bootloaders/
Does your computer support uefi? - answer in owners manual and ads - What is your make and model?
If so, have you disabled or shimmed secure boot? - owners manual - for how to secure - http://www.rodsbooks.com/efi-bootloaders/secureboot.html#using_signed - for how to shim
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 344
Location: Salem, OR

PostPosted: Wed Nov 09, 2016 4:27 pm    Post subject: Reply with quote

DONAHUE wrote:
efi reference: http://www.rodsbooks.com/efi-bootloaders/
Does your computer support uefi? - answer in owners manual and ads - What is your make and model?
If so, have you disabled or shimmed secure boot? - owners manual - for how to secure - http://www.rodsbooks.com/efi-bootloaders/secureboot.html#using_signed - for how to shim


Watchman - thank you -- very much! This is exactly what I needed. I feel the Gentoo Handbook failed me in this area.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Thu Nov 10, 2016 2:05 am    Post subject: Reply with quote

Watchman is not a name; it is a title bestowed upon users with a certain post count.
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