librealsense: fallocate: fallocate failed: No space left on device libuvc_installation.sh build
-
Before opening a new issue, we wanted to provide you with some useful suggestions (Click “Preview” above for a better view):
- Consider checking out SDK examples.
- Have you looked in our documentations?
- Is you question a frequently asked one?
- Try searching our GitHub Issues (open and closed) for a similar issue.
-
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven’t followed any of the suggestions above 😃
Required Info | |
---|---|
Camera Model | { R200 / F200 / SR300 / ZR300 / D400 } |
Firmware Version | (Open RealSense Viewer --> Click info) |
Operating System & Version | {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS |
Kernel Version (Linux Only) | (e.g. 4.14.13) |
Platform | PC/Raspberry Pi/ NVIDIA Jetson / etc… |
SDK Version | { legacy / 2.<?>.<?> } |
Language | {C/C#/labview/nodejs/opencv/pcl/python/unity } |
Segment | {Robot/Smartphone/VR/AR/others } |
Issue Description
<Describe your issue / question / feature request / etc…> When I try to run the libuvc_installation.sh script it says that it has not space left at the end
rosnoetic:yoctohome$ ./libuvc_installation.sh
+ exec
+ exec
+ '[' 8 -ne 0 ']'
+ echo -e '\e[32m'
+ read -p 'Remove all RealSense cameras attached. Hit any key when ready'
Remove all RealSense cameras attached. Hit any key when ready
+ echo -e '\e[0m'
+ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
++ uname -r
+ echo 'Kernel version 3.18.71-perf'
Kernel version 3.18.71-perf
+ sudo apt-get update
Hit:1 http://packages.ros.org/ros/ubuntu focal InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:5 https://librealsense.intel.com/Debian/apt-repo focal InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Reading package lists... Done
+ cd /root/
+ sudo rm -rf ./librealsense_build
+ mkdir librealsense_build
+ cd librealsense_build
++ sudo swapon --show
++ wc -l
+ '[' 0 -eq 0 ']'
+ echo 'No swapon - setting up 1Gb swap file'
No swapon - setting up 1Gb swap file
+ sudo fallocate -l 2G /swapfile
fallocate: fallocate failed: No space left on device
Anyone faced this issue, Note I am using a ubuntu 20.04 docker container to do this
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26
Hi @darshit-desai The libuvc_installation.sh installation script usually does not work with Ubuntu 20.04 because the script was designed for earlier Ubuntu versions. You can achieve a similar installation by building for 20.04 from source code with CMake using the RSUSB backend installation method described at https://github.com/IntelRealSense/librealsense/issues/9931#issuecomment-964289692
RSUSB backend is the successor of the older libuvc backend. Both methods bypass the kernel, making the librealsense build non-dependent on Linux versions or kernel versions and not requiring the kernel to be patched.