LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-13-2004, 06:51 AM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
symlink vs. fstab


Many install guides tell you about mounting /var or /home on separate partitions, and then mounting them with fstab. However, I've been mounting the separate partitions and merely symlinking to the appropriate directories. i.e.
I put var in /mnt/hda2 and in root /, I do a "ln -s /mnt/hda2/var var".
This means that hda2 does not have to be solely dedicated to var, and I can put other directories (such as /opt or /home) and symlink to them too.

OK, this has worked so far ... but is it really right. I mean could I also move /usr to hda2 and symlink to it? I ask this because /usr has all the shared libraries and stuff ...

Being a newbie, I'm unsure whether this methodof mine will lead to problems int he future ...

Comments appreciated.
 
Old 10-13-2004, 08:04 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
It may, some softwares(though uncommon) don't work with symlinks.

you might want to try "mount --bind"
 
Old 10-13-2004, 08:09 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i've done that before, and it worked fine.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
Symlink Fredde87 Linux - General 14 09-30-2005 09:06 PM
where is symlink? guitarfella Slackware 3 12-04-2004 08:34 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 06:55 PM
Symlink Mestax Linux - Newbie 3 09-04-2003 01:07 PM


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