mktemp- 无法通过模板 创建文件- 只读文件系统 Could not create temporary file
今天ubuntu14系统运行着好好的突然就有问题了,打开终端,显示:
mktemp: 无法通过模板"/tmp/setup.sh.XXXXXXXXXX" 创建文件: 只读文件系统 Could not create temporary file:
而且在在终端运行monut命令直接退出。。。。
通过引用该博文:
https://blog.csdn.net/cs9dn003/article/details/45038919?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
成功解决!
注:直接运行命令:
cat /proc/mounts
可能没反映,直接在/proc/mounts打开也行。找到ro选项。
我的显示如下:
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc
rw,nosuid,nodev,noexec,relatime 0 0 udev /dev devtmpfs
rw,relatime,size=4011164k,nr_inodes=1002791,mode=755 0 0 devpts
/dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
0 0 tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=805016k,mode=755 0
0
/dev/nvme0n1p6 / ext4 ro,relatime,errors=remount-ro,data=ordered 0 0 none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0 none
/sys/fs/fuse/connections fusectl rw,relatime 0 0 none
/sys/kernel/debug debugfs rw,relatime 0 0 none /sys/kernel/security
securityfs rw,relatime 0 0 none /sys/firmware/efi/efivars efivarfs
rw,relatime 0 0 none /run/lock tmpfs
rw,nosuid,nodev,noexec,relatime,size=5120k 0 0 none /run/shm tmpfs
rw,nosuid,nodev,relatime 0 0 none /run/user tmpfs
rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0 none
/sys/fs/pstore pstore rw,relatime 0 0 /dev/nvme0n1p8 /boot ext4
rw,relatime,data=ordered 0 0 /dev/nvme0n1p1 /boot/efi vfat
rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
0 0 /dev/nvme0n1p9 /home ext4 rw,relatime,data=ordered 0 0 binfmt_misc
/proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0
0 systemd /sys/fs/cgroup/systemd cgroup
rw,nosuid,nodev,noexec,relatime,name=systemd 0 0 gvfsd-fuse
/run/user/1000/gvfs fuse.gvfsd-fuse
rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
运行该命令:mount -o remount,rw /dev/nvme0n1p6 / ext4
重启