LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2010, 05:06 PM   #1
martdj
Member
 
Registered: Feb 2005
Distribution: Fedora 20
Posts: 33

Rep: Reputation: 1
How did I mount this network drive if it's not in /etc/fstab?


Hi all,
I feel like a real n00b for having to ask this, but I'm clueless. I have built a HTPC at the beginning of this year with ubuntu minimal (9.10) and XBMC. In my /home/xbmc directory is a directory called media which directly links to my homeserver containing all movies, music etc. I remeber I preferred this to using Samba shares from XBMC as it was faster and more reliable. I'm pretty sure I set this up with NFS. However, when I look at my /etc/fstab file I see this:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/htpc-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda5 during installation
UUID=4913891b-ec97-4f29-9902-be4b1a66b29b /boot ext2 defaults 0 2
/dev/mapper/htpc-home /home ext4 defaults 0 2
/dev/mapper/htpc-swap_1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

There isn't any mention of this share in this file. As I want to setup a new machines based on Maverick x64 minimal, I try to repeat my steps, but I can't figure this one out. Can anyone give me a hint of how I might have setup this share in my home folder?

Edit:
To add to my confusion, aptitude search '~i' doesn't actually show nfs-common, so I guess I'm not using nfs for this share. my smb.conf doesn't list any shares either, so I don't think I have used samba either. What else could I have done?

Last edited by martdj; 11-02-2010 at 05:15 PM.
 
Old 11-02-2010, 05:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What's the actual mount line pertaining to the share?
 
Old 11-02-2010, 05:37 PM   #3
martdj
Member
 
Registered: Feb 2005
Distribution: Fedora 20
Posts: 33

Original Poster
Rep: Reputation: 1
Very good question, as it gives a big clue:
//Zeus/Media on /home/xbmc/media type cifs (rw,mand)

Now I have to lookup what this cifs thing is. Is it a logical choice for a connection (which I believe to be read-only) or would nfs make more sense?
The idea is to have a read-only connection to this share with the least rights for this (insecure) HTPC server as possible while obviously being able to read all files and have a fast and steady connection.

edit:
hmm... and looking at info on cifs I still don't get how this mount is auto-mounted without info in fstab :-(

Last edited by martdj; 11-02-2010 at 05:41 PM.
 
Old 11-02-2010, 06:02 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
As you probably have found from googling cifs is the filesystem type for samba shares. You probably have some init or startup script that mounts the share.
 
Old 11-03-2010, 05:05 AM   #5
martdj
Member
 
Registered: Feb 2005
Distribution: Fedora 20
Posts: 33

Original Poster
Rep: Reputation: 1
I found it in the end in my /etc/rc.local file. Thank you all for your help. I think for my new setup I will use NFS though combined with autofs.
 
  


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
Can't get drive to mount through fstab under RH ASE4 thllgo Linux - Server 6 05-02-2007 03:05 PM
using fstab to mount a new drive pmetzak Linux - Newbie 4 09-22-2006 04:02 PM
Ho do you use fstab-sync to mount a drive? ginda Linux - Newbie 3 03-15-2005 10:05 AM
mount network drive fstab/umask? J.Q. Monkey Linux - Newbie 3 02-24-2004 12:49 PM
fstab hard drive mount eastj1974 Linux - Newbie 2 07-05-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 PM.

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