"/proc/partitions not found" error is showing up

14,480

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.

Share:
14,480

Related videos on Youtube

Linas
Author by

Linas

Geeky programmer

Updated on September 18, 2022

Comments

  • Linas
    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 get No 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
      Agmenor about 11 years
      Hello 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
      chaskes about 11 years
      When you reboot -- and before opening DataStax OpsCenter -- does /proc/partions exist?
    • Linas
      Linas about 11 years
      @chaskes no it doesn't
    • qbi
      qbi about 11 years
      Are you using a VPS? Does /proc/diskstats exist?
    • Linas
      Linas about 11 years
      @qbi Yes I am using VPS, and not that dir do not exist
  • Linas
    Linas about 11 years
    Just tried that and it says proc already mounted
  • Linas
    Linas about 11 years
    Just tried that and got this: ` cannot create directory partitions': No such file or directory however i can create this dir anywhere else
  • Agmenor
    Agmenor about 11 years
    I updated the answer, can you say whether the /proc/partitions folder then exists ?
  • Linas
    Linas about 11 years
    tried 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
    Linas about 11 years
    Well that explains it, i will try my luck there then, thanks
  • gertvdijk
    gertvdijk almost 11 years
    I don't think it applies on this website - you're on Ask Ubuntu here and your answer is Windows specific.