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

Goto page Previous  1, 2, 3 ... 23, 24, 25 ... 28, 29, 30  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Jan 21, 2010 2:13 am    Post subject: Reply with quote

Ok then, check for these:
Code:
 # egrep '^[^#].*(PATA|SCSI)' /mnt/gentoo/usr/src/linux/.config
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SCSI_WAIT_SCAN=m
CONFIG_PATA_ATIIXP=m
Back to top
View user's profile Send private message
bgcamroux
n00b
n00b


Joined: 20 Jan 2010
Posts: 7
Location: Calgary, AB, Canada

PostPosted: Thu Jan 21, 2010 2:45 am    Post subject: Reply with quote

Mike Hunt wrote:
Ok then, check for these:
Code:
 # egrep '^[^#].*(PATA|SCSI)' /mnt/gentoo/usr/src/linux/.config
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SCSI_WAIT_SCAN=m
CONFIG_PATA_ATIIXP=m


I checked, and the last one was not there at all. Went into make menuconfig for the kernel and put it in.

When I compiled the kernel, I notice this message at the end:
Code:
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  OBJCOPY arch/x86/boot/vmlinux.bin
  BUILD   arch/x86/boot/bzImage
Root device is (8, 2)
Setup is 12460 bytes (padded to 12800 bytes).
System is 4007 kB
CRC c9cc78cf
Kernel: arch/x86/boot/bzImage is ready  (#2)
  Building modules, stage 2.
  MODPOST 4 modules


What's it mean that root device is (8, 2)? Why is that? I'm going to give it a try with the new kernel, but won't hold my breath ;) Any thoughts?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Jan 21, 2010 2:59 am    Post subject: Reply with quote

bgcamroux wrote:
Code:
VFS: Cannot open root device "sda2" or unknown-block (8,2)
     Append correct "root=" boot option


Well, we know that it's the same as what this says. It means that your / in on device /dev/sda2

Remember to run make modules_install, and check that your /boot is mounted before copying your new kernel over.

Then exit the chroot, unmount your partitions and reboot.


Last edited by Mike Hunt on Thu Jan 21, 2010 3:01 am; edited 1 time in total
Back to top
View user's profile Send private message
bgcamroux
n00b
n00b


Joined: 20 Jan 2010
Posts: 7
Location: Calgary, AB, Canada

PostPosted: Thu Jan 21, 2010 3:00 am    Post subject: Reply with quote

Quote:
I'm going to give it a try with the new kernel, but won't hold my breath ;)

Okay, so I've rebooted and this is what I see on my screen at the moment:
Code:
[    1.469398] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)
[    1.469537] Pid: 1, comm: swapper Not tainted 2.6.31-gentoo-r6colobus #2
[    1.469625] Call Trace:
[    1.469715]  [<ffffffff81562772>] panic+0xa0/0x14b
.................................... ? printk_all_partitions+0x1de/0x1f0
.................................... ? sys_mount+0xab/0xc1
.................................... mount_block_root+0x1d3/0x1ea
.................................... mount_root+0x79/0x99
.................................... prepare_namespace+0x170/0x19d
.................................... kernel_init+0x1a9/0x1b9
.................................... child_rip+0xa/0x20
.................................... ? kernel_init+0x0/0x1b9
.................................... ? child_rip+0x0/0x20

(The series of dots are addresses, I'm guessing, just like what's after the Call Trace: line.) Does this mean anything to anyone? Note that previously it had said "Append correct "root=" boot option", which is no longer there....
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Jan 21, 2010 3:09 am    Post subject: Reply with quote

Ok, then one more to check:
Code:
# grep BLK_DEV_SD /usr/src/linux/.config
CONFIG_BLK_DEV_SD=y
Back to top
View user's profile Send private message
bgcamroux
n00b
n00b


Joined: 20 Jan 2010
Posts: 7
Location: Calgary, AB, Canada

PostPosted: Thu Jan 21, 2010 3:21 am    Post subject: Reply with quote

Mike Hunt wrote:
Ok, then one more to check:
Code:
# grep BLK_DEV_SD /usr/src/linux/.config
CONFIG_BLK_DEV_SD=y

