SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/proc/partitions shows you the partitions you have. You don't change /proc/partitions directly.
Tools such as fdisk, sfdisk, parted, and others modify the partitions you have.
Type "man fdisk" for more details of how to use fdisk. (or man sfdisk or man parted for those utilities)
Type "man proc" for details of the information provided under /proc.
Mostly this is for information gathering. There are SOME things that can be modified by writing into /proc but not much and not much you would want to try without very deep understanding of how to do that.
Accepting no responsibility for the outcome, one obvious thing is to change the permission on the file and then attempt to edit it. Since it is really a virtual file--existing only in memory--I think this would be a struggle for control with the kernel. My money says the kernel will win---I just don't know what the casualties will be.....
if anyone could manage to damage the system by mangling a /proc "file" it would be a reportable bug
Not sure I buy that - I've seen solutions for updating /proc/scsi by writing into it. If you can write presumably good information into it you would likely be able to crap out something by writing bad information into it. Not something I want to test at the moment though.
If using "rm -rf /" can damage your system without being a "bug" then it seems doing boneheaded writes into /proc wouldn't be a "bug" either.
Different situation - /proc is just an abstraction to allow kernel/driver code to expose data. Any directories/files needed have to be created and destroyed by that code.
Most are read only, but write is supported. But it's just a buffer for that bit of code. If it can't handle bad data/requests, it's a bug. Especially in kernel code.
One always learns much more from what goes wrong than what goes right. If it goes right you only learn the basic commands. If it goes wrong you often learn a lot of what is behind the commands.
I've therefore learned quite a bit from "headaches".
One always learns much more from what goes wrong than what goes right. If it goes right you only learn the basic commands. If it goes wrong you often learn a lot of what is behind the commands.
Thats the beauty of learning, i love when it goes wrong,
and im willing to learn the headache, if anyone have idea please post
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.