Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Why I can't find the "/dev file system support" ite
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

PostPosted: Wed Jan 20, 2010 4:11 am    Post subject: [SOLVED] Why I can't find the "/dev file system support Reply with quote

Why I can't see the following items in "File system" sub-item after "make menuconfig"

$> emerge gentoo-sources
$> make menuconfig

File systems --->
[*] /dev file system support (EXPERIMENTAL)
[*] Automatically mount at boot


Last edited by anrs on Thu Jan 21, 2010 7:36 am; edited 2 times in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Jan 20, 2010 4:32 am    Post subject: Reply with quote

Because there isn't.

If you're wondering about the /dev directory, look at the Gentoo udev Guide

If you're doing a new installation, then there is nothing to be concerned with about /dev support, it will all be taken care of if you are following the Gentoo Handbook.
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

PostPosted: Wed Jan 20, 2010 4:54 am    Post subject: Reply with quote

Mike Hunt wrote:
Because there isn't.

If you're wondering about the /dev directory, look at the Gentoo udev Guide

If you're doing a new installation, then there is nothing to be concerned with about /dev support, it will all be taken care of if you are following the Gentoo Handbook.


There isn't???

But someone told me must compile kernel with the "File System--〉Pseudo File System --〉Automatically mount at boot",
if not, when I reboot, I'll have an error:

VFS: cannot open root device "307" or unknown block (3,7)
please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on unknown-block (3,7)
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Jan 20, 2010 5:02 am    Post subject: Reply with quote

Do you have your / partition on /dev/sda7 ?

Reboot the installCD mount your partitions as before, no need to chroot this time, and post the contents of the following please:
  • /mnt/gentoo/boot/grub/grub.conf
  • /mnt/gentoo/etc/fstab

and the output of fdisk -l
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

PostPosted: Wed Jan 20, 2010 5:09 am    Post subject: Reply with quote

Mike Hunt wrote:
Do you have your / partition on /dev/sda7 ?

Reboot the installCD mount your partitions as before, no need to chroot this time, and post the contents of the following please:
    /mnt/gentoo/boot/grub.conf
    /mnt/gentoo/etc/fstab


/dev/sda7 just a sample and fstab/mtab/grub.conf files are proper togther.

actually if I
$> genkernel all
there isn't any error, if I
$> make && make modules_install
there will be a error following:

please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on unknown-blo
...
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Jan 20, 2010 5:43 am    Post subject: Reply with quote

If you're having trouble posting output because you can't copy/paste,
then boot the installCD, mount your partitions and chroot your box, like before, as per the Gentoo Handbook:
Code:
livecd # cd /
livecd / # mount -t proc proc /mnt/gentoo/proc
livecd / # mount -o bind /dev /mnt/gentoo/dev
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update && source /etc/profile

And run:
Code:
emerge wgetpaste

Now run:
Code:
wgetpaste /boot/grub/grub.conf /etc/fstab

And:
Code:
fdisk -l | wgetpaste

And post the URL's here.
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

PostPosted: Wed Jan 20, 2010 5:58 am    Post subject: Reply with quote

I don't think the error reason are configuration files(fstab/mtab/grub.conf) mistakes, because compile by "genkernel all", then I can go into the Gentoo, but if I compile manually, then I can't. ( the configuration files are same ).

And I google for that, other Gentoo users told me should compile with CONFIG_DEVFS=y CONFIG_DEVFS_MOUNT=y, but I don't know sholud put those in which file.
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

PostPosted: Wed Jan 20, 2010 6:39 am    Post subject: Reply with quote

fstab:
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noatime 0 1

grub.conf
title Gentoo Linux
root (hd0,0)
kernel /boot/kernel-2.6.31-gentoo-r6 root=/dev/hda3

$> fdisk -l
/dev/hda1 # ext2 mount to /mnt/gentoo/boot
/dev/hda2 # swap
/dev/hda3 # ext3 mount to /mnt/gentoo
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


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

