[SOLVED]Symlink /home/hts DIR to /media/user/2TB/hts

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED]Symlink /home/hts DIR to /media/user/2TB/hts

Postby 1byte » 2018-05-18 13:49

I have 2 HDD in my OptiPlex9020M
sdb is internal M-SATA M.2 SSD WDC_WDS120G1G0B running 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux
sda is internal SATA-0 HDD STDR2000100/ST2000LM007 to store multimedia from TVHeadEnd on it.

I have Installed TVHeadEnd (4.2.6-7~g561355130) that created /home/hts

Moved it to /media/user/2TB:
Code: Select all
sudo mv /home/hts/*  /media/user/2TB


Created Symlink:
Code: Select all
sudo ln -s /media/user/2TB /home/hts
sudo chown -R hts:hts /media/user/2TB



But it show the symlink in RED color
Code: Select all
$ l /home
total 4
1703967 lrwxrwxrwx 1 hts    hts      15 May 18 14:32 hts -> /media/user/2TB
1703938 drwxr-xr-x 9 user user 4096 May 17 19:44 user


Code: Select all
$ l /media/user/
total 4
2 drwxr-xr-x 6 hts hts 4096 May 18 14:31 2TB




But if I try cd /home/hts
Code: Select all
$ cd /home/hts
-bash: cd: /home/hts: No such file or directory
Last edited by 1byte on 2018-05-18 14:37, edited 2 times in total.
1byte
 
Posts: 49
Joined: 2017-07-16 06:51

[SOLVED]Re: Symlink /home/hts DIR to /media/user/2TB/hts

Postby 1byte » 2018-05-18 13:58

All working now, I have moved the whole DIR /home/hts/ rather than only the files inside

sudo mv /home/hts/ /media/user/2TB
sudo ln -s /media/user/2TB/hts /home/hts
sudo chown -R hts:hts /home/hts
1byte
 
Posts: 49
Joined: 2017-07-16 06:51


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable