English Ukrainian
Connect a USB flash drive to the system and execute the [command]#dmesg# command. A log detailing all recent events will be displayed. At the bottom of this log, you will see a set of messages caused by the USB flash drive you just connected. It will look like a set of lines similar to the following:
`[ 170.171135] sd 5:0:0:0: [sdb] Attached SCSI removable disk`
Note the name of the connected device - in the above example, it is `sdb`.
Go to the `/mnt` directory and once there, create new directory which will serve as the mount target for the USB drive. The name of the directory does not matter; this example uses the name `usb`.
# mkdir usb
Mount the USB flash drive onto the newly created directory. Note that in most cases, you do not want to mount the whole drive, but a partition on it. Therefore, do not use the name `sdb` - use the name of the partition you want to write the log files to. In this example, the name `sdb1` is used.
# mount /dev/sdb1 /mnt/usb
You can now verify that you mounted the correct device and partition by accessing it and listing its contents - the list should match what you expect to be on the drive.
# cd /mnt/usb
# ls
Copy the log files to the mounted device.
# cp /tmp/*log /mnt/usb
Unmount the USB flash drive. If you get an error message saying that the target is busy, change your working directory to outside the mount (for example, `/`).
# umount /mnt/usb
The log files from the installation are now saved on the USB flash drive.
====== Transferring Log Files Over the Network
Switch to the `/tmp` directory where the log files are located:
# cd /tmp
Copy the log files onto another system on the network using the [command]#scp# command:
# scp *log user@address:path