Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Gentoo Linux Help
Reload this Page What is the /sys folder for and can I delete it?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Gentoo Linux Help For help and discussion related to Gentoo Linux

Reply
 
Thread Tools Display Modes
Old 12-09-2005   #11 (permalink)
Linux Engineer
 
Join Date: Mar 2005
Posts: 1,431
OK, thanks for the explaination anomie :P

Quote:
Originally Posted by smolloy
Quote:
Originally Posted by Wikipedia.org
Sysfs is a virtual file system provided by the 2.6 Linux kernel. Sysfs exports information about devices and drivers from the kernel device model to userspace, and is also used for configuration.
I wonder if that means that it's safe to erase since the kernel will regenerate it on boot??
I think so, but way do you want to erase it, it's there for a reason, besides if the kernel automaticly regenerates it, why delete it?
jaboua is offline   Reply With Quote
Old 12-09-2005   #12 (permalink)
Trusted Penguin
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,163
Sorry, I didn't explain that.

I recently updated gcc to 3.4 from 3.3, and after the update I get a lot of error messages on boot that are something like,
Code:
rm: Cannot remove /sys/... : Operation not permitted
(That's from memory)

It repeats this many times for (I think) every file and folder in /sys, so I thought that the kernel attempts to remove and recreate /sys everytime the computer boots, but for some reason was having trouble. If this is the case, then removing it using a liveCD might solve this.

I think I might just temporarily rename the folder and create an empty /sys, just to see what happens. If it kills it, then it would be easy enough to switch back to the backup version.

What do you think?? Am I being smart?? Or am I heading for a world of hurt??
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 12-09-2005   #13 (permalink)
Linux Engineer
 
Join Date: Mar 2005
Posts: 1,431
Nope, cause it's easier and works better like this:
Code:
umount /sys
jaboua is offline   Reply With Quote
Old 12-09-2005   #14 (permalink)
Trusted Penguin
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,163
Quote:
Originally Posted by jaboua
Nope, cause it's easier and works better like this:
Code:
umount /sys
I don't understand. If I umount it, won't it just remount as usual when I reboot?? The boot errors I'm getting would still appear, wouldn't they??
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 12-10-2005   #15 (permalink)
Linux Guru
 
loft306's Avatar
 
Join Date: Oct 2003
Location: The DairyLand
Posts: 1,666
[quote="smolloy"]
Code:
rm: Cannot remove /sys/... : Operation not permitted
(That's from memory)
hmmm this is famillar to me but as i remember it is just an error and dosnt realy break anything
look in your logs to try to find what is calling for this to be done


also i checked my old box and this my newest and they booth have /sys
__________________
~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
http://loft306.org
loft306 is offline   Reply With Quote
Old 05-04-2007   #16 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 1
Sorry

Sorry to bring back a topic that old, but I couldn't find any documentation about the /sys folder online.

Is there a clean way to prevent it from being mounted at startup?
Any place I can find more documentation you guys know of?

Thanks a lot!

- trib'
Tribaal is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 02:38 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0