C.2 Copying File Using USB

Table C-2 Copying File Using USB

S T EP # This procedure will help copying the license file from a desktop to LSMS server

☐1.

Server X: Copy license file to USB

Connect USB to desktop and copy the license file from desktop to USB.

☐2.

LSMS MPS: Confirm how the USB is enumerated on LSMS server

Connect the USB to LSMS MPS which contains the license file and check on how it is enumerated using command :

$dmesg | grep -i "removable disk"

Expected output:

sd 6:0:0:0: Attached scsi removable disk sdc

This shows USB is enumerated as /dev/sdc

☐3.

LSMS MPS: Determine the partition name

Run command fdisk –l on enumerated name device to determine partition name :

$fdisk –l /dev/sdc
Expected Output :
Disk /dev/sdc: 2013 MB, 2013265920 bytes
256 heads, 63 sectors/track, 243 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Device Boot	Start	End	Blocks	Id System
/dev/sdc1	*	1	110	887008+	b W95 FAT32

This shows that partition name is /dev/sdc1

☐4.

LSMS MPS: Copy license file from USB to MPS

Run below command to copy the license file from USB

$mkdir –p /tmp/usb
$ mount /dev/sdc1 /tmp/usb

☐5.

LSMS MPS: Copy license file from /tmp directory

$ cp /tmp/usb/<license-file> /usr/local/netech/etc/license

☐6.

LSMS MPS: Check if the license file has been copied correctly

Run command to check for license file :

$ cat /usr/local/netech/etc/license

Expected Output :

Contents of license file should be displayed

☐7.

LSMS MPS: Unmount the USB

Unmount the USB using command :

$umount /tmp/usb

This procedure is complete!