PostPosted: Wed Jan 20, 2010 9:44 am    Post subject: Reply with quote

a few items to point out

-devfs is dead and gone. udev is its replacement, and then there is devtmpfs which is something different and not to be confused with devfs

-the fact that your drives show as hd* (e.g. /dev/hda) instead of sd* (e.g. /dev/sda) means you are using the old IDE driver, which is "wrong".

Please post your lspci -n output, as well upload your kernel .config to pastebin, and we should be able to advise you.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Jan 20, 2010 1:44 pm    Post subject: Reply with quote

cach0rr0 wrote:

-the fact that your drives show as hd* (e.g. /dev/hda)...


or that he use a kernel with an old driver, more like a livecd :)
and /dev/hda3 # ext3 mount to /mnt/gentoo show it must be that.

But the fstab... is still messy anyway.

But i agree with everyone: devfs is dead and he might have another problem with his kernel.
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

PostPosted: Wed Jan 20, 2010 2:03 pm    Post subject: Reply with quote

cach0rr0 wrote:
a few items to point out

-devfs is dead and gone. udev is its replacement, and then there is devtmpfs which is something different and not to be confused with devfs

-the fact that your drives show as hd* (e.g. /dev/hda) instead of sd* (e.g. /dev/sda) means you are using the old IDE driver, which is "wrong".

Please post your lspci -n output, as well upload your kernel .config to pastebin, and we should be able to advise you.


Yes, my hard disk is old IDE driver, that's why I need the "/dev file system support".
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Jan 20, 2010 2:31 pm    Post subject: Reply with quote

anrs wrote:

Yes, my hard disk is old IDE driver, that's why I need the "/dev file system support".


your hard disk might be old, your hard disk controller might be old and so its driver too, but no drivers will need /dev from the kernel now, as it is deprecated.

But you don't seems to need help to configure a new kernel.
So it seems you know your issue and its solve already, so to answer your real question :

- You must have a kernel version that still support that option, so go to kernel.org and take an old kernel.
- depending on that kernel version you will have: option selectable, option only viewable if you also check "prompt for dev/obsolete drivers" in the kernel, or the option won't even appears. That depends on the kernel version.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Jan 20, 2010 3:19 pm    Post subject: Reply with quote

krinn wrote:
- You must have a kernel version that still support that option, so go to kernel.org and take an old kernel.
- depending on that kernel version you will have: option selectable, option only viewable if you also check "prompt for dev/obsolete drivers" in the kernel, or the option won't even appears. That depends on the kernel version.

I think 2.6.17 and earlier. But will everything else work? Probably not.
It would be better to use the kernel IDE drivers and udev in the usual way.

If your hardware is very old, then to keep it simple, you would just need to configure ATA/ATAPI/MFM/RLL support,
instead of Serial ATA (prod) and Parallel ATA (experimental) drivers, and proceed with the rest as usual.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Wed Jan 20, 2010 3:29 pm    Post subject: Reply with quote

anrs wrote:
I don't think the error reason are configuration files(fstab/mtab/grub.conf) mistakes, because compile by "genkernel all", then I can go into the Gentoo, but if I compile manually, then I can't. ( the configuration files are same ).
That might be the problem.Genkernel produces a kernel that relies on initramrd to boot.
So there may be things compiled as modules that are needed at boot.
Obviously these should be compiled in-kernel.
I never actually used genkernel so I'm not quite sure of this.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

PostPosted: Wed Jan 20, 2010 9:43 pm    Post subject: Reply with quote

krinn wrote:
anrs wrote:

Yes, my hard disk is old IDE driver, that's why I need the "/dev file system support".


your hard disk might be old, your hard disk controller might be old and so its driver too, but no drivers will need /dev from the kernel now, as it is deprecated.

But you don't seems to need help to configure a new kernel.
So it seems you know your issue and its solve already, so to answer your real question :

