Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th June 2012, 09:50 PM
Yora0 Offline
Registered User
 
Join Date: Jun 2012
Location: Germany
Posts: 148
linuxfirefox
Replacing folders in home folder with links

I've set up my system so that another partition is auto-mounted and in my account settings I have the standard destinations for music files, video files, and so on set to folders on that partition.

Now when I start the file manager, there is still the Home folder on the left side with the original standard directories for personal files. By Right click -> Create New -> Basic Link, I can create links to the directories on the other partition.
But I would like for them to appear just like the Public and Template folders, that are still on the Fedora partition.

I guess there are two solutions:
1. Replace the icon for a folder link to a folder icon.
2. In an earlier installation, where /home had its own partition, I've seen those directories as being mounted in some way when using the File Manager and selecting Home in the side bar. I would like to do that if that can be done manually.

Solution 2 would be preferable, but number 1 would probably work just as well. However, I don't know how to do either.

Fedora 17 KDE, by the way.
Reply With Quote
  #2  
Old 5th June 2012, 11:14 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707
linuxfirefox
Re: Replacing folders in home folder with links

I don't know, in GNOME setting the user-dirs.dirs file should be enough, but maybe Dolphin/KDE has it's own ideas.

A rather hackish solution would be to add bind mounts to /etc/fstab:
Code:
/mnt/data/Documents    /home/you/Documents    none    bind    0    0
etc. /home/you/Documents etc. must be existing directories for this to work.
Reply With Quote
  #3  
Old 6th June 2012, 02:10 AM
DrHappyAngry Offline
Registered User
 
Join Date: Jan 2012
Location: Seattle
Posts: 19
linuxfirefox
Re: Replacing folders in home folder with links

I think this is what you're asking for, just delete the folder in your home dir and make a symlink.

Code:
[paulisdead@deepthought ~]$ rmdir Downloads/
[paulisdead@deepthought ~]$ mkdir /scratch/Downloads/
[paulisdead@deepthought ~]$ ln -s /scratch/Downloads/ /home/paulisdead/
Now if I click on Downloads in the side column it follows the link to there. Just so you know, it will still say /home/paulisdead/Downloads in the nautilus window in the example given above, as the path it's in, but it really is off in the other location under /scratch.
Reply With Quote
  #4  
Old 6th June 2012, 10:37 PM
Yora0 Offline
Registered User
 
Join Date: Jun 2012
Location: Germany
Posts: 148
linuxfirefox
Re: Replacing folders in home folder with links

Yes, that works.

But I think it doesn't look so elegant, now that I have that link icon on my folder icon. In an older installation, I saw those folders mounted to another partition in some way and was wondering how you could do that manually.
Reply With Quote
  #5  
Old 7th June 2012, 02:02 AM
DrHappyAngry Offline
Registered User
 
Join Date: Jan 2012
Location: Seattle
Posts: 19
linuxfirefox
Re: Replacing folders in home folder with links

Seriously, you're bugged that much by a little link emblem? Well you could always just bookmark the folder then they'll show up in the left hand pain. You could also use the bind mounts as suggested by Gareth. You used to be able to change emblems a lot easier in gnome 2, but apparently this isn't as easy in gnome 3.

You could always just move the whole home folder for the user over to the other drive, too. If you don't want to remount the whole new volume as /home, you could just copy the user's folder over and change the location of their home folder in /etc/passwd. If you're moving the user's home folder, be sure you copy it with either a cp -Rp or rsync -art to make sure it grabs hidden files and retains the proper permissions.
Reply With Quote
  #6  
Old 7th June 2012, 02:07 AM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707
linuxfirefox
Re: Replacing folders in home folder with links

Quote:
Originally Posted by DrHappyAngry View Post
You could always just move the whole home folder for the user over to the other drive, too. If you don't want to remount the whole new volume as /home, you could just copy the user's folder over and change the location of their home folder in /etc/passwd. If you're moving the user's home folder, be sure you copy it with either a cp -Rp or rsync -art to make sure it grabs hidden files and retains the proper permissions.
The shared partition is shared with Windows, so the basic /home must stay on the Linux file-system for permissions and special files to work properly. That's why I suggested only pointing Documents etc. to the shared directories.
Reply With Quote
  #7  
Old 7th June 2012, 02:11 AM
DrHappyAngry Offline
Registered User
 
Join Date: Jan 2012
Location: Seattle
Posts: 19
linuxfirefox
Re: Replacing folders in home folder with links

Ah yes you're right, easy to forget the details a day later. So ya, that would probably not work well on a fat or ntfs partition.
Reply With Quote
Reply

Tags
folder, folders, home, links, replacing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up User's home folder away from /home twohot Using Fedora 6 16th March 2010 02:54 AM
Links, Files and Folders on dektop disappear if they are repositioned LaKing Using Fedora 0 23rd November 2009 03:17 PM
Links / shortcuts to documents and folders in Gnome clivelong Using Fedora 0 9th January 2008 10:46 AM
Home folder vs. root Home folder? bisctboy Installation and Live Media 6 20th March 2006 03:28 AM
mounting a NTFS folder on my /home/myuser folder jaguero Using Fedora 3 26th October 2005 10:54 PM


Current GMT-time: 10:37 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat