LQ Newbie
Registered: Oct 2005
Location: Glygada, Attica, Hellas
Distribution: SUSE Linux 10.1
Posts: 9
Rep:
|
Can't automount with correct CharacterSet
Hi, I am pretty new to linux (Suse 9.3, KDE 3.4.0 b, kernel 2.6) and have the following problem:
When I plug a USB flash disk, or a media card, linux mount it, but with no character set, so my files with Greek characters filename displayed with unread characters.
This is the following entries in mtab:
/dev/hda6 / reiserfs rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/hda1 /windows/C ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0
/dev/hda2 /windows/D vfat rw,noexec,nosuid,nodev,umask=0,utf8=true 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/hdb /media/SU930_001 subfs ro,nosuid,nodev,fs=cdfss,procuid 0 0
/dev/fd0 /media/floppy subfs rw,nosuid,nodev,sync,fs=floppyfss,procuid 0 0
/dev/sda1 /media/usbdisk subfs rw,nosuid,nodev,sync,fs=floppyfss,procuid 0 0
/dev/sdb1 /media/FLASH_DISK subfs rw,nosuid,nodev,sync,fs=floppyfss,procuid 0 0
and this is entries in fstab
/dev/hda6 / reiserfs acl,user_xattr 1 1
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda2 /windows/D vfat user,umask=0,utf8=true 0 0
/dev/hda5 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid= 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdram /media/dvdram subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,users,fs=floppyfss,procuid,nodev,nosuid,sync,utf8=true 0 0
/dev/hdc2 /SuseLinux/c2 auto noauto,user 0 0
/dev/hdc3 /SuseLinux/c3 auto noauto,user 0 0
/dev/hdc1 /data2 swap pri=42 0 0
I wrote this in my fstab
/dev/sda1 /media/usbdisk subfs rw,nosuid,nodev,sync,fs=floppyfss,procuid,utf8=true 0 0
/dev/sdb1 /media/FLASH_DISK subfs rw,nosuid,nodev,sync,fs=floppyfss,procuid,utf8=true 0 0
but seems that automount is not read fstab.
So, i run (as root):
umount /media/usbdisk
umount /media/FLASH_DISK
and then
mount /media/usbdisk
mount /media/FLASH_DISK
After that, I can read my disks as utf8
But is not the best way to do this. I hope for something better.
This is the output when I type, as root:
test -e /etc/SuSEconfig/profile && . /etc/SuSEconfig/profile && locale -k charmap
charmap="UTF-8"
This is the following entries in /var/log/messages
Oct 24 23:09:26 linux kernel: usb 3-3: new high speed USB device using ehci_hcd and address 3
Oct 24 23:09:28 linux kernel: Initializing USB Mass Storage driver...
Oct 24 23:09:28 linux kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0803
Oct 24 23:09:28 linux kernel: usbcore: registered new driver usblp
Oct 24 23:09:28 linux kernel: drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Oct 24 23:09:28 linux kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Oct 24 23:09:28 linux kernel: usbcore: registered new driver usb-storage
Oct 24 23:09:28 linux kernel: USB Mass Storage support registered.
Oct 24 23:09:28 linux kernel: usb-storage: device found at 3
Oct 24 23:09:28 linux kernel: usb-storage: waiting for device to settle before scanning
Oct 24 23:09:33 linux kernel: Vendor: EPSON Model: Stylus Storage Rev: 1.00
Oct 24 23:09:33 linux kernel: Type: Direct-Access ANSI SCSI revision: 02
Oct 24 23:09:33 linux kernel: SCSI device sda: 125440 512-byte hdwr sectors (64 MB)
Oct 24 23:09:33 linux kernel: sda: Write Protect is off
Oct 24 23:09:33 linux kernel: sda: Mode Sense: 0d 00 00 08
Oct 24 23:09:33 linux kernel: sda: assuming drive cache: write through
Oct 24 23:09:33 linux kernel: SCSI device sda: 125440 512-byte hdwr sectors (64 MB)
Oct 24 23:09:33 linux kernel: sda: Write Protect is off
Oct 24 23:09:33 linux kernel: sda: Mode Sense: 0d 00 00 08
Oct 24 23:09:33 linux kernel: sda: assuming drive cache: write through
Oct 24 23:09:33 linux kernel: sda: sda1
Oct 24 23:09:33 linux kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Oct 24 23:09:33 linux kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
Oct 24 23:09:33 linux kernel: usb-storage: device scan complete
Oct 24 23:09:34 linux /etc/hotplug.d/block/50-hwscan.hotplug[17091]: new block device /block/sda
Oct 24 23:09:34 linux /etc/hotplug.d/block/50-hwscan.hotplug[17136]: new block device /block/sda/sda1
Oct 24 23:09:34 linux hal-subfs-mount[17151]: registered at resmgrd and called(0) /bin/mount -t subfs -o fs=floppyfss,sync,procuid,nosuid,nodev,exec /dev/sda1 "/media/usbdisk"
Oct 24 23:09:43 linux hal.hotplug[17179]: DEVPATH is not set
Oct 24 23:09:46 linux hal.hotplug[17186]: DEVPATH is not set
Oct 24 23:09:50 linux kernel: usb 3-1: new high speed USB device using ehci_hcd and address 4
Oct 24 23:09:50 linux kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Oct 24 23:09:50 linux kernel: usb-storage: device found at 4
Oct 24 23:09:50 linux kernel: usb-storage: waiting for device to settle before scanning
Oct 24 23:09:50 linux hal.hotplug[17214]: DEVPATH is not set
Oct 24 23:09:53 linux hal.hotplug[17266]: DEVPATH is not set
Oct 24 23:09:55 linux kernel: Vendor: JetFlash Model: TS512MJF2B Rev: 2.00
Oct 24 23:09:55 linux kernel: Type: Direct-Access ANSI SCSI revision: 02
Oct 24 23:09:56 linux kernel: SCSI device sdb: 1024000 512-byte hdwr sectors (524 MB)
Oct 24 23:09:56 linux kernel: sdb: Write Protect is off
Oct 24 23:09:56 linux kernel: sdb: Mode Sense: 03 00 00 00
Oct 24 23:09:56 linux kernel: sdb: assuming drive cache: write through
Oct 24 23:09:56 linux kernel: SCSI device sdb: 1024000 512-byte hdwr sectors (524 MB)
Oct 24 23:09:56 linux kernel: sdb: Write Protect is off
Oct 24 23:09:56 linux kernel: sdb: Mode Sense: 03 00 00 00
Oct 24 23:09:56 linux kernel: sdb: assuming drive cache: write through
Oct 24 23:09:56 linux kernel: sdb: sdb1
Oct 24 23:09:56 linux kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
Oct 24 23:09:56 linux kernel: Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
Oct 24 23:09:56 linux kernel: usb-storage: device scan complete
Oct 24 23:10:00 linux /etc/hotplug.d/block/50-hwscan.hotplug[17345]: new block device /block/sdb
Oct 24 23:10:01 linux /etc/hotplug.d/block/50-hwscan.hotplug[17395]: new block device /block/sdb/sdb1
Oct 24 23:10:01 linux hal-subfs-mount[17410]: registered at resmgrd and called(0) /bin/mount -t subfs -o fs=floppyfss,sync,procuid,nosuid,nodev,exec /dev/sdb1 "/media/FLASH_DISK"
Oct 24 23:10:05 linux hal.hotplug[17421]: DEVPATH is not set
Oct 24 23:10:08 linux hal.hotplug[17426]: DEVPATH is not set
Oct 24 23:10:12 linux hal.hotplug[17432]: DEVPATH is not set
Oct 24 23:10:15 linux hal.hotplug[17435]: DEVPATH is not set
|