aktos-io / dcs-tools

Tools for making remote Linux node management easy
42 stars 6 forks source link

Produce-bootable-disk producing errors #20

Closed motioncircus closed 6 years ago

motioncircus commented 6 years ago

Hi again, I feel I've made some good progress but here's where I'm stuck now. I've put a freshly formatted MicroSD card in a USB adaptor, into my RaspberryPi and done the following

pi@raspberrypi:/media/pi/PiStore/remote-machines/zero2 $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1 28.9G  0 disk
└─sda1        8:1    1 28.9G  0 part /media/pi/PiStore
sdc           8:32   1 14.9G  0 disk
└─sdc1        8:33   1 14.9G  0 part
mmcblk0     179:0    0   29G  0 disk
├─mmcblk0p1 179:1    0  1.6G  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 13.4G  0 part /
pi@raspberrypi:/media/pi/PiStore/remote-machines/zero2 $ dcs-tools/produce-bootable-disk  --backup backups --device /dev/sdc
Using backup directory: /media/pi/PiStore/remote-machines/zero2/backups
Using device: /dev/sdc
Using default ext3 type.
----------------------  YES / NO  ----------------------
Should we really continue? (yes/no) yes
Bootable device /dev/sdc will be built by using /media/pi/PiStore/remote-machines/zero2/backups
ERROR:
ERROR:
ERROR: No such partition/device can be found: /dev/sdcp1
ERROR:
ERROR:

It seems to be looking for sdcp1 but the SD card is unformatted, so, of course, there are no partitions.

ceremcem commented 6 years ago

produce-bootable-disk now strictly requires you to unplug and re-plug the device which you want to format in order to ensure that you don't format an incorrect device (eg. the laptop itself).