Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GNU GRUB screen on boot. grub>
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Fri Aug 08, 2014 11:18 am    Post subject: GNU GRUB screen on boot. grub> Reply with quote

Hello

I am stuck at around stage 10 of the installation.
I have just finished applying cmd emerge sys-boot/grub:0

After doing this I umount-ed some directories and reboot.

When rebooting I come to a screen which I thought would have some options to choose from with the arrow keys, however mine has only a grub> prompt
The full screen contains the following.

GNU GRUB version 0.97 (630k lower / 3307228K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ]

grub>



The TAB lists returns cmds like

install serial setkey setup terminal terminfo kernel lock ...

Do I have to start all over again? Seems something has gone wrong again...

My version info is

install-amd64-minimal-20140724.iso
portage-20140730.tar.bz2
stage3-amd64-20140724.tar.bz2

Regards
_________________
k.


Last edited by Zelt on Thu Aug 21, 2014 2:27 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: Sat Aug 09, 2014 12:56 pm    Post subject: Reply with quote

well you need to make a grub.cfg. That is a grub config file so the bootloader grub knows what to do!.

This is a cut down file from myself. It does not matter from which gnu-linux distributino you take the grub bootlaoder. I took mine from arch-linux or linux mint. The bootlaoder grub needs a grub.cfg file which gives instructino to grub. You need to create one and therefore you need a kernel. there is a hole kernel section in the handbook. Please look up genkernel too. that is some sort of script or those preconfigured kernel configs which were floating around in this forum in the past.

Code:
localhost roman # cat /boot/grub/grub.cfg

# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="4"
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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root a0f74936-7c80-401d-9c33-98408f9603d0
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos1)'
  search --no-floppy --fs-uuid --set=root 68e44433-b86e-4865-bb33-75c23b8d09ff
  set locale_dir=($root)/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=20
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 12 LXDE, 3.0.0-12-generic (/dev/sda1)' --class linuxmint --class gnu-linux --class gnu --class os {
   recordfail
   set gfxpayload=$linux_gfx_mode
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root 68e44433-b86e-4865-bb33-75c23b8d09ff
   linux   /vmlinuz-3.0.0-12-generic root=UUID=a0f74936-7c80-401d-9c33-98408f9603d0 ro   quiet splash vt.handoff=7
   initrd   /initrd.img-3.0.0-12-generic
}
menuentry 'Linux Mint 12 LXDE, 3.0.0-12-generic (/dev/sda1) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
   recordfail
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root 68e44433-b86e-4865-bb33-75c23b8d09ff
   echo   'Loading Linux 3.0.0-12-generic ...'
   linux   /vmlinuz-3.0.0-12-generic root=UUID=a0f74936-7c80-401d-9c33-98408f9603d0 ro recovery nomodeset
   echo   'Loading initial ramdisk ...'
   initrd   /initrd.img-3.0.0-12-generic
}

menuentry ' **** 3.10.30-gentoo_20_02_2014' --class gentoo --class gnu --class os {
 linux /3.10.30-gentoo_20_02_2014 init=linuxrc ramdisk=8192 crypt_root=dev/mapper/vg_root_volume-lv_real_root realroot=/dev/mapper/lv_real_root dolvm
 initrd /initramfs-genkernel-x86_64-3.5.3-gentoo_Sept_2012
}


### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root 68e44433-b86e-4865-bb33-75c23b8d09ff
   linux16   /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root 68e44433-b86e-4865-bb33-75c23b8d09ff
   linux16   /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
  if sleep --interruptible 10 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# 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.



### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


in particular you need to make for yourself something like this in your grub config. You need to name it, give the location of the root, the files and such. the cut out below is just an example, you need to read the grub manual or howtoes on the net and write it yourself for your box.

Code:
menuentry ' **** 3.10.30-gentoo_20_02_2014' --class gentoo --class gnu --class os {
 linux /3.10.30-gentoo_20_02_2014 init=linuxrc ramdisk=8192 crypt_root=dev/mapper/vg_root_volume-lv_real_root realroot=/dev/mapper/lv_real_root dolvm
 initrd /initramfs-genkernel-x86_64-3.5.3-gentoo_Sept_2012
}


When you are done with your grub.cfg file you should be able to boot your box and go on with configuring. when something goes wrong you can chroot from a livecd and fix the errors. The handbook is just a recommendation how to get an installation done. It does not mean always that you need to stick to everything in the order from the handbook.

Please try and report back.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


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

PostPosted: Sat Aug 09, 2014 1:01 pm    Post subject: Reply with quote

Personal lazy grub installation method:

I usually install an easy binary distro like linux mint 17 (lxde). please use the 64 bit version when you want to use the 64 bit gentoo. use the 32 bit when you want to use 32 bit gentoo. thats essential.

after i install the binary distro i usually chroot from there and just make one boot entry for my gentoo linux distro in the linux mint grub bootloader.

it is always recommended to use an own /boot partition. i usually use ext2 and i usually take 0.5 GB (thats more than enough). Size does not matter these days with those larger drives.


This is another installation method. You can chroot from a livecd or from an existing gnu-linux installation and ... and ... (there used to be windows installer too and other stuff, tons of ways to install it)

The benefit of installing a second binary linux distro (8gb usually for /) is that you can chroot always from there when something goes wrong during installation or later. as size does not matter much these days anymore the missing 8.5 Gb do not matter much . No need to serach for a livecd or anything. Working network connection with webbrowser and x-server. You can fix your gentoo and search the web. Burn isos and do other stuff. Even write e-mails when you are in a hurry and something went wrong.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sat Aug 09, 2014 5:23 pm    Post subject: Reply with quote

emerge sys-boot/grub:0 emerges legacy grub as noted above by OP
Quote:
GNU GRUB version 0.97 (630k lower / 3307228K upper memory)

so missing grub.cfg is the right type of problem but in this case /boot/grub/grub.conf is the actual name of the missing or typo containing file in legacy grub.
suggest: boot the livemedia to a network connection, mount the gentoo partitions, enter the chroot, nominally:
Code:
mount /dev/sda4 /mnt/gentoo
mount /dev/sda2 /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
Code:
source /etc/profile
export PS1="(chroot) $PS1"
If gentoo is installed on a machine with only one hard drive with a handbook nominal hard drive partitioning, sda1 (bootloader), sda2 /boot, sda3 swap, sda4 /,
if an initramfs is in use:
Code:
 nano /boot/grub/grub.conf
Quote:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo
root (hd0,1)
kernel /boot/<the kernel name exacly as in /boot> root=/dev/sda4
initrd /boot/the initramfs name exactly as in /boot
If no initramfs is used remove the initrd line. If the setup is more complex, suggest:
Code:
emerge wgetpaste
fdisk -l | wgetpaste
mount | wgetpaste
ls -l /boot | wgetpaste
ls -l /boot/grub | wgetpaste
wgetpaste /boot/grub/grub.conf
wgetpaste /etc/fstab
grub
find /boot/grub/stage1
find /etc/fstab
quit
post the url's returned and the results of the two find commands.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Thu Aug 21, 2014 3:11 pm    Post subject: Reply with quote

DONAHUE wrote:
emerge sys-boot/grub:0 emerges legacy grub as noted above by OP
Quote:
GNU GRUB version 0.97 (630k lower / 3307228K upper memory)

so missing grub.cfg is the right type of problem but in this case /boot/grub/grub.conf is the actual name of the missing or typo containing file in legacy grub.
suggest: boot the livemedia to a network connection, mount the gentoo partitions, enter the chroot, nominally:
Code:
mount /dev/sda4 /mnt/gentoo
mount /dev/sda2 /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
Code:
source /etc/profile
export PS1="(chroot) $PS1"
If gentoo is installed on a machine with only one hard drive with a handbook nominal hard drive partitioning, sda1 (bootloader), sda2 /boot, sda3 swap, sda4 /,
if an initramfs is in use:
Code:
 nano /boot/grub/grub.conf
