LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-16-2007, 01:09 AM   #1
oriate
Member
 
Registered: May 2005
Posts: 33

Rep: Reputation: 15
confusion with two options of mount


what are the differences between -o iocharset=utf8 AND -o utf8 ?

TIA
 
Old 04-16-2007, 03:30 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Take a look here: wiki lq: NTFS faq

In short:
-o iocharset=XXX => info taken from the kernel
-o XXX => info taken from NTFS driver.

Hope this helps.
 
Old 04-16-2007, 03:55 AM   #3
oriate
Member
 
Registered: May 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Sorry, I cannot connect to http://wiki.linuxquestions.org/wiki/...riginal_Driver
 
Old 04-16-2007, 04:01 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

No problems here. Both links work (mine has an extra dot on the end, yours doesn't, but this doesn't seem to be a problem).

Maybe this one will work: http://wiki.linuxquestions.org/wiki/Linux-NTFS_FAQ
Find: Mount options for the Original Driver.

Hope this helps.
 
Old 04-16-2007, 04:06 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Here's a text version: http://www.charmed.com/txt/ntfs.txt
Look for the utf8=<bool> section (near the top).
 
Old 04-16-2007, 11:48 PM   #6
oriate
Member
 
Registered: May 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you for your replies.

I did some experiment:

rick-debian:~# mount
/dev/hda9 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda10 on /boot type ext3 (rw)
/dev/hda5 on /media/D type vfat (rw,utf8)
/dev/hda6 on /media/E type vfat (rw,utf8)
/dev/hda8 on /media/F type vfat (rw,utf8)
/dev/hda1 on /media/C type vfat (rw,iocharset=utf8)

rick-debian:~# cat /media/C/abc
abcdfdf
rick-debian:~# cat /media/C/ABC
cat: /media/C/ABC: No such file or directory

when save /media/C/ABC after editing, I got :
"/media/C/ABC"
"/media/C/ABC" E212: Can't open file for writing
Press ENTER or type command to continue


rick-debian:~# cat /media/D/abc
abcd
rick-debian:~# cat /media/D/ABC
abcd

when editing /media/D/ABC, just like editing /media/D/abc


How to explain these?

btw:
rick-debian:/home/rick# uname -a
Linux rick-debian.nju.edu.cn 2.6.17-2-486 #1 Wed Sep 13 15:56:30 UTC 2006 i686 GNU/Linux
 
Old 04-17-2007, 03:18 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Are the mounted vfat partitions actually ntfs partitions? If so; Why are you mounting them as vfat? or are you 'just' trying new things?

Before you start editing your fstab file: the /media/C seems to be wrong and the other 3 seem to be ok.
 
Old 04-17-2007, 06:55 AM   #8
oriate
Member
 
Registered: May 2005
Posts: 33

Original Poster
Rep: Reputation: 15
They ARE vfat partitions. What I did is to try to make clear the difference between two options "-o iocharset=utf8" and "-o utf8" .
 
Old 04-17-2007, 07:41 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Only utf8 is a legal option for vfat filesystems. That explains why iochar=utf8 (which is not a vfat option) does not work.

man mount for details.
 
Old 04-17-2007, 10:33 AM   #10
oriate
Member
 
Registered: May 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you. I've got it
 
  


Reply

Tags
ntfs



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount Options: Best Practices Notwerk Linux - Security 4 01-28-2007 12:11 PM
Mount NTFS user and group confusion. smudge|lala Linux - Hardware 10 10-21-2006 12:56 PM
fstab - mount options merchtemeagle Linux - General 3 03-09-2006 06:00 PM
insert options to usb hotplug mount Yuan Linux - Laptop and Netbook 0 10-20-2005 12:41 AM
mount options? nagromo Linux - Software 3 02-27-2005 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:47 AM.

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