Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: johndknm on September 29, 2006, 12:33:15 AM

Title: help dumb newbie with ln -s issue
Post by: johndknm on September 29, 2006, 12:33:15 AM
Hi everyone. Im trying to symlink an ibay onto a different raid array mounted at /mnt/test

I have noticed the contrib on symlinking an MP3 ibay off to a different drive (second hard disk one) but im basically windoze oriented and struggling getting this to work.

This is what I want.
I want to move essentially an ibay called /home/e-smith/files/ibays/srvbkup/  over to the array on /mnt/test/ibays/srvbkup in toto.

Can I please beg for exactly what command I type to achieve this.  I tried midnight commander and create symlink but its complaining there is already one there. I tried man ln etc but am no closer to grasping the answer.

Currently, I browse over the network to /srvbkup/files/  and create a file and it appears on the box at /home/e-smith/files/ibays/srvbkup/files/newfile

I want to browse over the net to /srvbkup/files/ and create a file and have it appear in /mnt/test/ibays/srvbkup/files/  instead

Why I hear you ask?  Cause the additional raid 5 LVM group at /mnt/test has 600 gig of softwre raid5 and can cope with the full backups of some other machines while the boot disks are only 80gig...

Oh as an aside i might have tried one too many times and have some existing incorrect symlinks in place.  I did find /home -lname '*' and find /mnt/test/ -lname '*'  but this doestn seem to show me any links (so why does midnight commander say there is one?)

tia
Title: help dumb newbie with ln -s issue
Post by: Janm on September 29, 2006, 03:33:57 AM
search --how to copy a file from one linux machine to another linux machine--
I think its somthing like this copy from 1 linux comp to another linux comp
on one line maybe also ip address on comp 2

scp -r root@xxx.xxx.xxx.xxx:/usr/admin//home/e-smith/files/ibays/srvbkup/* /usr/admin//mnt/test/ibays/srvbkup/

dontn know about  toto what is that

/home/e-smith/files/ibays/srvbkup/ over to the array on /mnt/test/ibays/srvbkup in toto

Janm
Title: help dumb newbie with ln -s issue
Post by: johndknm on September 29, 2006, 04:29:32 AM
Thanks but its not about copying files, its about relocating the ibay completely to another location.
Title: help dumb newbie with ln -s issue
Post by: Janm on September 29, 2006, 05:12:32 AM
Okay
Janm
Title: help dumb newbie with ln -s issue
Post by: cactus on September 29, 2006, 11:57:43 AM
First of all you will need to relocate the data to the new location. You can for instance move or copy the directory with midnight commander to the new desired location.
After you have done that you will have to remove the old location so you can create your link there. To create your link:
Code: [Select]
ln -s /path/to/new/location /path/to/old/location
This should create a directory which is a symbolic link to your new location. For instance:
Code: [Select]
ln -s /tmp/test /home/e-smith/files/ibays/Primary/ /tmp/test
will create a directory test in the /tmp folder which if you descend into it will hold the contents of /home/e-smith/files/ibays/Primary folder.