Quote:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo
root (hd0,1)
kernel /boot/<the kernel name exacly as in /boot> root=/dev/sda4
initrd /boot/the initramfs name exactly as in /boot
If no initramfs is used remove the initrd line. If the setup is more complex, suggest:
Code:
emerge wgetpaste
fdisk -l | wgetpaste
mount | wgetpaste
ls -l /boot | wgetpaste
ls -l /boot/grub | wgetpaste
wgetpaste /boot/grub/grub.conf
wgetpaste /etc/fstab
grub
find /boot/grub/stage1
find /etc/fstab
quit
post the url's returned and the results of the two find commands.


My partitions are not labelled the same as yours, I also do not recall being given the choice to label them.

The default handbook partitioning you refer to seems to be setup like this following image?

http://postimg.com/162000/default-161828.jpg

I setup mine according to this specific part in the video http://youtu.be/sJwwcw56d6c?t=4m18s (timestamp link), I would appreciate if you could check that 1 minute part of the video.

My Partitions are labelled as

sdb1
sdb5
sdb6
sdb7

I tried to find correspondence from your post > handbook > guys description in the video, but he defines sdb7 as a home partition, whereas the handbook image defines the last partition there as a root partition.

I am unsure what partitions to mount... I attempted some mounting but received errors like
_________________
k.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Aug 21, 2014 3:56 pm    Post subject: Reply with quote

I assume that following the video produced
/dev/sdb1 extended
/dev/sdb5 swap
/dev/sdb6 intended to be the root, / , partition
/dev/sdb7 intended to be mounted at /home in the root filesystem
Note that you do not have a separate boot partition. You will, however, still have a /boot directory in the / filesystem.

To enter the chroot, boot the livemedia to a network connection, then run:
Code:
mount /dev/sdb6 /mnt/gentoo
mount /dev/sdb7 /mnt/gentoo/home
cp -L /etc/resolv.conf /mnt/gentoo/etc/ #should only be needed on the first entry into chroot
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
then
Code:
source /etc/profile
export PS1="(chroot) $PS1"
Then (your grub.conf will be different):
Code:
emerge wgetpaste
fdisk -l | wgetpaste
mount | wgetpaste
ls -l /boot | wgetpaste
ls -l /boot/grub | wgetpaste
wgetpaste /boot/grub/grub.conf
wgetpaste /etc/fstab
grub
find /boot/grub/stage1
find /etc/fstab
quit
post the url's returned.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


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

PostPosted: Sat Aug 23, 2014 9:16 am    Post subject: Reply with quote

It is kinda difficult to explain to newbies the fdisk command.


For a newbie or someone who do not want to read the technical terms or it is too complicated you may use

http://en.wikipedia.org/wiki/GParted

It is a graphical gui and you can see instantly what will be done.

Of course I could explain you the fdisk thing and tell you this or that but I assume the faster way for you will be to use the http://en.wikipedia.org/wiki/GParted thing. It is graphical and you will instantly see what will be done. Dont forget to print out the final layout on paper than or write it down in detail. Gparted gives you a detail overview in a short picture. A requirement is that you are able to burn an iso file to a disc or to flash it to an usb stick.

It is a great tool.

The common gentoo way would be that you read about the partion thing, what are partitions and so on, what are filesystems and so on and than use
Quote:
man fdisk
, and use
Quote:
fdisk
yourself. That needs a bit more reading and leads to the same solution.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Aug 30, 2014 12:32 pm    Post subject: Reply with quote

DONAHUE wrote:
I assume that following the video produced
/dev/sdb1 extended
/dev/sdb5 swap
/dev/sdb6 intended to be the root, / , partition
/dev/sdb7 intended to be mounted at /home in the root filesystem
Note that you do not have a separate boot partition. You will, however, still have a /boot directory in the / filesystem.

To enter the chroot, boot the livemedia to a network connection, then run:
Code:
mount /dev/sdb6 /mnt/gentoo
mount /dev/sdb7 /mnt/gentoo/home
cp -L /etc/resolv.conf /mnt/gentoo/etc/ #should only be needed on the first entry into chroot
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
then
Code:
source /etc/profile
export PS1="(chroot) $PS1"
Then (your grub.conf will be different):
Code:
emerge wgetpaste
fdisk -l | wgetpaste
mount | wgetpaste
ls -l /boot | wgetpaste
ls -l /boot/grub | wgetpaste
wgetpaste /boot/grub/grub.conf
wgetpaste /etc/fstab
grub
find /boot/grub/stage1
find /etc/fstab
quit
post the url's returned.


