I have a bunch of files I'd like to send to my rpi. I have them in 2 places: 1. on my mac and 2. on a an SD card for my pi that has corruption in the kernel and won't boot.
I'd like to put the files on my currently running pi that has a different SD card.
ssh'ing the files from my mac is soooo slow, so I'm trying to figure out a faster way. I tried and failed to put them on a USB thumb drive from my mac and connect it to the pi but I couldn't mount the thumb drive. So I had an idea to put the SD with the corrupt kernel in the USB card reader that came in my kit and connect it to the pi.
When I do that, I can see the contents of that card. But I couldn't find the files in there so I tried mounting the 2 imgs I found in it (kernel.img and kernel7.img) using (e.g.)
sudo mount -t sysfs kernel7.img /home/pi/mntpt, but I believe that what I'm seeing is the boot drive partition. It's only 35M in size. The pi home folder is nowhere to be found.
Is there a way I can find the files in the SD that's in the USB card reader and copy them out into the card that my pi booted from?
Output of requested commands (while the USB SD card reader is inserted into one of the pi's USB ports:
pi@raspberrypi:/media $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 29.8G 0 disk ├─sda1 8:1 1 57M 0 part /media/usb0 └─sda2 8:2 1 7.4G 0 part mmcblk0 179:0 0 29.7G 0 disk ├─mmcblk0p1 179:1 0 1.2G 0 part ├─mmcblk0p2 179:2 0 1K 0 part ├─mmcblk0p5 179:5 0 32M 0 part /media/pi/SETTINGS ├─mmcblk0p6 179:6 0 69M 0 part /boot └─mmcblk0p7 179:7 0 28.4G 0 part / pi@raspberrypi:/media $ sudo parted /dev/sda print free Model: Mass Storage Device (scsi) Disk /dev/sda: 32.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 16.4kB 4194kB 4178kB Free Space 1 4194kB 64.0MB 59.8MB primary fat16 boot, lba 2 64.0MB 7969MB 7905MB primary 7969MB 32.0GB 24.0GB Free Space