2

I have an SD card with raspbian on it that I was using on a Raspberry Pi model B+. While logged into the pi, I wrote some code in .cpp files which were then saved on the Pi.

Now unfortunately the Pi no longer works, is there any way to get my .cpp files off the SD card without getting another Pi?

oodan123
  • 155
  • 1
  • 1
  • 9

2 Answers2

2

Insert the SD card on another Linux system, and observe the SD card reference through the output of dmesg. Usually it is in the form like the example below

[ 9844.823326] sda: sda1 sda2 [ 9844.825765] sd 0:0:0:0: [sda] Attached SCSI removable disk

As root user, you can mount the second partition that holds your pi's home directory

root@homerpi:/home/pi# mount /dev/sda2 /mnt root@homerpi:/home/pi# cd /mnt

Regards

  • Thank you for your answer! Unfortunately I am using Windows so leriaz's answer was the one I ended up going with – oodan123 Nov 19 '15 at 03:41
2

Is there a card reader you can use? If so, you could use Ext2Read on Windows or simply mount and copy/paste your files on Linux.

EDIT

woops didn't see the answer above

kolpo
  • 101
  • 5