LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-01-2013, 03:56 PM   #1
Matx
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Rep: Reputation: Disabled
Symbolic links


Hi everyone,
I've got two partitions on my HDD, one for my data in Fat32 and another one in ext4 for the system. What I would like to do is creating symbolic links between the folders of my home and the folders in my data partition, and like this, when I go in the folder music for example in my home, it open actually the folder "music" of the other partition. So I tried with the 'ln -s' command, but it doesn't work well.
For example when I open the music folder in my home, I have a shortcut which points to the folder of my other partition. How to do for having directly the contents of my other folder in my music folder of my /home when I open it ?
Furthermore, the partition isn't automatically mounted when I try to use the shortcuts created. I need before to mount the partition in clicking on it in the file manager.

Thanks for help.
 
Old 01-01-2013, 04:04 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,196
Blog Entries: 1

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Hi

You will have to add an entry in /etc/fstab to get the drive to mount at boot.

Where do you mount the data partition?
 
1 members found this post helpful.
Old 01-01-2013, 04:37 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,196
Blog Entries: 1

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Another way would be partition the data drive in to 4 or 5 partitions then you could mount each partition at "example" /dev/sdxx /home/user/Downloads

makeing enough partitions for each folder
 
Old 01-01-2013, 04:59 PM   #4
Matx
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ok thanks, I added the following line in my fstab file :
Code:
UUID=E529-1273 /media/Data                                vfat    rw,user,auto,exec,gid=1000,uid=1000,umask=007,iocharset=utf8,codepage=850,shortname=mixed	0	0
As you can see, the partition is mounted in /media/Data
I hope it's ok, I'll try tomorrow.

I prefer keep only one partition for all my data if possible..

Last edited by Matx; 01-01-2013 at 05:27 PM.
 
Old 01-02-2013, 09:57 AM   #5
Matx
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ok, I resolved my problem, it was actually pretty easy. I just deleted the folders music,etc in my home, and created symbolic links with 'ln -s /media/Data/Music ~/Music' (the same with others folders)
 
  


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
symbolic links durden2.0 Linux - Newbie 6 11-12-2008 03:06 AM
Symbolic links Vs Hard links sulekha Linux - General 2 10-02-2008 07:03 AM
Symbolic links? TongueTied Linux - Newbie 3 08-27-2003 06:00 AM
Symbolic links pdstatha Programming 1 04-08-2002 09:50 PM
symbolic links winger Linux - General 5 04-06-2002 05:16 PM

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

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