LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-08-2008, 06:59 AM   #1
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Rep: Reputation: 30
mount a drive onto an existing mount


ok i know how to do this but, ah there is always a but,

my raid5 is mounted at /mnt/raid5 and i want to mount a new drive at /mnt/raid5/media/video but how will this play at bootup? of course i will be doing it through fstab. obviosly /mnt/raid5 will need to be mounted first to be able to mount /mnt/raid5/media/video.

just thought i would ask before i try.

I know i could and already have mounted the drive at /mnt/video and then create a symbolic link to it. the only problem with that is NFS doesnt follow the link, apache and samba do but obviously i use NFS with the linux workstations on my network.

thanks

berrance
 
Old 09-08-2008, 09:05 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
you have different partitions, and mount them say
/
/boot
/home
/usr
/var
/tmp

that is no different than mounting
/mnt/raid5
/mnt/raid5/media/video

just keep the right order in fstab ;-)
 
Old 09-08-2008, 09:31 AM   #3
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
thanks for confirming that. i suspected that but just wanted to be sure first.

cheers

berrance
 
Old 09-08-2008, 12:51 PM   #4
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
working great but, theres that annoying but again,

NFS recognizes the video folder as empty. the NFS share is /mnt/raid5/media and the HD is mounted at /mnt/raid5/media/video. i can access the mount on the server and through samba but not through nfs
 
Old 09-08-2008, 01:44 PM   #5
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
I thought I read somewhere that NFS doesn't follow mount points (in much the same way as it doesn't follow sym-links) but I can't find the reference now.

Are you going to have other folders in /mnt/raid5/media? If not just make /mnt/raid5/media/video the NFS share.
 
Old 09-08-2008, 01:59 PM   #6
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
i have all media related stuff in the media folder such as graphics and images, music, video, game saved files, plus i have it all in the same folder so i can share it all to my ps3 via apache, its great for videos download, leave on server and watch on tv via ps3. any way i am about to try the sym link again but then add link_relative to the export file. let you know how it goes.

berrance
 
Old 09-08-2008, 02:15 PM   #7
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
nope nfsserver wont even start with link_relative, got the option from

http://tldp.org/LDP/nag2/x-087-2-nfs.exports.html

is there any way to make nfs follow the sym link on the server side like samba?

Last edited by berrance; 09-08-2008 at 02:38 PM.
 
Old 09-09-2008, 02:41 AM   #8
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
NFS doesn't support crossing mount points or following symbolic links.

You can however mount two seperate NFS shares:

mount servera:/mnt/raid5/media /media
mount servera:/mnt/raid5/media/video /media/video

PS: link_relative is supposed to link to a file that has been exported as a part of the same filesystem, not across a filesystem boundary, and definatly not to a file that wasn't exported.

Last edited by Disillusionist; 09-09-2008 at 02:43 AM.
 
Old 09-09-2008, 03:06 AM   #9
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Consult the exports manpage for information on crossmounting. It works perfectly fine here.

As for symbolic links, those are functional only if they are relative and the target is mounted too.
 
  


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
Mount existing linux hard drive in new linux computer linux_linux Linux - Software 3 03-15-2008 09:43 PM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM
how to: mount existing partition on 2nd drive atljam Linux - General 2 07-28-2002 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 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