Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
block device error
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Thu Feb 08, 2007 4:07 pm    Post subject: Reply with quote

It's mounting the root filesystem, the boot partition, /proc, chrooting and then
Code:
USE="-doc symlink" emerge =gentoo-sources-2.6.17-r8
zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
genkernel all
The same sequence as when you first compiled it, just the explicit version number for gentoo-sources.

The commands for mounting, chrooting and so on have been given above for editing lilo.conf and running /sbin/lilo
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 3:53 pm    Post subject: Reply with quote

ok this is what i did i deleted vista :D :lol: and i'm installing gentoo right now i have to compile the kernel now but i need some help so it doesnt go wrong this time :lol: .

here my new partition table:

Code:
sdb1 = /boot
sdb2= /swap
sdb3 = /root


i want to know should i use genkernel or genkernel --menuconfig ?
and should i use lilo or grub ? i know this is a choice of the user but you know more of linux then me so could you tell me ?

thx in advance,
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Feb 09, 2007 5:19 pm    Post subject: Reply with quote

a-slayeriq wrote:
here my new partition table:
Code:
sdb1 = /boot
sdb2= /swap
sdb3 = /root

i want to know should i use genkernel or genkernel --menuconfig ?
and should i use lilo or grub ? i know this is a choice of the user but you know more of linux then me so could you tell me ?
I should use genkernel as kernel configuration is an extra burden you could do without at this stage: just make sure you get the 2.6.17-r7 gentoo sources so it will boot.

There are probably more people here that know about GRUB than LILO so you should find it easier to get help if you choose GRUB.

You say you are installing on sdb, what is sda? The boot loader will usually be installed on sda unless the BIOS sees the disks in a different order.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 5:34 pm    Post subject: Reply with quote

how can i see what's sda
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 5:52 pm    Post subject: Reply with quote

ok i'm done, i installed grub and now everything loads nlyi get this

VFS: insert root floppy and press enter
and if i press enter i get kernel panic

i found out the error is becouse i didnt compile my sata drivers i want to recompile now how do i recomile my kernel without screwing up my system
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Feb 09, 2007 6:14 pm    Post subject: Reply with quote

a-slayeriq wrote:
ok i'm done, i installed grub and now everything loads nlyi get this

VFS: insert root floppy and press enter
and if i press enter i get kernel panic

i found out the error is becouse i didnt compile my sata drivers i want to recompile now how do i recomile my kernel without screwing up my system
Well done, you're on the way to becoming a Linux expert: it's all in solving your own problems by finding what others have done and applying it to your own situation.

I've been looking though the posts too: here's one which seems to cover it: look at NeddySeagoon's replies especially https://forums.gentoo.org/viewtopic-p-3051763.html#3051763. You will also find some quite easy to follow stuff about adding the SATA drivers in the KC13 FAQ under "2) Kernel panic — VFS error:" which also has a link (in Resources) to another FAQ on configuring and compiling a kernel.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Feb 09, 2007 6:16 pm    Post subject: Reply with quote

a-slayeriq wrote:
how can i see what's sda
Well, basicly, have you got two SATA disks? If so, what have you got on the other one?

Two SATA disks because if you only had one it would usually be called sda.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 6:25 pm    Post subject: Reply with quote

Quote:
Well done, you're on the way to becoming a Linux expert: it's all in solving your own problems by finding what others have done and applying it to your own situation.


thanks :D

i read https://forums.gentoo.org/viewtopic-p-3051763.html#3051763 but there's not explained how to rebuild the kernel just how to resume compiling. But if i just do make menuconfig and then make && make modules_install will that recompile ?

and i just have 1 harddrive in my pc...
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Feb 09, 2007 7:05 pm    Post subject: Reply with quote

a-slayeriq wrote:
i read https://forums.gentoo.org/viewtopic-p-3051763.html#3051763 but there's not explained how to rebuild the kernel just how to resume compiling. But if i just do make menuconfig and then make && make modules_install will that recompile ?
Just to dot the i's and cross the t's
  • chroot as before — NeddySeagoon has a guide for this too NeddySeagoons' Rough Guide to Chrooting except you will have to replace hda by sda, that is, /boot is /dev/sda1 where it is hda1 in the guide
  • cd to your kernel source directory
    Code:
    cd /usr/src/linux
  • Run
    Code:
    make menuconfig
    and make the changes to the kernel configuration: there are brief navigation instructions at the top of the first frame
  • Leave menuconfig by selecting Exit and selecting "Yes" to save your new configuration
  • Copy the config to /boot under a name which includes the kernel version, for instance
    Code:
    cp -pv .config /boot/config-2.6.19-gentoo-r5
  • Run
    Code:
    make mrproper
    to clean out all the old stuff and start afresh
  • Copy the saved config back in
    Code:
    cp -pv /boot/config-2.6.19-gentoo-r5 .config
  • Run
    Code:
    make && make modules_install
  • When compilation is done, save your new kernel to /boot
    Code:
    cp -pv arch/i386/boot/bzimage /boot/kernel-2.6.19-gentoo-r5
  • Check that your grub.conf has an entry for the new kernel, if not, add a new section like
    Code:
    title 2006.1 Gentoo Linux 2.6.19-r5
            root (hd0,0)
            kernel /boot/kernel-2.6.19-gentoo-r5
    Make sure that the "root" line is correct for your system
  • Exit from the chroot
  • Unmount /mnt/gentoo/boot, /mnt/gentoo and /proc
  • Now you should be able to reboot

a-slayeriq wrote:
and i just have 1 harddrive in my pc...
and the CD/DVD-ROM drive isn't SATA?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 7:13 pm    Post subject: Reply with quote

thanks i'm trying it right now an i think my cd-rom is sata
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Feb 09, 2007 7:21 pm    Post subject: Reply with quote

a-slayeriq wrote:
i think my cd-rom is sata
Solves the mystery!
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 7:30 pm    Post subject: Reply with quote

Quote:
Solves the mystery!


hehe :lol:

btw my kernel is recompiling now i added some sata drivers i'm not sure they're gonna work.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 7:52 pm    Post subject: Reply with quote

rebuilding went perfect only now i get this

Code:

Root-NFS: No NFS server avaible, giving up.
VFS: unable to mount root fs via NFS, trying floppy.
VFS: insert root floppy and press enter
VFS: Cannot open root device "sda3" or unknown-block(2,0)
Please append a correct "root=" boot option.


and if i press enter i get kernel panic.
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Feb 09, 2007 8:09 pm    Post subject: Reply with quote

"unknown-block(2,0)" is the floppy drive — it looks as though, for some reason, you have CONFIG_ROOT_NFS selected in your .config and this is causing the error — you have got the SATA support compiled in, not as modules haven't you? If you use "m" to select the options like "< >" you will get a module, you have to use "y" instead. Could you check the settings you have against those recommended in KC13?

One thing that hasn't been shown is the SATA chipset you have: can you run lspci when booted into the install cd and post the lines with either IDE or SATA in them, please?

Could you also post the version of the kernel sources that you are compiling?

Back to NFS_ROOT: when you run "make menuconfig" again, could you navigate to
Code:
  -> File systems
     -> Network File Systems
and change
Code:
< > NFS file system support
to have the "< >" empty?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 8:38 pm    Post subject: Reply with quote

i dont have a floppy drive. And i selected all my drivers with y not with m :D

here the output of lspci:

Code:
IDE interface: Intel Corporation 82801EB/FBM/FR/FW/FWR (ICH6 family) IDE Controller (rev 03)
IDE interface: Intel Corporation 82801FW (ICH6R/ICH6RW) Sata controller (rev 03)


and i dont know for sure if < > NFS file system support was enabled. Is NFS file system support not enabled by default ?
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Feb 09, 2007 9:06 pm    Post subject: Reply with quote

a-slayeriq wrote:
i dont have a floppy drive. And i selected all my drivers with y not with m :D

here the output of lspci:

Code:
IDE interface: Intel Corporation 82801EB/FBM/FR/FW/FWR (ICH6 family) IDE Controller (rev 03)
IDE interface: Intel Corporation 82801FW (ICH6R/ICH6RW) Sata controller (rev 03)
then you should have, as well as
Code:
   Device Drivers  --->
   SCSI device support  --->
<*>   SCSI disk support
     SCSI low-level drivers  --->
<*> Serial ATA (SATA) support
Code:
<*>   Intel PIIX/ICH SATA support


