|
新编译的kernel26-ice,没有选iso8859-1这个选项
无法自动挂载U盘
- $dmesg | tail
- sd 9:0:0:0: Attached scsi generic sg2 type 0
- sd 9:0:0:0: [sdb] 2079744 512-byte logical blocks: (1.06 GB/1015 MiB)
- sd 9:0:0:0: [sdb] Write Protect is off
- sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
- sd 9:0:0:0: [sdb] Assuming drive cache: write through
- sd 9:0:0:0: [sdb] Assuming drive cache: write through
- sdb: sdb1
- sd 9:0:0:0: [sdb] Assuming drive cache: write through
- sd 9:0:0:0: [sdb] Attached SCSI removable disk
- FAT: IO charset iso8859-1 not found
复制代码
但是手动加参数用mount可以成功
- $sudo mount -t vfat -o iocharset=utf8 /dev/sdb1 /media/cd
复制代码
于是乎,我就觉得这个地方肯定是可以改一下设置,让默认字符编码就用utf8挂载应该就可以了
找到了如下文件:
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
打开后找到如下地方
- <!-- allow these mount options for vfat -->
- <match key="volume.fstype" string="vfat">
- <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
- <append key="volume.mount.valid_options" type="strlist">utf8</append>
- <append key="volume.mount.valid_options" type="strlist">shortname=</append>
- <append key="volume.mount.valid_options" type="strlist">codepage=</append>
- <append key="volume.mount.valid_options" type="strlist">iocharset=</append>
- <append key="volume.mount.valid_options" type="strlist">umask=</append>
- <append key="volume.mount.valid_options" type="strlist">dmask=</append>
- <append key="volume.mount.valid_options" type="strlist">fmask=</append>
- <append key="volume.mount.valid_options" type="strlist">uid=</append>
- <append key="volume.mount.valid_options" type="strlist">flush</append>
- </match>
复制代码
我在上面iocharset=后面加上utf8,重启了hal,貌似没有效果。
各位sirer,有没有好的建议? |
|