Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 1001]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 29, 30, 31  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
milomak
Apprentice
Apprentice


Joined: 10 Apr 2008
Posts: 287

PostPosted: Mon Jan 12, 2009 9:55 pm    Post subject: Reply with quote

I installed using the "standard" method (if you will):

When I boot grub I get the following error message

Quote:

root (hd0,6)
Filesystem type is reiserfs, partition type 0x83
kernel /boot/kernel-genkernel-x86-2.6.27-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 vga=0x318 video=vesafb:mtrr:3,ywrap
[Linux-bzImage, setup=0x2a00, size=0x96050]
initrd /boot/initramfs-genkernel-x86-2.6.27-gentoo-r7

Error 15: File not found


My /boot/grub/menu.lst looks like

Quote:

default 0
timeout 30

title Gentoo Linux
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.27-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 vga=0x318 video=vesafb:mtrr:3,ywrap
initrd /boot/initramfs-genkernel-x86-2.6.27-gentoo-r7


If I comment out the initrd line, the system starts to boot but then I get a kernel panic.

Quote:

No filesystem could mount root, tried:
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (0,0)


The root system is on /dev/sda7 and the /boot partition is on /dev/sda10.

Anyone with any ideas?

EDIT: As a measure i will try referencing /initramfs... although last i check the /boot partition had a symlink for the directory boot.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Jan 13, 2009 10:59 pm    Post subject: Reply with quote

Quote:
The root system is on /dev/sda7 and the /boot partition is on /dev/sda10
is incorrect.

The results show /boot at /dev/sda7 and that leads to the guess that / is at /dev/sda10:

try:
Quote:
default 0
timeout 30

title Gentoo Linux
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.27-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda10 vga=0x318 video=vesafb:mtrr:3,ywrap
initrd /boot/initramfs-genkernel-x86-2.6.27-gentoo-r7


If further research needed:
boot to the grub menu:
then enter c for grub command line, then:
Code:
find /boot/initramfs-genkernel-x86-2.6.27-gentoo-r7 #should return (hd0,6)
find /boot/kernel-genkernel-x86-2.6.27-gentoo-r7 #should return (hd0,6)
find /etc/make.conf #should return (hd0,9)

then enter escape twice to return to the boot menu
arrow to the bad choice
enter e to edit it
down arrow to the kernel line
enter e to edit it
change sda7 to sda10
enter to save
enter b to boot
fix grub.conf[/code]
down arrow to the kernel line
Back to top
View user's profile Send private message
milomak
Apprentice
Apprentice


Joined: 10 Apr 2008
Posts: 287

PostPosted: Wed Jan 14, 2009 4:15 am    Post subject: Reply with quote

I really do feel sheepish. of course root should point to where the files (sda10 or hd(0,9)) and real_root should point to where / is located ie /dev/sda7

EDIT: This was the answer. Instead of the root(hdx,y) command pointing at the boot partition (which is a seperate device), it was pointing at the root partition.
Back to top
View user's profile Send private message
addr1
n00b
n00b


Joined: 15 Nov 2008
Posts: 31

PostPosted: Fri Jan 16, 2009 11:53 am    Post subject: 1st boot error Reply with quote

I get this error:

ROOT-NFS: No NFS server available
Cannot open root device sda12
Please append correct "root=" boot option

Grub:
Code:
title Gentoo (sda12) 2.6.27-gentoo-r7
root (hd0,11)
kernel /boot/kernel-2.6.27-gentoo-r7 root=/dev/sda12



fstab:
Code:
/dev/sda12      /      ext3      defaults,noatime      0 1
/dev/sda13              /home           ext3       defaults,noatime    0 1
/dev/sda2      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 16, 2009 2:02 pm    Post subject: Reply with quote

addr1,

The kernel loaded but it looks like it cannot communicate with your hard drive.

Please post your lspci output.
_________________
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
addr1
n00b
n00b


Joined: 15 Nov 2008
Posts: 31

PostPosted: Fri Jan 16, 2009 7:00 pm    Post subject: Reply with quote

