No space left on device - Too many files in a single directory
最近從NCBI下載大量的genome fasta到硬碟的單一目錄下
到16000左右的時候就跳出類似下方的錯誤訊息
mv: cannot move ‘/soure/genome.fna.gz’ to ‘/dist/genome.fna.gz’: No space left on device
共 3 篇文章
最近從NCBI下載大量的genome fasta到硬碟的單一目錄下
到16000左右的時候就跳出類似下方的錯誤訊息
mv: cannot move ‘/soure/genome.fna.gz’ to ‘/dist/genome.fna.gz’: No space left on device
NFS雖然是很方便的掛載方法,但不像samba或sshfs一樣可以做身份認證
本機的UID是什麼寫入到NFS server的UID就是什麼
e.g. 本機的UID是1001, username是hunglin
但NFS server的hunglin的UID是1000
但寫入到遠端的檔案會顯示1001而不是hunglin
本機
{% code %}
drwxr-sr-x 7 hunglin hunglin 10M Mar 1 2022 file.txt
{% endcode %}
NFS server {% code %} drwxr-sr-x 7 1001 1001 10M Mar 1 2022 file.txt {% endcode %}
如果NFS server和本機都只有自己使用的話有個方法可以間接的mapping id
NFS server端可以在/etc/export
設定anonymous的uid和gid
all_squash,anonuid=1001,anongid=1001
all_squash是指將寫入的檔案的user和group都壓縮成anonymous的uid和gid
只要將anonuid和anongid設定成server端user的uid和gid就可以做到idmapping
重啟nfs server {% code lang:sh %} sudo /etc/init.d/nfs-kernel-server restart sudo start idmapd {% endcode %}
The following setup is my customization while ubuntu initialization
fcitx5-rime
sudo apt install fctix5-*
im-config
sudo apt install nfs-common
sudo mount -t nfs $remote_host:/remote/path /local/path
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'
If the commands are not working, you can install dconf-editor
to set.
Switching between windows with scroll wheel on Ubuntu Dock
Essential Guide: How to Enable ‘Minimize on Click’ on Ubuntu Quickly