Difference between revisions of "PiClone"

From OpenCircuits
Jump to navigation Jump to search
Line 44: Line 44:
 
/dev/sda2      137216 30679039 30541824 14.6G 83 Linux
 
/dev/sda2      137216 30679039 30541824 14.6G 83 Linux
  
 +
</pre>
 +
 +
 +
which i mou nted
  
  
</pre>
+
== Some results ==
  
 +
<pre>
 +
pi@raspberrypi:~/Downloads $ unzip rpi-clone-master.zip
 +
Archive:  rpi-clone-master.zip
 +
f961aee3f9816d345c2df335aa96b3907ee68b09
 +
  creating: rpi-clone-master/
 +
  inflating: rpi-clone-master/README.md 
 +
  inflating: rpi-clone-master/rpi-clone 
 +
pi@raspberrypi:~/Downloads $ cd rpi-clone-master/
 +
pi@raspberrypi:~/Downloads/rpi-clone-master $ cp rpi-clone /usr/local/sbin
 +
cp: cannot create regular file ‘/usr/local/sbin/rpi-clone’: Permission denied
 +
pi@raspberrypi:~/Downloads/rpi-clone-master $ sudo cp rpi-clone /usr/local/sbin
 +
pi@raspberrypi:~/Downloads/rpi-clone-master $
  
which i mou nted
+
</pre>

Revision as of 12:28, 24 November 2016

Setup

Main sd card with another on an extension cable and card reader.


Links

https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=35668&p=301919#p301919

http://www.johnaldred.com/moving-linux-to-smaller-sd-cards/

https://github.com/billw2/rpi-clone

https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=13028


Then

sudo fdisk -l 

did show the disk


Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        8192   137215   129024   63M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      137216 31422463 31285248 14.9G 83 Linux

Disk /dev/sda: 14.9 GiB, 15931539456 bytes, 31116288 sectors


after boot plug in card reader

Device     Boot  Start      End  Sectors  Size Id Type
/dev/sda1         8192   137215   129024   63M  c W95 FAT32 (LBA)
/dev/sda2       137216 30679039 30541824 14.6G 83 Linux


which i mou nted


Some results

pi@raspberrypi:~/Downloads $ unzip rpi-clone-master.zip
Archive:  rpi-clone-master.zip
f961aee3f9816d345c2df335aa96b3907ee68b09
   creating: rpi-clone-master/
  inflating: rpi-clone-master/README.md  
  inflating: rpi-clone-master/rpi-clone  
pi@raspberrypi:~/Downloads $ cd rpi-clone-master/
pi@raspberrypi:~/Downloads/rpi-clone-master $ cp rpi-clone /usr/local/sbin
cp: cannot create regular file ‘/usr/local/sbin/rpi-clone’: Permission denied
pi@raspberrypi:~/Downloads/rpi-clone-master $ sudo cp rpi-clone /usr/local/sbin
pi@raspberrypi:~/Downloads/rpi-clone-master $