Code:
bash-3.2# lspci
00:00.0 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C51 Memory Controller 0 (rev a2)
00:00.2 RAM memory: nVidia Corporation C51 Memory Controller 1 (rev a2)
00:00.3 RAM memory: nVidia Corporation C51 Memory Controller 5 (rev a2)
00:00.4 RAM memory: nVidia Corporation C51 Memory Controller 4 (rev a2)
00:00.5 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.6 RAM memory: nVidia Corporation C51 Memory Controller 3 (rev a2)
00:00.7 RAM memory: nVidia Corporation C51 Memory Controller 2 (rev a2)
00:05.0 VGA compatible controller: nVidia Corporation C51G [GeForce 6100] (rev a2)
00:09.0 RAM memory: nVidia Corporation MCP51 Host Bridge (rev a2)
00:0a.0 ISA bridge: nVidia Corporation MCP51 LPC Bridge (rev a3)
00:0a.1 SMBus: nVidia Corporation MCP51 SMBus (rev a3)
00:0a.2 RAM memory: nVidia Corporation MCP51 Memory Controller 0 (rev a3)
00:0b.0 USB Controller: nVidia Corporation MCP51 USB Controller (rev a3)
00:0b.1 USB Controller: nVidia Corporation MCP51 USB Controller (rev a3)
00:0d.0 IDE interface: nVidia Corporation MCP51 IDE (rev a1)
00:0e.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1)
00:0f.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1)
00:10.0 PCI bridge: nVidia Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Fri Jan 16, 2009 8:02 pm    Post subject: Reply with quote

boot cd, then
Code:
mount /dev/sda12 /mnt/gentoo
cd /mnt/gentoo/usr/src/linux
cat .config | grep -i sata_nv


If the result does not include:
Quote:
CONFIG_SATA_NV=y


a kernel reconfiguration and recompile is needed

Device Drivers --->
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers -->
--- Serial ATA (prod) and Parallel ATA (experimental) drivers
[*] ATA ACPI Support
[*] SATA Port Multiplier support
<*> AHCI SATA support
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
<*> NVIDIA SATA support
Back to top
View user's profile Send private message
addr1
n00b
n00b


Joined: 15 Nov 2008
Posts: 31

PostPosted: Fri Jan 16, 2009 10:13 pm    Post subject: Reply with quote

Yes it says 'SATA_NV is not set.

How do I open the ncurses based configuration menu to recompile the kernel? Make menuconfig gives an error.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 16, 2009 11:00 pm    Post subject: Reply with quote

addr1,

You need to get into your chroot to rebuild and reinstall the kernel. Then
Code:
cd /usr/src/linux
make menuconfig

_________________
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
addr1
n00b
n00b


Joined: 15 Nov 2008
Posts: 31

PostPosted: Sat Jan 17, 2009 7:35 am    Post subject: Reply with quote

Thanks.
I have recompiled the kernel with NVIDIA SATA support but I still get the same error messages as in my first post when I try to boot.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jan 17, 2009 2:15 pm    Post subject: Reply with quote

addr1,

You need the SCSI and SATA options built in as <*> not loadable modules <M>, as there is nowhere to load the modules from.
You also need the driver for your root filesystem built in.

I suspect you are still booting your old kernel if you get the same error. Its very easy to make a mess of copying the bzImage file to /boot.
e.g. by not mounting boot, by having a typo in the filename in /boot.
Look at your own
Code:
ls -l /boot
output and make a note of the most recent kernel filename. Check the file timestamp.
Is it when you made your kernel last ?

Now look in /boot/grub/grub.conf and check the kernel file name you noted above with the file name on the kernel line.
_________________
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
addr1
n00b
n00b


Joined: 15 Nov 2008
Posts: 31

PostPosted: Sat Jan 17, 2009 8:31 pm    Post subject: Reply with quote

I've got it now.
I hadn't mis-typed anyhing in copying over the bzImage, I hadn't done it at all! (It was 3:30 in the morning).

Thanks for your patience and expertise.


PS Are you old enough to have heard 'The Goon Show' live?

I am! I have all their shows on audio tape and even wih the corny 'musical interlude' it remains the funniest thing I have encountered in my life. Neddy Seagoon, Eccles et al!
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Jan 18, 2009 2:01 pm    Post subject: Reply with quote

