billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 333 forks source link

'/dev/sda' does not exist, however it is actually there. #27

Closed Newar417 closed 8 years ago

Newar417 commented 8 years ago

Edit: Issued wrong command. Should have been: rpi-clone sda

This is on a fresh install...

rpi-clone /dev/sda Destination disk '/dev/sda' does not exist. Plug the destination SD card into a card reader connected to a USB port. If it does not show up as '/dev/sda', then do a cat /proc/partitions to see where it might be.

cat /proc/partitions

major minor  #blocks  name

   1        0       4096 ram0
   1        1       4096 ram1
   1        2       4096 ram2
   1        3       4096 ram3
   1        4       4096 ram4
   1        5       4096 ram5
   1        6       4096 ram6
   1        7       4096 ram7
   1        8       4096 ram8
   1        9       4096 ram9
   1       10       4096 ram10
   1       11       4096 ram11
   1       12       4096 ram12
   1       13       4096 ram13
   1       14       4096 ram14
   1       15       4096 ram15
 179        0   30375936 mmcblk0
 179        1     125016 mmcblk0p1
 179        2   30250912 mmcblk0p2
   8        0   30375936 sda
   8        1   30374912 sda1

fdisk -l

Disk /dev/sda: 29 GiB, 31104958464 bytes, 60751872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x27413b96

Device     Boot Start      End  Sectors Size Id Type
/dev/sda1        2048 60751871 60749824  29G  b W95 FAT32

So it's there, but it won't work. What gives?