Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub error - boot from another partition
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
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 9:42 am    Post subject: Grub error - boot from another partition Reply with quote

Hello,
I'm new user of gentoo and this is my firt boot.
In loading kernel I get error:
Code:
VFS: Cannot open root device "sda3" or unknown-block(0,0)

This is my grub entry:
Code:
menuentry "Gentoo Base System release 2.1 (on /dev/sda3)" --class gentoo --class os {
   insmod reiserfs
   echo  'Loading Linux 3.4.9-gentoo ...'
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set /dev/sda5
   linux /boot/vmlinuz-3.4.9-gentoo rootfstype=reiserfs root=/dev/sda3
}

disk partitions:
    /dev/sda5 - / with boot and Ubuntu
    /dev/sda3 - / with gentoo

and my machine is ntb Lenovo U165 with ATI SATA chip
    00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]

I have problem propably with wrong configured kernel but I don't know what is bad
here is my config
http://pastebin.com/fewuuTvv
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Sep 20, 2012 10:27 am    Post subject: Reply with quote

are you sure about this?
Code:
   set root='(hd0,5)'
?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 10:38 am    Post subject: Reply with quote

yes because with other number can't load kernel
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Sep 20, 2012 11:48 am    Post subject: Reply with quote

dimmuboy wrote:
yes because with other number can't load kernel

ahh boot is on ubuntu's partition.

are you sure you get that error? it should be VFS: Cannot open root device "sda3" or unknown-block(0,2)
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 12:07 pm    Post subject: Reply with quote

yes on partition with Ubuntu but only temporarily
yes I'm sure, is it unknown-block(0,0)
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Sep 20, 2012 12:52 pm    Post subject: Reply with quote

dimmuboy wrote:
yes on partition with Ubuntu but only temporarily
yes I'm sure, is it unknown-block(0,0)


well I find it strange as sda3 is hd(0,2)... check why it is (0,0)
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Thu Sep 20, 2012 12:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 12:53 pm    Post subject: Reply with quote

dimmuboy,

I don't know if this will make a difference or not, but this is how I boot from lmde:
Code:
menuentry "Gentoo linux gentoo-sources - name stable (on /dev/sda9)"  {
   insmod part_msdos
   insmod ext2
   echo   'Setting Linux'
   set root='(hd0,msdos8)'
   echo   'Booting Linux'
   linux /kernel  root=/dev/sda9 rootfstype=ext3
}

kernel is a symlink

This is not right since you're designating UUID and using /dev - you don't need it
Code:
search --no-floppy --fs-uuid --set /dev/sda5

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 3:33 pm    Post subject: Reply with quote

I edited my entry but I get stiil same error:
Code:
menuentry "Gentoo Base System release 2.1 (on /dev/sda3)" --class gentoo --class os {
   insmod part_msdos
   insmod reiserfs
   echo  'Loading Linux 3.4.9-gentoo ...'
   set root='(hd0,msdos5)'
   linux /boot/vmlinuz-3.4.9-gentoo rootfstype=reiserfs root=/dev/sda3
}


my kernel is directly in path
DaggyStyle: I don't understand your post
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 4:47 pm    Post subject: Reply with quote

dimmuboy,

Can you paste your entire grub.cfg and ls -l the /dev/sda5 partition :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 4:52 pm    Post subject: Reply with quote

ls -l /dev/sda5
Code:
brw-rw---- 1 root disk 8, 5 2012-09-20 18:11 /dev/sda5

and grub.cfg resp. burg.cfg
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/burg
#

### BEGIN /etc/burg.d/00_header ###
set theme_name=ubuntu
if [ -s $prefix/burgenv ]; then
  load_env
