LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2004, 11:44 AM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
sysfs do i need it for kernel 2.6?


i notice that kernel 2.6 has sysfs support. currently i do compiled it to my kernel but i didnt modify my system to get this file system to run(which was taught by thomer.com/linux/migrate-to-2.6.html) coz i notice that it said devfs is sysfs so i dont mess around with it and continue on using my redhat 9 devfs.

currently i dont have /dev/fd0, /dev/cdrom and etc and on when i boot into kernel 2.4.20-8 i can see hundreads of charater device in my /dev/ folder but in kernel 2.6 it is much less then 2.4.

where do all those device go?

i dont have sysfs, so do it has to do with the problem that i have that i dont get cdrom and floppy drive?

should i follow the steps thought by thomer.com/linux/migrate-to-2.6.html
to enable sysfs?
 
Old 02-03-2004, 10:21 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
It's my understanding that devfs and proc are being deprecated in favor of udev and sysfs.

they're still in 2.6 for compatibility, so making the crossover isn't absolutely necessary. But I'd take the plunge if I were you - sounds like it's only a matter of time.

--Rounan
 
Old 02-04-2004, 05:22 AM   #3
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
i dont enabled sysfs and will that be the cause of my linux dont have cdrom, floppy drive and etc in /dev?
 
Old 02-04-2004, 08:32 AM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
AFAIK, sysfs just replaces proc as a virtual filesystem used to gain information about the running system and kernel.

And problems with devices are probably due to udev. Do you have udev installed? 2.6 does require that to work properly.

Do you have access to floppy, cd-rom, etc? Have devices just changed names, or can you not use hardware?

--Rounan
 
Old 02-04-2004, 10:40 AM   #5
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
fd0 and cdrom character device cant be found in /dev
 
Old 02-04-2004, 10:51 AM   #6
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Do you have udev installed?

Do you have access to floppy, cd-rom, etc? Have devices just changed names, or can you not use hardware?
 
Old 02-06-2004, 06:59 AM   #7
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
hey i went into compilation xconfig to enable sysfs or udev but i dont seems to find one.

where is it located?
 
Old 02-06-2004, 07:14 AM   #8
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
sysfs does not replace proc.

The problems with /proc stem from the fact that it is being used for purposes that were never intended. /proc was originally only supposed to be a virtual filesystem describing the processes that were running within the system. Over time, however, it was generalized and is now used fror all manner of things, resulting in a fragmented, complex, fragile namespace.

sysfs fixes that by being designed from the outset for the display of internal kernel information; its tight integration with kobjects makes it easy for drivers, filesystems and other internal kernel pieces to display information without too much trouble. The only problem with sysfs ATM is that it doesn't match the amount of information that /proc has.

By the time 2.8/3.0 arrive, /proc will only have process information, and sysfs will have everything else.
 
Old 02-06-2004, 07:24 AM   #9
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
You will need it if you want to use lm_sensors with 2.6.x
 
Old 02-06-2004, 07:36 AM   #10
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
TheOneKEA - Thanks for the clarification! I wasn't aware /proc was staying put. Makes sense now.

Demmylls - I seem to recall sysfs being a kernel option... not 100% sure, but check the config again, I think it's there.
Udev, however, is a userspace program, not a kernel feature. You need to grab a udev RPM and install it in order for devices to work properly in 2.6

--Rounan
 
Old 02-07-2004, 01:34 AM   #11
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
do you mean this:
http://kernel.org/pub/linux/utils/ke...ev-016.tar.gz?
 
Old 02-07-2004, 01:49 PM   #12
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
I'd get the RPM, but yeah, that's udev alright.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sysfs not supported by kernel jrdioko Linux - Software 2 07-01-2004 06:57 PM
kernel 2.4.26 and sysfs rgiggs Mandriva 2 06-03-2004 08:32 PM
2.6.x kernel,sysfs and rc.S tobyl Slackware 3 04-09-2004 01:24 PM
mounting sysfs chichibabin Mandriva 3 02-13-2004 12:48 PM
kernel 2.6.0 and Suse 9 looking for fstab, modprobe, sysfs jim quigley Linux - Distributions 0 01-10-2004 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration