View previous topic :: View next topic |
Author |
Message |
truthseaker n00b
Joined: 29 Mar 2012 Posts: 7 Location: GENTOO_MIRROR="somewhere in space"
|
Posted: Thu Mar 29, 2012 7:35 pm Post subject: Grub Error Collection 0x0A POST GRUB LEGACY QUESTIONS HERE |
|
|
Hello everyone. I'm new in Gentoo but I have a working installation, (as yet without xorg but it's close future)
I have two hard drives and on /dev/sda is Debian. And I want to remove Debian's Grub2 and install Grub from Gentoo level. But command:
[/code]grub-install --no-floppy /dev/sda[code]
seems to dosen't work well. When I'm rebooting I still see Debian's Grub. What should I do to force Grub to properly behavior. I'm not sure whether I sholud give some informations so if yes write it.
Split off from Grub Error Collection [Part 1001] and stickied by NeddySeagoon
Added Legacy to topic title after splitting off a Grub2 question - NeddySeagoon _________________ It's what I call "mental masturbation", when you engage in some pointless intellectual exercise that has no possible meaning. - Linus Torvalds |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54446 Location: 56N 3W
|
Posted: Thu Mar 29, 2012 7:49 pm Post subject: |
|
|
truthseaker,
Welocme to Gentoo.
May I ask why you want to remove Debians grub2?
That will mean you cannot boot Debian unless you add it to Gentoos grub.
Where are your Gentoo boot files? in /boot on the gentoo root parttion or in a gentoo boot partition?
If Gentoo is on /dev/sdb and debian on /dev/sda, I would advise you to leave the /dev/sda MBR alone and install Gentoos grub to /dev/sdb.
Now you can boot either Gentoo or Debian, depending on your HDD boot priority order in the BIOS.
When that works, you can add Debian to Gentoos boot loader and Gentoo to Debians boot loader. This is a nice safe approach as you don't wipe out your one and only boot loader, with the possibility of a non booting system. The additional cross booting capability means you can set the BIOS to boot from either drive and just leave it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
truthseaker n00b
Joined: 29 Mar 2012 Posts: 7 Location: GENTOO_MIRROR="somewhere in space"
|
Posted: Thu Mar 29, 2012 8:47 pm Post subject: |
|
|
Thank you NeddySeagoon for answer.
I want to remove this Grub2 because I can't add Gentoo to boat loader. I don't know how but during installation Debian Gentoo were simply added. When I updated kernel on Debian Gentoo disappire from Grub2. I tried to fix it but syntax Grub2's is for me very different as I prefer Grub.
My Gentoo boot files are on /boot and it's /dev/sda1 (handbook ).
Your idea is for me right 'cos I haven't any concepts for this Debian's Grub2. _________________ It's what I call "mental masturbation", when you engage in some pointless intellectual exercise that has no possible meaning. - Linus Torvalds |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54446 Location: 56N 3W
|
Posted: Thu Mar 29, 2012 10:13 pm Post subject: |
|
|
truthseaker,
Use the manual grub shell to install grub to the MBR. It may not work but at least it will tell you why.
The command sequence is
Code: | grub --no-floppy
root (hd0,0)
setup (hd0)
quit |
Grub will look in several directories for the files it needs and spit out warnings when they are not found. Thats normal.
It will either work of give error messages.
Quote the error messages if it fails. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
truthseaker n00b
Joined: 29 Mar 2012 Posts: 7 Location: GENTOO_MIRROR="somewhere in space"
|
Posted: Fri Mar 30, 2012 4:06 pm Post subject: |
|
|
I have only one little doubt:
Use this grub shell for Debian or Gentoo or on both? _________________ It's what I call "mental masturbation", when you engage in some pointless intellectual exercise that has no possible meaning. - Linus Torvalds |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54446 Location: 56N 3W
|
Posted: Fri Mar 30, 2012 7:52 pm Post subject: |
|
|
truthseaker,
The grub shell is for use with grub1, as provided by Gentoo.
Debian uses grub2, I don't know how its shell works, or even if it has one. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
truthseaker n00b
Joined: 29 Mar 2012 Posts: 7 Location: GENTOO_MIRROR="somewhere in space"
|
Posted: Sat Mar 31, 2012 4:17 pm Post subject: |
|
|
I did what you told. And now there is very strange thing: When I installed Grub in MBR by grub shell, shell doesn't spit out any errors and warnings but after reboot I again saw Debian's Grub2. _________________ It's what I call "mental masturbation", when you engage in some pointless intellectual exercise that has no possible meaning. - Linus Torvalds |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54446 Location: 56N 3W
|
Posted: Sat Mar 31, 2012 8:15 pm Post subject: |
|
|
truthseaker,
Set up your BIOS to boot from your other drive.
I suspect that Gentoos grub has been installed there.
Grub uses the drive order as detected by the BIOS. This is not always the same as the drive ordering used by the kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
truthseaker n00b
Joined: 29 Mar 2012 Posts: 7 Location: GENTOO_MIRROR="somewhere in space"
|
Posted: Tue Apr 03, 2012 2:11 pm Post subject: |
|
|
Thank you for andswers NeddySeagoon.
A little changes in BIOS for booting solved troubles with Grub. _________________ It's what I call "mental masturbation", when you engage in some pointless intellectual exercise that has no possible meaning. - Linus Torvalds |
|
Back to top |
|
|
Shamus397 Apprentice
Joined: 03 Apr 2005 Posts: 218 Location: Ur-th
|
Posted: Fri Apr 20, 2012 4:49 pm Post subject: |
|
|
It seems that grub was at fault after all. Solved the problem by reinstalling with Funtoo which uses grub 1.98.
EDIT: Seems my original post disappeared. So in brief: Optiplex 320 Pentium D with latest Gentoo installed wouldn't boot any kernel (not even a genkernel), would hang after selecting the kernel from the grub menu (no "uncompressing Linux" message). Booted fine from an old SysRescueCD and could run it by selecting "Boot Linux from local hard drive" option. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54446 Location: 56N 3W
|
Posted: Fri Apr 20, 2012 5:48 pm Post subject: |
|
|
Shamus397,
I moved your orginal post because grub was clearly doing its thing. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
lucky7 n00b
Joined: 21 Apr 2012 Posts: 1
|
Posted: Sat Apr 21, 2012 10:31 pm Post subject: Amanda MOrgan CIS 237 |
|
|
Im here for my class. Interesting though. _________________ Amanda Morgan |
|
Back to top |
|
|
FPoBM_Pinkie n00b
Joined: 30 Jun 2012 Posts: 12 Location: In Constant Motion
|
Posted: Sun Jul 15, 2012 10:40 am Post subject: another grub problem |
|
|
Don't worry, this is GRUB related.
tl;dr GRUB said that it didn't recognize my (hd1,0) on /dev/sdb (which is where I installed gentoo and everything gentoo) and told me that it couldn't be mounted and was an unknown filesystem.
I wanted to start learning more about Linux so I started by installing gentoo and taking a close look at cross compiling on my brand new Intel Z77 workstation (processor is i7 3770K stock, mobo is G1 Sniper 3 w/ UEFI BIOS, and 2 500GB drives, 8GB RAM, I removed the graphics cards and the ssd to avoid damage). I used a LiveUSB I had created via UNetbootin on my BackTrack laptop.
All went smoothly in install up until GRUB. At first I had mounted the drive incorrectly (accidentally used /dev/sda as opposed to my secondary 500GB drive /dev/sdb). Upon fixing this (and rebuilding the kernel and the link in /boot) through grub-install, I rebooted onto the drive, selected Linux 3.3.8, but it told me:
Code: |
(hd1,0) Filesystem type unknown, partition type 0x7
Partition could not be mounted |
BTW, this is GNU GRUB 0.97 on install. Should I migrate to GRUB2? If so, how do I do so?
Upon rebooting on LiveUSB I used the manual install (which told me that root (hd1,0) was ext2fs), but it didn't serve me any better.
What should I dump/do? |
|
Back to top |
|
|
sasq Apprentice
Joined: 09 Sep 2005 Posts: 234 Location: Poland
|
Posted: Wed Jul 25, 2012 1:07 pm Post subject: Error 12: Invalid device requested |
|
|
When trying to install grub in MBR I get "Error 12: Invalid device requested". Don't know why.
Here's my configuration & session log (the exact error is at the end):
# fdisk -l
Code: | omitting empty partition (5)
Disk /dev/sda: 82.0 GB, 81963220480 bytes
255 heads, 63 sectors/track, 9964 cylinders, total 160084415 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x26672666
Device Boot Start End Blocks Id System
/dev/sda1 * 63 21511034 10755486 7 HPFS/NTFS/exFAT
/dev/sda2 21511035 160055594 69272280 f W95 Ext'd (LBA)
/dev/sda3 44034165 67183829 11574832+ 7 HPFS/NTFS/exFAT
/dev/sda5 21514240 41992191 10238976 83 Linux
/dev/sda6 41993973 44034164 1020096 82 Linux swap / Solaris
/dev/sda7 67183893 112856624 22836366 7 HPFS/NTFS/exFAT
/dev/sda8 112856688 160055594 23599453+ b W95 FAT32 |
# cat /boot/grub/menu.lst
Code: | # ...some comments...
default 0
timeout 5
#splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Linux
root (hd0,5)
kernel /boot/jajo-3.3.8 root=/dev/sda5 real_root=/dev/sda5
#initrd ...not used, commented out...
# title Windows XP
# ...this is all commented out, I don't use it... |
# cat /boot/grub/device.map
Code: | (fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb |
# grub
Code: | GNU GRUB version 0.97 (640K lower / 9216K upper memory)
...some stuff about command line...
grub> device (hd[TAB]
Possible disks are: hd0 hd1
grub> device (hd0,[TAB]
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 2, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type unknown, partition type 0x82
Partition num: 7, Filesystem type unknown, partition type 0x7
Partition num: 8, Filesystem type unknown, partition type 0xb
grub> find /boot/grub/stage1
(hd0,5)
grub> find /boot/grub/e2fs_stage1_5
(hd0,5)
grub> find /boot/grub/stage2
(hd0,5)
grub> find /boot/grub/stage[TAB]
Error 12: Invalid device requested
grub> find /boot/grub/stage2[TAB]
Error 12: Invalid device requested
grub> root (hd0,5)
Filesystem type is ext2fs, partition type 0x83
grub> find /boot/grub/stage[TAB]
Possible files are: stage1 stage2 stage2_eltorito
grub> find /boot/grub/menu.lst
(hd0,5)
grub> find /boot/grub/device.map
(hd0,5)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,5)/boot/grub/stage2 /boot/grub/menu.lst"... failed
Error 12: Invalid device requested |
What's the problem and how to solve it? _________________ SasQ |
|
Back to top |
|
|
cruzki123 Apprentice
Joined: 16 May 2008 Posts: 262
|
Posted: Fri Jul 27, 2012 4:52 pm Post subject: |
|
|
I have a very rare problem with recent grub. I have update grub in two machines: in one machine to 0.97-r13 and in other to 2.00. In both machines,
Code: | grub-install /dev/sda |
ended succesfully. The problem arise upon restart, grub did not show the menu but the console. I can boot if I type
Code: | linux (hd0,0)/kernel-3.5 root=/dev/sda3 ro
boot |
adjusting the line acordinly to grub 1 or 2 and to the partitions, obviusly I have revised the grub.conf and seems fine, forums and google do not give me any clue and grub directory have being updated. Any one have any idea on what is happening? |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sat Jul 28, 2012 4:24 am Post subject: |
|
|
cruzki123 wrote: | I have a very rare problem with recent grub. I have update grub in two machines: in one machine to 0.97-r13 and in other to 2.00. In both machines,
Code: | grub-install /dev/sda |
ended succesfully. The problem arise upon restart, grub did not show the menu but the console. I can boot if I type
Code: | linux (hd0,0)/kernel-3.5 root=/dev/sda3 ro
boot |
adjusting the line acordinly to grub 1 or 2 and to the partitions, obviusly I have revised the grub.conf and seems fine, forums and google do not give me any clue and grub directory have being updated. Any one have any idea on what is happening? |
dont know about grub2, but with grub1 (0.97) that would hint to me that the stage* files do not exist at /boot
is it possible that /boot was not mounted when you went through your grub setup? (that is, if you use a separate /boot partition). _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
cruzki123 Apprentice
Joined: 16 May 2008 Posts: 262
|
Posted: Sat Jul 28, 2012 3:36 pm Post subject: |
|
|
cach0rr0 wrote: | cruzki123 wrote: | I have a very rare problem with recent grub. I have update grub in two machines: in one machine to 0.97-r13 and in other to 2.00. In both machines,
Code: | grub-install /dev/sda |
ended succesfully. The problem arise upon restart, grub did not show the menu but the console. I can boot if I type
Code: | linux (hd0,0)/kernel-3.5 root=/dev/sda3 ro
boot |
adjusting the line acordinly to grub 1 or 2 and to the partitions, obviusly I have revised the grub.conf and seems fine, forums and google do not give me any clue and grub directory have being updated. Any one have any idea on what is happening? |
dont know about grub2, but with grub1 (0.97) that would hint to me that the stage* files do not exist at /boot
is it possible that /boot was not mounted when you went through your grub setup? (that is, if you use a separate /boot partition). |
There exists stage2 files and have been update correctly. The problem dissaperas after use the command setup from the grub console. I really did not understant what happened. |
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Thu Sep 13, 2012 6:54 am Post subject: |
|
|
Hi,
Doing a fresh install and opted for ACCEPT_KEYWORDS="~amd64" which means grub2 has been pulled in.
I have the following partition scheme...
Code: |
/dev/sda1 /boot ext4 noauto,noatime 1 2
/dev/sda2 / ext4 noauto,noatime 1 2
/dev/sda3 /home ext4 noauto,noatime 1 2
|
...and as per instructions on the wiki and in the Gentoo Grub2 guide (under development) I am mounting /dev/sda1 after chrooting.
I've added the following to /etc/grub.d/40_custom...
Code: |
#!/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.
menuentry "Gentoo 3.5.3" {
set root=(hd0,2)
# search --no-floppy --fs-uuid --set 8ec65ef7-57de-4b4a-8348-28ddd8c68cb9
linux /boot/3.5.3 root=1323474b-a19f-4ceb-931b-61b111ed48da rootfstype=ext4 libahci.ignore_sss=1 i915.i915_enable_rc6=1
}
|
...and in /etc/default/grub I have...
Code: |
# Copyright 1999-2012 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.2 2012/06/28 22:36:53 floppym Exp $
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub2/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_CMDLINE_LINUX_DEFAULT="root=/dev/sda2 rootfstype=ext4 video=1600x900 i915.195_enable_rc6=1"
GRUB_CMDLINE_LINUX=""
# 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/grub2/themes/starfield/theme.txt"
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub2/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
|
Running grub2-mkconfig completes ok and results in the following....
Code: |
(chroot) livecd / # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
done
(chroot) livecd / # cat /boot/grub2/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 ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
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=en_GB
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/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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.
menuentry "Gentoo 3.5.3" {
set root=(hd0,2)
# search --no-floppy --fs-uuid --set 8ec65ef7-57de-4b4a-8348-28ddd8c68cb9
linux /boot/3.5.3 root=1323474b-a19f-4ceb-931b-61b111ed48da rootfstype=ext4 libahci.ignore_sss=1 i915.i915_enable_rc6=1
}
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
|
I then try installing grub using grub2-install, but get the following error...
Code: |
(chroot) livecd / # grub2-install --grub-setup=/boot/grub2/grub.cfg /dev/sda1
/usr/sbin/grub2-install: line 741: /boot/grub2/grub.cfg: Permission denied
(chroot) livecd / # grub2-install /dev/sda1
/usr/sbin/grub2-bios-setup: warning: File system `ext2' doesn't support embedding.
/usr/sbin/grub2-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub2-bios-setup: error: will not proceed with blocklists.
|
But I have checked the permissions on /boot/grub2/grub.cfg and they're 600 (i.e. rw for root:root) and the filesystem on /dev/sda1 is ext4 not ext2.
I can add the '-f' switch which purportedly completes ok...
Code: |
(chroot) livecd / # grub2-install -f /dev/sda1
/usr/sbin/grub2-bios-setup: warning: File system `ext2' doesn't support embedding.
/usr/sbin/grub2-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.
|
...but when I reboot I just get thrown to the GRUB prompt and I was expecting to get a menu (albeit with one entry) for Gentoo to boot (I've only ever used LILO in the past so Grub(2) is all new to me).
Any thoughts or advice as to whats going on here and how to resolve these errors appreciated.
Cheers
slack _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Thu Sep 13, 2012 10:54 am Post subject: |
|
|
1. just make a label:
tune2fs -L booty /dev/sda1
2. And don't forget to link boot in itself (if boot is an extra partition):
cd /boot && ln -s . boot
3. And link your
ln -s /boot/vmlinuz-VERSION kernel
Code: | menuentry "Gentoo 3.5.3" {
insmod ext2
search --no-floppy --label --set booty
echo 'Try loading kernel - this far grub has done for you!'
linux /boot/kernel root=/dev/sda2 rootfstype=ext4
} |
|
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Fri Sep 14, 2012 11:09 am Post subject: |
|
|
ulenrich wrote: | 1. just make a label:
tune2fs -L booty /dev/sda1
2. And don't forget to link boot in itself (if boot is an extra partition):
cd /boot && ln -s . boot
3. And link your
ln -s /boot/vmlinuz-VERSION kernel
Code: | menuentry "Gentoo 3.5.3" {
insmod ext2
search --no-floppy --label --set booty
echo 'Try loading kernel - this far grub has done for you!'
linux /boot/kernel root=/dev/sda2 rootfstype=ext4
} |
|
Thanks, I tried that, but no joy, same errors.
I have however found a (mostly working) solution which was to ditch the boot partition completely and move everything onto /dev/sda2. I the installed the following settings...
Code: |
#!/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.
menuentry "Gentoo 3.5.3" {
insmod ext2
search --no-floppy
linux /boot/3.5.3 root=/dev/sda2 rootfstype=ext4 libahci.ignore_sss=1 i915.i915_enable_rc6=1
}
|
...using...
Code: |
# grub2-mkconfig -o /boot/grub2/grub.cfg
# grub2-set-default 1
# grub2-install --root-directory=/ /dev/sda
|
Upon rebooting I get the GRUB menu and have only one kernel image to choose from. After selecting that I'm told there was an error (at work at present and can't remember what it is, but will post later), but hitting return allows booting to continue and I've now got a working Asus UX21e
Will report back on the above error, then going to lookinto more configuration.
Cheers,
slack _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Fri Sep 14, 2012 12:16 pm Post subject: |
|
|
Crazy really! Your last works, mine above not?
- I wonder what is the meaning of a single "search".
- I wonder if a grub mbr pointing to sda2/boot/grub/grub.cfg sets root already as default.
- Is your config active really? cat /boot/grub/grub.cfg |
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Fri Sep 14, 2012 2:29 pm Post subject: |
|
|
ulenrich wrote: | Crazy really! Your last works, mine above not?
- I wonder what is the meaning of a single "search".
- I wonder if a grub mbr pointing to sda2/boot/grub/grub.cfg sets root already as default.
- Is your config active really? cat /boot/grub/grub.cfg |
There isn't any /boot/grub/grub.cfg, but /boot/grub2/grub.cfg which looks like...
Code: |
# cat /boot/grub2/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 ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
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=en_GB
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/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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.
menuentry "Gentoo 3.5.3" {
insmod ext2
search --no-floppy
linux /boot/3.5.3 root=/dev/sda2 rootfstype=ext4 libahci.ignore_sss=1 i915.i915_enable_rc6=1
}
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
|
|
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Mon Sep 17, 2012 5:30 am Post subject: |
|
|
Ok, the error I now have (using the above settings) is...
Code: | Error unspecified search type
Try loading the kernel |
But it goes onto boot fine (although half-way through the kernel loading it appears to hang for a while whilst loading the Elantech drivers, but it does complete). _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
jpthian n00b
Joined: 12 Oct 2012 Posts: 1
|
Posted: Sat Oct 13, 2012 9:19 am Post subject: No /boot/grub after emerging grub |
|
|
Hi all,
I'm new to Gentoo and I'm installing it in my virtualbox. I was following the instructions in the handbook to the "emerge grub" that I couldn't find any directory name "grub" in /boot after the emerging.
Code: | ls /boot/grub
ls : cannot access /boot/grub: No such file or directory |
I try to uninstall grub by then re-install it with but nothing changed.
Can you help me explain this and how to make it right?
Thank you very much in advance. |
|
Back to top |
|
|
arnvidr l33t
Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Fri Nov 02, 2012 9:13 am Post subject: |
|
|
Although my gentoo install is working just fine, I figured this is where the grub experts hang out, so I hope you'll forgive me!
I have a Windows 7 install that doesn't want to boot, and I think it's because my grub (legacy) is not set up to run it correctly (because it's a fresh Windows install, I've done nothing but put grub back in the MBR).
The thing that might be causing me the problems is that the Windows boot partition is on /dev/sda3, while the Windows installation itself is on /dev/sda10. I haven't managed to find any explanation to how this is supposed to be booted, since everyone else seems to manage to install Windows without getting a separate boot partition. I tried these two simple versions: Code: | rootnoverify (hd0,2)
chainloader (hd0,2)+1 |
Code: | rootnoverify (hd0,9)
chainloader (hd0,9)+1 | grub seems to agree that the partition numbers are correct: Code: | Possible partitions are:
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type is fat, partition type 0xb
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type is ext2fs, partition type 0x83
Partition num: 9, Filesystem type unknown, partition type 0x7 | but the first version gives a message like "disk error. Press any key to reboot" (although no key presses makes anything happen), and the second one seems to just hang.
I'm now only connected remotely, so I can't test any solutions that come to mind until later, is it possible that this could work? Code: | rootnoverify (hd0,2)
chainloader (hd0,2)bootmgr | I see from the grub documentation that the chainloader command is supposed to take a file as a parameter, while the +1 makes it grab the first sector, which might be wrong? Could there be any hiding of partitions that are necessary?
Any help, hints, requests for more info, they're all appreciated! _________________
|
|
Back to top |
|
|
|