- You must have a kernel version that still support that option, so go to kernel.org and take an old kernel.
- depending on that kernel version you will have: option selectable, option only viewable if you also check "prompt for dev/obsolete drivers" in the kernel, or the option won't even appears. That depends on the kernel version.


My essential question is if I compile kernel manually on my old IDE disk(include "ATA/ATAPI/MFM/RLL support"), then I can't go into the new Gentoo system, but "genkernel all" can. So, I guest my compile configuration had some problems.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Jan 20, 2010 9:59 pm    Post subject: Reply with quote

Yes. That would be it.

As cach0rr0 requested, pastebin the /usr/src/linux/.config please.
http://pastebin.com

... and the output of lspci -n
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

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

Mike Hunt wrote:
Yes. That would be it.

As cach0rr0 requested, pastebin the /usr/src/linux/.config please.
http://pastebin.com

... and the output of lspci -n


.config: http://pastebin.com/m5545094

lspci output: http://pastebin.com/m1ffd89c2
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

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

lspci output:

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 40)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
00:06.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0b.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller

don't be care of the VirtualBox, I can't go into the Gentoo when I whether in VirtualBox or not.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


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

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

we're specifically interested in lspci -n output, because we need to see the PCI ID's of your devices.

we could make some fairly educated guesses based upon standard lspci output, but we can say very definitively what you need if you post lspci -n
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

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

cach0rr0 wrote:
we're specifically interested in lspci -n output, because we need to see the PCI ID's of your devices.

we could make some fairly educated guesses based upon standard lspci output, but we can say very definitively what you need if you post lspci -n


OK, following is lspci -n outputs:

00:00.0 0600: 8086:1237 (rev 02)
00:01.0 0601: 8086:7000
00:01.1 0101: 8086:7111 (rev 01)
00:02.0 0300: 80ee:beef
00:03.0 0200: 1022:2000 (rev 40)
00:04.0 0880: 80ee:cafe
00:05.0 0401: 8086:2415 (rev 01)
00:06.0 0c03: 106b:003f
00:07.0 0680: 8086:7113 (rev 08)
00:0b.0 0c03: 8086:265c
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


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

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

okie doke...so, there is nothing in your configuration that requires " ATA/ATAPI/MFM/RLL support" to be selected.

You should untick that completely.

Then build CONFIG_ATA_PIIX as a built-in (e.g. not a module - this will be under "Serial ATA (prod) and Parallel ATA (experimental) drivers")
Build PCNET32 as either built-in or module, doesn't matter heaps.
Build SND_INTEL8X0 as a module
Build I2C_PIIX4 as a built-in

The rest of what's there is USB stuff, which should normally be selected by default (EHCI and OHCI)

Make those changes, then build and install your kernel as per usual

If you're having trouble finding any of these, hit the forward slash (the / ) and search for e.g. CONFIG_ATA_PIIX; it should show you the tree you need to go through to find it, as well any dependencies and the "Prompt", which will be what the label is in menuconfig

I would also highly recommend you use one of Pappy's seeds to do your kernel, as well follow his guides (links are in my signature)
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

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

cach0rr0 wrote:
okie doke...so, there is nothing in your configuration that requires " ATA/ATAPI/MFM/RLL support" to be selected.

You should untick that completely.

Then build CONFIG_ATA_PIIX as a built-in (e.g. not a module - this will be under "Serial ATA (prod) and Parallel ATA (experimental) drivers")
Build PCNET32 as either built-in or module, doesn't matter heaps.
Build SND_INTEL8X0 as a module
Build I2C_PIIX4 as a built-in

The rest of what's there is USB stuff, which should normally be selected by default (EHCI and OHCI)

Make those changes, then build and install your kernel as per usual

If you're having trouble finding any of these, hit the forward slash (the / ) and search for e.g. CONFIG_ATA_PIIX; it should show you the tree you need to go through to find it, as well any dependencies and the "Prompt", which will be what the label is in menuconfig

