Have been having issues with logging into the Birmingham (VM), with the following error message:
#======================
*** System restart required ***
-bash: cannot create temp file for here-document: No space left on device
-bash: cannot create temp file for here-document: No space left on device
#======================
Pretty sure there should be sufficient memory left as I have attached 1TB of memory few months ago.
And my supervisor also couldnt log into her Warwick VM.
There don’t seem to be any issues with the Warwick VM. Could you or your supervisor explain more about what the problem is? E.g. what is the output of ssh in verbose mode ssh -vv ?
1). The PATH is messed up. Is your VM a GVL? If so, there are a lot of values missing from your PATH. As a temporary fix run the following to add /bin to the PATH:
export PATH=$PATH:/bin
You’ll need to run this everytime you log in until we determine what has gone wrong with the PATH. Can you then post the output of
cat /etc/environment
2). The root disk of your VM /dev/sda is full. This is why you’re getting the message -bash: cannot create temp file for here-document: No space left on device. If you can, delete some old files to free up some space and this will stop this error.
3). df -h only shows volumes which are attached and mounted to your VM. Most likely, the volume you created is still attached to your VM but not mounted. To list all attached volumes run
lsblk
If your volume /dev/sdb appears in the output list but with no mountpoint listed, then all you need to do is run
sudo mount /dev/sdb [mountpoint]
where [mountpoint] is the directory where you want to mount your volume.
WARNING: Do NOT run mkfs.xfs or fdisk as this will destroy any data you have on the volume!
==========================
Couldn’t find the command as the volume was mount more than a year ago. From what I remember the command should be sudo mount /dev/sdb example.
The output for lsblk:
Command ‘lsblk’ is available in ‘/bin/lsblk’
The command could not be located because ‘/bin’ is not included in the PATH environment variable.
lsblk: command not found
==========================
The output for df -h:
Command ‘df’ is available in ‘/bin/df’
The command could not be located because ‘/bin’ is not included in the PATH environment variable.
For now, you’ll need to run export PATH=$PATH:/bin everytime you log in as there is a problem with your PATH variable.
It does sound like potentially your volume has become unmounted and you need to mount it again. If the output of lsblk looks something like this, with no mountpoint listed:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 120G 0 disk
└─sda1 8:1 0 120G 0 part /
sdb 8:16 0 1T 0 disk
Then your volume has become unmounted and you need to run sudo mount /dev/sdb /home/ubuntu/example again
However, if the output of lsblk looks like this
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 120G 0 disk
└─sda1 8:1 0 120G 0 part /
sdb 8:16 0 1T 0 disk /home/ubuntu/example
then this tells you the volume /dev/sdb is already mounted at /home/ubuntu/example and you should be able to access the documents stored in the volume by changing directory to cd /home/ubuntu/example
Can you post the name of your VM? I’ll ask one of my colleagues to take a look at what’s happened to your PATH variable.