LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09: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, 09:33 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
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 09:36 AM.
 
Old 05-05-2012, 09:40 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

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

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

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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 06:01 AM
fstab and lofs kaplan71 Fedora 1 05-18-2005 09:51 PM


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