Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
монтирование win раздела xthtp smbfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Double
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 250

PostPosted: Tue Mar 18, 2008 11:03 am    Post subject: монтирование win раздела xthtp smbfs Reply with quote

Доброго времени суток.
Есть следующая проблема:
Code:
double-server etc # locale
LANG=ru_RU.UTF-8
...........
LC_ALL=
double-server etc #

монтирую раздел:
Code:
mount -t smbfs -o iocharset=utf8,codepage=cp866,username=double //xx.xx.xx.xx/it_share$ /mnt/windows/

все монтируется нормально в том смысле что русские имена отображаются корректно
прописыаю в /etc/fstab:
Code:
//xx.xx.xx.xx/it_share$          /mnt/windows            smbfs           rw,iocharset=utf8,codepage=cp866,username=double,noauto   0 0

монтирую и получаю русские имена в виде "?????"
кто подскажет в чем проблема?
Back to top
View user's profile Send private message
calculator
Apprentice
Apprentice


Joined: 16 Oct 2006
Posts: 183
Location: Russia, Moscow

PostPosted: Tue Mar 18, 2008 11:44 am    Post subject: Reply with quote

Может fstab побитый какой %( Попробуй вручную в новый fstab //xx.xx.xx.xx/it_share$ /mnt/windows smbfs rw,iocharset=utf8,codepage=cp866,username=double,noauto 0 0 записать. Просто были у меня моменты когда с виду в файликt вроде все хорошо, но там, как потом оказывалось, были _левые_ символы которых из вима не видно.
А так у меня к примеру без iocharset=utf8,codepage=cp866:
CONFIG_SMB_NLS_REMOTE="cp866"
CONFIG_NLS_DEFAULT="utf8"
Back to top
View user's profile Send private message
Double
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 250

PostPosted: Tue Mar 18, 2008 12:38 pm    Post subject: Reply with quote

ну я думаю что еслиб были косяки с непонятными символами он бы отругался но все таки перепроверил:
Code:
double-server ~ # cp /etc/fstab /etc/fstab.orig
double-server ~ # >/etc/fstab
double-server ~ # cat /etc/fstab
double-server ~ # echo "//xx.xx.xx.xx/it_share$ /mnt/windows smbfs rw,iocharset=utf8,codepage=cp866,username=double 0 0" >/etc/fstab
double-server ~ # cat /etc/fstab
//xx.xx.xx.xx/it_share$ /mnt/windows smbfs rw,iocharset=utf8,codepage=cp866,username=double 0 0
double-server ~ # mount /mnt/windows/
opts: rw
opts: iocharset=utf8
opts: copedage=cp866
opts: username=double
passthrough options 'iocharset=utf8,copedage=cp866'
mount.smbfs started (version 3.0.28)
added interface ip=xx.xx.xx.xx bcast=xx.xx.xx.255 nmask=255.255.255.0
Connecting to xx.xx.xx.xx at port 445
Password:
double-server ~ # ls -la /mnt/windows
.....................
drwxr-xr-x 1 root root      4096 Мар 17 18:24 ???? ??孨??
drwxr-xr-x 1 root root      4096 Окт  2 10:29 ???? ? ???祭??
double-server ~ #

эффект тот же самый... :(
Back to top
View user's profile Send private message
calculator
Apprentice
Apprentice


Joined: 16 Oct 2006
Posts: 183
Location: Russia, Moscow

PostPosted: Tue Mar 18, 2008 3:20 pm    Post subject: Reply with quote

Нда :-(
А если не секрет почему у тебя mount с такими подробностями отрабатывает?
Back to top
View user's profile Send private message
Double
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 250

PostPosted: Tue Mar 18, 2008 4:23 pm    Post subject: Reply with quote

не секрет, ничего специально я для этого не делал он у меня так по умолчанию работает :)
Back to top
View user's profile Send private message
calculator
Apprentice
Apprentice


Joined: 16 Oct 2006
Posts: 183
Location: Russia, Moscow

PostPosted: Tue Mar 18, 2008 8:45 pm    Post subject: Reply with quote

Остается наверно только любимый strace запускать и сравнивать чего он так неадекватно себя ведет :-)
Может еще чего с util-linux версией/сборкой? :-)
Code:
# eix util-linux
[I] sys-apps/util-linux
     Available versions:  2.12r-r7 2.12r-r8 ~2.13-r1 2.13-r2 ~2.13.0.1 ~2.13.1 **9999 {crypt loop-aes nls old-crypt old-linux perl selinux static}
     Installed versions:  2.13-r2(13:46:43 13.03.2008)(crypt nls -old-linux -selinux)
Back to top
View user's profile Send private message
freej
n00b
n00b


Joined: 12 Feb 2007
Posts: 12
Location: Иркутск

PostPosted: Wed Mar 19, 2008 12:38 am    Post subject: Reply with quote

mount -t smbfs -o username=double,iocharset=utf8,codepage=unicode,unicode //xx.xx.xx.xx/it_share$ /mnt/windows/

вот так точно работает =)))
_________________
В этой жизни меня подвдят доброта и порядочность
Back to top
View user's profile Send private message
Double
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 250

PostPosted: Wed Mar 19, 2008 10:43 am    Post subject: Reply with quote

freej wrote:
mount -t smbfs -o username=double,iocharset=utf8,codepage=unicode,unicode //xx.xx.xx.xx/it_share$ /mnt/windows/

вот так точно работает =)))

Вот так тчоно не работет :(

проблема не в монитровании с указанием поций в ручную, а в том, что при указании опций в ручную все работет прекрасно, а при указании тех же опций в /etc/fstab появляются пробемы.
Back to top
View user's profile Send private message
Double
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 250

PostPosted: Wed Mar 19, 2008 10:46 am    Post subject: Reply with quote

freej wrote:
codepage=unicode,unicode
в мане на mount для параметра codepage я не нашел значения unicode вообще.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum