LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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: 353

Rep: Reputation: 32
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: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

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

Original Poster
Rep: Reputation: 32
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: 353

Original Poster
Rep: Reputation: 32
tnx that seems to have worked
 
Old 01-06-2014, 11:28 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
Senior Member
 
Registered: Mar 2007
Posts: 2,385

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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