LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-27-2004, 07:25 AM   #1
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 769

Rep: Reputation: 65
2.6.x kernel,sysfs and rc.S


I have noticed in the slack forum some confusion regarding the use of sysfs and the 2.6 series kernels. Well, I was unsure as well, and did a bit of reading. I still have a few questions.

I started looking around in the kernel documentation, but was disappointed with the lack of guidance on the subject.

The key points to get this working correctly on Slackware seem to be:

1. Give sysfs a mount point

mkdir /sys

2. Put an entry in /etc/fstab

sysfs /sys sysfs defaults 0 0

(Note, this is only for 2.6 series, if you run 2.4 series kernels as well then you need to start thinking about the noauto option, and a script to mount sysfs only when required.)

Patrick says that Slackware 9.1 or later is 2.6 ready, and it is, but you still need to make the changes shown above.

Documentation from various sources also suggests that the initscripts (and shutdown) that start your linux system need to be modified to mount sysfs, but no change appears to be necessary in Slackware, I believe this is due to the line in /etc/rc.d/rc.S:

/sbin/mount -a -v -t nonfs,nosmbfs

which mounts the stuff found in /etc/fstab

however, I do not know whether sysfs should be mounted early like /proc is, or not. It does not appear to make any difference on my system.
Anyone have any comments on this?



I am running Slackware current and kernel 2.6.4

tobyl
 
Old 04-09-2004, 12:44 AM   #2
jmcnaught
LQ Newbie
 
Registered: Mar 2004
Location: London, Ontario
Distribution: Slackware 9.1
Posts: 4

Rep: Reputation: 0
hey,

when i was switching to 2.6 under slackware 9.1 i used this article as a reference. it goes over the /sys stuff, including how to edit init files so that /sys will only be mounted if it's 2.6.

personally, i didn't need to have the option to still boot 2.4, so i didn't bother with that. if that's your case too, you can put "defaults" in the sysfs line in /etc/fstab instead of "noauto" and it will work fine.

the article is at http://linuxdevices.com/articles/AT2184776431.html

cheers,


Jeremy McNaughton
 
Old 04-09-2004, 02:30 AM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
I didn't read any documentation, I did not have the /sys thing and everything work fine. Will try to do that sys thing to see what I can get out of it.
 
Old 04-09-2004, 01:24 PM   #4
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Hey carboncopy I guess it was related. I couldnīt mount my digital camera (a mass storage scsci device) until I setup sys. I dunno but guess its related.

Adam
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
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
mounting sysfs chichibabin Mandriva 3 02-13-2004 12:48 PM
sysfs do i need it for kernel 2.6? demmylls Linux - General 11 02-07-2004 01:49 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 - Distributions > Slackware

All times are GMT -5. The time now is 02:52 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