LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-05-2012, 08:27 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 116

Rep: Reputation: 6
Question lofs under linux?


Hello!
When I was under solaris, it was useful to use lofs to have acess to the same dir via different pathes, for example,
to /opt/mysoft I also can go using /home/igor/thesoft. This isn't a symbolic links, it is really alternative path!
Is any similar solution under linux?
PS:I use RHEL
 
Old 05-05-2012, 08:33 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,849
Blog Entries: 36

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
If it's a drive then you can mount it twice in two different places and it will essentially do the same thing you're looking to do. See also dd and losetup commands in RedHat. In my latest blog post I use them in extending LVM volumes. (see under my username)

Last edited by sag47; 05-05-2012 at 08:36 AM.
 
Old 05-05-2012, 08:40 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
If it is on the same partition a hardlink would be the same what you describe.
 
Old 05-05-2012, 12:15 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,358
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
Directories can be mounted in several places with "--(r)bind" (see 'man mount'). Also see FUSE bindfs.
 
Old 05-07-2012, 07:32 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
So Solaris lofs = loopback fs https://www.linuxquestions.org/quest...m-lofs-153697/, so here's a Linux example equivalent https://code.google.com/p/iredmail/w...Yum_Repository
 
  


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
Why Loopback filesystem - lofs? KDE4me Solaris / OpenSolaris 8 01-22-2012 05:01 AM
fstab and lofs kaplan71 Fedora 1 05-18-2005 08:51 PM

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

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