Any attempt to edit the /etc/fstab file in Proxmox VE 6.4-13 with nano results in [ Error reading lock file /etc/.fstab.swp: Not enough data read ]. The file is empty and will not save any changes.
Please see following file status information:
I've check the read/write permissions and did a CHMOD 644
I'm sure this is a simple fix. Should I just cp the fstab file to fstabbackup and remake the file with the cat output and edits? Or will that cause a boot error???
Please see following file status information:
Code:
cat etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
UUID=A7B3-7337 /boot/efi vfat defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
I've check the read/write permissions and did a CHMOD 644
Code:
root@proxmox:/etc# ls -al /etc/fstab
-rw-r--r-- 1 root root 207 Jun 2 20:04 /etc/fstab
Code:
root@proxmox:/etc# lsattr /etc/fstab
--------------e---- /etc/fstab
Code:
root@proxmox:/etc# find . -name "*.swp"
./.fstab.swp
I'm sure this is a simple fix. Should I just cp the fstab file to fstabbackup and remake the file with the cat output and edits? Or will that cause a boot error???