[slim] Re: music held on multiple HD

2005-11-25 Thread koen

the links for libraries are the same as the ones for directories.

a symbolic link is obtained by invoking 'ln -s ...'. 

A dynamic library could be called 'libxyz.so' for instance, but it
would be a symbolic link to libxyz.so.1.4 which is the actual library.
When a newer version of the library is installed (libxyz.so.1.5 for
instance) the symbolic link gets moved to the newer library. That way
the old library is still available and a simple change of link can undo
an upgrade. This is much better than actually replacing the old library
with the new one and then finding out the new one is buggy.

Now for symbolic linking of directories it could go as follows:

music folder = /music

disk 1 is mounted on /mnt/disk1
disk 2 is mounted on /mnt/disk2

then it's just a question of linking both to a directory in /music

ln -s /mnt/disk1 /music/disk1
ln -s /mnt/disk2 /music/disk2

if you then do an 'ls -l' in /music you will see

disk1 -> /mnt/disk1
disk2 -> /mnt/disk2

confirming your newly created links


Hope this helps,

Koen.


-- 
koen

koen's Profile: http://forums.slimdevices.com/member.php?userid=2417
View this thread: http://forums.slimdevices.com/showthread.php?t=18505

___
Discuss mailing list
Discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


[slim] Re: music held on multiple HD

2005-11-25 Thread firestorm

did a bit of digging and found this :

ln
A feature of linking files is available in Linux. It works by
"redirecting" a file to the actual file. It's referred to as a symbolic
link. Don't confuse this term with the linking of programs, which is
when binary programs are connected with libraries that they need to
load in order to run.

The most simple way that I've ever used ln to create symbolic links is
ln -s existing_file link. Evidently there's a hard link and a symbolic
link; I've been using a symbolic link all along. You can also use the
-f flag to force the command line to overwrite anything that might have
the symbolic link's file name already.

To remove a symbolic link, simply type rm symbolic_link. It won't
remove the file that it's linked to.


Patrick, symlinks are for linking libraries in make files for compiling
apparently.

Neil, I read LN as IN at first, but found it eventually.

Thanks guys!


-- 
firestorm

firestorm's Profile: http://forums.slimdevices.com/member.php?userid=2244
View this thread: http://forums.slimdevices.com/showthread.php?t=18505

___
Discuss mailing list
Discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


[slim] Re: music held on multiple HD

2005-11-25 Thread Patrick Dixon

> I'm not a linux expert, so how would I go about creating the link
> between the first and next partitions (FAT32)?Mount the new drive/partition 
> then, in the directory that SS expects
it's music in, make a simlink to that mountpoint.


-- 
Patrick Dixon

www.at-tunes.co.uk

Patrick Dixon's Profile: http://forums.slimdevices.com/member.php?userid=90
View this thread: http://forums.slimdevices.com/showthread.php?t=18505

___
Discuss mailing list
Discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


[slim] Re: music held on multiple HD

2005-11-24 Thread gingerneil

I'm no expert.. but I think:
ln new_drive_mountpoint where_you_want_to_link_to

Try creating a small test partition and see if it works..


-- 
gingerneil

gingerneil's Profile: http://forums.slimdevices.com/member.php?userid=1396
View this thread: http://forums.slimdevices.com/showthread.php?t=18505

___
Discuss mailing list
Discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss