浅析如何为wine增加一个磁盘分区D同时通过软链接到windows中的d分区
首先我们看看wine默认的磁盘c和z
luther@gliethttp:~/.wine$ ll dosdevices/
total 0
lrwxrwxrwx 1 luther luther 1 2009-05-14 08:18 z: -> /
lrwxrwxrwx 1 luther luther 10 2009-05-14 08:18 c: -> ../drive_c
lrwxrwxrwx 1 luther luther 9 2009-06-16 10:38 a:: -> /dev/sdb1
lrwxrwxrwx 1 luther luther 9 2009-06-17 09:18 b:: -> /dev/sdb4
lrwxrwxrwx 1 luther luther 16 2009-07-16 08:54 a: -> /media/gliethttp
可以看到c磁盘对应的是~/.wine/drive_c目录,z磁盘对应的就是linux系统中的/根目录了.
为wine新增一个磁盘很简单
1. luther@gliethttp:~/.wine$ mkdir drive_d
2. luther@gliethttp:~/.wine/dosdevices$ ln -s ../drive_d d:
luther@gliethttp:~/.wine/dosdevices$ ll
total 0
lrwxrwxrwx 1 luther luther 1 2009-05-14 08:18 z: -> /
lrwxrwxrwx 1 luther luther 10 2009-05-14 08:18 c: -> ../drive_c
lrwxrwxrwx 1 luther luther 9 2009-06-16 10:38 a:: -> /dev/sdb1
lrwxrwxrwx 1 luther luther 9 2009-06-17 09:18 b:: -> /dev/sdb4
lrwxrwxrwx 1 luther luther 16 2009-07-16 08:54 a: -> /media/gliethttp
lrwxrwxrwx 1 luther luther 10 2009-08-27 11:07 d: -> ../drive_d
luther@gliethttp:~/.wine/dosdevices$
这样我们就给wine增加了d分区了,d分区的内容全部都在~/.wine/drive_d目录中.
3. 当然也可以直接链接mount上本地物理磁盘上的d分区目录,比如:
luther@gliethttp:~/.wine/dosdevices$ ln -s /media/d d:
luther@gliethttp:~/.wine/dosdevices$ ll
total 0
lrwxrwxrwx 1 luther luther 1 2009-05-14 08:18 z: -> /
lrwxrwxrwx 1 luther luther 10 2009-05-14 08:18 c: -> ../drive_c
lrwxrwxrwx 1 luther luther 9 2009-06-16 10:38 a:: -> /dev/sdb1
lrwxrwxrwx 1 luther luther 9 2009-06-17 09:18 b:: -> /dev/sdb4
lrwxrwxrwx 1 luther luther 16 2009-07-16 08:54 a: -> /media/gliethttp
lrwxrwxrwx 1 luther luther 8 2009-08-27 11:11 d: -> /media/d
阅读(2749) | 评论(0) | 转发(0) |