You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close

Logging to a USB after a wipe (Standalone)

The following instructions will walk you through moving a log file to a USB after a wipe is performed using the Standalone version. If you are using the PXE version, please refer to the following instructions at this link instead.

To get to the command prompt, type exit and select yes. From here, you will want to make sure a USB is NOT connected, run the following command, then connect your USB drive and run the same command again. This simply verifies that it is picking up the extra drive and allows you to see the drive name. 

cat /proc/partitions


Once you are sure the computer sees the extra drive, go ahead and run the following command to create the directory:

mkdir /mnt/usb

You will then mount the drive using the following command, entering in the correct drive name. For instance, if the USB drive showed up as sdc1, you want to replace the drive name with sdc1.

mount /dev/insert-drive-name-here /mnt/usb

Example: mount /dev/sdc1 /mnt/usb

Next, run the following command:

ls /tmp

Here, you should see your log files. They will end with the extension that you chose when running the software. (.pdf, .txt, etc). If you see them, you're in luck! You can move them to the USB. To do so, please use the following command:

cp -R /tmp/* /mnt/usb

The asterisk will move all the logs you see here to the USB. Now we will want to verify that the log file(s) are on the USB. To do this, run the following command:

ls /mnt/usb

If you see the file(s), then they has been moved and you can now un-mount the USB. Please Note: Un-mounting the USB is very important and should not be skipped. To do this, type the following command:

umount /mnt/usb

There will be no output, but it will bring up the next command prompt. You are now ready to unplug the USB and check the files on a Windows computer.

Note: If you get the error that no such file or directory exists when trying to move the log file, first double check your spelling and syntax. If everything is typed out correctly and you're still getting the error, you will need to find out exactly what the PDF was named in the temp folder itself. Be aware that the following commands will only be able to save a PDF file, and not an XML.

First, make sure that the USB is mounted (see above for instructions on mounting the USB). To check that it is mounted, use the following command:

mount

This will show a long list, but we are looking for:  /dev/[drive-name] on /mnt/usb type vfat (etc)

If that is listed, then the USB is mounted. If that is not listed, please refer to the previous instructions to try mounting the USB again. Once you are sure the USB is mounted, run the following command:


ls /tmp



Here, we are wanting to find a file named: wd-pdf-xxxxx ('x' will vary).

If you see that file, you can then move it to the USB. Please use the following command:

cp -R /tmp/* /mnt/usb

Now we will want to verify that wd-pdf-xxxxx is on the USB. To do this, run the following command:

ls /mnt/usb

If you see that file, then it has been moved and we can now un-mount the USB. Please Note: Un-mounting the USB is very important and should not be skipped. To do this, type the following command:

umount /mnt/usb

There will be no output, but it will bring up the next command prompt. You are now ready to unplug the USB and check the files on a Windows computer.

If you see the wd-pdf-xxxxx file, go ahead and rename it and add ".pdf" to the end. Ex: wd-pdf-xxxxx.pdf

You should now be able to open the PDF.

If you encounter any problems while following these instructions, please contact support at support@whitecanyon.com or by using our Live Chat feature on our website.

  • 230
  • 07-Apr-2020
  • 224 Views