LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-06-2014, 10:48 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 326

Rep: Reputation: 26
can i use a soft link to redirect a dotted directory?


i'm installing a program that puts over 10G of data into a dotted directory.... such as ~/.bitcoin-qt

the problem is, there's less than 10G of space left on the /home partition, but i do have another drive that has over 200G free... the question is, can i redirect the data using ln, so that i won't be filling up the remaining space on /home?
 
Old 01-06-2014, 10:58 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Yes.
 
Old 01-06-2014, 11:06 PM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 326

Original Poster
Rep: Reputation: 26
what's the best way to do it? ln -s -T /newdrive/.bitcoin-qt .bitcoin-qt ?
or does it need to be a hard link?
 
Old 01-06-2014, 11:11 PM   #4
unclejed613
Member
 
Registered: Mar 2009
Posts: 326

Original Poster
Rep: Reputation: 26
tnx that seems to have worked
 
Old 01-06-2014, 11:28 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by unclejed613 View Post
what's the best way to do it? ln -s -T /newdrive/.bitcoin-qt .bitcoin-qt ?
or does it need to be a hard link?
Hardlinks are only possible within the same filesystem, so a hardlink won't work in your case.
 
Old 01-07-2014, 08:17 AM   #6
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 242

Rep: Reputation: 86
Nowadays directories can't be hardlinked at all, even within a filesystem. (A bind mount would be something similar, and it works within and between filesystems.)
 
1 members found this post helpful.
  


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
Difference Between Soft Link & Hard Link rajaniyer123 Solaris / OpenSolaris 16 09-30-2012 04:42 AM
create soft link and hard link in RHEL5 ramadas88 Linux - Server 6 09-15-2010 05:32 AM
hard link and soft link varunrapelly Linux - Newbie 9 10-02-2008 08:05 AM
Deleting soft link to directory sudevank Linux - General 6 03-07-2007 11:56 PM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 07:30 AM


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