milomak wrote:
I really do feel sheepish. of course root should point to where the files (sda10 or hd(0,9)) and real_root should point to where / is located ie /dev/sda7

EDIT: This was the answer. Instead of the root(hdx,y) command pointing at the boot partition (which is a seperate device), it was pointing at the root partition.


Yes that's a pretty classic mistake. It was rather unfortunate choice of nomenclature to have a root command as well as the root= argument to the kernel command. This causes much confusion.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Jan 18, 2009 2:33 pm    Post subject: Reply with quote

Hi Neddy,

where is the full doc for grub? This has always been a mistery to me when ever I need to thoroughly check something.

man grub tells me:
Quote:
DESCRIPTION
Enter the GRand Unified Bootloader command shell.

--batch
turn on batch mode for non-interactive use

--boot-drive=DRIVE
specify stage2 boot_drive [default=0x0]

--config-file=FILE
specify stage2 config_file [default=/boot/grub/menu.lst]

--device-map=FILE
use the device map file FILE

--help display this message and exit

--hold wait until a debugger will attach

--install-partition=PAR
specify stage2 install_partition [default=0x20000]


but NOwhere can I find what "use the device map file FILE" really does , how does it "use" it? [That example's not the issue, I want the doc].

info man gives more but I can't find any explaination of what these command line options do. "specify" this , "use" that is actually pretty meaningless unless one knows the effect of specifying the thing concerned.

From your thorough explaination of the boot process a couple of pages back I now understand (guess) what some of those are about but how did you find out?

Is this one of those cases where "the source is the documentation"?

Thx.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sun Jan 18, 2009 4:03 pm    Post subject: Reply with quote

http://www.gnu.org/software/grub/manual/grub.html is as good as it gets I think.
Back to top
View user's profile Send private message
RusBog
n00b
n00b


Joined: 16 Jan 2009
Posts: 8

PostPosted: Sun Jan 18, 2009 7:50 pm    Post subject: Reply with quote

Hi, everybody!
I have decided to install Linux. Cause, I'm complete newbie, I have decide to install Gentoo from LiveCD with GTK+ interface. The installation process finished successfully, but when I rebooted it, I got only a grub command line. After some researching, I was able to boot into windows with:
Code:
rootnoverify(hd0,0)
makeactive
chainloader +1
boot

I have tried to boot into Gentoo with:
Code:
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7
initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

but already after kernel /boot/... I get an error message:
Code:
"Error 2: Bad File or directory type"

My partitions are:
sda1 - Windows XP (Primary NTFS C)
sda5 - Windows XP (Logical NTFS D)
sda6 - Linux Swap (Logical)
sda7 - Linux EXT3 (Logical)

If I try root (hd0, -> TAB, I get this output:
Code:
root (hd0, [TAB]
 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num  5,  Filesystem type unknown, partition type 0x82
   Partition num: 6,  Filesystem type is ext2fs, partition type 0x83

If I try setup(hdo,6), I get this output:
Code:
setup (hd0,6)
 Checking if “/boot/grub/stage1” exists… no
 Checking if “/grub/stage1” exists… no

What is wrong with my installation?

P.S. I defined the sda7 to be mount point for /
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sun Jan 18, 2009 8:33 pm    Post subject: Reply with quote

boot the live cd with nox option then run
Code:
tune2fs -l /dev/sda7 | grep "Inode size"

if the return is 256, you will need to enter the chroot, emerge an up to date grub (version 0.97-r6), (which is capable of reading ext2/3fs with inode size: 256) and then setup grub again with the updated stage files.
Extracted from the gentoo handbook:
Code:
mount /dev/sda7 /mnt/gentoo
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
emerge grub
grub
root (hd0,6) # should return file system type
setup(hd0)  # should tell you that it embedded stage 1.5
quit
Back to top
View user's profile Send private message
RusBog
n00b
n00b


Joined: 16 Jan 2009
Posts: 8

PostPosted: Sun Jan 18, 2009 9:31 pm    Post subject: Reply with quote

It looks like it worked as expected, till I insert:
Code:
setup (hd0)

What I'm getting as output is:
Code:
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

But as far as I can see from this output there IS a /boot/grub/stage1:
Code:
(chroot) livecd / # cd boot/grub
(chroot) livecd grub # dir
device.map     grub.conf    minix_stage1_5     stage2.old
e2fs_stage1_5  grub.conf.sample  reiserfs_stage1_5  stage2_eltorito
fat_stage1_5   iso9660_stage1_5  splash.xpm.gz       ufs2_stage1_5
ffs_stage1_5   jfs_stage1_5    stage1          vstafs_stage1_5
glidevice.map  menu.lst       stage2          xfs_stage1_5

Found another command, maybe this will be useful:
Code:
(chroot) livecd / # fdisk -lu

Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312579695 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xdc3edc3e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    41945714    20972826    7  HPFS/NTFS
/dev/sda2        41945715   312576704   135315495    5  Extended
/dev/sda5        41945778   251754614   104904418+   7  HPFS/NTFS
/dev/sda6       251754678   252750644      497983+  82  Linux swap / Solaris
/dev/sda7   *   252750708   312576704    29912998+  83  Linux

Please, help me!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jan 18, 2009 10:42 pm    Post subject: Reply with quote

RusBog,

Please help us to help you, post the information that DONAHUE asked for.
Code:
tune2fs -l /dev/sda7 | grep "Inode size"

_________________
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
RusBog
n00b
n00b


Joined: 16 Jan 2009
Posts: 8

PostPosted: Mon Jan 19, 2009 6:19 am    Post subject: Reply with quote

Sorry, I forgot to answer this question:
Code:
livecd ~ # tune2fs -l /dev/sda7 | grep "Inode size"
Inode size:        256

After that, I have done what DONAHUE has advised me, but as I said, was stuck at
Code:
setup (hd0)
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Mon Jan 19, 2009 10:49 am    Post subject: Reply with quote

RusBog wrote:
It looks like it worked as expected, till I insert:
Code:
setup (hd0)

What I'm getting as output is:
Code:
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no



Could you check that inside boot, you have a link named boot pointing to the current directory ?
Code:

cd /boot
ls -l
lrwxrwxrwx 1 root root    1 Dec 27 19:17 boot -> .


If not, you should create it :
Code:

cd /boot
ln -s boot .

_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Mon Jan 19, 2009 2:52 pm    Post subject: Reply with quote

Sorry, I forgot to tell you to update portage with emerge --sync before emerging grub; so enter the chroot and run:

Code:
emerge --sync
emerge -av grub


which should return something like:

Quote:
# emerge -av grub

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-boot/grub-0.97-r6 USE="ncurses -custom-cflags -netboot -static" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]


sys-boot/grub-0.97-r6 being the critical part.

If you get 97.6 or greater say yes, allow grub to emerge, then run:
Code:
grub
root (hd0,6) # should return file system type
setup(hd0)  # should tell you that it embedded stage 1.5
quit
[/code]

and reboot should succeed.
Back to top
View user's profile Send private message
RusBog
n00b
n00b


Joined: 16 Jan 2009
Posts: 8

PostPosted: Mon Jan 19, 2009 8:20 pm    Post subject: Reply with quote

It works!! Thank you very-very much!
(But now I have another problem - when I log-in, I have a strange environment with some buttons, and only valuable option is opening console. I think, it isn't gnome environment. What is wrong, and what is the right topic to ask for help?)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jan 19, 2009 8:49 pm    Post subject: Reply with quote

RusBog,

Try a post in Desktop Environments. There are several graphical log in managers and I cannot tell which one you have.
_________________
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
aegbert
n00b
n00b


Joined: 02 Feb 2009
Posts: 1

PostPosted: Mon Feb 02, 2009 3:01 pm    Post subject: Reply with quote

I do not know if this will help or not, but another option would be to turn off the hard drive probing in grub at start.

Add <drive>=noprobe to kernel line
i.e. hda=noprobe

I found this information at this location
http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 29, 30, 31  Next
Page 11 of 31

 
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