可以在 thunar 侧边栏显示内置硬盘的分区吗?

Ubuntu各种衍生版本
回复
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

可以在 thunar 侧边栏显示内置硬盘的分区吗?

#1

帖子 ptptptptptpt » 2008-11-19 18:34

记得 hiweed 1.0 的时候是会显示内置硬盘分区的,而目前只能显示 移动硬盘 的分区,有选项可以调节吗??

还有,在盘符上点右键弹出移动硬盘时会出错,不知有没有办法解决??还是只能手动 umount ?
附件
Screenshot-sdc1 - 文件管理器.png
Screenshot.png
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#2

帖子 huangjiahua » 2008-11-19 19:25

这个盘是开机前插上的吧,
那就是自动用 root 身份挂载了,
如果是进入桌面后插入的,会是用当前用户挂载。

这卸载的问题,试试将 /etc/init.d/hiweed-autowinfs.sh
里边 user, 改为 users,
跃过无数的时间断层,只为了在
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#3

帖子 huangjiahua » 2008-11-19 19:28

要让 Thunar 侧栏显示本地硬盘分区,得打额外补丁
跃过无数的时间断层,只为了在
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#4

帖子 ptptptptptpt » 2008-11-19 19:46

确实是开机前插上的。

重启,进入桌面后再接上移动硬盘,弹出时还是会出错

重启前改了 /etc/init.d/hiweed-autowinfs.sh ,但我想 这个脚本应该不会影响开机后接入的移动硬盘吧?
附件
Screenshot-3.png
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#5

帖子 huangjiahua » 2008-11-19 19:59

未知错误……

难道你的是 ntfs 文件系统?
跃过无数的时间断层,只为了在
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#6

帖子 ptptptptptpt » 2008-11-19 20:05

u-数据 和 U-60G 是ntfs ,U-BOOT 和 U-10G 是 fat32 ,5G Volume 是 reiserfs
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#7

帖子 ptptptptptpt » 2008-11-19 20:06

弹出时有一个卸载的动作,但报错后马上又重新挂载了
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#8

帖子 huangjiahua » 2008-11-20 22:45

粗糙写了个 ptptptptptpt 要的补丁,
让 thunar 显示内置硬盘分区

thunar-0.9.0/debian/patches/06_thunar-vfs-fakehardisk.patch

代码: 全选

--- thunar-0.9.0/thunar-vfs/thunar-vfs-volume-hal.c.orig	2008-11-20 22:22:16.000000000 +0800
+++ thunar-0.9.0/thunar-vfs/thunar-vfs-volume-hal.c	2008-11-20 22:23:08.000000000 +0800
@@ -519,6 +519,7 @@
           volume_hal->kind = THUNAR_VFS_VOLUME_KIND_USBSTICK;
         }
       else if (libhal_drive_uses_removable_media (hd)
+            || 1
             || libhal_drive_is_hotpluggable (hd))
         {
           /* fallback to generic removable disk */

要的自己拿吧,
不过不用指望会进官方,太 dirty 了
附件
Screenshot-thunar-showhardisk.png
跃过无数的时间断层,只为了在
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#9

帖子 ptptptptptpt » 2008-11-20 23:29

其实。。。正想说,这帖子里说的几个问题,其实也不是什么大不了的。差不多也就行了。毕竟 thunar 不是自己开发

huahua 的意思,得给源码打补丁然后编译?? 这样的话,我还是忍了吧 :em06 :em06
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#10

帖子 huangjiahua » 2008-11-20 23:32

那我先发给你 deb 包吧
跃过无数的时间断层,只为了在
头像
jarryson
帖子: 4002
注册时间: 2005-08-14 19:53

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#11

帖子 jarryson » 2008-11-20 23:48

arch里面我自己打的exo相关补丁,可以弹出u盘,但是我自己的一个移动硬盘无法弹出,大概旧和lz情况一样。但是我觉得应该是exo需要补丁把

这是arch里面打的两个补丁。
http://foo-projects.org/pipermail/thuna ... volman.bin
http://bugzilla.xfce.org/attachment.cgi?id=1452

不知道hiweed给thunar打了什么补丁呢
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#12

帖子 huangjiahua » 2008-11-20 23:54

多谢, hiweed 的 thunar 补丁就是上贴那个,
另一个是 thunar-archive-plugin 的中文翻译
跃过无数的时间断层,只为了在
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#13

帖子 huangjiahua » 2008-11-20 23:57

哦不, 那个 thunar-vfs-volume-hal_missing-audio-cds-for-volman 补丁是 Debian/Ubuntu 用了的

thunar-0.9.0/debian/patches/02_thunar-vfs-volume-hal_missing-audio-cds-for-volman.patch
跃过无数的时间断层,只为了在
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
联系:

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#14

帖子 huangjiahua » 2008-11-21 0:01

而第二个 thunar-vfs-nozombies.patch 貌似跟这无关
跃过无数的时间断层,只为了在
头像
liyafe1997
帖子: 490
注册时间: 2009-07-18 0:14

Re: 可以在 thunar 侧边栏显示内置硬盘的分区吗?

#15

帖子 liyafe1997 » 2010-01-03 13:54

呵呵,我也是需要这个玩意啊 ~~
Linux爱好者,只为效率,有空会常来灌水。
——————
强推:WebQQ桌面化方案,体验很好
稻草软件论坛
Strawing Blog
回复