Once I get to command

emerge wgetpaste

Returns
Quote:

>>>Verifying ebuild manifests

>>>Emerging (1 of 1) app-text/wgetpaste-2.22
>>>Downloading 'http://distfiles.gentoo.org/distfiles/wgetoaste-2.22.tar.bz2'
--2014-08-31 02:12:53-- http://distfiles.gentoo.org/distfiles/wgetoaste-2.22.tar.bz2
Resolving distfiles.gentoo.org... failed: Connection refused.
wget: unable to resolve host address 'distfiles.gentoo.org'
>>>Downloading 'http://wgetpaste.zlin.dk/wgetpaste-2.22.tar.bz2'
--2014-08-31 02:12:53-- http://wgetpaste.zlin.dk/wgetpaste-2.22.tar.bz2
Resolving wgetpaste.zlin.dk... failed: Connection refused.
...
...


When running

ping google.com

outside of chroot, it shows live connection.

when running

ping google.com

inside the chroot, it returns

Quote:
-bash: unknown command ping google.com


Another last problem is the pipe character does not work on my keyboard, so once I get over this hurdle another is ready, any advice on what to do here? I have spent a long time on google trying alternatives(alt codes etc), but none work.
_________________
k.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sat Aug 30, 2014 4:12 pm    Post subject: Reply with quote

On the face of it /etc/resolv.conf in the chroot does not contain information required to reach a nameserver. From the chroot, run
Code:
nano /etc/resolv.conf
edit to contain:
Quote:
nameserver 8.8.8.8
then
Code:
nano /etc/resolv.conf.tail
edit to contain:
Quote:
nameserver 8.8.8.8
try
Code:
ping -c2 google.com
You reported
Quote:
-bash: unknown command ping google.com
earlier which seems odd. ping is provided when the stage3 tarball is extracted. From the chroot run:
Code:
 find / -name ping
which should return:
Quote:
/bin/ping
If /bin/ping is not returned something went wrong during the download and extraction of the stage3 tarball. If /bin/ping is returned, ping your router by ipnumber, example:
Code:
ping -c2 192.168.0.1
If that succeeds, run:
Code:
ping -c2 8.8.8.8
to test internet connectvity.

With a missing | key, the sequence "command | wgetpaste" can be replaced by "command > file ; wgetpaste file".

I expect both grub find commands to return (hd1,5) and grub.conf to resemble: (assuming that the gentoo drive is selected as the boot drive in BIOS)
Quote:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.24-r5
root (hd0,5)
kernel /boot/<your kernel name exactly as in /boot directory> root=/dev/sdb6

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Aug 30, 2014 5:00 pm    Post subject: Reply with quote

DONAHUE wrote:
On the face of it /etc/resolv.conf in the chroot does not contain information required to reach a nameserver. From the chroot, run
Code:
nano /etc/resolv.conf
edit to contain:
Quote:
nameserver 8.8.8.8
then
Code:
nano /etc/resolv.conf.tail
edit to contain:
Quote:
nameserver 8.8.8.8
try
Code:
ping -c2 google.com
You reported
Quote:
-bash: unknown command ping google.com
earlier which seems odd. ping is provided when the stage3 tarball is extracted. From the chroot run:
Code:
 find / -name ping
which should return:
Quote:
/bin/ping
If /bin/ping is not returned something went wrong during the download and extraction of the stage3 tarball. If /bin/ping is returned, ping your router by ipnumber, example:
Code:
ping -c2 192.168.0.1
If that succeeds, run:
Code:
ping -c2 8.8.8.8
to test internet connectvity.

With a missing | key, the sequence "command | wgetpaste" can be replaced by "command > file ; wgetpaste file".

I expect both grub find commands to return (hd1,5) and grub.conf to resemble: (assuming that the gentoo drive is selected as the boot drive in BIOS)
Quote:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.24-r5
root (hd0,5)
kernel /boot/<your kernel name exactly as in /boot directory> root=/dev/sdb6


I used a different keyboard which allowed use of the pipe key.

I edited files like you suggested, which seemed to fix the download issues.

However, after running

emerge wgetpaste

returns

Quote:

...
>>>Install wgetpaste-2.22 into /var/tmp/portage/app-text/wgetpaste-2.22/image/ category app-text
>>>Completed installing wgetpaste-2.22 into /var/tmp/portage/app-text/wgetpaste-2.22/image/


>>>Installing (1 of 1) app-text/wgetpaste-2.22
>>>Auto-cleaning packages...

>>>No outdated packages were found on your system.
...


after running

fdisk -l | wgetpaste

returns

Quote:
Apparently nothing was received. Perhaps the connection failed. Enable --verbose or --debug to get the output from wget that can help diagnose it correctly.


after running

Running fdisk -l | wgetpaste --verbose

returns

Quote:
...
Resolving bpaste.net... 84:22:98:66
Connecting to bpaste.net|84:22:98:66| :80... connected.
HTTP request sent, awaiting response... 400 BAD REQUEST
ERROR 400: BAD REQUEST.
...

_________________
k.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sat Aug 30, 2014 5:29 pm    Post subject: Reply with quote

I get the same response from bpaste.net, apparently they have problems.

Code:
fdisk -l | wgetpaste -s ca
"-s ca" specifies a different site which just worked for me
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Aug 30, 2014 6:36 pm    Post subject: Reply with quote

Ok the -s ca fixed worked.


emerge wgetpaste

fdisk -l | wgetpaste - http://pastebin.ca/2836977

mount | wgetpaste - http://pastebin.ca/2836978

ls -l /boot | wgetpaste - http://pastebin.ca/2836979

ls -l /boot/grub | wgetpaste - http://pastebin.ca/2836980

wgetpaste /boot/grub/grub.conf - http://pastebin.ca/2836981

wgetpaste /etc/fstab - http://pastebin.ca/2836983

grub

find /boot/grub/stage1

returns

(hd1,5)

find /etc/fstab

returns

(hd1,5)

quit
_________________
k.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Sat Aug 30, 2014 6:54 pm    Post subject: Reply with quote

Your /boot/grub/grub.conf file is nearly empty, all in it are just # and those are comments, ignore lines.
And you have a /boot/grub.conf file

So:
Are you using and editing /boot/grub.conf instead of /boot/grub/grub.conf file?
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Aug 30, 2014 7:11 pm    Post subject: Reply with quote

krinn wrote:
Your /boot/grub/grub.conf file is nearly empty, all in it are just # and those are comments, ignore lines.
And you have a /boot/grub.conf file

So:
Are you using and editing /boot/grub.conf instead of /boot/grub/grub.conf file?


I have been doing according to instructions, I cant even remember at which stage now the editing takes place.

Do you know roughly which steps have some editing in that file(s)?
_________________
k.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Sat Aug 30, 2014 7:21 pm    Post subject: Reply with quote

Zelt wrote:
I have been doing according to instructions, I cant even remember at which stage now the editing takes place.

Nope, you nearly follow them, but use /boot/grub.conf while it is /boot/grub/grub.conf go seek again the handbook you will see your mistake.

Zelt wrote:
Do you know roughly which steps have some editing in that file(s)?

Sure : nano /boot/grub/grub.conf
but you can also just move your grub.conf to the good place if you prefer and know you have edit it as it should just at the wrong place : mv /boot/grub.conf /boot/grub
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sat Aug 30, 2014 7:24 pm    Post subject: Reply with quote

krinn is on the money as usual.
you should
Code:
rm /boot/grub.conf
not useful and distracting
then
Code:
nano /boot/grub/grub.conf
and edit to
Quote:
default 0
timeout 10
#splashimage=(hd0,5)/boot/grub/splash.xpm.gz

title Gentoo Linux
root (hd0,5)
kernel /boot/kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sdb6
initrd /boot/initramfs-genkernel-x86_64-3.14.14-gentoo

title Gentoo Linux (rescue)
root (hd0,5)
kernel /boot/kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sdb6 init=/bin/bb
initrd /boot/initramfs-genkernel-x86_64-3.14.14-gentoo
which will remove the # (comment operator) from the needed operational lines and update the kernel and initramfs versions to match /boot's listings. you can retain any useful comments as you wish.

