Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2: blank screen/no activity after ATI video load...
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
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Wed Jan 29, 2014 11:05 am    Post subject: Grub2: blank screen/no activity after ATI video load... Reply with quote

Hello All,

I haven't been here for 'quite a long time'; I have been a Gentoo user since 2004 and on the whole with a few upgrade exceptions it has been a good experience.

In fact, this is not a criticism of Gentoo because I can't get it to load after boot so I have no idea what the latest release is like :-); I will be very grateful if someone wiser than I can take a quick shufti at what I have done and maybe throw some light on whatever is stopping the instance from fully booting.

Most of my gentoo boxes are built with RAID1 mdadm mirrored drives containing 2 drives with no hot swap. I am building a new box because I lost two ext3fs partitions on different machines after power failures and have gone back to Reiserfs; I have never lost anything after any event with Reiserfs, however noxious the author might be.

So, the new box is an MSI Z77IA-E53 with a low power i5 on board. Graphics card is an ATI R9 270 XFX.

Installation is done from the AMD64 iso, I chroot in with something like the following:-
boot up from the iso
set password
set up networking
ssh in and...
partition the drives...
Quote:
newbox (chroot) ~ $ # sfdisk -d /dev/sda
sfdisk: Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.

# partition table of /dev/sda
unit: sectors

/dev/sda1 : start= 2048, size= 4194304, Id=fd
/dev/sda2 : start= 4196352, size= 20971520, Id=82
/dev/sda3 : start= 25167872, size= 20971520, Id=fd
/dev/sda4 : start= 46139392, size=266442416, Id= 5
/dev/sda5 : start= 46141440, size= 20971520, Id=fd
/dev/sda6 : start= 67115008, size= 20971520, Id=fd
/dev/sda7 : start= 88088576, size= 33554432, Id=fd
/dev/sda8 : start=121645056, size= 33554432, Id=fd
/dev/sda9 : start=155201536, size= 33554432, Id=fd
/dev/sda10: start=188758016, size= 33554432, Id=fd
/dev/sda11: start=222314496, size= 90267312, Id=fd
newbox (chroot) ~ $ #

build the md arrays, format them appropriately and give them useful names
mdadm --assemble --update=super-minor /dev/md1 /dev/sda3 /dev/sdb3
mount /dev/md1 /mnt/gentoo
cd /mnt/gentoo
wget stage3-amd64-20131226.tar.bz2
wget portage-latest.tar.bz2
tar xvjpf stage3-amd64-20131226.tar.bz2
tar xvjf /mnt/cdrom/snapshots/portage-latest.tar.bz2 -C /mnt/gentoo/usr
build /etc/fstab
Quote:

# /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/md1 / reiserfs noatime 0 1
/dev/md0 /boot ext2 noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sdb2 none swap sw 0 0
/dev/md2 /tmp reiserfs noatime 0 1
/dev/md3 /var reiserfs noatime 0 1
/dev/md4 /var/lib reiserfs noatime 0 1
/dev/md5 /var/log reiserfs noatime 0 1
/dev/md6 /var/www reiserfs noatime 0 1
/dev/md7 /usr reiserfs noatime 0 1
/dev/md8 /home reiserfs noatime 0 1

/dev/BOOT /boot reiserfs noauto,noatime 1 2
/dev/ROOT / reiserfs noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0

Build /etc/mdamd.conf...
Quote:
newbox (chroot) ~ $ # mdadm --detail --scan | tee /mnt/gentoo/etc/mdadm.conf
ARRAY /dev/md8 metadata=1.2 name=livecd:8 UUID=d57028eb:85eb0f1b:b642f923:ed00efe4
ARRAY /dev/md7 metadata=1.2 name=livecd:7 UUID=4ec135e4:8138c1d6:023730aa:f9cfc355
ARRAY /dev/md6 metadata=1.2 name=livecd:6 UUID=dfd51f6a:9b16690d:435fef3c:80e7b5e5
ARRAY /dev/md5 metadata=1.2 name=livecd:5 UUID=d3c5e0be:9bd3eda4:67437926:ecdd4922
ARRAY /dev/md4 metadata=1.2 name=livecd:4 UUID=7e3b3cc6:52762caa:72bf15f3:1de66f34
ARRAY /dev/md3 metadata=1.2 name=livecd:3 UUID=c7934646:3d276e0e:38e57192:7f870c30
ARRAY /dev/md2 metadata=1.2 name=livecd:2 UUID=e5a15cd3:03229c5b:8b6590df:5a42ccaa
ARRAY /dev/md1 metadata=1.2 name=livecd:1 UUID=40aa6965:8ced4c4d:45137627:04a36c57
ARRAY /dev/md0 metadata=1.2 name=livecd:0 UUID=2cde0a77:342690ee:7f1fe924:99f40d0a
newbox (chroot) ~ $ #

Pick up some tools...
Quote:
Pick up some tools...
emerge sys-boot/grub:2
grub2-install /dev/sda
grub2-install /dev/sdb
emerge ftp
emerge pciutils
emerge gentoolkit # To make portage more useful (equery etc.,),
emerge genlop
emerge reiserfsprogs
emerge vim
emerge syslog-ng
emerge vixie-cron

Right, that's the box built (approximately, I might have missed a few bits)
arrays have been built with names 0-8 meta data 1.2 and the installation disk gives them new names, I do the following to get 0-8 back. Mounting & chroot (mdmnt-2 is a script already on the root drive for mounting the arrays in the correct places); As I have had to go through 100 reboots (probably not too far off the mark), after rebooting I run the following ...
Quote:

livecd ~ # for i in {119..127}; do mdadm --stop /dev/md$i; done ; mdadm --assemble --scan
mdadm: stopped /dev/md119
mdadm: stopped /dev/md120
mdadm: stopped /dev/md121
mdadm: stopped /dev/md122
mdadm: stopped /dev/md123
mdadm: stopped /dev/md124
mdadm: stopped /dev/md125
mdadm: stopped /dev/md126
mdadm: stopped /dev/md127
mdadm: /dev/md/8 has been started with 2 drives.
mdadm: /dev/md/7 has been started with 2 drives.
mdadm: /dev/md/6 has been started with 2 drives.
mdadm: /dev/md/5 has been started with 2 drives.
mdadm: /dev/md/4 has been started with 2 drives.
mdadm: /dev/md/3 has been started with 2 drives.
mdadm: /dev/md/2 has been started with 2 drives.
mdadm: /dev/md/1 has been started with 2 drives.
mdadm: /dev/md/0 has been started with 2 drives.
livecd ~ #
livecd ~ # mount /dev/md1 /mnt/gentoo ; mount -t proc none /mnt/gentoo/proc ; mount -o bind /dev /mnt/gentoo/dev ; /mnt/gentoo/root/mdmnt-2
skipping '/' ...
livecd ~ # chroot /mnt/gentoo /bin/bash
livecd / # env-update && source /etc/profile ; export PS1="\[\033[01;31m\]newbox (chroot)\[\033[01;34m\] \W \$\[\033[00m\] # "
>>> Regenerating /etc/ld.so.cache...
newbox (chroot) / $ #


and I am in.

download 3.13 kernel to /usr/src and extract, configure & build a 3.13 kernel (in /usr/src/linux-3.13) ...
make menuconfig
make
make modules_install
make install
for genkernel, set up default kernel
ln -s linux-3.13 /usr/src/linux
use genkernel to setup an initramfs...
genkernel --install --mdadm --firmware --no-ramdisk-modules initramfs

I also built better-initramfs and added in mdadm to its /sbin

configure grub by getting rid of everything except 00_header and this file (11_linux)
Quote:
newbox (chroot) grub.d $ # cat 11_linux
#!/bin/sh
# exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

echo "Adding Gentoo 3.13" >&2
cat << EOF
menuentry 'Gentoo GNU/Linux, with Linux 3.13.0' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-advanced-91fa34be-5808-4fc0-808e-d702a712adfc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/2cde0a77342690ee7f1fe92499f40d0a'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/2cde0a77342690ee7f1fe92499f40d0a' c7e81de1-d77f-4eb9-9a02-53420b8f37fa
else
search --no-floppy --fs-uuid --set=root c7e81de1-d77f-4eb9-9a02-53420b8f37fa
fi
echo 'Loading Linux 3.13.0 ...'
linux /vmlinuz-3.13.0 root=UUID=91fa34be-5808-4fc0-808e-d702a712adfc ro domdadm
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.13.0
}
EOF

