LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-25-2005, 05:37 AM   #1
sstyl
LQ Newbie
 
Registered: Oct 2005
Location: Glygada, Attica, Hellas
Distribution: SUSE Linux 10.1
Posts: 9

Rep: Reputation: 0
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
 
Old 10-26-2005, 05:10 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Just to start with: I don't understand the hotplug/submount system of SUSE anymore. In previous versions (9.1) it was quite easy. Just a couple of scripts and a config file (/etc/sysconfig/hotplug). This config file may still be present in 9.3, so have a look here, if you can make submount to use you fstab setting (I think this was possible).

To simplify you current procedure a little bit: instead of unmount/mount, you may use mount /media/usbdisk -o remount .

Hope it helps!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
automount in 9.1 alaios SUSE / openSUSE 8 10-26-2004 10:04 AM
Characterset problem?: little boxes with numbers alienDog Slackware 4 05-08-2004 07:36 PM
Change Characterset (Pine) Aerial Slackware 2 10-26-2003 03:20 PM
automount spank Linux - Newbie 1 09-02-2003 03:43 PM
how can change characterset in oracle? ayman Linux - Software 2 04-27-2003 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration