Data copy through pendrive logs
To read and copy data from a USB pendrive in Linux and check its size, follow these steps: 1. Identify the Pendrive Open a terminal and run: lsblk or fdisk -l This will list all connected storage devices. Look for entries like /dev/sdb1 (it may vary). 2. Mount the Pendrive (If Not Auto-mounted) If the pendrive is not automatically mounted, create a mount point and mount it manually: sudo mkdir -p /mnt/usb sudo mount /dev/sdb1 /mnt/usb Replace /dev/sdb1 with the correct partition name. 3. Copy Data from the Pendrive Use the cp command to copy files: cp -r /mnt/usb /destination/path/ Or use rsync for a safer copy: rsync -av /mnt/usb/ /destination/path/ 4. Check Pendrive Size To check the total and available space: df -h /mnt/usb 5. Unmount After Use Once done, unmount the pendrive safely: sudo umount /mnt/ usb Let me know if you need more details! To check if data has been copied to or from a pendrive in Linux, you can analyze system logs and use tools to track USB activity. Here’s ...