Telnet을 통해 OpenDreambox에 Windows 공유를 마운트하는 방법은 무엇입니까?

Telnet을 통해 OpenDreambox에 Windows 공유를 마운트하는 방법은 무엇입니까?

C 디스크의 루트에라는 새 폴더를 만들었습니다.녹음그리고 나는 그것을 모든 사람과 공유했습니다. 이제 이 폴더를 Dreambox에 마운트하여 녹음할 수 있습니다.

하지만 이것은 Enigma2가 포함된 오리지널 Dream 멀티미디어 상자이기 때문에 옵션이 없습니다.네트워크 브라우저또는마운트 관리자네트워크 설정 메뉴에서 Dreambox의 이미지를 변경하지 않고는 메뉴를 통해 쉽게 이 작업을 수행할 수 없습니다.

Telnet을 통해 마운트가 가능하다는 것을 읽었습니다. 그러면 정확히 어떻게 해야 합니까? 어떤 명령을 사용합니까?

웹에서 다음 두 명령을 찾았습니다.

예시 1:

mount –t cifs –o username=name,password=password //192.168.1.10/dreambox

예 2:

mount -t smbfs -o username=YourUserName //x.x.x.x/YourShareName /your/mountpoint

이 두 명령 중 하나를 사용할 수 있습니까? 왜 cifs하나와 smbfs다른 것으로 말합니까 ? 그 스위치는 무엇을 의미합니까? 또한 재부팅할 때마다 이 작업을 수행해야 합니까, 아니면 영구 설정입니까?

PuTTYtel을 사용하여 Dreambox에 연결했는데 OpenDreambox 1.6.0으로 표시됩니다.

업데이트:다음은 PuTTYtel의 PS 명령 출력입니다.

OpenDreambox 1.6.0 dm500hd

dm500hd login: root
root@dm500hd:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1724 S    init [3]
    2 root         0 SW   [migration/0]
    3 root         0 SWN  [ksoftirqd/0]
    4 root         0 SW   [migration/1]
    5 root         0 SWN  [ksoftirqd/1]
    6 root         0 SW<  [events/0]
    7 root         0 SW<  [events/1]
    8 root         0 SW<  [khelper]
    9 root         0 SW<  [kthread]
   10 root         0 SW<  [kblockd/0]
   11 root         0 SW<  [kblockd/1]
   12 root         0 SW<  [khubd]
   13 root         0 SW   [pdflush]
   14 root         0 SW   [pdflush]
   15 root         0 SW<  [kswapd0]
   16 root         0 SW<  [aio/0]
   17 root         0 SW<  [aio/1]
   18 root         0 SW<  [ata/0]
   19 root         0 SW<  [ata/1]
   20 root         0 SW<  [ata_aux]
   21 root         0 SW<  [scsi_eh_0]
   22 root         0 SW<  [scsi_eh_1]
   23 root         0 SW   [mtdblockd]
   24 root         0 SWN  [jffs2_gcd_mtd3]
   70 root      2180 S <  udevd --daemon
  310 root         0 SW   [b_event]
  311 root         0 SW   [b_idle]
  317 root         0 SW<  [fp]
  339 root         0 SW<  [dmx0]
  345 root         0 SW<  [dmx1]
  354 root         0 SW<  [dmx2]
  355 root         0 SW<  [dmx_hw_sec]
  391 messageb  2408 S    /usr/bin/dbus-daemon --system
  394 root      1928 S    /usr/bin/wdog tpmd
  395 root      4312 S    tpmd
  398 root      1928 S    /usr/bin/wdog dccamd -
  399 root      3136 S    dccamd -
  408 avahi     3084 S    avahi-daemon: running [dm500hd.local]
  441 root      4076 S    nmbd -D
  443 root      6780 S    smbd -D
  458 root      6780 S    smbd -D
  465 root      2504 S    udhcpc -R -b -T3 -A10 -p /var/run/udhcpc.eth0.pid -i
  477 root      1712 S    /usr/sbin/zeroconf -i eth0
  493 root      2348 S    /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host
  496 root      1832 S    /usr/sbin/inetd
  499 root      2504 S    /sbin/syslogd -n -O /var/log/messages -s 32 -b 1 -m 2
  501 root      2504 S    /sbin/klogd -n
  614 root      2256 S    /usr/sbin/automount --pid-file=/var/run/autofs/_autof
  675 root      2504 S    /bin/sh /usr/bin/enigma2.sh
  678 root     65104 S    /usr/bin/enigma2
  687 root     65104 S    /usr/bin/enigma2
  709 root     65104 S    /usr/bin/enigma2
  717 root     65104 S N  /usr/bin/enigma2
