PDA

View Full Version : how to point DATA/MOVIES to USB HDD in azbox hd?



hfmls
04-11-2009, 01:26 PM
hi, how can i point

/DATA/usb1/sda1/VÍDEOS to /DATA/movie
/DATA/usb1/sda1/MP3 to /DATA/MUSIC
/DATA/usb1/sda1/pvrfile to /DATA/pvrfile
/DATA/usb1/sda1/recordfile to /DATA/recording



so i can use movies,music,pictures, shortcut in azbox hd.
and azbox hd goes to those folders in USBHDD

neilD
04-11-2009, 02:08 PM
try an link (works on linux don't know about azbox)

normally I use ln -s

NAME
ln - make links between files

SYNOPSIS
ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
ln [OPTION]... TARGET (2nd form)
ln [OPTION]... TARGET... DIRECTORY (3rd form)
ln [OPTION]... -t DIRECTORY TARGET... (4th form)

DESCRIPTION
In the 1st form, create a link to TARGET with the name LINK_NAME. In
the 2nd form, create a link to TARGET in the current directory. In the
3rd and 4th forms, create links to each TARGET in DIRECTORY. Create
hard links by default, symbolic links with --symbolic. When creating
hard links, each TARGET must exist.

Mandatory arguments to long options are mandatory for short options
too.

--backup[=CONTROL]
make a backup of each existing destination file

-b like --backup but does not accept an argument

-d, -F, --directory
allow the superuser to attempt to hard link directories (note:
will probably fail due to system restrictions, even for the
superuser)

-f, --force
remove existing destination files

-n, --no-dereference
treat destination that is a symlink to a directory as if it were
a normal file

-i, --interactive
prompt whether to remove destinations

-s, --symbolic
make symbolic links instead of hard links

hfmls
04-11-2009, 06:29 PM
ln -s /DATA/usb1/sda1/VIDEOS/ /DATA/movie/
ln -s /DATA/usb1/sda1/MP3/ /DATA/music/
ln -s /DATA/usb1/sda1/pvrfile/ /DATA/pvrfile/
ln -s /DATA/usb1/sda1/recordfile/ /DATA/recording/

this worked :)

hfmls
04-11-2009, 06:43 PM
strange is that this works:
ln -s /DATA/usb1/sda1/recordfile/ /DATA/recording/

but the real path is recordfile instead of recording, when i open, it opens DATA/recordfile but that folder doesn't exist via FTP! only /DATA/recording

anyone knows what's going on?

stevie1961
04-11-2009, 07:11 PM
@hfmls

Hi, could you tell me what file I need to edit this too

I would love to grty this working,

cheers,

Steve

hfmls
04-11-2009, 07:19 PM
i used like this:
edit this file:

/DISK2/etc/start.d/S10UserDefinedShell

and add:


#!/bin/sh
#
# Samples for user defined shell
#

ln -s /DATA/usb1/sda1/VIDEOS/ /DATA/movie/
ln -s /DATA/usb1/sda1/MP3/ /DATA/music/
ln -s /DATA/usb1/sda1/pvrfile/ /DATA/pvrfile/
ln -s /DATA/usb1/sda1/recordfile/ /DATA/recording/

start() {
echo "===> Starting user defined script"

echo "User script test" > /tmp/UserDefinedShellIsRunning
}

stop() {
echo "===> Stopping user defined script"
rm -f /tmp/UserDefinedShellIsRunning
}

restart() {
stop
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac

exit $?

stevie1961
04-11-2009, 07:27 PM
Many Many thanks for your quick reply hmfs, I'm going to try it straight away.

I can see your'e taking some stick at the mo for promises, I hope they come true.

When there's no info from opensat, little roumors etc can be very helpfull and, personally, I look forward to them. When there was nothing from opensat for 2 months, information from yourself was instramental in me keeping this box. I am growing to like it

If you have information that you believe is correct, please keep posting it, we can all make our own minds up.

cheers again

enrico001u
04-11-2009, 07:46 PM
I agree with the above post
When hfmls posts the information it is always correct its nice to get info from someone in the know!

We know there is no gaurantee it will always be correct but I would take hfmls's word over opensats any day!

hfmls
04-11-2009, 07:56 PM
most of the times is like this:

i know a friend that knows a friend that talks to hugo personally.

onkelm
04-11-2009, 08:08 PM
Hi hfmls,

you forgot the sister of the friend who knows hugos wife :respect-050:

:respect-013:

regards

OnkelM

gtg60
04-11-2009, 08:37 PM
hugos wife :respect-050:


I'd say she's a VERY happy woman, I mean if she gets screwed as much by Hugo as we do...

Boom! Boom! :rofl:

hfmls
04-11-2009, 09:22 PM
don't be like that.

gtg60
04-11-2009, 09:33 PM
don't be like that.

I have always been an optimist when it comes to Hugo and Opensat and I still believe that all these issues will be resolved but c'mon it's funny!

britzolas
04-11-2009, 09:41 PM
I have always been an optimist when it comes to Hugo and Opensat and I still believe that all these issues will be resolved but c'mon it's funny!

I must admit it is.
I wish he would do something cool with the box too and make us bite our tongues...:)

stevie1961
05-11-2009, 12:10 AM
So hfmls isn't hugo then?

hfmls
05-11-2009, 12:17 AM
what? no!
i have nothing to do with opensat.

i was a beta tester but i was kicked out because i leaked a firmware. :)

stevie1961
05-11-2009, 12:24 AM
Only a wind up LOL, about time we had a laugh on this bored

hfmls
05-11-2009, 12:26 AM
:)