[問題] 用各式方法也無法移除的檔案

看板Linux作者 (gn02380756)時間2年前 (2021/09/01 14:54), 編輯推噓2(208)
留言10則, 7人參與, 2年前最新討論串1/1
各位大神們好 小弟在工作上處理BSP時遇到一個問題 我想刪除一整個build好的root file system資料夾 但有個叫做ptmx的檔案無論用什麼方法都刪不掉 此檔案在/dev/pts底下 權限已經用sudo chmod 777更改如下: https://imgur.com/b1ieLJ9
用sudo rm -rf會出現: https://imgur.com/yLnNwYw
這時候想用lsattr去看他是否有其他特別屬性也沒辦法: https://imgur.com/a/ZyjRWW2 用file查看他也不是link檔 是一個character special file: https://imgur.com/a/4KWe7vV 想請問大家還有什麼方法可以移除這個檔案嗎? 整個資料夾都刪光光了就差他而已... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.218.53.138 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1630479253.A.FC2.html

09/01 17:14, 2年前 , 1F
remove file by inode number ?
09/01 17:14, 1F

09/01 17:53, 2年前 , 2F
driver產生的虛擬檔案?
09/01 17:53, 2F

09/01 18:34, 2年前 , 3F
你umount它就好幹嘛刪它
09/01 18:34, 3F

09/01 18:37, 2年前 , 4F

09/01 18:37, 2年前 , 5F
大哥,這是你開terminal會產生的檔案,你用termin
09/01 18:37, 5F

09/01 18:37, 2年前 , 6F
al自己砍自己怎麼砍的掉,就算讓你砍掉了,再開一
09/01 18:37, 6F

09/01 18:37, 2年前 , 7F
個terminal又會自己生出來了。
09/01 18:37, 7F

09/01 19:19, 2年前 , 8F
大哥 google "linux ptmx"不就有資訊了嗎
09/01 19:19, 8F

09/02 12:06, 2年前 , 9F
man ptmx。網路上的文件要找 2006 以後的。
09/02 12:06, 9F

09/02 12:37, 2年前 , 10F
別想刪除這個,那是 devpts 掛載,裡面後續系統自行管理
09/02 12:37, 10F
文章代碼(AID): #1XBoEL_2 (Linux)