grub2-mkconfig -o /boot/grub/grub.cfg
Quote:
newbox (chroot) grub.d $ # cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod mdraid1x
insmod gzio
insmod part_msdos
insmod diskfilter
insmod ext2
insmod reiserfs
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
#if [ x$feature_all_video_module = xy ]; then
#insmod all_video
#else
#insmod efi_gop
#insmod efi_uga
#insmod ieee1275_fb
#insmod vbe
insmod vga
#insmod video_bochs
#insmod video_cirrus
#fi
}

if loadfont unicode ; then
set gfxmode=1280x1024x32
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=
insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/11_linux ###
menuentry 'Gentoo GNU/Linux, with Linux 3.13.0' --class gentoo --class gnu-linux --class gnu --class os 'gnulinux-3.13.0-advanced-91fa34be-5808-4fc0-808e-d702a712adfc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/2cde0a77342690ee7f1fe92499f40d0a'
if [ x = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/2cde0a77342690ee7f1fe92499f40d0a' c7e81de1-d77f-4eb9-9a02-53420b8f37fa
else
search --no-floppy --fs-uuid --set=root c7e81de1-d77f-4eb9-9a02-53420b8f37fa
fi
echo 'Loading Linux 3.13.0 ...'
linux /vmlinuz-3.13.0 root=UUID=91fa34be-5808-4fc0-808e-d702a712adfc ro domdadm
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.13.0
}
### END /etc/grub.d/11_linux ###

/etc/default/grub contains:-
Quote:
newbox (chroot) / $ # cd /etc/default/
newbox (chroot) default $ # cat grub
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/files/grub.default-2,v 1.4 2013/09/21 18:10:55 floppym Exp $
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10

# PWI 20140112
GRUB_PRELOAD_MODULES="mdraid1x gzio part_msdos diskfilter ext2 reiserfs"


# Append parameters to the linux kernel command line
# GRUB_CMDLINE_LINUX=""

# Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
#
# PWI 20140129
GRUB_GFXMODE=1280x1024x32
GRUB_GFXPAYLOAD=keep
GRUB_GFXPAYLOAD_LINUX=1280x1024x32


Booting to the grub command line gives:-
grub> ls (md/0)/
lost+found/ grub/ initramfs-genkernel-x86_64-3.13.0 vmlinuz-3.13.0 initramfs-genkernel-x86_64-3.13.0 initramfs.cpio.gz System.map-3.13.0 config-3.13.0 boot (...etc..., a few more kernels)

initramfs.cpio.gz is the better-initramfs.

grub> ls (md/1)/
bin/ dev/ etc/ lib mnt/ ...etc... (snip)

So grub can see the software RAID arrays.

If I select 3.13, loads of text in a flash followed by a 1 minute pause with a couple of error messages for TSC comments:-
0000:01:00.0: radeon direct firmware load failed with error = -2
0000:01:00.0: falling back to user helper

Followed by blank screen (no signal) and no hd activity.

I have done a lot of research and cannot see what is going on.

Gratefully yours,
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Wed Jan 29, 2014 11:24 am    Post subject: Reply with quote

First of all Im not an expert.
Since your using grub2 and build a similiar setup to what ive done a few weeks ago this might help you.

Code:
nano -w /etc/default/grub
GRUB_CMDLINE_LINUX="domdadm rootfstype=reiserfs root=UUID="12345..."


then run
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
again.

In addition to that I had some issues with my fstab. I cant remember now and Im not at home at the moment. But I ended up using UUIDs

Actually Im not sure if this might help you but at least I try :-D
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Jan 29, 2014 11:32 am    Post subject: Reply with quote

Quote:
mdadm --assemble --update=super-minor /dev/md1 /dev/sda3 /dev/sdb3


you have to build the mdadm arrays with version 0.9 metadata in order to be able to boot them. --metadata=0.90

If you didn't do that you'll have to rebuild them and put the data back onto them.
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Wed Jan 29, 2014 11:37 am    Post subject: Reply with quote

augury wrote:
Quote:
mdadm --assemble --update=super-minor /dev/md1 /dev/sda3 /dev/sdb3


