Using the latest openhabian-config option 54 i am trying to take a raw copy of my internall sd card and i get error :
openhabian@openhabian:~ $ sudo openhabian-config
[sudo] password for openhabian:
2021-12-31_17:49:54_EET [openHABian] Checking for root privileges... OK
2021-12-31_17:49:54_EET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-12-31_17:49:54_EET [openHABian] openHABian configuration tool version: [main]{2021-12-29T18:22:39+01:00}(94bf0f8)
2021-12-31_17:49:54_EET [openHABian] Checking for changes in origin branch main... OK
2021-12-31_17:49:57_EET [openHABian] Switching to branch main... OK
2021-12-31_17:49:57_EET [openHABian] Adding slightly tuned bash configuration files to system... OK
blockdev: ioctl error on BLKGETSIZE64: Inappropriate ioctl for device
raw device copy of /dev/mmcblk0p2 is larger than /dev/sda2... Checking that no-one is using this disk right now ... OK
Disk /dev/sda: 116.48 GiB, 125069950976 bytes, 244277248 sectors
Disk model: Storage Device
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: 0x5ad3c894
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 61022207 60489728 28.8G 83 Linux
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0x5ad3c894.
/dev/sda1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 256 MiB.
Partition #1 contains a vfat signature.
/dev/sda2: Created a new partition 2 of type 'Linux' and of size 28.8 GiB.
/dev/sda3: Done.
New situation:
Disklabel type: dos
Disk identifier: 0x5ad3c894
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 61022207 60489728 28.8G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Taking a raw partition copy, be prepared this may take long such as 20-30 minutes for a 16 GB SD card
FAILED (raw device copy of /dev/sda2)
/opt/openhabian/functions/helpers.bash: line 25: 9910 Segmentation fault "$@" &> /dev/null
FAILED (set random UUID)
mount: /storage/syncmount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
sed: can't read /storage/syncmount/etc/fstab: No such file or directory
umount: /storage/syncmount: not mounted.
OK (dirty bit on fsck /dev/sda2 is normal)
2021-12-31_17:59:40_EET [openHABian] Checking for default openHABian username:password combination... OK
2021-12-31_17:59:40_EET [openHABian] We hope you got what you came for! See you again soon ;)
i am using a 128 sd card and i have tried a 32 and a 64 giga cards with the same results.Also tried 2 different usb card readers…
Any advice?
my lsblk
openhabian@openhabian:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 116.5G 0 disk
├─sda1 8:1 1 256M 0 part
└─sda2 8:2 1 28.8G 0 part
mmcblk0 179:0 0 29.1G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 28.8G 0 part /
zram0 254:0 0 450M 0 disk [SWAP]
zram1 254:1 0 350M 0 disk /opt/zram/zram1
zram2 254:2 0 450M 0 disk /opt/zram/zram2