[19. June 2013] Soundcloud® available now | [7. June 2013] Youporn available now | [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 RC1 [13 June 2013] | A-200/A-210 RC1 [13 June 2013]

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: 1 Guest(s)
Post Reply 
[200] Auto_Mount v0.4 - Script to Mount USB Drive with the Label - C200/A200
01-06-2010, 08:15 PM
Post: #16
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
Hi, Type "/bin/sh" first, then type the required commands after. When finished type 'exit'.

Oversight: Jukebox | FeedTime: Automatic nzbs
Find all posts by this user
Add Thank You Quote this message in a reply
01-06-2010, 08:22 PM
Post: #17
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
(01-06-2010 08:15 PM)lordy Wrote:  Hi, Type "/bin/sh" first, then type the required commands after. When finished type 'exit'.

Thank you for your advice, but here is the result :

D:\CAPTURE\Netcat>nc 192.168.1.18 2222
Enter command to run:
/bin/sh
Cmd is '/bin/sh'
Spawning.
sh-3.00# ps |grep auto_mount
/bin/sh: line 1: sh-3.00#: command not found

I think the program did not strart. Do you know how I could start the program ?

The program is in Apps/auto_mount/auto_mount

I do not know how to use netcat to change directories, or how to launch a program.

Could you please help me ?

Thank you,

Adrian.

C-200 - DVICO M-6500 A - USB NTFS HDD
Windows 7 64bit PC - 10/100 LAN
Harman Kardon AVR 132 Optical Connection
TV Composite - Projector Acer 720p HDMI
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2010, 04:19 AM
Post: #18
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
I just gave my screen shot for reference. Do't type sh-3.00# which is a shell prompt.
Do the following steps
d:\Capture\Netcat>nc 192.168.1.18 2222
Enter command to run:
sh
Spawning.
sh -i
(then you will get the prompt like below)
sh-3.00#
then type
ps|grep auto_mount

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2010, 07:47 AM
Post: #19
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
(01-07-2010 04:19 AM)vaidyasr Wrote:  I just gave my screen shot for reference. Do't type sh-3.00# which is a shell prompt.
Do the following steps
d:\Capture\Netcat>nc 192.168.1.18 2222
Enter command to run:
sh
Spawning.
sh -i
(then you will get the prompt like below)
sh-3.00#
then type
ps|grep auto_mount

I am sorry vaidyasr, but I know 0 in netcat.

Here is the result :

D:\CAPTURE\Netcat>nc 192.168.1.18 2222
Enter command to run:
sh
Cmd is 'sh'
Spawning.
sh -i
sh-3.00# ps|grep auto_mount
760 root 3344 S /bin/sh /share/Apps/auto_mount/auto_mount
29328 root 2912 R grep auto_mount
sh-3.00#

Is this good? What should I do now ?

Thank you,

Adrian.

C-200 - DVICO M-6500 A - USB NTFS HDD
Windows 7 64bit PC - 10/100 LAN
Harman Kardon AVR 132 Optical Connection
TV Composite - Projector Acer 720p HDMI
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2010, 09:25 AM (This post was last modified: 01-07-2010 10:02 AM by vaidyasr.)
Post: #20
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
Yes, it seems the script is running fine. It is strange. I am just using the same copy in my C200. I have reviewed the script also. I haven't used any other commands apart from busybox which is already packaged. can you please let me know the contents of /etc/samba/lib/smb.conf from your C200 after you switched on the USB drive?

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2010, 09:41 AM (This post was last modified: 01-07-2010 10:35 AM by agabrean.)
Post: #21
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
(01-07-2010 09:25 AM)vaidyasr Wrote:  Yes, it seems the script is running fine. It is strange. I am just using the same copy in my C200. I have reviewed the script also. I haven't used any other commands apart from busybox which is already packaged. can you please let me know the contents of /etc/samba/lib/smb.conf from your C200 after you switched on the USB drive?

Hi,

I'll do that tonight when I get back home from work.

Maybe it's because my USB HDD's are NTFS ? It might have something to do with the fact that they are read-only for the moment ?

Anyway, I just want you to know how much I appreciate your effort in helping me.

Thank you,

Adrian.
(01-07-2010 09:25 AM)vaidyasr Wrote:  Yes, it seems the script is running fine. It is strange. I am just using the same copy in my C200. I have reviewed the script also. I haven't used any other commands apart from busybox which is already packaged. can you please let me know the contents of /etc/samba/lib/smb.conf from your C200 after you switched on the USB drive?

Hi again,

I just thought that I do not know how to get to /etc/samba/lib/smb.conf

This folder /etc/ is in my Share ? Can I access it via my windows explorer ? Or do I have to see the content of smb.conf via netcat ? If I have to use netcat, could you please tell me the commands to use in order to get it ?

Thank you,

Adrian.

C-200 - DVICO M-6500 A - USB NTFS HDD
Windows 7 64bit PC - 10/100 LAN
Harman Kardon AVR 132 Optical Connection
TV Composite - Projector Acer 720p HDMI
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2010, 07:35 PM
Post: #22
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
Hi,

I'm at home, and I have no ideea how to get to /etc/samba/lib/smb.conf

Could you please tell me how I could do that ?

Thank you,

Adrian.

C-200 - DVICO M-6500 A - USB NTFS HDD
Windows 7 64bit PC - 10/100 LAN
Harman Kardon AVR 132 Optical Connection
TV Composite - Projector Acer 720p HDMI
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2010, 08:24 PM
Post: #23
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
very interesting to me.
I installed it, but we must do something eg to make it work? configure some file?

thanks
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2010, 03:29 AM
Post: #24
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
(01-07-2010 07:35 PM)agabrean Wrote:  Hi,

I'm at home, and I have no ideea how to get to /etc/samba/lib/smb.conf

Could you please tell me how I could do that ?

Thank you,

Adrian.

Using the same steps you do for type the command ps|grep auto_mount do the following steps.
nc IP 2222 (netcat from your pc to C200)
Spawning
sh
sh -i
sh-3.00# cp /etc/samba/lib/smb.conf /share
exit
exit

Then do the ftp to you C200 and get the file smb.conf from /share directory and view in notepad and paste in forum.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2010, 07:40 AM (This post was last modified: 01-08-2010 07:55 AM by agabrean.)
Post: #25
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
(01-08-2010 03:29 AM)vaidyasr Wrote:  Using the same steps you do for type the command ps|grep auto_mount do the following steps.
nc IP 2222 (netcat from your pc to C200)
Spawning
sh
sh -i
sh-3.00# cp /etc/samba/lib/smb.conf /share
exit
exit

Then do the ftp to you C200 and get the file smb.conf from /share directory and view in notepad and paste in forum.

Here it is :
Code:
[global]
    display charset = UTF8
    server string = Samba Share
    null passwords = Yes
    smb passwd file = /etc/samba/lib/smbpasswd
    log file = /etc/samba/var/%m.log
    max log size = 1
    name resolve order = lmhosts bcast host
    unix extensions = No
    use spnego = No
    max smbd processes = 10
    socket options = TCP_NODELAY SO_KEEPALIVE
    load printers = No
    printcap name = /etc/samba/lib/printcap
    dns proxy = No
    kernel oplocks = No
    max connections = 25

[share]
    path = /share
    valid users = nmt
    read only = No
    force create mode = 0644
    force directory mode = 0755

[USB_DRIVE_B-1.HDD4-DESENE]
    path = /USB_DRIVE_B-1.HDD4-DESENE
    valid users = nmt
    read only = No
    force create mode = 0644
    force directory mode = 0755

[USB_DRIVE_E-1.HDD1-SERIALE]
    path = /USB_DRIVE_E-1.HDD1-SERIALE
    valid users = nmt
    read only = No
    force create mode = 0644
    force directory mode = 0755

[USB_DRIVE_C-1.HDD3-FILME]
    path = /USB_DRIVE_C-1.HDD3-FILME
    valid users = nmt
    read only = No
    force create mode = 0644
    force directory mode = 0755

[USB_DRIVE_D-1.HDD2-DOCUMENTARE]
    path = /USB_DRIVE_D-1.HDD2-DOCUMENTARE
    valid users = nmt
    read only = No
    force create mode = 0644
    force directory mode = 0755

Would it be possible to manually edit this smb.conf file and replace it on PCH?

I mean, until we find a solution as to why your script does not work, I could just manually edit this smb.conf file from my PC everytime I disconnect or reconnect an USB ?

If it's possible to do it manually, could you please tell me how to replace the file on the pch?

Thank you,

Adrian.

C-200 - DVICO M-6500 A - USB NTFS HDD
Windows 7 64bit PC - 10/100 LAN
Harman Kardon AVR 132 Optical Connection
TV Composite - Projector Acer 720p HDMI
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2010, 08:59 AM
Post: #26
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
Edit smb.conf is possible, but will be auto edited by system, once you remove the USB drive from C200.
One final information from you is required. Once you have connected any of your USB drive to C200, please list the content from / drive. You can wait for 10-20 seconds and then you can list the contents as below.
After you typed sh -i you will get the prompt sh-3.00#
then type
cd /
then type
ls -l >/share/files.txt
then get the file files.txt from your C200 using ftp and post it here. Please make sure your any one of your USB drive is switched on and wait for 10-20 seconds after you switched on.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2010, 09:23 AM
Post: #27
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
it's too hard for me.....AngrySad
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2010, 09:38 AM
Post: #28
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
(01-08-2010 09:23 AM)duramadre Wrote:  it's too hard for me.....AngrySad

It is working fine for me which is released in CSI. So, I just want to check what's going on in his C200, so that it can be fixed.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2010, 10:06 AM
Post: #29
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
(01-08-2010 09:38 AM)vaidyasr Wrote:  It is working fine for me which is released in CSI. So, I just want to check what's going on in his C200, so that it can be fixed.

Hi vaidyasr,

I'll post the info you requested tonight when I get home.

Thank you,

Adrian.

C-200 - DVICO M-6500 A - USB NTFS HDD
Windows 7 64bit PC - 10/100 LAN
Harman Kardon AVR 132 Optical Connection
TV Composite - Projector Acer 720p HDMI
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2010, 11:23 AM
Post: #30
RE: Auto_Mount v0.1 - Script to Rename USB drives with DRIVE_NAME
but theoretically just install automount via CSI and should work without you have to do?
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [200] [util] openvpn - C200/A200 - via ipkg xray 20 7,320 06-12-2013 04:37 AM
Last Post: Penfold
  [200] Airplay server for C200 and A100 popcornmix 338 147,258 06-03-2013 08:51 PM
Last Post: Kryger
  Is there a FTP CLIENT i can install on my C200? parpagnas 0 311 05-19-2013 12:45 PM
Last Post: parpagnas
  [400] start up script lil8386 20 1,154 04-17-2013 06:53 PM
Last Post: jhmiller
  [200] Installing apps on USB not working ted34 9 2,118 04-17-2013 05:55 PM
Last Post: ted34
  [200] Driver for Realtek USB WiFi dongle (rtl8192, rtl8188cus) romanr 10 1,573 03-19-2013 11:49 AM
Last Post: crc-error404
  [400] how to launch a script when an HW event detected like USB disk insert or detach ? got_rice76 1 544 03-18-2013 11:35 AM
Last Post: vaidyasr
  [400] how to convert scripts from c200 (html+php) to a400 (javascript or bash or ???) ? dmhwsm 0 542 02-10-2013 05:39 PM
Last Post: dmhwsm
  [200] Using PopcornHour C200 as frontend for MythTV/MythWeb schaumburg 13 7,062 01-01-2013 01:02 AM
Last Post: flitter
  [200] Compiling SqueezeSlave for C200 papaiannis 15 3,804 12-21-2012 04:54 PM
Last Post: papaiannis

Forum Jump: