LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 07-26-2004, 05:54 PM   #1
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Rep: Reputation: 30
mounting smb shares


hi, i can connect to my samba share on my server fine using network servers but is there a way that i can mount the share or something so that e.g. i can run music directly from my server instead of having to copy the music to my box then play it ?(the same applys to wanting to play movies directly from my server without copying them to my box). so that my box thinks the share is an actual drive !

Ben
 
Old 07-26-2004, 06:03 PM   #2
wadly
LQ Newbie
 
Registered: Nov 2003
Location: Minnesota
Distribution: Red Hat
Posts: 7

Rep: Reputation: 0
Try this from a command line.

mount -t smbfs //hostname/share /mnt/share -o username=user

You must mkdir in /mnt. Something like share if you choose. You can then mount the drive and browse it with nautilus or command line.
 
Old 07-26-2004, 06:26 PM   #3
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
excelent worked perfectly, thank you
 
Old 07-27-2004, 04:02 AM   #4
Schrambo
Member
 
Registered: Mar 2004
Location: Western Australia
Distribution: Debian Slackware CentOS
Posts: 102

Rep: Reputation: 15
so how would you add that to the fstab?

Would it be...
Code:
 smb:///hostname/share       /mnt/share        smbfs       username=usr,password=passwrd      0 0
or what?
 
Old 07-28-2004, 10:08 AM   #5
wadly
LQ Newbie
 
Registered: Nov 2003
Location: Minnesota
Distribution: Red Hat
Posts: 7

Rep: Reputation: 0
I'm not sure how to edit fstab to mount the share. I'm sure someone here will be able to answer this.
 
Old 07-28-2004, 07:53 PM   #6
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
what is fstab exactly ? is it so that everytime i booted my system i would not have to mount the share ?
 
Old 07-29-2004, 02:17 AM   #7
Schrambo
Member
 
Registered: Mar 2004
Location: Western Australia
Distribution: Debian Slackware CentOS
Posts: 102

Rep: Reputation: 15
The fstab.conf file is a text file which contains the list of partitions and devices that Init uses to know where to find and mount the system devices and drives.

mine currently looks like this

Code:
/dev/hda2        /                reiserfs    defaults            1   1
/dev/hda6        /usr             reiserfs    defaults            1   2
/dev/hda7        /opt             reiserfs    defaults            1   2
/dev/hda8        /home            reiserfs    defaults            1   2
/dev/hda1        /windows         ntfs        ro                  1   0
/dev/sr0         /mnt/cdrom       iso9660     auto,user,owner,ro  0   0
/dev/hdd         /mnt/dvd         iso9660     auto,user,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        auto,user,owner     0   0
/dev/sda         /mnt/usb         vfat        auto,user,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620      0   0
proc             /proc            proc        defaults            0   0
You can add/edit any items and devices to the fstab. so for example my /dev/sda is my USB thumbdrive, so now when I want to mount it I can either type in the termian

Code:
mount /mnt/usb
or in gnome 2.6 I can just go to the "computer" desktop icon and double click on the "usb" drive and it will automatically mount it for me, reading the mount options straight from the fstab file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mounting smb shares towel401 Linux - Networking 4 10-31-2005 07:59 PM
Mounting smb shares john8675309 Linux - Software 3 09-25-2005 10:54 PM
mounting smb shares in Suse 9.2 BlankFrank Suse/Novell 6 01-23-2005 06:32 PM
Mounting SMB shares as a non-root user dmancine Linux - Networking 0 08-24-2004 04:24 PM
Problem mounting SMB shares... Camasii Linux - Networking 2 12-13-2003 12:31 PM


All times are GMT -5. The time now is 07:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration