English Spanish
`[ 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
Replace _user_ with a valid user name on the target system, _address_ with the target system's address or host name, and _path_ with the path to the directory you wish to save the log files into. For example, if you want to log in as `john` to a system with an IP address of `192.168.0.122` and place the log files into the `/home/john/logs/` directory on that system, the command will have the following form: