Fileshare mounten in Linux

Pagina: 1
Acties:
  • 417 views

  • sarpmg
  • Registratie: Maart 2005
  • Laatst online: 05-12-2025
Wie weet hoe je een fileshare kan mounten in linux

Ik heb 2 systemen
- NAS ip 192.168.1.11
- Media player \\192.168.1.18\share <-- wachtwoord beveiligd

Ik wil dus vanaf me NAS in putty bestanden copieren naar de Media player share

Bedankt voor de tips

  • Rainmaker
  • Registratie: Augustus 2000
  • Laatst online: 14-07-2024

Rainmaker

RHCDS

een tip:

code:
1
man mount


?

offtopic:
sorry hoor, maar om dit te voorkauwen is wel erg simpel

We are pentium of borg. Division is futile. You will be approximated.


  • sarpmg
  • Registratie: Maart 2005
  • Laatst online: 05-12-2025
Tja als het zo simpel was had ik de vraag niet gesteld..

  • Emmeau
  • Registratie: Mei 2003
  • Niet online

Emmeau

All your UNIX are belong to us

mount.cifs //server/share /mnt/somewhere -o user=<username>,pass=<password>

If you choose to criticise you choose your enemies


  • Rainmaker
  • Registratie: Augustus 2000
  • Laatst online: 14-07-2024

Rainmaker

RHCDS

sarpmg schreef op vrijdag 12 juni 2009 @ 13:32:
Tja als het zo simpel was had ik de vraag niet gesteld..
Zo simpel is het wel:
Mount options for smbfs
Just like nfs, the smbfs implementation expects a binary argument (a struct smb_mount_data) to the mount system call. This argument is con-
structed by smbmount(8) and the current version of mount (2.12) does not know anything about smbfs.
code:
1
man 8 smbmount


En daar staat het voorgekauwd.

Daar staat ook
WARNING: smbmount is deprecated and not maintained any longer. mount.cifs (mount -t cifs) should be used instead of smbmount.
Maar dat ding accepteert dezelfde opties, dus gewoon lezen.

[ Voor 23% gewijzigd door Rainmaker op 12-06-2009 14:03 ]

We are pentium of borg. Division is futile. You will be approximated.


  • Sir Isaac
  • Registratie: September 2002
  • Laatst online: 21-05-2025
Topic starter heeft het ook over putty. Gaat het om een windows/samba share of een ssh share?

  • hostname
  • Registratie: April 2009
  • Laatst online: 25-01 21:44
Sir Isaac schreef op vrijdag 12 juni 2009 @ 17:19:
Topic starter heeft het ook over putty. Gaat het om een windows/samba share of een ssh share?
Putty is een ssh-login voor Windows, maakt voor de rest niet uit. En aan het path te zien (\\192.168.1.18) is het gewoon Samba/Windows share.

Overigens moet je bij het mounten wel even opletten op de backslash.
mount.cifs \\192.168.1.18\share gaat hem niet worden omdat hij de backslash dan niet pakt, met aanhalingstekens eromheen werkt bij mij ook niet (verwijdert ie een backslash aan het begin).

mount.cifs "\\\192.168.1.18\share" werkt hier, evenals alle backslashes door forwardslashes (/) vervangen :)

[ Voor 4% gewijzigd door hostname op 12-06-2009 17:27 ]


  • Rainmaker
  • Registratie: Augustus 2000
  • Laatst online: 14-07-2024

Rainmaker

RHCDS

Inderdaad, bash eet graag backslahes.

Dus wordt het mount \\\\192.168.1.1\\share /mnt

Daarom slikt cifs ook forward slashes.

Zoals ook uitgelegd op de manpage, probeert mount.cifs intern zelfs backslashes te converteren naar forward slashes:
mount.cifs will attempt to convert backslashes to forward slashes where
it´s able to do so, but it cannot do so in any path component following
the sharename.

[ Voor 35% gewijzigd door Rainmaker op 12-06-2009 17:38 ]

We are pentium of borg. Division is futile. You will be approximated.


  • sarpmg
  • Registratie: Maart 2005
  • Laatst online: 05-12-2025
Werkt niet helaas:
/ # mount.cifs "\\\\192.168.1.18\share" /mnt/mydrive -o user=xxx,pass=xxx
/ffp/bin/sh: mount.cifs: not found

zonder .cifs
/ # mount "\\\\192.168.1.18\share" /mnt/mydrive -o user=xxx,pass=xxx
mount: mounting \\192.168.1.18\share on /mnt/mydrive failed: No such file or directory

andere tips?

  • Truss
  • Registratie: September 2007
  • Laatst online: 16-11-2025
Heb je wel een directory mydrive aangemaakt? (mkdir /mnt/mydrive)

  • sarpmg
  • Registratie: Maart 2005
  • Laatst online: 05-12-2025
nee, aangemaakt..
en dan:
/ # mount "\\\\192.168.1.18\share" /mnt/mydrive -o user=xxx,pass=xxx
mount: mounting \\192.168.1.18\share on /mnt/mydrive failed: No such device

  • Rainmaker
  • Registratie: Augustus 2000
  • Laatst online: 14-07-2024

Rainmaker

RHCDS

Je moet wel mount.cifs hebben als dit wil werken.

Wat zegt mount.cifs als je niets erachter typt? Command not found?
Anders, heb je wel een commando "smbmount"?

Anders zou je die kunnen gebruiken.

Heb je geen van beide, zul je dan waarschijnlijk extra software voor nodig hebben... Onder Ubuntu heet het package wat mount.cifs provide bijvoorbeeld smbfs. (apt-get install smbfs)

http://linux-cifs.samba.org/

Welke distro draai je?

PS. Het is \\\\<share> of "\\share" of //share. Kies of je escape characters gebruikt, of aanhalingstekens of forward slashes, maar gebruik ze niet allebei.

[ Voor 27% gewijzigd door Rainmaker op 12-06-2009 20:52 ]

We are pentium of borg. Division is futile. You will be approximated.


  • sarpmg
  • Registratie: Maart 2005
  • Laatst online: 05-12-2025
Nou laat maar zitten dit schiet niet op, ik copieer wel via mijn WINDOWS bak of via FTP

[ Voor 8% gewijzigd door sarpmg op 12-06-2009 21:08 ]


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
Prima.
Misschien moet je er de volgende keer ook bij vertellen wat voor NAS het over gaat, een netapp is nogal wat anders dan een of andere conceptronic.
Pagina: 1

Dit topic is gesloten.