22611 root      2824 S    telnetd
22612 root      2820 S    -sh
22737 root      2820 R    ps
root@dm500hd:~#

업데이트:분명히 이미 /media 폴더가 있습니다.

root@dm500hd:/# cd /media
root@dm500hd:/media# cd /share
root@dm500hd:/usr/share#

하려고 하면 cd/share리디렉션됩니다 /usr/share. 그러면 새 폴더를 만드는 대신 이 폴더를 사용할 수 있나요?...

업데이트:이제 새로운 시도를 해봤습니다..

root@dm500hd:/# sudo mkdir /newfolder/share
-sh: sudo: not found
root@dm500hd:/# $ sudo mkdir /newfolder/share
-sh: $: not found
root@dm500hd:/# $sudo mkdir /newfolder/share
mkdir: cannot create directory '/newfolder/share': No such file or directory
root@dm500hd:/# $sudo mkdir /media/share
root@dm500hd:/# $sudo chmod a+r /media/share
root@dm500hd:/# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
root@dm500hd:/# edit /etc/fstab
-sh: edit: not found
root@dm500hd:/# edit /etc/fstab
-sh: edit: not found
root@dm500hd:/# open /etc/fstab
-sh: open: not found
root@dm500hd:/#

그래서 달러 기호를 추가해야 했나요? 그리고 사이에 공백이 없나요? 이번에는 효과가 있었던 것 같네요... 처음에 이라는 폴더를 만들어 보았습니다.새 폴더. 왜 거절했나요? 그런 다음 /media/share 폴더를 만들었습니다. 이것이 기존 폴더에 어떤 영향을 미쳤습니까?공유하다이전에 있던 심볼릭 링크(또는 무엇이든)가 있었나요?

shBourne 또는 Thompson 쉘 입니까 ? 아니면 모든 Linux 쉘이 shAsh 쉘로 축약됩니까?

쉘에서 파일을 어떻게 편집합니까? Windows에서 다운로드 fstab하여 편집한 다음 FTP를 통해 다시 보내야 했습니다.

그런 다음 시도해 보았 $sudo mount -a더니 다음과 같은 결과가 나왔습니다.

root@dm500hd:/# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
mount: mounting //192.168.0.107/recordings on /media/share failed: No such device
root@dm500hd:/#

이것은 내 fstab 파일의 내용입니다.

rootfs               /                    auto       defaults              1 1
proc                 /proc                proc       defaults              0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
usbfs                /proc/bus/usb        usbfs      defaults              0 0
/dev/mtdblock2       /boot                jffs2      ro                    0 0
tmpfs                /var                 tmpfs      defaults              0 0
tmpfs                /tmp                 tmpfs      defaults              0 0
/dev/sda1            /media/hdd           auto       defaults              0 0
//192.168.0.107/recordings /media/share smbfs auto,user=classified,password=classfied 0 0

상자를 재부팅하고 작동하는지 확인하겠습니다.

업데이트:아직 운이 없군요...

그것은 여전히 ​​​​나에게 mount: mounting //192.168.0.107/recordings on /media/share failed: No such device. IP를 컴퓨터 이름으로 바꾸려고 시도했지만 동일한 메시지가 나타납니다.

fstab에서 용어의 순서를 바꿔서(구문 문제인 경우) 줄에서 /media/share를 먼저 가져오려고 했습니다. 그것은 나에게 mount: mounting /media/share on /computername/recordings failed: No such file or directory.

업데이트:운이 좋았어...

왜 마운트를 고집합니까 /media/share? 컨벤션 문제인가요? 다른 폴더에 마운트할 수 있나요? Windows에서 새 폴더와 새 공유를 만든 다음 mount -t cifs명령을 사용하여 문제를 해결했습니다.

OpenDreambox 1.6.0 dm500hd


dm500hd login: root
root@dm500hd:~# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
mount: mounting //192.168.0.107/recordings on /media/share failed: No such device

/dev/sda1 on /media/hdd failed그 부분은 연결된 디스크 드라이브가 없기 때문인 것 같아요 . 이 STB에는 eSATA 포트에 HDD를 연결할 수 있지만 연결된 것이 없습니다.

IP가 잘못되었기 때문에 두 번째 줄이 표시되는 것 같습니다. 마운트하려는 STB 상자의 이름은 192.168.0.107이고 192.168.0.101이어야 한다고 생각합니다.

