"/proc/partitions not found" error is showing up
Solution 1
As you said in your comment, you're on a virtual private server (VPS). OpenVZ as well as other VPS solutions don't offer access to /proc/partitions
. The whole /proc
partition is a virtual filesystem (procfs). The structure is maintained in the kernel. So it will not work to manually create the file.
The DataStax OpsCenter has a support forum. At the moment I found no questions qhich deal with your problem. However the experts there should be able to help you out.
Solution 2
To get proc file system you might need to mount it.
mount proc /proc
To get list of partitions I use following commands. Each of them gives list of partitions.
fdisk -l
parted -l
df -h
mount
Note: mount
only displays list of volumes currently mounted and df
shows statistics of mounted volumes.
Answer created by @Shiplu in a Stack Overflow tread.
Related videos on Youtube
Comments
-
Linas over 1 year
I am configuring a webserver in Ubuntu 10.04. More particularly I am installing DataStax OpsCenter.
Unfortunately, the logs are spammed with this error:
ERROR [pool-3-thread-7] 2013-02-15 22:04:34,533 Long os-stats collector failed: Process failed: cat /proc/partitions Exit val: 1 Output: cat: /proc/partitions: No such file or directory ERROR [pool-5-thread-3] 2013-02-15 22:04:56,846 Error getting devices and partitions #<IOException java.io.IOException: Process failed: cat /proc/partitions Exit val: 1 Output: cat: /proc/partitions: No such file or directory>
Why do I get
cat: /proc/partitions: No such file or directory
?I really doubt that the problem is with the application I am using, because if I run this command from command line
cat /proc/partitions
I still getNo such file or directory
and from what I have found in some forums that directory should be created when the OS is starting up, I could be wrong but that's as far I got.-
Agmenor about 11 yearsHello Linas and welcome on Ask Ubuntu ! Could you please tell again what version of Ubuntu you are using (10.04 or 12.04) ? Furthermore, could you tell us what you try to install and what tutorial you are following ? Usually, "No such file or directory" means that the directory doesn't exist.
-
chaskes about 11 yearsWhen you reboot -- and before opening DataStax OpsCenter -- does
/proc/partions
exist? -
Linas about 11 years@chaskes no it doesn't
-
qbi about 11 yearsAre you using a VPS? Does
/proc/diskstats
exist? -
Linas about 11 years@qbi Yes I am using VPS, and not that dir do not exist
-
-
Linas about 11 yearsJust tried that and it says
proc already mounted
-
Linas about 11 yearsJust tried that and got this: ` cannot create directory
partitions': No such file or directory
however i can create this dir anywhere else -
Agmenor about 11 yearsI updated the answer, can you say whether the /proc/partitions folder then exists ?
-
Linas about 11 yearstried to run both commands, for the first one it says that /proc dir already exists and for the second one i still get
cannot create directory /proc/partitions': No such file or directory
-
Linas about 11 yearsWell that explains it, i will try my luck there then, thanks
-
gertvdijk almost 11 yearsI don't think it applies on this website - you're on Ask Ubuntu here and your answer is Windows specific.