作者 主題: [問題]無法umount網路磁碟  (閱讀 5359 次)

0 會員 與 1 訪客 正在閱讀本文。

sevendollar

  • 懷疑的國中生
  • **
  • 文章數: 52
    • 檢視個人資料
[問題]無法umount網路磁碟
« 於: 2003-09-16 19:00 »
學長好~

學弟在linux上mount了m$ me的磁碟,存取後,想說試試看先把m$ me的分享關了再到linux上umount,結果出問題,於是重新到m$ me的原磁碟打開分享,linux上可以正常存取,但還是不能umount...會何為這樣呢?如何解決呢? :oops:

$ mount -t smbfs -o iocharset=big5,codepage=950 //seven/d /tmp/d
$ mount
/dev/hdb1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev type devfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb6 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/hdd,fs=auto,--,iocharset=big5,codepage=950,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=big5,codepage=950,umask=0)
//seven/f on /tmp/f type smbfs (0)
//seven/d on /tmp/d type smbfs (0)
$ umount /tmp/f
umount: /tmp/f: device is busy

reggie

  • 活潑的大學生
  • ***
  • 文章數: 386
    • 檢視個人資料
[問題]無法umount網路磁碟
« 回覆 #1 於: 2003-09-16 20:17 »
cd /
umount /tmp/f

lms

  • 懷疑的國中生
  • **
  • 文章數: 62
    • 檢視個人資料
[問題]無法umount網路磁碟
« 回覆 #2 於: 2003-09-17 00:08 »
先離開/tmp/f ,同時並確定無任何user access the directory, then umount the /tmp/f

sevendollar

  • 懷疑的國中生
  • **
  • 文章數: 52
    • 檢視個人資料
[問題]無法umount網路磁碟
« 回覆 #3 於: 2003-09-17 08:54 »
謝謝lms、reggie學長的指教~
但就是不能造正常程序umount,學弟才po出來耶。再麻煩學長嚕 :oops:

twu2

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 5417
  • 性別: 男
    • 檢視個人資料
    • http://blog.teatime.com.tw/1
[問題]無法umount網路磁碟
« 回覆 #4 於: 2003-09-17 09:18 »
先用 fuser -mv /tmp/f 看看是那個 process 佔住了. 把那個 process 砍了再試看看吧.
不然用 umount -f 強迫 umount 試看看.

最後... 真的無法解決, 我最常用的方法就是.... 找個沒人用的時間, 重開機.

經驗上來說, 就算是用 umount -f 來強迫 umount, 系統仍然會怪怪的.....

sevendollar

  • 懷疑的國中生
  • **
  • 文章數: 52
    • 檢視個人資料
[問題]無法umount網路磁碟
« 回覆 #5 於: 2003-09-17 10:32 »
to twu2學長:
看來學弟我真不該手賤的先把m$的分享關掉,試著把行程砍掉也無用...看來是無解了。謝謝學長!!

$ umount -f /tmp/f
umount2: Device or resource busy
umount: //seven/f: not found
umount: /tmp/f: Illegal seek

sevendollar

  • 懷疑的國中生
  • **
  • 文章數: 52
    • 檢視個人資料
[問題]無法umount網路磁碟
« 回覆 #6 於: 2003-09-18 09:05 »
本來只是不能umount的,後來學弟直接把mount directory(/tmp/f)砍了,事態更嚴重;連砍都砍不掉

$ sudo rm -fr /tmp/f
rm: cannot lstat `/tmp/f': Input/output error
lstat是什麼意思呢?查也查不到

也不能使用了
$ ll /tmp/f
ls: /tmp/f: Input/output error

一定要重開機才行嗎?非必要時學弟是不能重開機的 :o

harrier

  • 榮譽博士
  • 俺是博士!
  • *****
  • 文章數: 1856
  • 性別: 男
    • 檢視個人資料
    • 國屬武裝兵
[問題]無法umount網路磁碟
« 回覆 #7 於: 2003-09-18 15:28 »
引述: "sevendollar"
本來只是不能umount的,後來學弟直接把mount directory(/tmp/f)砍了,事態更嚴重;連砍都砍不掉

$ sudo rm -fr /tmp/f
rm: cannot lstat `/tmp/f': Input/output error
lstat是什麼意思呢?查也查不到

也不能使用了
$ ll /tmp/f
ls: /tmp/f: Input/output error

一定要重開機才行嗎?非必要時學弟是不能重開機的 :o


這樣等於是不正常移除檔案系統,例如,先 mount 軟碟,然後
不 umount 就直接退出軟碟片的結果一樣。

看來非重新..還沒到整台重開..init 1 再 init 3 好了...
(差在硬體沒重驅)...
...90Net(90:1200/1203),GameNET(99:700/707),ALLNet(92:9200/3111),InfoNet(30:100/103)..MaximusCBCS(浮懷),AirNet,TenderNet,StormNet,FidoNet...
<<- www.nas.vg ->>

sevendollar

  • 懷疑的國中生
  • **
  • 文章數: 52
    • 檢視個人資料
[問題]無法umount網路磁碟
« 回覆 #8 於: 2003-09-18 21:59 »
to harrier學長:

好慘!看來reboot勢在必行了,謝謝學長