Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: landrive smbclient werkt, smbmount geeft rare tekens  (gelezen 1686 keer)

landrive smbclient werkt, smbmount geeft rare tekens
« Gepost op: 2007/06/03, 21:29:38 »
Hoi,

Zoals jullie in de onderstaande code kunnen lezen, lukt het me niet om een landrive te mounten in ubuntu 7.04.
Als ik via smbclient door de landrive blader, dan werkt het, maar als ik hem probeer te mounten krijg ik allemaal rare tekens.

In windows kan ik hem wel gewoon als schijfstation toevoegen.

Weet iemand hoe ik dit kan oplossen. ik kan immers wel via smbclient zien wat erop staat, dus het moet toch kunnen zou ik denken.

[code]joris@laptop:~$ smbclient //backup/backup
Password:
Domain=[

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #1 Gepost op: 2007/06/04, 08:18:18 »
Het commando smbmount heeft nog volgende opties:
-codepage
-iocharset
Bijvoorbeeld:
smbmount //10.0.0.79/hoehle /mnt/samba -o username=xyz,uid=hoehle,gid=hoehle,file_mode=0640,codepage=cp437,iocharset=utf8
(zie ook: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/60032)
Volgens bovenstaande link zou cp852 en cp437 in combinatie met iocharset utf8 moeten werken.

Ik denk dat je daar wat moet met spelen.

landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #2 Gepost op: 2007/06/04, 11:20:50 »
Oke,

Dat ga ik proberen. Ik laat nog weten of het gelukt is.

landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #3 Gepost op: 2007/06/05, 21:03:24 »
Heb even zitten knutselen, maar kom er nog niet uit, heb hele tijd dezelfde vraagtekens. Iemand nog een suggestie?

joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp437,iocharset=utf8
Password:
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:51 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:51 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp852,iocharset=utf8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:52 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:52 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test codepage=cp852,iocharset=utf8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:52 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:52 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test codepage=cp437,iocharset=utf16
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:53 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:53 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:52 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:52 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/test
joris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 8
drwxr-xr-x 2 joris joris 4096 2007-06-05 20:10 ./
drwxr-xr-x 3 joris joris 4096 2007-06-05 19:56 ../
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test codepage=cp437,iocharset=utf16
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:54 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:54 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ sudo smbumount /home/joris/Desktop/test
/home/joris/Desktop/test probably not smb-filesystem
joris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 8
drwxr-xr-x 2 joris joris 4096 2007-06-05 20:10 ./
drwxr-xr-x 3 joris joris 4096 2007-06-05 19:56 ../
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp437,iocharset=utf-16
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:54 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:54 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 8
drwxr-xr-x 2 joris joris 4096 2007-06-05 20:10 ./
drwxr-xr-x 3 joris joris 4096 2007-06-05 19:56 ../
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp437,iocharset=utf16
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:55 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:55 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 8
drwxr-xr-x 2 joris joris 4096 2007-06-05 20:10 ./
drwxr-xr-x 3 joris joris 4096 2007-06-05 19:56 ../
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=iso8859,iocharset=utf8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:56 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:56 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:56 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:56 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 19:56 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 8
drwxr-xr-x 2 joris joris 4096 2007-06-05 20:10 ./
drwxr-xr-x 3 joris joris 4096 2007-06-05 19:56 ../
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp852,iocharset=utf8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 20:59 /
drwxr-xr-x 1 root  root                4096 2007-06-05 20:59 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 20:57 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 8
drwxr-xr-x 2 joris joris 4096 2007-06-05 20:10 ./
drwxr-xr-x 3 joris joris 4096 2007-06-05 20:57 ../
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp437,iocharset=utf8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 21:00 /
drwxr-xr-x 1 root  root                4096 2007-06-05 21:00 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 20:57 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 8
drwxr-xr-x 2 joris joris 4096 2007-06-05 20:10 ./
drwxr-xr-x 3 joris joris 4096 2007-06-05 20:57 ../
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp437,iocharset=utf16
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-05 21:00 /
drwxr-xr-x 1 root  root                4096 2007-06-05 21:00 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 20:57 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/testjoris@laptop:~$

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #4 Gepost op: 2007/06/06, 07:52:20 »
Uw commando is verkeerd. Het moet zijn:
sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp437,iocharset=utf8
niet
sudo smbmount //Backup/backup /home/joris/Desktop/test ,codepage=cp437,iocharset=utf8

landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #5 Gepost op: 2007/06/06, 13:53:01 »
Oke, ik dacht dat die -o voor de username etc was, maar die staat dus voor alle opties. Had iets beter moeten lezen denk ik. In ieder geval heel erg bedankt, en ik ga vanavond weer even testen.

landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #6 Gepost op: 2007/06/06, 21:54:57 »
Ook dit wil niet helpen, wel andere rare tekens. Is er misschien een andere manier om te achterhalen waarom smbclient wel werkt, of om rsync via smbclient te laten lopen?

joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp437,iocharset=utf8
Password:
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 4250271608
drwxr-xr-x 1 root  root                4096 2007-06-06 21:49 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 21:04 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ∩─?*
-rwxr-xr-x 1 root  root  127489829840000000 1940-10-24 04:26 ?å╖??*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S∩─?*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/test
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp852,iocharset=utf8
Password:
joris@laptop:~$ sudo smbumount /home/joris/Desktop/test
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp852,iocharset=utf8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/testtotaal 4250271608
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ´─?*
drwxr-xr-x 1 root  root                4096 2007-06-06 21:50 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 21:04 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S´─?*
-rwxr-xr-x 1 root  root  127489829840000000 1940-10-24 04:26 Ú� *
joris@laptop:~$ sudo smbumount /home/joris/Desktop/test
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp437,iocharset=utf16Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-06 21:51 /
drwxr-xr-x 1 root  root                4096 2007-06-06 21:51 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 21:04 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/test
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp852,iocharset=utf16
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-06 21:51 /
drwxr-xr-x 1 root  root                4096 2007-06-06 21:51 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 21:04 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/test
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp437,iocharset=utf-8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-06 21:53 /
drwxr-xr-x 1 root  root                4096 2007-06-06 21:53 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 21:04 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ???*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S???*
joris@laptop:~$ sudo smbumount /home/joris/Desktop/test
joris@laptop:~$ sudo smbmount //Backup/backup /home/joris/Desktop/test -o codepage=cp437,iocharset=utf8
Password:
joris@laptop:~$ ls -alF /home/joris/Desktop/test
totaal 2833514412
drwxr-xr-x 1 root  root                4096 2007-06-06 21:53 /
drwxr-xr-x 1 root  root                4096 2007-06-06 21:53 ./
drwxr-xr-x 3 joris joris               4096 2007-06-05 21:04 ../
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 ∩─?*
-rwxr-xr-x 1 root  root  127489825320000000 1940-10-24 04:26 S∩─?*
joris@laptop:~$

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #7 Gepost op: 2007/06/08, 08:19:56 »
Rare dinges ... ik begrijp er niets van :(
Kan je misschien eens het merk en type van de landrive vermelden, dan kunnen we daar eens op googlen ;)


landrive smbclient werkt, smbmount geeft rare tekens
« Reactie #9 Gepost op: 2007/06/10, 19:36:53 »
Ik ben net zelf met zo'n NAS bezig geweest (ander merk).
Qua opties voor het smbmount heb ik het heel simpel gehouden.
Jouw mount statement zou er ook zo uit kunnen zien:

sudo smbmount //Backup/backup /home/joris/Desktop/test -o password=*************Waarbij de sterrentjes voor een password naar eigen keuze staan (wel identiek aan het password zoals opgegeven voor de map op die externe schijf uiteraard).
Als je geen password geeft dan zal smbmount er zelf om eentje gaan vragen, vandaar is het IMO handiger om er wel eentje te zetten (naast security).

Mijn vraag aan jou: heb je die externe schijf al beveiligd met een password ?
Maakt die schijf uit van dezelfde groep binnen samba (mshome bijvoorbeeld) ?
Bestaat die backup map echt op die externe schijf ?
Heet die externe schijf echt Backup ?

Zo maar wat vragen, aangezien ik zie dat dat bij mij allemaal wel het geval is.

Monk.