Select the gentoo drive in BIOS as first to boot for this to work.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Sat Aug 30, 2014 7:31 pm    Post subject: Reply with quote

DONAHUE wrote:
krinn is on the money as usual.

More like the cavalry, always late. But in that case, it help a lot as everyone has already asked what was need to user :)
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Aug 30, 2014 8:02 pm    Post subject: Reply with quote

Thanks for the help DONAHUE and krinn.
The 2 menus showed on boot.

However it seems to be stuck on

*Waiting for uevents to be processed ...
_________________
k.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sat Aug 30, 2014 8:26 pm    Post subject: Reply with quote

should be kernel or initramfs related
a picture of the screen at that point may be helpful
boot the livemedia, mount the gentoo partitions, the livemedia should have wgetpaste, (if not continue into the chroot,
Code:
emerge pciutils usbutils
and remove /mnt/gentoo from the first 3 of the following commands):
Code:
wgetpaste /mnt/gentoo/var/log/dmesg
wgetpaste /mnt/gentoo/usr/src/linux/.config
wgetpaste /mnt/gentoo/etc/fstab
lspci -k | wgetpaste
lspci -nn | wgetpaste
lsusb | wgetpaste
Post url's
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sun Aug 31, 2014 3:26 pm    Post subject: Reply with quote

DONAHUE wrote:
should be kernel or initramfs related
a picture of the screen at that point may be helpful
boot the livemedia, mount the gentoo partitions, the livemedia should have wgetpaste, (if not continue into the chroot,
Code:
emerge pciutils usbutils
and remove /mnt/gentoo from the first 3 of the following commands):
Code:
wgetpaste /mnt/gentoo/var/log/dmesg
wgetpaste /mnt/gentoo/usr/src/linux/.config
wgetpaste /mnt/gentoo/etc/fstab
lspci -k | wgetpaste
lspci -nn | wgetpaste
lsusb | wgetpaste
Post url's


All in all this is what I done.

mount /dev/sdb6 /mnt/gentoo
mount /dev/sdb7 /mnt/gentoo/home
mount -t proc none /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"
[/quote]

wgetpaste -s ca /var/log/dmesg

returns

Quote:
/var/log/dmesg No such file found


As for the following

wgetpaste /mnt/gentoo/usr/src/linux/.config
wgetpaste /mnt/gentoo/etc/fstab


I believe pastebin is returning 500 internal errors, So I cannot do anything with that atm
_________________
k.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 31, 2014 3:32 pm    Post subject: Reply with quote

Zelt wrote:
Ok the -s ca fixed worked.

_________________
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
DONAHUE
Watchman
Watchman


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

PostPosted: Sun Aug 31, 2014 4:01 pm    Post subject: Reply with quote

looks as though ca is down as well as pastebin try wgetpaste -s gists
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sun Aug 31, 2014 5:04 pm    Post subject: Reply with quote

DONAHUE wrote:
looks as though ca is down as well as pastebin try wgetpaste -s gists


wgetpaste -s ca /var/log/dmesg - /var/log/dmesg No such file found

wgetpaste /mnt/gentoo/usr/src/linux/.config - https://gist.github.com/anonymous/fbc3fb7d972e0b2f8255
wgetpaste /mnt/gentoo/etc/fstab - https://gist.github.com/anonymous/3903fccf990892e9801e
_________________
k.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 31, 2014 7:18 pm    Post subject: Reply with quote

Zelt,

Its
Code:
dmesg | wgetpaste -s ca
as dmesg is a command.
The file is only created when the kernel ring buffer is full.
_________________
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
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sun Aug 31, 2014 7:32 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Zelt,

Its
Code:
dmesg | wgetpaste -s ca
as dmesg is a command.
The file is only created when the kernel ring buffer is full.


Thanks, In that case, outcome of

dmesg | wgetpaste -s ca - https://gist.github.com/anonymous/3c41f4ac66d3ad42a6d4
_________________
k.
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 1, 2  Next
Page 1 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