Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]after changing to udev some device files are missing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
thexder1
n00b
n00b


Joined: 25 Sep 2013
Posts: 6

PostPosted: Wed Sep 25, 2013 8:37 pm    Post subject: [SOLVED]after changing to udev some device files are missing Reply with quote

I was recently moving my old server running gentoo over to udev. I guess I did not reboot until today, and now one hard drive no longer has device files for it or the partitions, and the raid arrays that I was using do not have device files. based on the information I am seeing, it looks like the devices are there and working, but as the device files do not exist any real use, like mounting is not possible.


I have checked sys and proc filesystems and they both seem to agree that everything is there and working. please help me get udev working properly, or help me move back off of udev as a last resort.


Last edited by thexder1 on Thu Sep 26, 2013 5:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Sep 25, 2013 10:22 pm    Post subject: Reply with quote

thexder1,

Welcome to Gentoo.

What /dev entries seem to be missing?
A few examples will do.
_________________
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
thexder1
n00b
n00b


Joined: 25 Sep 2013
Posts: 6

PostPosted: Wed Sep 25, 2013 11:16 pm    Post subject: Reply with quote

the specific ones that I know are missing are:
/dev/sde
/dev/sde1
/dev/sde2
/dev/md0
/dev/md1
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2000
Location: Finland

PostPosted: Thu Sep 26, 2013 8:14 am    Post subject: Reply with quote

Is CONFIG_DEVTMPFS=y enabled in the kernel? Is /dev mounted as devtmpfs?

Quote:

$ zgrep DEVTMPFS /proc/config.gz
CONFIG_DEVTMPFS=y
$ mount |grep devtmpfs
devtmpfs on /dev type devtmpfs (rw,relatime,size=8195860k,nr_inodes=2048965,mode=755)
$ grep DEVTMPFS /usr/src/linux/.config
CONFIG_DEVTMPFS=y
Back to top
View user's profile Send private message
thexder1
n00b
n00b


Joined: 25 Sep 2013
Posts: 6

PostPosted: Thu Sep 26, 2013 9:18 am    Post subject: Reply with quote

Hello ssuominen,

Thanks for the help I did not have DEVTMPFS enabled in the kernel. I think I can get it to work from here. I will post again if I have problems that I cannot figure out.
Back to top
View user's profile Send private message
thexder1
n00b
n00b


Joined: 25 Sep 2013
Posts: 6

PostPosted: Thu Sep 26, 2013 3:26 pm    Post subject: Reply with quote

Well, I got stuck again. when trying to mount the devtmpfs I just get the message unknown filesystem type. Everything that I am seeing indicates that mount should know that filesystem type and be able to mount it without a problem.
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2000
Location: Finland

PostPosted: Thu Sep 26, 2013 3:51 pm    Post subject: Reply with quote

thexder1 wrote:
Well, I got stuck again. when trying to mount the devtmpfs I just get the message unknown filesystem type. Everything that I am seeing indicates that mount should know that filesystem type and be able to mount it without a problem.


If the kernel has the required support then the '/etc/init.d/udev' init script will do the mounting for you during boot so there isn't any manual mounting involved here.

You can also enable CONFIG_DEVTMPFS_MOUNT=y which makes it even more safe, then the kernel will do the mounting itself.

And you can also enable CONFIG_IKCONFIG=y which makes /proc/config.gz available so you can check options from the currently running kernel using eg. `zgrep DEVTMPFS /proc/config.gz` since `grep DEVTMPFS /usr/src/linux/.config` doesn't guarantee it's the actual .config of the running kernel. It's easy to, for example, forget to mount /boot partition and then copy the kernel image to wrong directory because of it.
Or it's easy to forget to run `make clean` in /usr/src/linux before building it again.
Back to top
View user's profile Send private message
thexder1
n00b
n00b


Joined: 25 Sep 2013
Posts: 6

PostPosted: Thu Sep 26, 2013 4:18 pm    Post subject: Reply with quote

oops, I knew I forgot something. cleaning and compiling the kernel again. this time with CONFIG_IKCONFIG=y enabled.
Back to top
View user's profile Send private message
thexder1
n00b
n00b


Joined: 25 Sep 2013
Posts: 6

PostPosted: Thu Sep 26, 2013 5:55 pm    Post subject: Reply with quote

Thanks for the help, I just needed to do a make clean then re-build the kernel and everything is working now.
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
Page 1 of 1

 
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