LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-07-2004, 08:09 PM   #1
the who
Member
 
Registered: Feb 2004
Location: FRG, EU
Distribution: Slackware current
Posts: 51

Rep: Reputation: 15
Empty /sys directory


I have an empty /sys directory on my system. What's it for?

I tried the forum search and googled for it but did not find anything. (How can I tell Google to search for "/sys" without ignoring the slash?) There's also nothing about it in the FHS it seems.

I also have a "lost+found" directory in / and /home, both are empty, what exactly is their purpose?

Just wondering, not planning to delete them or anything. ;-)

Last edited by the who; 06-07-2004 at 08:13 PM.
 
Old 06-07-2004, 08:15 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
If you have a /sys in / , as far as I know, its not needed. As for the lost&found directories, those are created after your system will perform a fsck on the partitions at bootup, etc.
 
Old 06-07-2004, 08:40 PM   #3
brenton
Member
 
Registered: Mar 2004
Location: Sydney, Australia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Sysfs is intended to be a replacement for procfs. It's incomplete at the moment, but it was originally created for acpi so it should work with that. (I don't notice any difference, but it might be the limitations of my laptop).

/sys was probably created by a package in slackware-current. It's a mandatory compile in for the 2.6 kernels (i.e. there's no sysfs option in .config). So if your running 2.6, all you have to do is mount it. To fstab, add: "none /sys sysfs defaults 0 0"

Last edited by brenton; 06-07-2004 at 08:42 PM.
 
Old 06-07-2004, 08:44 PM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Try editing your /etc/fstab file. Add the line
Code:
none		/sys		sysfs		defaults		0   0
Reboot and look in your /sys folder. It should have a list of your devices.
 
Old 06-08-2004, 07:56 AM   #5
the who
Member
 
Registered: Feb 2004
Location: FRG, EU
Distribution: Slackware current
Posts: 51

Original Poster
Rep: Reputation: 15
Ah, ok, thanks for the info. I compiled some 2.6* kernels a while ago but returned to my 2.4.26 because of problems with 2.6, so it could also be a leftover from that.
 
Old 06-08-2004, 03:58 PM   #6
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
It is a leftover.
 
Old 06-08-2004, 08:53 PM   #7
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Rep: Reputation: 30
I have kernel 2.4.26 and i got a empty /sys directory
 
Old 06-08-2004, 08:58 PM   #8
brenton
Member
 
Registered: Mar 2004
Location: Sydney, Australia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Quote:
/sys was probably created by a package in slackware-current
Running the 2.6 kernel will not create the directory. It was probably created by one of the new system packages. After that I think it's automatically mounted at boot, there's no need to add it to fstab.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rm: cannot remove directory `ff': Directory not empty blancs Linux - General 17 08-29-2011 01:47 PM
/proc/bus/usb is empty under 2.6.7 (but only one 1 sys) jg167 Linux - Newbie 3 08-02-2004 03:29 AM
How do you remove a non empty directory aaronruss Linux - Newbie 3 06-05-2004 08:26 PM
cpudyn: no /sys/ directory malo_umoran Slackware 1 12-26-2003 06:58 AM
Mounting a non-empty directory MasterBean Linux - General 1 07-12-2001 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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