you have to build the mdadm arrays with version 0.9 metadata in order to be able to boot them. --metadata=0.90

If you didn't do that you'll have to rebuild them and put the data back onto them.


I thought that was only true of original grub? I thought grub 2 could cope with 1.2 meta data?
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Jan 29, 2014 11:40 am    Post subject: Reply with quote

It might be able to. I have not had experience with this.

Why would you want metadata 1.2? It's awful, really is.

The Reiserfs is good. I've always used xfs on the root partions but Reiserfs is also good. I think it may be better for RAID1. xfs chunks up better for RAID0. But I have a trio of sata's in RAID0 with Reiserfs. Porn is still there. :lol: Oh yeah.


Last edited by augury on Wed Jan 29, 2014 11:56 am; edited 3 times in total
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Wed Jan 29, 2014 11:46 am    Post subject: Reply with quote

Grub2 works well with metadata above 0.9
Actually im using 1.2
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Jan 29, 2014 11:57 am    Post subject: Reply with quote

shuuraj wrote:
Grub2 works well with metadata above 0.9
Actually im using 1.2
Well there you go. If the n00b did it, you have to do it too.

Last edited by augury on Wed Jan 29, 2014 12:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Wed Jan 29, 2014 11:57 am    Post subject: Reply with quote

Cyrillic posted this...
Quote:
Grub2 supports 0.9 metadata and 1.x metadata just fine.

It is the kernel that requires 0.9 metadata if you want to boot without using an initrd/initramfs.


in this thread.

That would make sense.
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Wed Jan 29, 2014 12:05 pm    Post subject: Reply with quote

Well you need initramfs wfor mdadm anyway^^
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Jan 29, 2014 12:06 pm    Post subject: Reply with quote

You move the data, and when you write it again the horror portage inflicted on your teen porn filesystem will be all combed out nicely.
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Wed Jan 29, 2014 12:11 pm    Post subject: Reply with quote

augury wrote:
You move the data, and when you write it again the horror portage inflicted on your teen porn filesystem will be all combed out nicely.

8O :o :? :lol:
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Wed Jan 29, 2014 12:42 pm    Post subject: Reply with quote

Right, I have just backed up / without /boot mounted

find . -print | bin/cpio -ovB > ../home/root.cpio

Mounted boot adn backed it up too...
find . -print | ../bin/cpio -ovB > ../../home/boot.cpio

Am about to vape & rebuild md's 0 & 1 and restore. Back when I am done.
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Thu Jan 30, 2014 10:30 am    Post subject: Machine rebuilt, mdadm metadata=0.9... Reply with quote

I have rebuilt the entire machine with
/dev/md0 as /boot
/dev/md1 as /
make.conf is:-
Quote:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
# PWI 20100108 added -msse3 flag, see:-
# https://forums.gentoo.org/viewtopic-t-452086-highlight-sse3.html
CFLAGS="-march=corei7 -pipe -O2 -msse -msse2 -msse3 -msse4 -mmmx -m3dnow" # AMD64 users should use march=k8
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmx sse sse2"
MAKEOPTS="-j5" # defines number of parallel compilations - number of CPUs + 1
PORTDIR_OVERLAY="/usr/local/portage"
VIDEO_CARDS="fglrx"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

kernel is vanilla kernel 3.13.1 with mdadm & reiserfs statically linked.
cd /usr/src
ln -s linux-3.13.1 linux
I then built the kernel and used genkernel to generate the initramfs:-
genkernel --mdadm --mdadm-config=/etc/mdadm.conf initramfs

