Moxa TC-6110-T-LX [17/117] Disconnecting a usb storage device

Moxa TC-6110-T-LX [17/117] Disconnecting a usb storage device
TC-6110 Linux User's Manual Basic Platform Configuration
2-10
Disconnecting a USB Storage Device
Remember to type the command moxa@Moxa:~# sync before you disconnect a USB block storage device. If
you do not issue the command, you may lose data.
ATTENTION
Remember to exit the
directory you are working in before disconnecting the USB storage device. If you
do not
first exit the directory,
the automated unmount process will fail, possibly corrupting system processes. If
you
do fail to exit the directory and still disconnect the USB storage device, you may attempt to unmount the device
manually by running the follow
ing command in the console:
root@moxa@Moxa:~# umount -f /media/usb0
Checking Versions for your Kernel and OS
The program uname prints the name, version, and other details about the operating system running on the
computer. Use the -a option to generate a response similar to the one shown below:
root@moxa@Moxa:~# uname -a
Linux Moxa 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1 i686 GNU/Linux
If you would like to check Moxa’s firmware revision, type:
moxa@MOXA:~# kversion –a
Using APT to Install and Remove Software
APT is the Debian tool used to install and remove packages. Before installing a package, you need to configure
the apt source file,
/etc/apt/sources.list.
1. Open the sources.list file in.the vi editor.
moxa@MOXA:~# sudo vi /etc/apt/sources.list
2. The configuration file should look something like this:
deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
3. Update the source list after you configure it.
moxa@MOXA:~# sudo apt-get update
4. Once you indicate which package you want to install (openswan, for example), type:
moxa@MOXA:~# sudo apt-get install openswan
5. You may use one of the following commands to remove a package.
a. For a simple package removal:
moxa@MOXA:~# sudo apt-get remove openswan
b. For a complete package removal that removes all related configuration files, including those in individual
user directories:
moxa@MOXA:~# sudo apt-get remove openswan --purge

Содержание

Похожие устройства

Скачать