SSH
SSH необхідно включити в налаштуваннях web-интерфейса:
http://192.168.0.123
В налаштування SSH для зручності можна додати:
.ssh/config
Host wdisk
Hostname 192.168.0.123
Ciphers 3des-cbc
KexAlgorithms +diffie-hellman-group1-sha1
User olex
Host wdroot
Hostname 192.168.0.123
Ciphers 3des-cbc
KexAlgorithms +diffie-hellman-group1-sha1
User root
user: root
passw: welc0me
(де 0
- цифра)
~ # pwd
/root
~ # cd ..
/ # ls -lah
drwxr-xr-x 24 root root 4.0k Jan 15 2015 .
drwxr-xr-x 24 root root 4.0k Jan 15 2015 ..
-rw------- 1 root root 1.0k Mar 10 2010 .rnd
lrwxrwxrwx 1 root root 17 Jul 15 2009 CacheVolume -> /DataVolume/jewab
drwxr-xr-x 2 root root 4.0k Oct 1 2010 Configuration
drwxr-xr-x 9 root root 122 Mar 17 22:14 DataVolume
drwxrwxr-x 3 root root 4.0k Apr 9 2008 ExtendVolume
drwxr-xr-x 2 root root 4.0k Dec 2 2009 bin
drwxr-xr-x 7 root root 4.0k Jan 13 2015 dev
drwxr-xr-x 11 root root 4.0k Mar 17 22:14 etc
drwxrwxr-x 3 root root 4.0k Dec 2 2009 lib
lrwxrwxrwx 1 root root 11 Jul 15 2009 linuxrc -> bin/busybox
drwx------ 2 root root 16.0k Jul 15 2009 lost+found
drwxr-xr-x 3 root root 4.0k Mar 10 2010 mnt
drwxr-xr-x 2 root root 4.0k Mar 17 22:14 nfs
drwxr-xr-x 2 root root 4.0k Nov 22 1999 opt
dr-xr-xr-x 135 root root 0 Jan 1 1970 proc
drwxrwxr-x 3 root root 4.0k Dec 2 2009 proto
drwxrwxr-x 2 root root 4.0k Jan 15 2015 root
drwxr-xr-x 2 root root 4.0k Dec 2 2009 sbin
drwxr-xr-x 6 root jewab 4.0k Mar 17 22:14 shares
drwxr-xr-x 13 root root 0 Jan 1 1970 sys
drwxrwxrwt 6 root root 4.0k Mar 17 22:14 tmp
drwxrwxr-x 2 root root 4.0k Aug 4 2006 trustees
drwxrwxr-x 5 root root 4.0k Mar 17 21:54 twonky
drwxrwxr-x 10 root root 4.0k Dec 2 2009 usr
drwxr-xr-x 10 root root 4.0k Mar 10 2010 var
/ # cd bin
/bin # ls
addgroup cat date dmesg grep ipcalc mkdir mv ps sed tar uncompress
adduser chgrp dd echo gunzip kill mknod netstat pwd sh touch upnpc
ash chmod delgroup egrep gzip ln more nice rm sleep true usleep
blockdev chown deluser false hostname login mount pidof rmdir stat umount vi
busybox cp df fgrep ip ls msh ping run-parts sync uname
Хотелось удобно и быстро переносить файлы между разделами WDisk'a, но если очень надо, можно и так, не так удобно, но быстро:
mv /DataVolume/Download/15kapitan.avi /DataVolume/Public
изучай командную строку! [[linux:commands:dirs_files]]
===== Подключенные USB-накопители =====
<code>
/ # cd shares
/shares # ls -la
</code>
<html><pre>
drwxr-xr-x 6 root jewab 4096 Jan 15 02:57 .
drwxr-xr-x 24 root root 4096 Jun 8 2011 ..
-rw-rw-r-- 1 root jewab 0 Nov 15 2006 .mounted
drwxrwxr-x 8 root jewab 8192 Jan 15 03:14 Download
drwxrwxrwx 16 root jewab 36864 Jan 15 03:47 Public
drwxrwxr-x 2 root jewab 6 Jan 22 2011 ans
drwxrwxr-x 1 root jewab 4096 Jan 15 03:52 <span style="color:red;">usb1-1share1</color>
</pre></html>
===== Размер свободного пространства =====
<code>
/ # df -h
</code>
<html><pre>
Filesystem Size Used Available Use% Mounted on
/dev/md0 1.8G 124.9M 1.6G 7% /
/dev/md3 949.6M 17.5M 883.8M 2% /var
/dev/md2 1.8T 1.2T 674.4G 64% /DataVolume
/dev/ram0 61.9M 20.0k 61.9M 0% /mnt/ram
/dev/md2 1.8T 1.2T 674.4G 64% /shares/Download
/dev/md2 1.8T 1.2T 674.4G 64% /shares/Public
/dev/md2 1.8T 1.2T 674.4G 64% /shares/ans
/dev/sdb1 931.5G 345.6G 585.9G 37% /shares/usb1-1share1
</pre></html>
===== Выключение =====
shutdown -h 0
===== Обновление прошивки из файла =====
updateFirmwareFromFile.sh /shares/Public/apnc-021012-129-20120308.deb
===== Попробуй =====
mount -t ntfs /dev/sdb1 /mnt/win_c -o umask=0000,rw,utf8
Вот примерно такой командой можешь примонтировать нтфс-ный раздел
''/dev/sdb1'' и ''/mnt/win_c'' замени на свои
/dev/sdXY определить при помощи
# fdisk -l
<code>
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 5 249 1959936 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 249 280 256992 fd Linux raid autodetect
Partition 2 does not end on cylinder boundary.
/dev/sda3 280 403 988000 fd Linux raid autodetect
Partition 3 does not end on cylinder boundary.
/dev/sda4 403 18446744073709527469 18446744073512342913+ fd Linux raid autodetect
Note: sector size is 4096 (not 512)
You must set cylinders.
You can do this from the extra functions menu.
Disk /dev/sdb: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 45601 2930253824 7 HPFS/NTFS
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(45600, 23, 55)
</code>
Last updated