Skip to contentSkip to conversation

Technical udev question for Greg

DISCUSSION walt 3 participants 4 messages Jan 3, 2004 – Jan 4, 2004

lore
Share & tools
lore

walt

author
#0 lore raw

Hi Greg,

I think I acidentally screwed up by running a script which ran MAKEDEV while udev was running.

Now /dev/.udev.tdb is very large and devices have strange permissions they didn't have before.

All I want to do is delete all the extraneous devices in .udev.tdb and start over. How do I do that?

Thanks!

#1 lore raw
Quoted 7 lines · walt

Hi Greg,

I think I acidentally screwed up by running a script which ran MAKEDEV while udev was running.

Now /dev/.udev.tdb is very large and devices have strange permissions they didn't have before.

As udev didn't get called when runinng MAKEDEV, I don't see how the udev database could have grown.

Quoted 2 lines

All I want to do is delete all the extraneous devices in .udev.tdb and start over. How do I do that?

	rm -rf /dev/*
	rm -f /dev/.udev.tdb
	/etc/init.d/udev start

That should do it.

greg k-h

author
#2 lore raw
Quoted 11 lines · Greg KH
Quoted 5 lines · walt

I acidentally ran a script which ran MAKEDEV
while udev was running.

Now /dev/.udev.tdb is very large and devices have strange permissions they didn't have before.

As udev didn't get called when runinng MAKEDEV, I don't see how the udev database could have grown.

Well, after doing the steps below the size of the db didn't seem any smaller, true enough.

Quoted 7 lines
Quoted 2 lines

All I want to do is delete all the extraneous devices in .udev.tdb and start over. How do I do that?

	rm -rf /dev/*
	rm -f /dev/.udev.tdb
	/etc/init.d/udev start

However, after doing the above and recreating a few missing devices the behavior of the machine seems back to normal, so clearly I did something that mattered. I don't pretend to understand how or why, but thanks.

#3 lore raw
Quoted 9 lines · walt
Quoted 4 lines
	rm -rf /dev/*
	rm -f /dev/.udev.tdb
	/etc/init.d/udev start

However, after doing the above and recreating a few missing devices the behavior of the machine seems back to normal, so clearly I did something that mattered. I don't pretend to understand how or why, but thanks.

Forgot to say in other mail to you - I had weird issues with nodes that was not yet sysfs'ified in the past due to strange permissions
(this is now aside those on ptmx). Try rc1-mm1 for misc/vc sysfs
support (might be a fluke, but I have not yet had strange going on's since Greg posted them, so maybe it might be /dev/null, etc that caused issues for me, that did it for you as well), or if you roll your own kernels, I will be glad to post you the patches off list if you cannot find them here.

Signature · 1 line
Martin Schlemmer