I would also highly recommend you use one of Pappy's seeds to do your kernel, as well follow his guides (links are in my signature)


All you suggested compile configurations all include except I2C_PIIX4 only :?: :?: :?:
When I include the I2C_PIIX4, all wonderful, Gentoo works, thank you very much...


but I have another doubt, How do you know those compile configurations?
:D :D :D
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


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

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

anrs wrote:

All you suggested compile configurations all include except I2C_PIIX4 only :?: :?: :?:
When I include the I2C_PIIX4, all wonderful, Gentoo works, thank you very much...

cool!



anrs wrote:

but I have another doubt, How do you know those compile configurations?
:D :D :D


I took your lspci -n output, and pasted it into the webpage which is the first link in my signature.

That webpage tells you the modules that are needed to support your hardware; note that the module name (example: "piix") is different from the symbol name (example: "CONFIG_ATA_PIIX). Even though that page lists module names, certain things like your SATA/IDE controller need to be built-in and not modules.

I will give you an example - once I saw what driver was needed, I then went into 'make menuconfig', and used the forward slash to search. For example, to find 'piix', I did a forward slash and searched for "PIIX"

Since I know from experience that:

-I DO WANT something under "Serial ATA (prod) and Parallel ATA (experimental) drivers"
-I DO NOT WANT "ATA/ATAPI/MFM/RLL support"since it often conflicts with the newer drivers

I have narrowed down my possibilities to two options

Code:

Symbol: ATA_PIIX [=n]
  │ Prompt: Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
  │   Defined at drivers/ata/Kconfig:115
  │   Depends on: ATA [=y] && ATA_SFF [=y] && PCI [=y]
  │   Location:
  │     -> Device Drivers
  │       -> Serial ATA (prod) and Parallel ATA (experimental) drivers (ATA [=y])
  │         -> ATA SFF support (ATA_SFF [=y])


and

Code:

 Symbol: PATA_OLDPIIX [=n]
  │ Prompt: Intel PATA old PIIX support
  │   Defined at drivers/ata/Kconfig:495
  │   Depends on: ATA [=y] && ATA_SFF [=y] && PCI [=y]
  │   Location:
  │     -> Device Drivers
  │       -> Serial ATA (prod) and Parallel ATA (experimental) drivers (ATA [=y])
  │         -> ATA SFF support (ATA_SFF [=y])


so how do I know which is correct? I browse to each and read the Help

Code:

CONFIG_ATA_PIIX:
  │
  │ This option enables support for ICH5/6/7/8 Serial ATA
  │ and support for PATA on the Intel ESB/ICH/PIIX3/PIIX4 series
  │ host controllers.
  │
  │ If unsure, say N.


Code:

CONFIG_PATA_OLDPIIX:
  │
  │ This option enables support for early PIIX PATA support.
  │
  │ If unsure, say N.



The first one looks correct for your chipset, so I know that is it.

In the case of your PIIX4, when I did the search for just 'PIIX4', it only returned one result

Code:

Symbol: I2C_PIIX4 [=n]
  │ Prompt: Intel PIIX4 and compatible (ATI/AMD/Serverworks/Broadcom/SMSC)
  │   Defined at drivers/i2c/busses/Kconfig:115
  │   Depends on: I2C [=y] && PCI [=y]
  │   Location:
  │     -> Device Drivers
  │       -> I2C support (I2C [=y])
  │         -> I2C Hardware Bus support


So that one is much easier since it returns only one result :)


There are other ways, like grepping through the kernel sources for your PCI ID, but that's another discussion for another day.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
anrs
n00b
n00b


Joined: 20 Jan 2010
Posts: 20

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

lol, thank cach0rr0 explain those, and thank everyone...
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


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

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

no problem. soon as you're happy that everything is working as expected, when you have a chance, please mark this thread as [SOLVED]
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
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 1, 2  Next
Page 1 of 2

 
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