a-slayeriq wrote:
and i dont know for sure if < > NFS file system support was enabled. Is NFS file system support not enabled by default ?
Well, I didn't look carefully enough to see when the CONFIG_ROOT_NFS option was enabled. You can check very quickly by cd'ing to your kernel source directory and running
Code:
grep NFS .config
If it doesn't show ROOT_NFS then it's OK. It might show "CONFIG_NFS_FS=m" as this seems to be a default. If it shows ROOT_NFS then you will have to change "< > NFS file system support" to blank and that will remove it.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Fri Feb 09, 2007 9:42 pm    Post subject: Reply with quote

i have checked NFS and it was enabled so it should work the only thing is i cant find

Code:
<*> Serial ATA (SATA) support


i searched in

Code:
SCSI low-level drivers 


i have kernel-2.6.19-gentoo-r5
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Sat Feb 10, 2007 10:31 am    Post subject: Reply with quote

The settings were copied from the KC13 FAQ — but for kernels 2.6.18 and below. Again from KC13, for 2.6.19 you still need
Code:
   Device Drivers  --->
   SCSI device support  --->
<*>   SCSI disk support
You don't need anything under
Code:
SCSI low-level drivers  --->
but you now need
Code:
Serial ATA (prod) and Parallel ATA (experimental) drivers  --->
<*> ATA device support
<*>   AHCI SATA support
<*>   Intel PIIX/ICH SATA support

You don't need NFS support unless you have another machine you are going to mount partitions from over NFS. As you are going to be reconfiguring your kernel, you can remove it if you like.

You also need to have filesystem support compiled in, see KC13 for that.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Sat Feb 10, 2007 11:37 am    Post subject: Reply with quote

ok i disabled NFS and i enabled

Code:

Serial ATA (prod) and Parallel ATA (experimental) drivers  --->
<*> ATA device support
<*>   AHCI SATA support
<*>   Intel PIIX/ICH SATA support


and now i get this

Code:
VFS:Unable to mount sdb3 fs on unknown-block(0,0)
Please append a correct "root=" boot option


drivers again :cry:
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Sat Feb 10, 2007 12:06 pm    Post subject: Reply with quote

i changed my grub.conf to

Code:
default 0
timeout 30

title=Gentoo Linux 2.6.19-r5
root (hd0,0)
kernel /boot/kernel-2.6.19-gentoo-r5 root=/dev/sda3 not sdb but sda


and it worked

thx wynn for all your help man i think your gonna see aloot of topics from me :lol: :D

but now i'm gonna celebrate now 8) :lol: :D
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Sat Feb 10, 2007 12:16 pm    Post subject: Reply with quote

Could you upload your kernel .config file (/mnt/gentoo/usr/src/linux/.config when booted up to the installcd) and /var/log/messages to http://pastebin.ca and post the URIs you get back?

Instructions are here.

If you go to the bottom of the first page, you will be able to select a shorter time for the files to stay there, a week should do it.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Sat Feb 10, 2007 12:54 pm    Post subject: Reply with quote

everything works now exept that i have a azerty keyboard and i would like to set it to azerty only i have acces deniend to /etc/conf.d/keymaps. and i'm logged in as root
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Sat Feb 10, 2007 3:47 pm    Post subject: Reply with quote

a-slayeriq wrote:
everything works now exept that i have a azerty keyboard and i would like to set it to azerty only i have acces deniend to /etc/conf.d/keymaps. and i'm logged in as root
I'm very pleased — and a lot of it is down to your own hard work, too.

Can you post the output from
Code:
ls -alF /etc/conf.d
and
Code:
mount
please?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
a-slayeriq
n00b
n00b


Joined: 06 Feb 2007
Posts: 33

PostPosted: Sat Feb 10, 2007 3:58 pm    Post subject: Reply with quote

oke i'm installing kde atm i'l post it when its done :)
Back to top
View user's profile Send private message
mcorsi
n00b
n00b


Joined: 25 Jan 2007
Posts: 64

PostPosted: Mon Feb 12, 2007 10:46 pm    Post subject: Reply with quote

Wynn - Thanks so much for all the help you posted on this thread. I have been plagued for over a week with misc. errors all based around the lack of SATA support when using genkernel (defaults). Since most systems come with SATA drives, do you think the instructions should be ammended to reflect the lack of SATA support in a genkernel default install? Anyhow, thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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