Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh Install Unbootable :/
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
karamfil
n00b
n00b


Joined: 11 Feb 2009
Posts: 4

PostPosted: Mon Jun 30, 2014 8:55 am    Post subject: Fresh Install Unbootable :/ Reply with quote

Hello,

I just bought a new PC

MB: Asus H97M-E
CPU: i7-4770

I've followed the handbook. However after installation and reboot I can't get to boot the system, it just goes the BIOS setup.

I have started from this install-amd64-minimal-20140619.iso
Kernel is installed with "genkernel all"

I am using grub2 as suggested in the handbook. The install went without any errors.
Even tried adding 'GRUB_PLATFORMS="emu efi-32 efi-64 pc"'. Still no luck.
Sadly "http://wiki.gentoo.org/wiki/GRUB2" did not help me :/

Here is some info:

Code:
livecd gentoo # uname -a
Linux livecd 3.12.21-gentoo-r1 #1 SMP Thu Jun 19 06:47:27 UTC 2014 x86_64 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz GenuineIntel GNU/Linux


Code:
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           
Model: ATA ST1000DM003-1ER1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  3146kB  2097kB                  grub    bios_grub
 2      3146kB  137MB   134MB   ext2            boot
 3      137MB   8000MB  7862MB  linux-swap(v1)  swap
 4      8000MB  1000GB  992GB   ext4            rootfs


Code:
(chroot) livecd / # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda2      /boot      ext2      noauto,noatime   1 2
/dev/sda3      none      swap      sw      0 0
/dev/sda4      /      ext4      noatime      0 1

#/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0



How I installed the system:
Code:
parted -a optimal /dev/sda


~~~~~~~~

print
mklabel gpt

unit mib
mkpart primary 1 3
name 1 grub
set 1 bios_grub on
mkpart primary 3 131
name 2 boot
mkpart primary 131 8gb
name 3 swap
mkpart primary 8gb -1
name 4 rootfs
print


quit

~~~~~~~~~

mkfs.ext2 /dev/sda2
mkfs.ext4 /dev/sda4
mkswap /dev/sda3
swapon /dev/sda3
mount /dev/sda4 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda2 /mnt/gentoo/boot
cd /mnt/gentoo
wget http://mirrors.telepoint.bg/gentoo/releases/amd64/autobuilds/current-iso/stage3-amd64-20140619.tar.bz2
tar xjpf stage3-*.tar.bz2
nano -w /mnt/gentoo/etc/portage/make.conf

cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
emerge-webrsync
emerge --sync --quiet
eselect profile list
eselect profile set 1
passwd

echo "Europe/Sofia" > /etc/timezone
nano -w /etc/fstab /etc/conf.d/hostname /etc/conf.d/net /etc/conf.d/hwclock /etc/locale.gen
~ config_eth0="dhcp"
~ clock="local"

locale-gen
env-update && source /etc/profile

emerge --config sys-libs/timezone-data

emerge gentoo-sources genkernel grub

emerge syslog-ng vixie-cron mlocate dhcpcd

ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
rc-update add {net.eth0,syslog-ng,vixie-cron,dhcpcd,sshd} default
genkernel all
ls -l /boot/

grub2-install /dev/sda
grub2-mkconfig -o /boot/grub/grub.cfg

rm /stage3-*.tar.bz2*

exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}


reboot



Any help will be appreciated!
Back to top
View user's profile Send private message
kick6
n00b
n00b


Joined: 22 Jan 2005
Posts: 29
Location: Golden, Colorado

PostPosted: Mon Jun 30, 2014 3:50 pm    Post subject: Reply with quote

Is this a system with only one hard drive?
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Mon Jun 30, 2014 4:11 pm    Post subject: Reply with quote

Disable secure boot in your BIOS.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
john_deaux
n00b
n00b


Joined: 16 Sep 2013
Posts: 56
Location: On the banks of the Pontchartrain

PostPosted: Sat Jul 26, 2014 12:53 am    Post subject: Reply with quote

Just a n00b here but don't you need to change the mount options for /dev/sda2? Yours is set as noauto,noatime.

j_d
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Sat Jul 26, 2014 3:53 am    Post subject: Reply with quote

john_deaux wrote:
Just a n00b here but don't you need to change the mount options for /dev/sda2? Yours is set as noauto,noatime.

j_d
No, that's perfectly normal for /boot. As I understand the OP's problem, he is not getting far enough for an fstab error to matter, so even if it was wrong, it is not what he needs to worry about yet.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Sat Jul 26, 2014 6:07 am    Post subject: dumb questions Reply with quote

So you mentioned emerging gentoo-sources but did you actually build and install a kernel and modules? When you did the grub2-mkconfig did it mumble something about finding and installing the kernel you copied to boot? Did you use genkernel or did you go the manual route and then made sure that you baked in the hard drive controller that you are using on your mobo or made sure that that made it to whatever initramfs you might have created?
Back to top
View user's profile Send private message
janga8
n00b
n00b


Joined: 14 Jul 2014
Posts: 32

PostPosted: Sat Jul 26, 2014 10:39 am    Post subject: Reply with quote

You need an efi boot partition.

I have little EFI knoledge but a guy i know says this guide helped him.
https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface

Janga
Back to top
View user's profile Send private message
dr_vic
n00b
n00b


Joined: 04 Apr 2014
Posts: 14

PostPosted: Sat Jul 26, 2014 12:39 pm    Post subject: Reply with quote

Hope this helps.
Back to top
View user's profile Send private message
janga8
n00b
n00b


Joined: 14 Jul 2014
Posts: 32

PostPosted: Sun Jul 27, 2014 11:27 am    Post subject: Reply with quote

dr_vic wrote:
Hope this helps.


After up grading my computer to an EFI (not specifically for EFI though) board that looks pretty much what I did. Hope that helps!

Janga
_________________
GNOME 3 is like reinventing the wheel, and making it a triangle.
Back to top
View user's profile Send private message
Silverstoned
n00b
n00b


Joined: 04 Aug 2014
Posts: 1

PostPosted: Mon Aug 04, 2014 3:05 am    Post subject: Reply with quote

Sorry if I'm hijacking this thread, but I seem to be having a near identical problem to the OP. Other than my hardware, the files listed are identical to mine. Every time I try to reboot the system it goes to the BIOS unless I boot from the live DVD (actually on a USB stick). I used fdisk to set /dev/sda1 as a boot partition, but my system still refuses to boot. FWIW I used genkernel and it had no issues finding the initrd and the kernel. It is a single SSD drive (120G) and I can't see anything in my BIOS indicating secure boot.

system info:
Gigabyte BRIX (GB-BXieH-4010)
I3 dual core processor at 1.7GHz

Any ideas what else I should look at or any code info you need for further suggestions?

Thanks!
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