[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 2 Guest(s)
Poll: Does it work for you ?
Yes
No
Didn't try
[Show Results]
 
Post Reply 
[HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
11-14-2010, 12:13 PM
Post: #1
Wink [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
Hi

it's my first thread, and I hope it will be useful for a lot of people !
First of all, mods can correct my poor english, I'm only 16 !

I have my NMT apps AND my CSI apps on my USB drive.

How I've done ?

1. Unplug HDD (if it got one !) and plug an USB key.
2. SETUP -> Maintenance -> NMT Setup Wizard menu.
Chose USB Update and Fresh install if you want to totally erase the internal HDD including your files.
3. Using CSI, configure your device Popcorn Hour *200 (USB), and use CSI.
4 All work ! BUT, your USB key isn't big, and only for the apps, you won't use it as a storage media, so everything we've done here isn't useful BUT Big Grin if we say the Popcorn that the Video, Music, Photo, Download and every other folder on the HDD is in the share folder ? IT WILL WORK !
Then we only need to link the Video,... folders at startup to the /share/ folder. How ? Editing the "start_app.sh" script in the /share/ folder, previously created by CSI, and including my script.
5. With Notepad ++, open the start_app.sh file, and add this code between exit and ###Marker### :
Code:
# symlink SATA to USB ! Artifex14
## Values to change

for folder in Download Music Photo Video;do  # you can change these values, they correspond to the HDD folder.

NUMBER=4 # Your HDD number, you can see it in the FTP or the samba share.

##

filecount()
{
  [ -e "$1" ] && numfiles=$# || numfiles=0
}
    
    rm /share/${folder} # It removes any old symlink.
    
    if [ -d "/share/${folder}/" ]; #it tries if the folder exists.
    then
        cnt=$(ls /share/${folder} | wc -l) # It exists then it verify if it got any folder/file in this folder.
        if [[ ! $cnt -ne 0 ]] ; then
            rm -r /share/${folder} # It doesn't got anything in the folder, so it deletes the folder (using rm -r).
        fi
    fi
    
    if [ -d "/opt/sybhttpd/localhost.drives/SATA_DISK_A$NUMBER" ]; #Verify if the HDD was plugged after or before boot
        then
        SATA=SATA_DISK_A$NUMBER # Before
        else
        SATA=SATA_DISK_B$NUMBER # After
    fi
    
    ln -s /$SATA/${folder} /share/    # Now it links the folder of the HDD to the share !
    echo "All right"
    
done
6. Edit your HDD folder values and your SATA drive number.
7. Delete any files/folders in the (share) folder you've chosen to link [eg: /share/Video (=USB!) you need to remove any files/folder in this folder or to remove this folder, otherwise, the symlink won't work !]
8. Reboot your NMT.
9. Browse your share folder from a PC : in the Video,... folders, you see the HDD files !!!! But your Media Location is USB_DRIVE, then you can use CSI !
10. Say that it works if it work please !
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 2 users say Thank You to Artifex14 for this post
11-14-2010, 11:29 PM
Post: #2
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
Tomorrow, I'll update the thread, because my nmj_database is stored on my ..... USB device !
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Artifex14 for this post
01-29-2011, 09:05 AM
Post: #3
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
Will try this when I get home, but have to warn you I'm a noob Smile
Find all posts by this user
Add Thank You Quote this message in a reply
01-29-2011, 04:23 PM (This post was last modified: 01-29-2011 04:25 PM by jimi_c.)
Post: #4
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
hmmm will this work with 2 internal harddrives? (a5 and b5) would not mind if they show as 1 drive
Find all posts by this user
Add Thank You Quote this message in a reply
04-08-2011, 03:33 AM (This post was last modified: 04-08-2011 03:48 AM by BlackDogX.)
Post: #5
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
I can't seem to make this work on my A-210. My USB/Video folde says "No Content Found"

Here is the Start_App.sh script what am I missing?

#M_A_R_K_E_R_do_not_remove_me
##

filecount()
{
[ -e "$1" ] && numfiles=$# || numfiles=0
}

rm /share/Video # It removes any old symlink.

if [ -d "/share/Video/" ]; #it tries if the folder exists.
then
cnt=$(ls /share/Video | wc -l) # It exists then it verify if it got any folder/file in this folder.
if [[ ! $cnt -ne 0 ]] ; then
rm -r /share/Video # It doesn't got anything in the folder, so it deletes the folder (using rm -r).
fi
fi

if [ -d "/opt/sybhttpd/localhost.drives/SATA_DISK_A2" ]; #Verify if the HDD was plugged after or before boot
then
SATA=SATA_DISK_A$NUMBER # Before
else
SATA=SATA_DISK_B$NUMBER # After
fi

ln -s /SATA_DISK_A2/movies /share/ # Now it links the folder of the HDD to the share !
echo "All right"

exit 0

Is there also a way to add in my NAS to this? Then I could build a NMJ database on my USB drive and this would allow both to be mounted at the same time correct?

Thanks for any help.
Find all posts by this user
Add Thank You Quote this message in a reply
07-03-2011, 05:15 PM
Post: #6
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
Does the job perfectly - you're a smart guy. Cheers.
Find all posts by this user
Add Thank You Quote this message in a reply
09-22-2011, 09:38 PM
Post: #7
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
Any updates regarding this? Working perfectly?

What about NMJ?
Find all posts by this user
Add Thank You Quote this message in a reply
01-12-2012, 04:18 PM
Post: #8
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
I can't get it to work. Can you please help. Below is what I have done.

# symlink SATA to USB ! Artifex14
## Values to change

for folder in Download Music Photo Video;do  # you can change these values, they correspond to the HDD folder.

NUMBER=4 # Your HDD number, you can see it in the FTP or the samba share.

##

filecount()
{
  [ -e "$1" ] && numfiles=$# || numfiles=0
}
    
    rm /share/Download # It removes any old symlink.
    
    if [ -d "/share/Download/" ]; #it tries if the folder exists.
    then
        cnt=$(ls /share/Download | wc -l) # It exists then it verify if it got any folder/file in this folder.
        if [[ ! $cnt -ne 0 ]] ; then
            rm -r /share/Download # It doesn't got anything in the folder, so it deletes the folder (using rm -r).
        fi
    fi
    
    if [ -d "/opt/sybhttpd/localhost.drives/SATA_DISK" ]; #Verify if the HDD was plugged after or before boot
        then
        SATA=SATA_DISK # Before
        else
        SATA=SATA_DISK_A1 # After
    fi
    
    ln -s /SATA_DISK/Download /share/    # Now it links the folder of the HDD to the share !
    echo "All right"
    
done

A110 Internal HDD
A110 Internal HDD
A210 USB (APPS) WDC 3TB HDD Internal
Find all posts by this user
Add Thank You Quote this message in a reply
03-15-2012, 01:47 PM
Post: #9
RE: [HOW-TO] NMT Apps and CSI apps on USB Drive with SATA Drive
It worked for me, it's important to follow instructions carefully. After I copy/pasted the code, I changed NUMBER=4 to NUMBER=1 and then deleted all folders except APPS on the usb stick.

Artifex14, thanx!

Any news on the NMJ?
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


[-]
Quick Reply
Message
Type your reply to this message here.



Smilies
:) ;) :cool: :D
:P :rolleyes: :shy: :(
:lightbulb: :angry: :-/ (A)
:heart: :dodgy: :blush: :huh:
:my: :sleepy: :exclamation: :S
[get more]

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  NMT & CSI apps on USB, media on NTFS SATA, transmission downloads to SATA mmartine 8 4,325 03-23-2013 06:46 AM
Last Post: jve
  HOW TO: The NMT Apps drive, NTFS for data, the CSI/iPkg apps, on one drive nuke12 49 22,977 12-16-2012 01:50 PM
Last Post: smithyboy
  How to Align “Advanced Format”, 4096 byte/sector Drives for use as the NMT Apps Drive nuke12 43 20,942 03-05-2012 08:58 PM
Last Post: ramborules
  How-To: Transfer files via USB slave from PC to NMT chris57 157 177,853 02-11-2012 10:03 AM
Last Post: minazza
  [HOW TO] Rip a Blu-ray to MKV for PopCorn Hour NMT 200 Series Everbefore 4 5,580 07-15-2011 12:06 PM
Last Post: chris57
Lightbulb How to mount multiple shares without CSI Kir 2 4,276 12-26-2010 09:09 AM
Last Post: garp99
  HOWTO: Mount NMT share on Windows Mobile mkkm 0 2,681 12-25-2010 02:53 PM
Last Post: mkkm
  HOWTO: Windows 7 ext2/3 support [USB-Slave] DeliriumNL 35 197,345 02-21-2010 12:57 AM
Last Post: maxyvan98
  [Video Tutorial] How to map network drive in Windows Vista AlexNC 30 33,867 02-06-2010 06:41 AM
Last Post: jamesroy
  hardware/firmware DIY: staggered drive spin-up linuxworks 4 7,091 02-04-2010 09:36 PM
Last Post: linuxworks

Forum Jump: