Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11618 - we need a devfs HOWTO/FAQ
Summary: we need a devfs HOWTO/FAQ
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Submit New (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: bind-dev
Blocks:
  Show dependency tree
 
Reported: 2002-12-05 05:59 UTC by nougat
Modified: 2003-08-29 05:42 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Devfs Guide, XML code (devfs-guide.xml,15.49 KB, text/xml)
2003-08-28 07:00 UTC, Sven Vermeulen (RETIRED)
Details
paper describing new sysfs+udev (for reference) (Reprint-Kroah-Hartman-OLS2003.pdf,44.02 KB, application/pdf)
2003-08-28 08:43 UTC, John Christian Stoddart (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nougat 2002-12-05 05:59:31 UTC
Using Gentoo PPC 1.4 pre 2

During the initial install (Stage 1-2), the devices for audio did not get
created properly. When I try to run the MAKEDEV script the following errors occur:

crayzee root # cd /dev/
crayzee dev # ./MAKEDEV
crayzee dev # ./MAKEDEV audio
mv: cannot move `mixer-' to `mixer': Operation not permitted
mv: cannot move `sequencer-' to `sequencer': Operation not permitted
mv: cannot move `midi00-' to `midi00': Operation not permitted
mv: cannot move `dsp-' to `dsp': Operation not permitted
mv: cannot move `audio-' to `audio': Operation not permitted
mv: cannot move `sndstat-' to `sndstat': Operation not permitted
mv: cannot move `mixer1-' to `mixer1': Operation not permitted
mv: cannot move `midi01-' to `midi01': Operation not permitted
mv: cannot move `dsp1-' to `dsp1': Operation not permitted
mv: cannot move `audio1-' to `audio1': Operation not permitted
mv: cannot move `midi02-' to `midi02': Operation not permitted
mv: cannot move `midi03-' to `midi03': Operation not permitted
mv: cannot move `mpu401data-' to `mpu401data': Operation not permitted
mv: cannot move `mpu401stat-' to `mpu401stat': Operation not permitted
mv: cannot move `midi0-' to `midi0': Operation not permitted
mv: cannot move `rmidi0-' to `rmidi0': Operation not permitted
mv: cannot move `smtpe0-' to `smtpe0': Operation not permitted
mv: cannot move `midi1-' to `midi1': Operation not permitted
mv: cannot move `rmidi1-' to `rmidi1': Operation not permitted
mv: cannot move `smtpe1-' to `smtpe1': Operation not permitted
mv: cannot move `midi2-' to `midi2': Operation not permitted
mv: cannot move `rmidi2-' to `rmidi2': Operation not permitted
mv: cannot move `smtpe2-' to `smtpe2': Operation not permitted
mv: cannot move `midi3-' to `midi3': Operation not permitted
mv: cannot move `rmidi3-' to `rmidi3': Operation not permitted
mv: cannot move `smtpe3-' to `smtpe3': Operation not permitted
crayzee dev #
Comment 1 SpanKY gentoo-dev 2002-12-05 09:27:36 UTC
this happens on x86 too ;) 
Comment 2 Mark Guertin 2002-12-05 09:32:01 UTC
It seems to me that this may be somehow related to devfs.  If devfs is already
mounted it does not allow you to manually replace existing devfs entries.  If
you have to audio entries you musht make sure you have the appropriate options
selected in your kernel.

See the PPC FAQ for more details
Comment 3 SpanKY gentoo-dev 2002-12-05 10:27:46 UTC
thats really not the best solution ... 
people who want to add their own devices via MAKEDEV are unable to (i personally 
needed to add some for my raid devices ...) 
 
gerk: since this isnt a ppc prob i dont know if you wish to tackle it ... 
Comment 4 Mark Guertin 2002-12-05 11:09:21 UTC
it's not 'tackleable' in that sense

If you want/need to add entries it has to be done thru the devfsd.conf setup and
not with MAKEDEV, this is the issue here.  You can't create nodes inside devfs
manually afaik 
Comment 5 SpanKY gentoo-dev 2002-12-05 12:25:21 UTC
i really think we should have a doc or FAQ or something on this ... give it to docs-team 
to investigate ? 
(i for one have no idea how to utilize devfs ... its a new thing for many ppl sine by 
default most distro's dont utilize it) 
Comment 6 Mark Guertin 2002-12-05 12:44:04 UTC
Yep docs-team may be able tow riteup sometihng I guess, I don't know devfs super
well either, but there are some good hotwto's out there for it afaik

also if you had to make custom /dev entries things may not have been setup right
somehow, from my experiience devfs 'just works' for all your devs, if they show
up they get an entry (then again I don't use raids so hehe )
Comment 7 SpanKY gentoo-dev 2002-12-05 13:57:59 UTC
well i needed to create /dev/mdX nodes so that the filesystem could group the 
hd[e,f,g,h] together into 1 device for mounting ... 
Comment 8 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-09 00:16:13 UTC
Seo:
Please look into this and write up a guide if needed.

Thanks,
//ZhEN
Comment 9 Jungmin Seo (RETIRED) gentoo-dev 2002-12-11 18:54:18 UTC
This must be handed to someone who knows this matter well in the docs-team, and i am reassigning this bug to docs-team..

i agree that we need a devfs guide. 

J.
Comment 10 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-12 12:28:51 UTC
Chiguire -
Do you know anything about this? If not, please investigate, as this really 
needs done.

Thanks,
//ZhEN
Comment 11 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2002-12-12 13:37:26 UTC
see also bug 11693. that is why the initial problem reported happened (unable to
MAKEDEV). the install guide has been fixed. but we still need a devfs guide.
Comment 12 John Christian Stoddart (RETIRED) gentoo-dev 2003-04-08 19:55:46 UTC
Sure we do ... i'm afraid i'll have to pass on this one as i'm not familiar with devfs.
Comment 13 John Christian Stoddart (RETIRED) gentoo-dev 2003-04-08 20:00:41 UTC
However ... there is a good howto at http://www.atnf.csiro.au/people/rgooch/linux/docs/devfs.html
Comment 14 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-25 02:11:17 UTC
This one has been sitting here for too long. I'll hack up a guide.
Comment 15 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-27 01:04:38 UTC
Intermediate document can be found at http://dev.gentoo.org/~swift/devfs-guide.html, comments are always welcome.
Comment 16 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-28 07:00:52 UTC
Created attachment 16716 [details]
Devfs Guide, XML code
Comment 17 John Christian Stoddart (RETIRED) gentoo-dev 2003-08-28 08:21:35 UTC
Congratulations! Looks quite comprehensive. Could I suggest you please mention that devfs is deprecated in the new 2.6 series kernels in favour of sysfs and udev.

Gentoo seems to be one of the few distributions that actually use devfs, so it would be interesting to hear any policy thoughts on this matter ... search for sysfs on http://bugs.gentoo.org/ shows two bugs only: 25457 and 25655 and udev reports zarro.

Once again, thanks for this guide!
Comment 18 John Christian Stoddart (RETIRED) gentoo-dev 2003-08-28 08:43:32 UTC
Created attachment 16721 [details]
paper describing new sysfs+udev (for reference)
Comment 19 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-28 08:56:38 UTC
I won't add a note about devfs being deprecated and using udev -- I'll start a new udev guide which will include a devfs-to-udev transistion (or, if possible, side-by-side cooperation for dualbooters: 2.4 and 2.6).

When 2.6 is in ~ARCH (gentoo-sources or other -sources), this udev guide should be ready (I'm sure I still have a few weeks to get used to udev :)

When 2.6 makes it in ARCH, the devfs guide is "deprecated" but will ofcourse remain on the documentation page since several ppl will probably wait with 2.6.

I'd rather not mix the two together. 
Comment 20 John Christian Stoddart (RETIRED) gentoo-dev 2003-08-28 13:06:02 UTC
I'm not suggesting by any means that these two guides should be mixed. I just thought a short note about devfs deprecation and what the future held in this respect was being duly informative.
Comment 21 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-29 00:45:33 UTC
Perhaps when the udev guide is available we could add a note, but as long as we cannot instruct our users how to use udev I find it "embarassing" to say that devfs is deprecated in 2.6 and they should use udev, while we don't provide information for it yet.
Comment 22 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-29 05:42:45 UTC
Committed. I'm starting with a udev guide now.