Ir al contenido principal

Montar USB en Linux

Para instalar memoria USB en Linux se realiza de la siguiente forma

How To Mount USB flash drive from Command Line
Mounting a USB flash drive in GNOME (or another Linux desktop environment) is as easy as plug and play. Yet, occasionally, you need to mount one on a server which does not run X, then you must know how to do it on the command line.
Become root.$ sudo -s

Plug in USB drive to a USB port.

Identify the correct partition name corresponding to the USB drive.
For my Debian system, it is sda, and partition

1.$ dmesg grep -i 'SCSI device'...
SCSI device sda: 3903488 512-byte hdwr sectors (1999 MB)
Alternatively,
$ grep SCSI /var/log/messages...Dec 1 11:52:26 tiger kernel: SCSI device sda: 3903488 512-byte hdwr sectors (1999 MB)
Mount the partition to an existing mount point (directory).
$ mkdir -p /mnt/myusb
$ mount -t vfat -o rw,users /dev/sda1 /mnt/myusb
users give non-root users the ability to unmount the drive.
You can verify the drive is indeed mounted as follows:
$ mount
You should see a line in the output that looks like:
/dev/sda1 on /mnt/myusb type vfat (rw,noexec,nosuid,nodev)
To retrieve the USB drive:
You must unmount the partition before physically unplugging the USB device.
$ umount /mnt/myusb
You can run the mount command again (with no argument) to verify that the volume is indeed mounted.
Unplug USB drive.

Comentarios

Entradas populares de este blog

Como Instalar drivers Atheros AR8161 sobre Ubuntu 12.10

Cuando se configuró Ubuntu 12.10 sobre un laptop Lenovo Y480, es posible que la tarjeta de red para comunicación cableada no quede configurada, por eso pongo a disposición los pasos que se deben seguir para configurarla. 1. Para identificar que tipo de tarjeta es, se puede utilizar el comando lspci, éste comando nos muestra algunos dispositvos y en especial el que necesitamos: Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10) 2. Se recomienda que existan los siguientes paquetes o en su defecto realizar la instalación de: (se puede realizar la instalación de la siguiente manera) sudo apt-get install build-essential linux-headers-generic linux-headers-(uname -r (su sistema real) 3. Después deberá descargar los drivers o módulos de aquí y posterior a la descarga correr lo siguiente, es importante estar dentro de las carpetas , tal cual se muestra: tar -xj compat*.tar.bz2 cd compat-wireless-3.5.4-1-snpc sudo ./scripts/driver-select alx su...

Asegurando SSH

Tomado de http://miguadalinex.blogspot.com/2009/03/servidor-ssh-con-una-ip-dinamica.html Servidor ssh con una IP dinamica SSH (Secure SHell) es el nombre de un protocolo y del programa que lo implementa, y sirve para acceder a máquinas remotas a través de una red. Permite manejar por completo el ordenador mediante un intérprete de comandos, y también puede redirigir el tráfico de X para poder ejecutar programas gráficos si tenemos un Servidor X arrancado. Instalación Instala los paquetes openssh-server y openssh-client del repositorio main de Guadalinex. Configuración La configuración del servidor ssh no es complicada, voy a explicar como hacerla desde la línea de comandos en un Guadalinex V4 / V5, ignoro si en las anteriores sigue siendo igual. Permitiendo y denegando el acceso al servidor Para permitir y denegar los accesos, editaremos los archivos /etc/hosts.deny y /etc/hosts.allow . En el primero de ellos denegaremos todos los hosts y en el segundo permitiremos ...

PHP On Tomcat

Fue tomado de http://fabien.duminy.ifrance.com/blog/archives/2007/08/entry_14.html tomcat and php Here are the steps to run php in tomcat : Download tomcat and unzip the archive where you want (=> TOMCAT_DIR ) Create the following directories : TOMCAT_DIR /webapps/testPHP If necessary, create directory TOMCAT_DIR /common/lib (it seems, at least with tomcat 6, that the directory is no more created) Edit the file TOMCAT_DIR /conf/catalina.properties and modify the line for property shared.loader : shared.loader=${catalina.home}/common/classes,${catalina.home}/common/lib/*.jar Edit the file TOMCAT_DIR /conf/web.xml and add the lines mentionned below (see ' lines to add to web.xml of your tomcat installation ') To download quercus ( a php 5 engine written in pure java), you must in fact download resin becau...