Quote:
newbox (chroot) / $ # blkid /dev/md0
/dev/md0: UUID="86fbeab2-1ded-4ad7-bf97-a9539eaa85ab" TYPE="ext2"
newbox (chroot) / $ # mdadm -D /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Wed Jan 29 21:44:26 2014
Raid Level : raid1
Array Size : 2097088 (2048.28 MiB 2147.42 MB)
Used Dev Size : 2097088 (2048.28 MiB 2147.42 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Jan 30 17:36:31 2014
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 157eef5e:3e1c098f:cb201669:f728008a (local to host livecd)
Events : 0.18

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
newbox (chroot) / $ # blkid /dev/md1
/dev/md1: UUID="d4c59906-f8dd-40a4-90c1-0648f9eb93bd" TYPE="reiserfs"
newbox (chroot) / $ # mdadm -D /dev/md1
/dev/md1:
Version : 0.90
Creation Time : Wed Jan 29 21:40:50 2014
Raid Level : raid1
Array Size : 10485696 (10.00 GiB 10.74 GB)
Used Dev Size : 10485696 (10.00 GiB 10.74 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Thu Jan 30 17:37:15 2014
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 3eb79894:438bb17b:cb201669:f728008a (local to host livecd)
Events : 0.18

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3

A bit more disk info...
Quote:
newbox (chroot) src $ # ls /dev/disk/by-id/
ata-ATAPI_DVD_D_DH16D2S ata-ST3160827AS_4MT0TWS4-part1 md-name-livecd:5
ata-ST3160827AS_4MT0P07X ata-ST3160827AS_4MT0TWS4-part10 md-name-livecd:6
ata-ST3160827AS_4MT0P07X-part1 ata-ST3160827AS_4MT0TWS4-part11 md-name-livecd:7
ata-ST3160827AS_4MT0P07X-part10 ata-ST3160827AS_4MT0TWS4-part2 md-name-livecd:8
ata-ST3160827AS_4MT0P07X-part11 ata-ST3160827AS_4MT0TWS4-part3 md-uuid-157eef5e:3e1c098f:cb201669:f728008a
ata-ST3160827AS_4MT0P07X-part2 ata-ST3160827AS_4MT0TWS4-part4 md-uuid-3eb79894:438bb17b:cb201669:f728008a
ata-ST3160827AS_4MT0P07X-part3 ata-ST3160827AS_4MT0TWS4-part5 md-uuid-4ec135e4:8138c1d6:023730aa:f9cfc355
ata-ST3160827AS_4MT0P07X-part4 ata-ST3160827AS_4MT0TWS4-part6 md-uuid-7e3b3cc6:52762caa:72bf15f3:1de66f34
ata-ST3160827AS_4MT0P07X-part5 ata-ST3160827AS_4MT0TWS4-part7 md-uuid-c7934646:3d276e0e:38e57192:7f870c30
ata-ST3160827AS_4MT0P07X-part6 ata-ST3160827AS_4MT0TWS4-part8 md-uuid-d3c5e0be:9bd3eda4:67437926:ecdd4922
ata-ST3160827AS_4MT0P07X-part7 ata-ST3160827AS_4MT0TWS4-part9 md-uuid-d57028eb:85eb0f1b:b642f923:ed00efe4
ata-ST3160827AS_4MT0P07X-part8 md-name-livecd:2 md-uuid-dfd51f6a:9b16690d:435fef3c:80e7b5e5
ata-ST3160827AS_4MT0P07X-part9 md-name-livecd:3 md-uuid-e5a15cd3:03229c5b:8b6590df:5a42ccaa
ata-ST3160827AS_4MT0TWS4 md-name-livecd:4
newbox (chroot) src $ # ls /dev/disk/by-
by-id/ by-label/ by-uuid/
newbox (chroot) src $ # ls /dev/disk/by-label/
Gentoo\x20Linux\x20amd64\x2020131226
newbox (chroot) src $ # ls /dev/disk/by-uuid/
2013-12-26-08-09-54-00 584a6a80-4193-4db1-b19d-755f50757186 a43a97ee-f602-451f-89fd-914a3a907acf
3b9fb44c-cef9-4cad-b192-e1a08a37da85 5f2515b6-f6bf-4bb4-a60f-dd553ea7101e d4c59906-f8dd-40a4-90c1-0648f9eb93bd
3d5f9fa7-6302-48a0-a2c4-425db0347790 86fbeab2-1ded-4ad7-bf97-a9539eaa85ab f15f56c1-4ea6-48e3-a30a-dea1e29ee411
43bd1474-0373-4839-93e0-9e0ba1ed636d 915c04e6-c5ae-4ba7-8936-5f64b6d7958d fab2a032-db1c-4d07-84ae-eb8208e1e700
newbox (chroot) src $ # cat /etc/mdadm.conf
ARRAY /dev/md8 metadata=1.2 name=livecd:8 UUID=d57028eb:85eb0f1b:b642f923:ed00efe4
ARRAY /dev/md7 metadata=1.2 name=livecd:7 UUID=4ec135e4:8138c1d6:023730aa:f9cfc355
ARRAY /dev/md6 metadata=1.2 name=livecd:6 UUID=dfd51f6a:9b16690d:435fef3c:80e7b5e5
ARRAY /dev/md5 metadata=1.2 name=livecd:5 UUID=d3c5e0be:9bd3eda4:67437926:ecdd4922
ARRAY /dev/md4 metadata=1.2 name=livecd:4 UUID=7e3b3cc6:52762caa:72bf15f3:1de66f34
ARRAY /dev/md3 metadata=1.2 name=livecd:3 UUID=c7934646:3d276e0e:38e57192:7f870c30
ARRAY /dev/md2 metadata=1.2 name=livecd:2 UUID=e5a15cd3:03229c5b:8b6590df:5a42ccaa
ARRAY /dev/md1 metadata=0.90 UUID=3eb79894:438bb17b:cb201669:f728008a
ARRAY /dev/md0 metadata=0.90 UUID=157eef5e:3e1c098f:cb201669:f728008a

/etc/fstab is now
Quote:
# /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/md1 / reiserfs noatime 0 1
/dev/md0 /boot ext2 noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sdb2 none swap sw 0 0
/dev/md2 /tmp reiserfs noatime 0 1
/dev/md3 /var reiserfs noatime 0 1
/dev/md4 /var/lib reiserfs noatime 0 1
/dev/md5 /var/log reiserfs noatime 0 1
/dev/md6 /var/www reiserfs noatime 0 1
/dev/md7 /usr reiserfs noatime 0 1
/dev/md8 /home reiserfs noatime 0 1


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

/etc/mdadm.conf is now...
Quote:
newbox (chroot) / $ # mdadm --detail --scan > /etc/mdadm.conf
newbox (chroot) / $ # cat !$
cat /etc/mdadm.conf
ARRAY /dev/md8 metadata=1.2 name=livecd:8 UUID=d57028eb:85eb0f1b:b642f923:ed00efe4
ARRAY /dev/md7 metadata=1.2 name=livecd:7 UUID=4ec135e4:8138c1d6:023730aa:f9cfc355
ARRAY /dev/md6 metadata=1.2 name=livecd:6 UUID=dfd51f6a:9b16690d:435fef3c:80e7b5e5
ARRAY /dev/md5 metadata=1.2 name=livecd:5 UUID=d3c5e0be:9bd3eda4:67437926:ecdd4922
ARRAY /dev/md4 metadata=1.2 name=livecd:4 UUID=7e3b3cc6:52762caa:72bf15f3:1de66f34
ARRAY /dev/md3 metadata=1.2 name=livecd:3 UUID=c7934646:3d276e0e:38e57192:7f870c30
ARRAY /dev/md2 metadata=1.2 name=livecd:2 UUID=e5a15cd3:03229c5b:8b6590df:5a42ccaa
ARRAY /dev/md1 metadata=0.90 UUID=3eb79894:438bb17b:cb201669:f728008a
ARRAY /dev/md0 metadata=0.90 UUID=157eef5e:3e1c098f:cb201669:f728008a

grub was emerged like this:-
newbox (chroot) / $ # emerge sys-boot/grub:2
which installed with no errors:-
newbox (chroot) / $ # grub2-install /dev/sda
Installation finished. No error reported.
newbox (chroot) / $ # grub2-install /dev/sdb
Installation finished. No error reported.
I can see the software RAID drives from the grub prompt as:-
ls (md/md1)/
Gives a listing of /
/etc/defaults/grub contains
Quote:
newbox (chroot) / $ # cat /etc/default/grub
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/files/grub.default-2,v 1.4 2013/09/21 18:10:55 floppym Exp $
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_PRELOAD_MODULES="mdraid09 reiserfs"

# Append parameters to the linux kernel command line
# GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX="domdadm rootfstype=reiserfs"

# Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

grub.cfg is...
Quote:
newbox (chroot) / $ # less !$
less /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod mdraid09
insmod reiserfs
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if loadfont unicode ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=
insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/11_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os 'gnulinux-simple-d4c59906-f8dd-40a4-90c1-0648f9eb93bd' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid09
insmod ext2
set root='mduuid/157eef5e3e1c098fcb201669f728008a'
if [ x = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/157eef5e3e1c098fcb201669f728008a' 86fbeab2-1ded-4ad7-bf97-a9539eaa85ab
else
search --no-floppy --fs-uuid --set=root 86fbeab2-1ded-4ad7-bf97-a9539eaa85ab
fi
echo 'Loading Linux 3.13.1 ...'
linux /vmlinuz-3.13.1 root=UUID=d4c59906-f8dd-40a4-90c1-0648f9eb93bd ro domdadm rootfstype=reiserfs
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.13.1
}
submenu 'Advanced options for Gentoo GNU/Linux' 'gnulinux-advanced-d4c59906-f8dd-40a4-90c1-0648f9eb93bd' {
menuentry 'Gentoo GNU/Linux, with Linux 3.13.1' --class gentoo --class gnu-linux --class gnu --class os 'gnulinux-3.13.1-advanced-d4c59906-f8dd-40a4-90c1-0648f9eb93bd' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid09
insmod ext2
set root='mduuid/157eef5e3e1c098fcb201669f728008a'
if [ x = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/157eef5e3e1c098fcb201669f728008a' 86fbeab2-1ded-4ad7-bf97-a9539eaa85ab
else
search --no-floppy --fs-uuid --set=root 86fbeab2-1ded-4ad7-bf97-a9539eaa85ab
fi
echo 'Loading Linux 3.13.1 ...'
linux /vmlinuz-3.13.1 root=UUID=d4c59906-f8dd-40a4-90c1-0648f9eb93bd ro domdadm rootfstype=reiserfs
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.13.1
}
menuentry 'Gentoo GNU/Linux, with Linux 3.13.1 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os 'gnulinux-3.13.1-recovery-d4c59906-f8dd-40a4-90c1-0648f9eb93bd' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid09
insmod ext2
set root='mduuid/157eef5e3e1c098fcb201669f728008a'
if [ x = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/157eef5e3e1c098fcb201669f728008a' 86fbeab2-1ded-4ad7-bf97-a9539eaa85ab
else
search --no-floppy --fs-uuid --set=root 86fbeab2-1ded-4ad7-bf97-a9539eaa85ab
fi
echo 'Loading Linux 3.13.1 ...'
linux /vmlinuz-3.13.1 root=UUID=d4c59906-f8dd-40a4-90c1-0648f9eb93bd ro single domdadm rootfstype=reiserfs
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.13.1
}
}
### END /etc/grub.d/11_linux ###

Boot progresses very quickly, ATI stuff appears then boot process stops for exactly 1 minute - followed by nothing. blank screen, no video, no disk accesses.

I am no further forward.

Ideas, please?
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Thu Jan 30, 2014 12:49 pm    Post subject: Reply with quote

shuuraj wrote:
First of all Im not an expert.
Since your using grub2 and build a similiar setup to what ive done a few weeks ago this might help you.

Code:
nano -w /etc/default/grub
GRUB_CMDLINE_LINUX="domdadm rootfstype=reiserfs root=UUID="12345..."


then run
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
again.

In addition to that I had some issues with my fstab. I cant remember now and Im not at home at the moment. But I ended up using UUIDs

Actually Im not sure if this might help you but at least I try :-D


Did you actually try this?
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Thu Jan 30, 2014 3:01 pm    Post subject: Reply with quote

I have inserted the line
Quote:
GRUB_CMDLINE_LINUX="domdadm rootfstype=reiserfs"
in /etc/defaults/grub based on your post and updated /boot/grub2/grub.cfg accordingly with grub2-mkconfig.

I used the UUID's set by grub when grub did the OS probe, as you can see from my post listing UUID's they all look correct.
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Thu Jan 30, 2014 3:37 pm    Post subject: Reply with quote

I will check your cfg's when Im back home.

Im curious did you try to use the uuids of the md raids in the fstab?
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Thu Jan 30, 2014 4:06 pm    Post subject: Reply with quote

Good question. I will try.

The fstab is quite an old pass-around :oops: .

What I find surprising is the HD light doesn't even flicker after the ATI initialisation.
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Fri Jan 31, 2014 11:42 am    Post subject: Reply with quote

Right, I realised I have been having a numpty moment by making things more complicated than they need to be.

I have ripped out my rather nifty radeon R9 card as the motherboard has it's own Intel video.

I pulled the card out *after* I had changed fstab and a reboot saw the machine come up without networking.

The kernel needed
CONFIG_DEVTMPFS=y
for udev to work, so I made the change and rebuilt the kernel and Bob's your Uncle up she came.

All looking good - now time to get that pesky ATI board up & running with OpenCL.

Thanks for helping me get this far, ttfn...
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Fri Jan 31, 2014 12:53 pm    Post subject: Reply with quote

Just put my ATI back in and... blank screen after a few minutes, lots of disk activity but no access via ssh.

At least I am down to video problems; I know I can boot & display on the monitor with the Intel on board video.

Found this. Adding:-
radeon.modeset=0

to my linux line in grub enabled the system to come up, albeit in vga mode and completely ignoring whatever is in GFX_MODE.

My kernel line now looks like:-
linux /vmlinuz-3.13.1 root=UUID=d4c59906-f8dd-40a4-90c1-0648f9eb93bd ro domdadm rootfstype=reiserfs quiet splash radeon.modeset=0

Progress, but still not quite right.
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Fri Jan 31, 2014 2:43 pm    Post subject: Reply with quote

Code:
CONFIG_DEVTMPFS=y



*FACEPALM* ^^


Make sure to use the PCI option in your BIOS and not onboard. Also check your kernel cfg and recompile if needed. emerge the right drivers and then try again... ye some how try and error I know
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Sun Feb 02, 2014 10:29 pm    Post subject: Reply with quote

shuuraj wrote:
Code:
CONFIG_DEVTMPFS=y


Make sure to use the PCI option in your BIOS and not onboard. Also check your kernel cfg and recompile if needed. emerge the right drivers and then try again... ye some how try and error I know

That was another numpty moment;
It is now
CONFIG_DEVTMPFS=n

I'll check out the PCI option.
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Tue Feb 04, 2014 9:18 am    Post subject: Reply with quote

Im sorry! I didnt mean the *facepalm* that way.

You kernel settings should be:

Code:
General setup  --->
    [*] Configure standard kernel features (expert users)  --->
        [ ] Enable deprecated sysfs features to support old userspace tools
        [*] Enable signalfd() system call
Enable the block layer  --->
    [*] Block layer SG support v4
Networking support  --->
    Networking options  --->
        <*> Unix domain sockets
Device Drivers  --->
    Generic Driver Options  --->
        ()  path to uevent helper
        [*] Maintain a devtmpfs filesystem to mount at /dev
    < > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->
File systems  --->
    [*] Inotify support for userspace
    Pseudo filesystems --->
        [*] /proc file system support
        [*] sysfs file system support


And Udev should be compiled with this USE flags:

Code:

acl firmware-loader gudev hwdb introspection keymap openrc
 


Also make sure its at boot time:
Code:
rc-update add udev sysinit



Oh and btw. check your rc.conf after a failed boot. And might give you some hints
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Tue Feb 04, 2014 9:30 am    Post subject: Reply with quote

Oh and I forgot to mention that
Code:
grub2-mkconfig -o /boot/grub/grub.cfg
does require an explicit syntax for the names of kernel/initramfs.
The command should return the found kernel and initramfs. If it does not return it, well then it didnt find them!!

So try to use something simple ^^

like mine are named.

Quote:

kernel-3.13-gentoo
initramfsl-3.13-gentoo
Back to top
View user's profile Send private message
wilf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 131
Location: West Sussex, UK

PostPosted: Wed Feb 19, 2014 12:29 pm    Post subject: Reply with quote

Thanks Shuuraj for you thoughtful and constructive help; Sorry I have been quiet, been busy & distracted and will try out your suggestions.

I'll be back when I have had another shufti...
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 38

PostPosted: Wed Feb 26, 2014 10:31 am    Post subject: Reply with quote

yw. I'm pretty busy myself. But I will kepp an eye on this thread =)
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