寫入動作

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

寫入動作

文章洪瑞興 » 週一 11月 21, 2005 6:39 pm

請問要如何才能讓USB寫入的動作立即執行
洪瑞興
懵懂的國中生
懵懂的國中生
 
文章: 180
註冊時間: 週四 5月 27, 2004 7:09 pm

文章訪客 » 週一 11月 21, 2005 7:05 pm

你是說 usb 的 disk 嗎?

可以手動 umount,有些 desktop 例如 gnome,可以在 desktop disk icon 的 滑鼠右鍵選 umount。
訪客
 

文章Tetralet » 週一 11月 21, 2005 7:24 pm

請試試 sync 指令。
時間並不能治療我心中的疼痛
南方的春天說什麼也溫暖不了我冰冷的血

誦唱大復活咒文,今天的 Tetralet 又在唧唧喳喳了 重生!
Tetralet
俺是博士
俺是博士
 
文章: 3078
註冊時間: 週四 11月 28, 2002 3:02 pm

文章企鵝狂 » 週一 11月 21, 2005 11:15 pm

http://www.tuxfiles.org/linuxhelp/fstab.html
代碼: 選擇全部
/dev/fd0     /media/floppy     auto     rw,noauto,user,sync     0 0


sync and async How the input and output to the filesystem should be done. sync means it's done synchronously. If you look at the example fstab, you'll notice that this is the option used with the floppy. In plain English, this means that when you, for example, copy a file to the floppy, the changes are physically written to the floppy at the same time you issue the copy command.

However, if you have the async option in /etc/fstab, input and output is done asynchronously. Now when you copy a file to the floppy, the changes may be physically written to it long time after issuing the command. This isn't bad, and may sometimes be favorable, but can cause some nasty accidents: if you just remove the floppy without unmounting it first, the copied file may not physically exist on the floppy yet!

async is the default. However, it may be wise to use sync with the floppy, especially if you're used to the way it's done in Windows and have a tendency to remove floppies before unmounting them first.

如果不寫在fstab裡面

那就mount /dev/sda0 /mnt/usb -o sync
http://news.bbc.co.uk/1/hi/world/asia-pacific/country_profiles/1285915.stm


Country profile: Taiwan
Map of Taiwan
Taiwan is the island which has for all practical purposes been independent for half a century, but which China regards as a rebel region that must be reunited with the mainland - by force if necessary.
企鵝狂
活潑的高中生
活潑的高中生
 
文章: 477
註冊時間: 週三 3月 31, 2004 11:13 am
來自: 台灣共和國


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客