trash-put在新的硬盤分區起效

trash-put在新的硬盤分區下不能起效,在項目上面有bug反映:html

Can't trash regular file #9
git

The .Trash-$uid and the .Trash directories should be created in the volume, 
usually this means /media/disk/.Trash or /media/disk/.Trash-123.
 Moreover the /media/disk/.Trash directory needs the sticky bit set.

在新的硬盤分區使用下面命令能夠:github

#mkdir /new_disk/.Trash
#chmod +t /new_disk/.Trash
#chmod a+w /new_disk/.Trash
相關文章
相關標籤/搜索