fi
set default="6"
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
}
set gfxmode=1366x768
function select_menu {
  if menu_popup -t template_popup theme_menu ; then
    free_config template_popup template_subitem menu class screen
    load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
    save_env theme_name
    menu_refresh
  fi
}
function toggle_fold {
  if test -z $theme_fold ; then
    set theme_fold=1
  else
    set theme_fold=
  fi
  save_env theme_fold
  menu_refresh
}
function select_resolution {
  if menu_popup -t template_popup resolution_menu ; then
    menu_reload_mode
  fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
  insmod coreui
  menu_region.text
  load_string '+theme_menu { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
  load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
  load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
  load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
  load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
  load_string '+theme_menu { -fortune { command="set theme_name=fortune" }}'
  load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
  load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
  load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
  load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
  load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
  load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
  load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
  load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
  load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
  load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
  load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
  load_config ${prefix}/themes/conf.d/10_hotkey
  load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
  insmod vbe
  insmod png
  insmod jpeg
  set gfxfont="Unifont Regular 16"
  menu_region.gfx
  vmenu resolution_menu
  controller.ext
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
set locale_dir=($root)/boot/burg/locale
set lang=sk
insmod gettext
set timeout=3
### END /etc/burg.d/00_header ###

### BEGIN /etc/burg.d/10_linux ###
menuentry 'Ubuntu GNU/Linux, with Linux 3.4.9-gentoo' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 3.4.9-gentoo ...'
   linux   /boot/vmlinuz-3.4.9-gentoo root=/dev/sda5 ro  quiet splash
}
menuentry 'Ubuntu GNU/Linux, with Linux 3.4.9-gentoo (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 3.4.9-gentoo ...'
   linux   /boot/vmlinuz-3.4.9-gentoo root=/dev/sda5 ro single
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.35-32-generic' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 2.6.35-32-generic ...'
   linux   /boot/vmlinuz-2.6.35-32-generic root=UUID=8de9a199-3ead-4be8-989e-e8f4b873ce8d ro  quiet splash
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-32-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.35-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 2.6.35-32-generic ...'
   linux   /boot/vmlinuz-2.6.35-32-generic root=UUID=8de9a199-3ead-4be8-989e-e8f4b873ce8d ro single
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-32-generic
}
### END /etc/burg.d/10_linux ###

### BEGIN /etc/burg.d/30_os-prober ###
menuentry "Gentoo Base System release 2.1 (on /dev/sda3)" --class gentoo --class os {
   insmod part_msdos
   insmod reiserfs
   echo   'Loading Linux 3.4.9-gentoo ...'
   set root='(hd0,msdos5)'
   linux /boot/vmlinuz-3.4.9-gentoo rootfstype=reiserfs root=0ea63576-ad65-4f1d-a451-d08c99725d42
}
### END /etc/burg.d/30_os-prober ###

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

### BEGIN /etc/burg.d/50_iso ###

menuentry 'Backtrack ISO' --class backtrack --class gnu-linux --class gnu --class os {
   set isofile="/dimmuboy/Install/Others/bt5_gnome-64.iso"
   loopback lopp (hd0,5)$isofile
   linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/dimmuboy/Install/Others/bt5_gnome-64.iso noprompt
   initrd (loop)/casper/initrd.lz
}
### END /etc/burg.d/50_iso ###
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 4:58 pm    Post subject: Reply with quote

dimmuboy,

Mount the partition first e.g. mount /dev/sda5 /mnt/mountpoint then ls -l mnt/mountpoint - I'm looking for the content :D
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 5:05 pm    Post subject: Reply with quote

ok I wondered why you want to see /dev/sda5