I get the same result. I really am at a loss :(
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Jan 21, 2010 3:31 am    Post subject: Reply with quote

Well ok then, let's go at it another way.

Pastebin the kernel.config on http://pastebin.com
and post the URL here,

and paste the output of lspci -n here please.

BTW, are you sure that you formatted /dev/sda2 as ext3 ? Check with blkid /dev/sda2
Back to top
View user's profile Send private message
DONAHUE
Advocate
Advocate


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

PostPosted: Thu Jan 21, 2010 3:51 am    Post subject: Reply with quote

On reboot at the grub menu enter the edit mode and edit the kernel line to root=/dev/sdb2 and try to boot. If that fails repeat to try root=/dev/sdc2. Possible the cd and the install kernels set different device names. Can you provide the lines above the vfs message if the above fails? Camera or pen and paper.

good kernel panic problem summary

Fixed link tag, it had been lacking the necessary '='. -- desultory
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Jan 21, 2010 1:39 pm    Post subject: Reply with quote

In fact, if there is only one Gentoo installation only on that machine and no other operating systems, then it should boot without an appended root=/dev/something on the kernel line. This is tested and known to work with grub in cases when there is only the 1 Gentoo OS.
Code:
# cat grub.conf

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

title Gentoo Colobus
root (hd0,0)
kernel /boot/kernel-colobus


And look at this post for a very good explanation of how to know what to select/not select in the kernel configuration.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 21, 2010 7:10 pm    Post subject: Reply with quote

bgcamroux,

This part of your error message
Code:
VFS: Unable to mount root fs on unknown-block(8,2)
refers to the kernel major,minor device numbers that the kernel is trying to mount as root. 8,3 means /dev/sda3. See the file /usr/src/linux/Documentation/devices.txt

As you have sensible numbers there, we can tell that the kernel can find your drive, so your hardware set up in the kernel is ok.
You get numbers like (0,0) or (0,2) if its not ... but the kernel cannot read the filesystem found on /dev/sda3
The filesystem driver must be compiled as <*> since the kernel cannot load modules until the root filesystem is mounted.

What command did you use to make a filesystem on /dev/sda3 and is that filesystem made in your 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
View user's profile Send private message
robs227
n00b
n00b


Joined: 08 Nov 2009
Posts: 34

PostPosted: Thu Jan 21, 2010 8:56 pm    Post subject: Reply with quote

Hi I'm a little unclear about the framebuffer portion of grub. My kernel is built off one of Pappy's Seeds and I added the framebuffer support for my video card (UniChrome Pro), I also added in the the section video= to the end of the kernel command which is said to do in the install guide for framebuffer support. But I do not get the bootsplash screen but rather text based grub option list. Here is what my grub.config looks like:

Graphics card is build into my epia cn10000eg MoBo it's CN700/P4M800 Pro/P4M800 CE/VN800 [S3 UniChrome Pro]


http://dpaste.com/148605/

EDIT hold on just noticed that splash was commented out. Sorry
Back to top
View user's profile Send private message
ROram3
n00b
n00b


Joined: 14 Jan 2010
Posts: 1

PostPosted: Fri Jan 22, 2010 1:04 am    Post subject: Boot from jfs partition? Reply with quote

I formatted the boot partition in JFS, and included all the JFS stuff in the kernel options. It wont boot. Am I doing something fundamentally wrong? Can I boot from a JFS partition?
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 3592
Location: Houston, Republic of Texas

PostPosted: Fri Jan 22, 2010 1:23 am    Post subject: Reply with quote

boot as JFS is a bad idea - and there would be no need whatsoever to have boot be JFS.

a few googles and you find bits like http://www-uxsup.csx.cam.ac.uk/pub/doc/suse/sles9/adminguide-sles9/ch08s04.html

go with ext2. grub makes no use of a journal, and as boot is rarely ever mounted anyway, being finicky about what fs you put on there is pointless.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 22, 2010 8:27 pm    Post subject: Reply with quote

ROram3,

JFS should work - grub has a jfs_stage1.5 file
_________________
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
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1036
Location: Hilton Head, SC

PostPosted: Thu Feb 04, 2010 5:52 am    Post subject: Grub - Error 15: File not found SOLVED Reply with quote

Ok so it's been a while since I installed grub and I am not sure if I did something wrong the first time because I got a kernel hang. My disk partitions are simple:

/dev/hda1 - /boot
/dev/hda2- /

In gub I first did:

grub> root (hd0,0)

grub> setup (hd0)

This gave me no errors but the system hung at boot - now I am back in and I tried this:
Code:

grub> root (hd0,1)
 Filesystem type is xfs, partition type 0x83

grub> setup (hd0)
  Checking it "/boot/grub/stage" exists... no
   Checking if "/grub/stage1" exists... no

Error 15: File not found


Did I do it right the first time or is something else wrong here?
_________________
www.LinuxDNA.com
http://groups.google.com/group/linuxdna
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds


Last edited by Thaidog on Thu Feb 04, 2010 9:26 am; edited 1 time in total
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1734
Location: Kentucky

PostPosted: Thu Feb 04, 2010 5:56 am    Post subject: Reply with quote

Is /boot mounted? You can of course physically check for the existence of those files yourself.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1036
Location: Hilton Head, SC

PostPosted: Thu Feb 04, 2010 5:58 am    Post subject: Reply with quote

EzInKy wrote:
Is /boot mounted? You can of course physically check for the existence of those files yourself.


You mean back in the install chroot now? Yes.... and the first grub session made the stage1 & 2 files no problem.
_________________
www.LinuxDNA.com
http://groups.google.com/group/linuxdna
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1734
Location: Kentucky

PostPosted: Thu Feb 04, 2010 6:02 am    Post subject: Reply with quote

Does...

Code:

ls /boot/grub


...show the files as being present?
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1036
Location: Hilton Head, SC

PostPosted: Thu Feb 04, 2010 6:03 am    Post subject: Reply with quote

EzInKy wrote:
Does...

Code:

ls /boot/grub


...show the files as being present?


Yeap!
_________________
www.LinuxDNA.com
http://groups.google.com/group/linuxdna
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1734
Location: Kentucky

PostPosted: Thu Feb 04, 2010 6:16 am    Post subject: Reply with quote

Well, as long as you confirmed the files were there and ran grub from within your chroot I'm scratching my head along with you. XFS is an interesting choice for a system drive though.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1036
Location: Hilton Head, SC

PostPosted: Thu Feb 04, 2010 6:24 am    Post subject: Reply with quote

EzInKy wrote:
Well, as long as you confirmed the files were there and ran grub from within your chroot I'm scratching my head along with you. XFS is an interesting choice for a system drive though.


Yeah I use it for the root drive and usually ext for the boot drive. XFS sometimes has trouble with grub as the boot partition. I am thinking this is a kernel config issue... it is a virtual box vm so maybe I got the kernel drivers for the hd/chipset wrong. I'll keep hacking...
_________________
www.LinuxDNA.com
http://groups.google.com/group/linuxdna
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Feb 04, 2010 6:52 am    Post subject: Reply with quote

Run:
Code:
grub
grub> find /grub/stage1
  (hd0,0)

grub> quit

Whatever it outputs is what you need as root(hdX,X) in grub.conf

Now look at
Code:
ls -l /boot

and take note of the exact name of the kernel, it is what you need in grub.conf

Edit /boot/grub/grub.conf

Reboot
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1036
Location: Hilton Head, SC

PostPosted: Thu Feb 04, 2010 8:48 am    Post subject: Reply with quote

It turned out that I compiled the wrong hdd driver. That is good info though Mike I will remember that! :D
_________________
www.LinuxDNA.com
http://groups.google.com/group/linuxdna
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Feb 04, 2010 11:12 am    Post subject: Reply with quote

Merged above thread 9 posts here
_________________
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
hansman
n00b
n00b


Joined: 06 Feb 2010
Posts: 7

PostPosted: Sat Feb 06, 2010 3:55 am    Post subject: grub error: filesystem type unknown Reply with quote

Hello!

I make everything like in the gentoo handbook and get at "grub-install --no-floppy /dev/sda" the error message: the file /boot/grub/stage1 not read correctly
The stage1 file is in the directory /boot/grub/

So I make the manual grub installation and get following error after insert "root (hd0,0)":
Filesystem type unknown, partition type 0x83

I´m shure it´s the right partition, I have no other hard disk devices or solid state devices so it has to be sda1 = hd0,0 (also grub finds with pressing "TAB" no other devices).

I make 3 partitions
The first is my boot partition 32MB big and bootable. ex2 filesystem.


fstab:

/dev/sda1 /boot ext2 defaults 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1
/dev/cdrom.....

grub.conf:

....
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.31-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-2.6.31-gentoo-r6

(the kernels files are at /boot and names are right)

My system:
250 GB usb hard disk
gentoo (amd64) minimal boot cd

Can it has something to do with the drivers for the exernal usb hard disk?

Please, please help me. I´m new at gentoo and working about 6 hours to resolve the problem and don´t get it.
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 Previous  1, 2, 3 ... 23, 24, 25 ... 28, 29, 30  Next
Page 24 of 30

 
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