Moxa DA-681-I-SP-LX [21/65] Inserting a sata hard drive into the computer
![Moxa DA-681-I-DP-XPE [21/65] Inserting a sata hard drive into the computer](/views2/1199528/page21/bg15.png)
DA-681 Linux Software Configuration
2-10
1. Write a shell script named fixtime.sh and save it to /home/.
#!/bin/sh
ntpdate time.nist.gov
hwclock –w
exit 0
2. Change mode of fixtime.sh
# chmod 755 fixtime.sh
3. Modify /etc/crontab file to run fixtime.sh at 8:00 every day.
Add the following line to the end of crontab:
* 8 * * * root /home/fixtime.sh
Inserting a SATA Hard Drive into the Computer
The DA-681 offers one hard drive connector supporting a SATA-based disk that can be added to the computer.
Follow the next step.
1. Change the access right of the file system mount –o remount,rw /dev/hda1 /
Then use mount command to check if the status has been changed from read only to read and write.
Moxa:~# mount
rootfs on / type rootfs (rw)
none on /sys type sysfs (rw)
none on /proc type proc (rw)
udev on /dev type tmpfs (rw)
/dev/hdal on / type ext2 (ro)
/dev hdal on /dev/.static/dev type ext2 (ro)
tmpfs on /dev shm type tmpfs (rw, nosuid, nodev)
devpts on /dev/pts type devpts (rw, nosuid, noexec)
none on /temp type tmpfs (rw)
/dev/mtdblock0 on /home type jffs2 (rw)
Moxa:~# mount -0 remount, rw /dev/hda1 /
Moxa:~# mount
rootfs on / type rootfs (rw)
none on / sys type sysfs (rw)
none on / proc type proc (rw)
udev on /dev type tmpfs (rw)
/dev/hda1 on / type ext2 (rw)
/dev/hda1 on /dev/.static/dev type ext2 (rw)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
none on /tmp type tmpfs (rw)
/dev/mtdblock0 on /home type jffs2 (rw)
Moxa:~#
2. Edit /boot/grub/menu.lst.
Change the device name of DOM, from root=/dev/hda => root=/dev/sdb, and then save the file.
title Debian GNU/Linux, kernel 2.6.18-5-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-5-686 root*/dev/sdb1 ro
initrd /boot/initrd.img-2.6.18-5-686
savedefault
Содержание
- Da 681 series linux manual 1
- Fourth edition august 2012 1
- Www moxa com product 1
- Copyright notice 2
- Da 681 series linux manual 2
- Disclaimer 2
- Technical support contact information 2
- Trademarks 2
- Www moxa com support 2
- Introduction 4
- Attention 5
- Da 681 linux introduction 5
- Overview 5
- Product features 5
- Software specifications 5
- Attention 6
- Da 681 linux introduction 6
- Device driver 6
- Hardware 6
- Linux kernel 6
- Micro kernel 6
- Protocol stack 6
- Read only root file system 6
- Software components 6
- Da 681 linux introduction 7
- Da 681 linux introduction 8
- Da 681 linux introduction 9
- Da 681 linux introduction 10
- Da 681 linux introduction 11
- Software configuration 12
- Connecting from a telnet console 13
- Da 681 linux software configuration 13
- Starting from a vga console 13
- Attention 14
- Connecting from an ssh console 14
- Da 681 linux software configuration 14
- Adjusting the system time 15
- Da 681 linux software configuration 15
- Linux users 15
- Setting the time manually 15
- Windows users 15
- Attention 16
- Da 681 linux software configuration 16
- Ntp client 16
- Da 681 linux software configuration 17
- Updating the time automatically 17
- Da 681 linux software configuration 18
- Enabling and disabling daemons 18
- Da 681 linux software configuration 19
- Setting the run level 19
- Cron daemon for executing scheduled commands 20
- Da 681 linux software configuration 20
- Da 681 linux software configuration 21
- Inserting a sata hard drive into the computer 21
- Da 681 linux software configuration 22
- Inserting a usb storage device into the computer 22
- Attention 23
- Checking the linux version 23
- Da 681 linux software configuration 23
- Inserting a compactflash card into the computer 23
- Apt installing and removing packages 24
- Attention 24
- Da 681 linux software configuration 24
- Attention 25
- Da 681 linux software configuration 25
- Main swtd_fd open dev swtd o_rdwr time 4000 4000 ms ioctl swtd_fd ioctl_swatchdog_enable time while 1 25
- Wdt watchdog timer 25
- Da 681 linux software configuration 26
- Int swtd_disable int fd 26
- Int swtd_enable int fd unsigned long time 26
- Int swtd_get int fd int mode unsigned long time 26
- Int swtd_open void 26
- Ioctl swtd_fd ioctl_swatchdog_ack null close swtd_fd 26
- Close the file handle 27
- Managing communications 31
- Changing the interfaces configuration file 32
- Changing the network settings 32
- Da 681 linux managing communications 32
- Static ip address 32
- Adjusting ip addresses with ifconfig 33
- Da 681 linux managing communications 33
- Dynamic ip address using dhcp 33
- Enabling the telnet server 33
- Telnet server 33
- Da 681 linux managing communications 34
- Disabling the ftp server 34
- Disabling the telnet server 34
- Dns client 34
- Enabling the ftp server 34
- Ftp server 34
- Da 681 linux managing communications 35
- Etc hostname 35
- Etc nsswitch conf 35
- Etc resolv conf 35
- Apache web server 36
- Bin sh var www apache2 default cgi bin index cgi disable filename globbing set f echo content type text plain charset iso 8859 1 echo echo cgi 1 test script report echo echo argc is argv is echo echo server_software server_software echo server_name server_name echo gateway_interface gateway_interface echo server_protocol server_protocol echo server_port server_port echo request_method request_method echo http_accept http_accept echo path_info path_info echo path_translated path_translated echo script_name script_name echo query_string query_string echo remote_host remote_host 36
- Da 681 linux managing communications 36
- Default homepage 36
- Attention 37
- Da 681 linux managing communications 37
- Echo remote_addr remote_addr echo remote_user remote_user echo auth_type auth_type echo content_type content_type echo content_length content_length 37
- Saving web pages to a usb storage device 37
- Attention 38
- Da 681 linux managing communications 38
- Iptables 38
- Da 681 linux managing communications 39
- Filter table includes three chains 39
- Mangle table includes two chains 39
- Nat table includes three chains 39
- Sub tables 39
- Da 681 linux managing communications 40
- Iptables hierarchy 40
- Da 681 linux managing communications 41
- Iptables modules 41
- Observe and erase chain rules 41
- To maintain the database 41
- Append or delete rules 42
- Da 681 linux managing communications 42
- Define policy for chain rules 42
- Examples 42
- Attention 43
- Da 681 linux managing communications 43
- Examples 43
- Nat network address translation 43
- Da 681 linux managing communications 44
- Enabling nat at bootup 44
- Nat example 44
- Attention 45
- Connecting to a ppp server over a simple dial up connection 45
- Da 681 linux managing communications 45
- Ppp point to point protocol 45
- Checking the connection 46
- Connecting to a ppp server over a hard wired link 46
- Da 681 linux managing communications 46
- Da 681 linux managing communications 47
- Setting up a machine for incoming ppp connections 47
- Attention 48
- Da 681 linux managing communications 48
- Da 681 linux managing communications 49
- Da 681 linux managing communications 50
- Nfs network file system client 50
- Da 681 linux managing communications 51
- Snmp simple network management protocol 51
- Da 681 linux managing communications 52
- Ethernet bridging for private networks on different subnets 52
- Openvpn 52
- Attention 53
- Da 681 linux managing communications 53
- Da 681 linux managing communications 54
- Attention 55
- Da 681 linux managing communications 55
- Da 681 linux managing communications 56
- Ethernet bridging for private networks on the same subnet 56
- Routed ip 56
- Da 681 linux managing communications 57
- Da 681 linux managing communications 58
- System recovery 59
- Attention 60
- Bootable usb disk recovery 60
- Da 681 linux system recovery 60
- Da 681 lx 60
- Recovery environment 60
- Recovery procedure 60
- Usb port 60
- Da 681 linux system recovery 61
- Da 681 linux system recovery 62
- Da 681 linux system recovery 63
- Attention 64
- Da 681 linux system recovery 64
- Da 681 linux system recovery 65
Похожие устройства
- Moxa DA-681-I-SP-LX Технические характеристики
- Moxa DA-681-I-SP-LX Руководство по аппаратной части
- Moxa DA-681-I-SP-XPE Инструкция по эксплуатации
- Moxa DA-681-I-SP-XPE Руководство по программной части (Windows)
- Moxa DA-681-I-SP-XPE Руководство по программной части (Linux)
- Moxa DA-681-I-SP-XPE Руководство по программной части (Windows CE)
- Moxa DA-681-I-SP-XPE Технические характеристики
- Moxa DA-681-I-SP-XPE Руководство по аппаратной части
- Moxa DA-683-DPP-T-LX Инструкция по эксплуатации
- Moxa DA-683-DPP-T-LX Руководство по программной части (Windows)
- Moxa DA-683-DPP-T-LX Руководство по программной части (Linux)
- Moxa DA-683-DPP-T-LX Руководство по программной части (Windows 7)
- Moxa DA-683-DPP-T-LX Руководство по быстрой установке
- Moxa DA-683-DPP-T-LX Технические характеристики
- Moxa DA-683-DPP-T-XPE Инструкция по эксплуатации
- Moxa DA-683-DPP-T-XPE Руководство по программной части (Windows)
- Moxa DA-683-DPP-T-XPE Руководство по программной части (Windows 7)
- Moxa DA-683-DPP-T-XPE Руководство по программной части (Linux)
- Moxa DA-683-DPP-T-XPE Руководство по быстрой установке
- Moxa DA-683-DPP-T-XPE Технические характеристики