here is (root from ubuntu)
Code:
celkom 116
drwxr-xr-x    2 root root  4096 2011-12-15 10:48 bin
drwxr-xr-x    4 root root  4096 2012-09-20 08:08 boot
drwxr-xr-x    2 root root  4096 2011-01-23 10:56 cdrom
drwxr-xr-x   20 root root  3840 2012-09-20 18:44 dev
drwxr-xr-x  183 root root 12288 2012-09-20 18:46 etc
drwxr-xr-x.   4 root root  4096 2010-10-07 11:15 home
lrwxrwxrwx    1 root root    33 2012-01-20 19:23 initrd.img -> boot/initrd.img-2.6.35-32-generic
drwxr-xr-x   18 root root 12288 2012-07-04 01:10 lib
drwxr-xr-x    4 root root 16384 2012-01-07 11:17 lib32
lrwxrwxrwx    1 root root     4 2011-01-23 11:00 lib64 -> /lib
drwx------    2 root root 16384 2011-01-23 10:54 lost+found
drwxr-xr-x    3 root root  4096 2012-09-20 18:46 media
drwxr-xr-x    3 root root  4096 2012-09-17 07:42 mnt
-rw-r--r--    1 root root    27 2012-09-02 21:20 new
drwxr-xr-x   19 root root  4096 2012-09-08 14:14 opt
dr-xr-xr-x  265 root root     0 2012-09-20 20:11 proc
drwx------   40 root root  4096 2012-09-18 16:51 root
drwxr-xr-x    2 root root  4096 2012-09-05 22:10 sbin
drwxr-xr-x    2 root root  4096 2010-05-10 07:45 selinux
drwxr-xr-x    2 root root  4096 2010-10-07 17:56 srv
drwxr-xr-x   13 root root     0 2012-09-20 20:11 sys
drwxrwxrwt   15 root root  4096 2012-09-20 18:39 tmp
drwxr-xr-x   13 root root  4096 2011-09-26 16:32 usr
drwxr-xr-x   16 root root  4096 2011-05-04 12:57 var
lrwxrwxrwx    1 root root    30 2012-01-20 19:23 vmlinuz -> boot/vmlinuz-2.6.35-32-generic
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 5:11 pm    Post subject: Reply with quote

dimmuboy,

Much better :D But I don't see gentoo's kernel :?:

Is it in ls -l /mnt/mountpoint/boot :?: Can you list and paste it :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 5:20 pm    Post subject: Reply with quote

ok here you are :D
Code:
celkom 31104
-rw-r--r-- 1 root root   701144 2012-01-24 15:39 abi-2.6.35-32-generic
drwxr-xr-x 5 root root    12288 2012-09-20 17:21 burg
-rw-r--r-- 1 root root   122657 2012-01-24 15:39 config-2.6.35-32-generic
-rw-r--r-- 1 root root    75003 2012-09-20 07:33 config-3.4.9-gentoo
drwxr-xr-x 3 root root     4096 2012-09-20 07:47 grub
-rw-r--r-- 1 root root 16104387 2012-02-13 17:31 initrd.img-2.6.35-32-generic
-rw-r--r-- 1 root root   165084 2010-09-24 20:16 memtest86+.bin
-rw-r--r-- 1 root root   167264 2010-09-24 20:16 memtest86+_multiboot.bin
-rw-r--r-- 1 root root  2346507 2012-01-24 15:39 System.map-2.6.35-32-generic
-rw-r--r-- 1 root root  2457510 2012-09-20 07:33 System.map-3.4.9-gentoo
-rw-r--r-- 1 root root     1336 2012-01-24 15:40 vmcoreinfo-2.6.35-32-generic
-rw-r--r-- 1 root root  4351376 2012-01-24 15:39 vmlinuz-2.6.35-32-generic
-rw-r--r-- 1 root root  5321120 2012-09-20 07:33 vmlinuz-3.4.9-gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 5:35 pm    Post subject: Reply with quote

dimmuboy,

Upon a closer look, rootfstype=reiserfs has me confused given it's not mentioned anywhere else except for gentoo :?

Paste back blkid
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 5:40 pm    Post subject: Reply with quote

wow, this command I didn't know
Code:
/dev/sda3: LABEL="gentoo" UUID="0ea63576-ad65-4f1d-a451-d08c99725d42" TYPE="reiserfs"
/dev/sda5: LABEL="ubuntu" UUID="8de9a199-3ead-4be8-989e-e8f4b873ce8d" TYPE="ext4"
/dev/sda6: UUID="0be92c54-c701-4c34-8ac9-9d31b4beec35" TYPE="swap"
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 6:00 pm    Post subject: Reply with quote

dimmuboy,

OK, just wanted to make sure - I've never worked with reiserfs :)

Try this - make symlinks to gentoo's kernel
Code:
ln -s /mnt/mountpoint/boot/vmlinuz-3.4.9-gentoo /mnt/mountpoint/gentoo-kernel

ln -s /mnt/mountpoint/boot/vmlinuz-3.4.9-gentoo /mnt/mountpoint/boot/gentoo-kernel

And try this in grub:
Code:
menuentry "Gentoo Base System release 2.1 (on /dev/sda3)" --class gentoo --class os {
   insmod part_msdos
   echo  'Loading Linux 3.4.9-gentoo ...'
   set root='(hd0,msdos5)'
   linux /gentoo-kernel root=/dev/sda3 rootfstype=reiserfs
}

Cross your fingers too. If this doesn't work, then I'm pretty confident it's not grub related.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Thu Sep 20, 2012 6:35 pm    Post subject: Reply with quote

thanx, I try it but still not working
I already wrote it in first post: propably wrong configured kernel :?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 7:35 pm    Post subject: Reply with quote

dimmuboy,

Is CONFIG_REISERFS_FS set in .config :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Thu Sep 20, 2012 11:13 pm    Post subject: Reply with quote

dimmuboy wrote:

Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/burg
#

### BEGIN /etc/burg.d/00_header ###
set theme_name=ubuntu
if [ -s $prefix/burgenv ]; then
  load_env
fi
set default="6"
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
}
set gfxmode=1366x768
function select_menu {
  if menu_popup -t template_popup theme_menu ; then
    free_config template_popup template_subitem menu class screen
    load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
    save_env theme_name
    menu_refresh
  fi
}
function toggle_fold {
  if test -z $theme_fold ; then
    set theme_fold=1
  else
    set theme_fold=
  fi
  save_env theme_fold
  menu_refresh
}
function select_resolution {
  if menu_popup -t template_popup resolution_menu ; then
    menu_reload_mode
  fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
  insmod coreui
  menu_region.text
  load_string '+theme_menu { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
  load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
  load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
  load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
  load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
  load_string '+theme_menu { -fortune { command="set theme_name=fortune" }}'
  load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
  load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
  load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
  load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
  load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
  load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
  load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
  load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
  load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
  load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
  load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
  load_config ${prefix}/themes/conf.d/10_hotkey
  load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
  insmod vbe
  insmod png
  insmod jpeg
  set gfxfont="Unifont Regular 16"
  menu_region.gfx
  vmenu resolution_menu
  controller.ext
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
set locale_dir=($root)/boot/burg/locale
set lang=sk
insmod gettext
set timeout=3
### END /etc/burg.d/00_header ###

### BEGIN /etc/burg.d/10_linux ###
menuentry 'Ubuntu GNU/Linux, with Linux 3.4.9-gentoo' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 3.4.9-gentoo ...'
   linux   /boot/vmlinuz-3.4.9-gentoo root=/dev/sda5 ro  quiet splash
}
menuentry 'Ubuntu GNU/Linux, with Linux 3.4.9-gentoo (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 3.4.9-gentoo ...'
   linux   /boot/vmlinuz-3.4.9-gentoo root=/dev/sda5 ro single
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.35-32-generic' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 2.6.35-32-generic ...'
   linux   /boot/vmlinuz-2.6.35-32-generic root=UUID=8de9a199-3ead-4be8-989e-e8f4b873ce8d ro  quiet splash
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-32-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.35-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
   insmod ext2
   set root='(hd0,5)'
   search --no-floppy --fs-uuid --set 8de9a199-3ead-4be8-989e-e8f4b873ce8d
   echo   'Loading Linux 2.6.35-32-generic ...'
   linux   /boot/vmlinuz-2.6.35-32-generic root=UUID=8de9a199-3ead-4be8-989e-e8f4b873ce8d ro single
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-32-generic
}
### END /etc/burg.d/10_linux ###