root@dm500hd:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1724 S    init [3]
    2 root         0 SW   [migration/0]
    3 root         0 SWN  [ksoftirqd/0]
    4 root         0 SW   [migration/1]
    5 root         0 SWN  [ksoftirqd/1]
    6 root         0 SW<  [events/0]
    7 root         0 SW<  [events/1]
    8 root         0 SW<  [khelper]
    9 root         0 SW<  [kthread]
   10 root         0 SW<  [kblockd/0]
   11 root         0 SW<  [kblockd/1]
   12 root         0 SW<  [khubd]
   13 root         0 SW   [pdflush]
   14 root         0 SW   [pdflush]
   15 root         0 SW<  [kswapd0]
   16 root         0 SW<  [aio/0]
   17 root         0 SW<  [aio/1]
   18 root         0 SW<  [ata/0]
   19 root         0 SW<  [ata/1]
   20 root         0 SW<  [ata_aux]
   21 root         0 SW<  [scsi_eh_0]
   22 root         0 SW<  [scsi_eh_1]
   23 root         0 SW   [mtdblockd]
   24 root         0 SWN  [jffs2_gcd_mtd3]
   70 root      2180 S <  udevd --daemon
  313 root         0 SW   [b_event]
  314 root         0 SW   [b_idle]
  320 root         0 SW<  [fp]
  344 root         0 SW<  [dmx0]
  351 root         0 SW<  [dmx1]
  359 root         0 SW<  [dmx2]
  360 root         0 SW<  [dmx_hw_sec]
  396 messageb  2408 S    /usr/bin/dbus-daemon --system
  399 root      1928 S    /usr/bin/wdog tpmd
  400 root      4312 S    tpmd
  403 root      1928 S    /usr/bin/wdog dccamd -
  404 root      3136 S    dccamd -
  413 avahi     3084 S    avahi-daemon: running [dm500hd.local]
  451 root      4076 S    nmbd -D
  453 root      6780 S    smbd -D
  473 root      6780 S    smbd -D
  489 root      2504 S    udhcpc -R -b -T3 -A10 -p /var/run/udhcpc.eth0.pid -i
  503 root      1712 S    /usr/sbin/zeroconf -i eth0
  519 root      2348 S    /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host
  522 root      1832 S    /usr/sbin/inetd
  525 root      2504 S    /sbin/syslogd -n -O /var/log/messages -s 32 -b 1 -m 2
  527 root      2504 S    /sbin/klogd -n
  640 root      2256 S    /usr/sbin/automount --pid-file=/var/run/autofs/_autof
  701 root      2504 S    /bin/sh /usr/bin/enigma2.sh
  704 root     84536 S    /usr/bin/enigma2
  713 root     84536 S    /usr/bin/enigma2
  735 root     84536 S    /usr/bin/enigma2
  748 root     84536 S N  /usr/bin/enigma2
  739 root         0 SW<  [kdvb-ad-0-fe-0]
  886 root      7324 S    smbd -D
  965 root      2824 S    telnetd
  966 root      2820 S    -sh
 1063 nobody    2292 S    vsftpd
 1065 root      2316 S    vsftpd
 1076 root      2820 R    ps
root@dm500hd:~# smbd
root@dm500hd:~# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
mount: mounting /computername/recordings on /media/share failed: No such device

이 마지막 줄에서는 IP 주소 대신 컴퓨터의 네트워크 이름을 사용하려고 했습니다.fstab파일. 하지만 그건 도움이 되지 않았습니다. 아마도 네트워크 이름이 아니라 IP여야 할까요?... ​​모르겠습니다...

root@dm500hd:~# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
mount: mounting /media/share on /computername/recordings failed: No such file or directory
root@dm500hd:~# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
mount: mounting //media/share on /computername/recordings failed: No such file or directory
root@dm500hd:~# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
mount: mounting //media/share on /computername/recordings failed: No such file or directory
root@dm500hd:~# $sudo mount -a
mount: mounting /dev/sda1 on /media/hdd failed: No such file or directory
mount: mounting //computername/recordings on /media/share failed: No such device

공백을 추가하는 등 다양한 방법으로 fstab 파일을 편집하고 업데이트해 보았습니다. 포맷 문제인 경우를 대비해...

이것은 나에게 작업 솔루션을 제공한 부분입니다.

라는 폴더를 만들었습니다.드림박스Windows 시스템의 C 드라이브 아래에 있으며 이를 다른 사용자와 공유했습니다.모든 사람그룹. 그런 다음 아래 명령을 수행했습니다.

root@dm500hd:~# cd /
root@dm500hd:/# mkdir
BusyBox v1.15.3 (2010-10-14 16:48:44 UTC) multi-call binary

Usage: mkdir [OPTIONS] DIRECTORY...

Create DIRECTORY

Options:
        -m      Set permission mode (as in chmod), not rwxrwxrwx - umask
        -p      No error if existing, make parent directories as needed

