LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-18-2008, 06:43 AM   #1
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Question NTFS mount at boot different from manual mount (international characters)


Hi to all,

I recently installed Slackware 12.1 on a system that has Windows XP as the main OS.

It has the following partitions:
/dev/hda1 - some kind of system partition from the manufacturer (Dell)
/dev/hda2 - Windows XP (ntfs)
/dev/hda3 - swap
/dev/hda4 - Slackware 12.1 (ext3)

There are some files on the NTFS partition I want to access from Slackware, so I added the following line to /etc/fstab:
Code:
/dev/hda2  /mnt/XP  ntfs-3g  umask=022,iocharset=iso8859-1  1  0
It seems to work fine, the partition is mounted at boot, but...

Some files and directories have international characters, like:
"c:\niels\pendências"
These files are simply not shown when I do a
"ls /mnt/XP/niels"

Now for the strangest part...
When I "umount /mnt/XP" and then "mount /mnt/XP", the files and directories that where missing suddenly show up!

So it seems my fstab line is ok, but somehow the mount at boot time is different.

I guess something has to be loaded before mounting the ntfs partition...
I could simply mount after booting, even put a line in rc.local, but I was hoping someone has a cleaner solution for me.
 
Old 09-18-2008, 07:27 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you try the locale option ? (from man ntfs-3g):
say your locale is: pt_BR
Code:
/dev/hda2  /mnt/XP  ntfs-3g  umask=022,noatime,locale=pt_BR 0  0

Last edited by keefaz; 09-18-2008 at 07:31 AM. Reason: set the locale to pt_BR :)
 
Old 09-18-2008, 10:54 AM   #3
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
Worked!

Yes, it works!
Thanks for the suggestion

Now, any idea why "locale=" works at boot-time and "iocharset-" doesn't?
Just curiosity...
 
Old 09-18-2008, 10:55 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe iocharset is not a valid option for ntfs-3g filesystem ?
At least it is not present in its man page (man ntfs-3g)
 
Old 09-18-2008, 07:24 PM   #5
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
ok, should read the manual again...
Back when we only had ntfs and not ntfs-3g, I always used iocharset=xxxx so I used it again for this system without checking the man page.
Thanks for setting me straight!
 
  


Reply



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
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
got my ntfs sata drive to mount but cat get to auto mount Jack Daniels Linux - Hardware 3 04-15-2007 10:42 AM
How to get ntfs-3g to mount at boot ? tadeusz666 Fedora 13 12-02-2006 04:58 AM
Can I mount a local NTFS disc as SAMBA mount point? alek66 Linux - Networking 15 10-01-2006 10:02 AM
can't access ntfs mount through nfs mount bezoomny Linux - Networking 9 04-14-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:35 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