### BEGIN /etc/burg.d/30_os-prober ###
menuentry "Gentoo Base System release 2.1 (on /dev/sda3)" --class gentoo --class os {
   insmod part_msdos
   insmod reiserfs
   echo   'Loading Linux 3.4.9-gentoo ...'
   set root='(hd0,msdos5)'
   linux /boot/vmlinuz-3.4.9-gentoo rootfstype=reiserfs root=0ea63576-ad65-4f1d-a451-d08c99725d42
}
### END /etc/burg.d/30_os-prober ###

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

### BEGIN /etc/burg.d/50_iso ###

menuentry 'Backtrack ISO' --class backtrack --class gnu-linux --class gnu --class os {
   set isofile="/dimmuboy/Install/Others/bt5_gnome-64.iso"
   loopback lopp (hd0,5)$isofile
   linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/dimmuboy/Install/Others/bt5_gnome-64.iso noprompt
   initrd (loop)/casper/initrd.lz
}
### END /etc/burg.d/50_iso ###


what is this for a grub config mine looks like this:

Code:
cat /boot/grub/grub.conf
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.4.9
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.4.9-gentoo root=/dev/ram0 real_root=/dev/sda3 vga=0x31B
initrd /boot/initramfs-genkernel-x86_64-3.4.9-gentoo

title Gentoo Linux 3.3.8
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.3.8-gentoo root=/dev/ram0 real_root=/dev/sda3 vga=0x31B
initrd /boot/initramfs-genkernel-x86_64-3.3.8-gentoo

title Gentoo Linux 3.2.12
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.2.12-gentoo root=/dev/ram0 real_root=/dev/sda3 vga=0x31B
initrd /boot/initramfs-genkernel-x86_64-3.2.12-gentoo


no wonder you have got lost.
_________________

Flux & Contemplation - Portrait of an Artist in Isolation

Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Thu Sep 20, 2012 11:21 pm    Post subject: Reply with quote

dimmuboy is using grub2, and that's what the config file looks like... it's huge now... but I don't think that's the problem.

I'm still sticking with a missing disk driver.

It looks like

Code:
CONFIG_SATA_AHCI=m


in his .config. If this is the correct driver (which it probably is) it can't be a module unless you're using an initrd/initramfs (see genkernel) to load the module.

Try linking the SATA AHCI driver in statically "Y" when building the kernel. Or look into genkernel to build the initramfs?
_________________
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
dimmuboy
n00b
n00b


Joined: 20 Sep 2012
Posts: 10
Location: Slovakia

PostPosted: Fri Sep 21, 2012 5:52 am    Post subject: Reply with quote

BillWho yes my kernel config file is here: http://pastebin.com/fewuuTvv
eccerr0r I thought me but I wanted to have confirmation. I go to try it

//EDIT: unfortunately is not working and I get this output after run make
Code:
/usr/src/linux-3.4.9-gentoo/arch/x86/Makefile:96: CONFIG_X86_X32 enabled but no binutils support
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
Kernel: arch/x86/boot/bzImage is ready  (#3)
  Building modules, stage 2.
  MODPOST 144 modules

and after make modules_install I get same first line

I found same problem here https://forums.gentoo.org/viewtopic-t-934822-start-0.html but 3.5.x kernel for x64 is unstable

btw here is my make.conf, if you want
Code:
CFLAGS="-march=amdfam10 -funroll-all-loops -O3 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
CHOST="x86_64-pc-linux-gnu"
USE="mmx sse sse2"


//EDIT2: god damned, it's working now! I finally boot to gentoo :) thank you so much guys, it's only need set CONFIG_SATA_AHCI=y
I have some red starst in boot so I can paste log here or I make new topic? and where I can find any boot log?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Sep 21, 2012 1:58 pm    Post subject: Reply with quote

dimmuboy wrote:
god damned, it's working now! I finally boot to gentoo
I have some red starst in boot so I can paste log here or I make new topic? and where I can find any boot log?

Congratulations on your gentoo boot :D

To get a status log of boot services edit /etc/rc.conf and uncomment #rc_logger="YES". The log will be /var/log/rc.log :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
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