root@dm500hd:/# /hdd/movie
-sh: /hdd/movie: not found
root@dm500hd:/# mkdir /hdd/movie

The /hdd is a syslink (symbolic link) I think so it is really located at `/media/hdd`. Note that this is the same location where `/dev/sda1` is mounted.

root@dm500hd:/# mount -t cifs -o username=user,password=pass //192.168.0.10
7/dreambox /hdd
mount: mounting //192.168.0.107/dreambox on /hdd failed: No such device or address
root@dm500hd:/# mount cifs user=user,password=pass //192.168.0.101/dreambox /hdd

192.168.0.107은 STB박스의 IP이므로 잘못된 것입니다. Windows 시스템을 호스팅하는 공유의 올바른 값은 192.168.0.101입니다. 또한 사용자"가 아닌 "사용자 이름"입니다.

출력은 다음과 같습니다.

BusyBox v1.15.3 (2010-10-14 16:48:44 UTC) multi-call binary

Usage: mount [flags] DEVICE NODE [-o OPT,OPT]

Mount a filesystem. Filesystem autodetection requires /proc be mounted.

Options:
        -a              Mount all filesystems in fstab
        -r              Read-only mount
        -w              Read-write mount (default)
        -t FSTYPE       Filesystem type
        -O OPT          Mount only filesystems with option OPT (-a only)
-o OPT:
        loop            Ignored (loop devices are autodetected)
        [a]sync         Writes are [a]synchronous
        [no]atime       Disable/enable updates to inode access times
        [no]diratime    Disable/enable atime updates to directories
        [no]relatime    Disable/enable atime updates relative to modification time
        [no]dev         (Dis)allow use of special device files
        [no]exec        (Dis)allow use of executable files
        [no]suid        (Dis)allow set-user-id-root programs
        [r]shared       Convert [recursively] to a shared subtree
        [r]slave        Convert [recursively] to a slave subtree
        [r]private      Convert [recursively] to a private subtree
        [un]bindable    Make mount point [un]able to be bind mounted
        bind            Bind a directory to an additional location
        move            Relocate an existing mount point
        remount         Remount a mounted filesystem, changing its flags
        ro/rw           Read-only/read-write mount

There are EVEN MORE flags that are specific to each filesystem
You'll have to see the written documentation for those filesystems

보시다시피 이것은 잘못된 구문이었습니다. 옵션 중 하나를 사용해야 합니다.

root@dm500hd:/# mount -t cifs -o username=user,password=pass //192.168.0.10
1/dreambox /hdd
root@dm500hd:/# mount -a
mount: mounting //computername/recordings on /media/share failed: No such device

이 마지막 줄은 fstab 파일에 해당 줄을 추가했기 때문입니다. fstab 파일을 편집하고 이 줄을 제거한 후 이전에 이 mount -t cifs명령이 적용되도록 추가했습니다.

root@dm500hd:/# mount -a
root@dm500hd:/# $sudo mount -a
root@dm500hd:/#

mount -aor 을 수행할 때 오류 출력이 없다는 점에 유의하십시오 sudo mount -a.

나는 이 가이드를 따랐습니다.http://www.maxteknik.se/forum/viewtopic.php?t=3828

답변1

이를 수행하는 가장 쉬운 방법은 SMB 프로토콜을 사용하는 것입니다. Linux 머신에서 공유 폴더에 대한 마운트 지점을 만듭니다.

$ sudo mkdir /media/share
$ sudo chmod a+xr /media/share

두 번째 명령은 `/media/share/디렉토리를 읽고 실행할 수 있도록 설정합니다(사용자가 해당 디렉토리로 변경할 수 있음을 의미함).모두사용자.

*ix 시스템에서는 드라이브 마운트(로컬 또는 원격)에 대한 설정이 파일에 설정됩니다 etc/fstab. 파일의 일반적인 형식은 다음과 같습니다.

DRIVE  LOCAL_MOUNT_DIRECTORY FILESYSTEM OPTIONS    


/etc/fstabLinux 상자를 편집 하고 다음 줄을 추가하십시오.

//x.x.x.x/recordings /media/share smbfs auto,user=USER,password=PASS 0 0

x.x.x.x./YouShareNameWindows 서버의 IP를 표시하도록 변경 하고 USER 및 PASS를 올바르게 설정하십시오. 모든 것이 순조롭게 진행된다면 제대로 작동할 것이며 (리눅스) 시스템이 재부팅될 때 마운트될 것입니다. 재부팅하지 않고 테스트하려면 다음을 실행하세요.

$ sudo mount -a

자세한 내용과 자세한 방법은 다음을 참조하세요.여기.

관련 정보