More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

DEFECT transfering HiveOS from USB drive to SSD SOLVED with hive-replace

Hi
INTRODUCTION
After 3 days (+nights) of failed attempts to make AMD GPU boards Running on Ubuntu 20.04 (while I had succeded with NVIDIA), I’m amazed by HiveOS succeeding to make GPU Rig installation as simple and plug’n play from an USB drive. The route which worked for me was getting the HiveOS image flashed on the usb drive with windows balenaEtcher.

After having a lot of pain with Ubuntu+AMD, it was a relief to verify HiveOS was able to mix AMD and NVIDIA boards on a single RIG (so easily), while I had lready bought 2 RIG, to avoid hard time (so now I have a spare RIG which give me more options…).
Now, I’m running so easily on my RIG: 2 AMD + 1 NVIDIA boards, with well thought web-based tools it would be quite difficult to do without, now I know they exist.

DIFFICULTY: cloning sdb to sda + disk-expand
The route to transfer HiveOS 0.6-208@210818 from usb to ssd drive is not smooth :
After cloning my usb drive to my ssd drive given by https://hiveos.farm/guides-hdd_move/ :
dd if=/dev/sdb of=/dev/sda bs=10M count=800 status=progress
I ended up with a ssd drive of the size of my usb drive (i.e. 32GB or 64GB), therefore I was tempted to use the command disk-expand to get the full extent of my SSD drive (i.e. 256GB or 484GB…)
First bad news, I encountered a fatal defect:
/hive/miners/phoenixminer does not exist, check miner installation
Notice that if you face the misinstallation of miners too, you are not located on ~ (home for root) but on at the primary location /
Anyway, either you reflash your usb drive (I’ve done it twice for 2 Rigs) and stay on it forever , or you can read directly the SOLUTION : hive-replace and skip FAILED ATTEMPTS WITH hpkg.

FAILED ATTEMPTS WITH hpkg
There is nice FAQ after the boot, with many useful commands like hpkg
With HiveOS 0.6-208@210818 installed my SSD, in order to solve the absence of phoenixminer, I have tried :
hpkg purge => dpkg error similar to hpkg install defect
hpkg check, hpkg fix =>silent and not fixing this problem
hpkg list => work ok
hpkg install => see defect report
No success in these quick attempts.

SOLUTION : hive-replace
The hive-replace solution given by guides-hive_replace is known to work from (most/any) linux distributions, including from HiveOS, although considered as a strange situation when you install the image of the operating system, you are already running. Fortunately that’s what solved my problem.

Prerequisite: you are running a not fully operational HiveOS 0.6-208@210818 from your SSD (/dev/sda) following a usb cloning (/dev/sdb) + disk-expand
So you transfer the stable HiveOSimage from a trusted repository on your SSD as follow:
cd /tmp
wget https://download.hiveos.farm/hiveos-stable.img.xz

then use the powerful solution:
hive-replace hiveos-stable.img.xz

Iit is going to shut your X server windows (if you asked for a GUI), and restart hive_replace with the same parameter, reply: yes, and it just work perfectly!

run the fdisk -l
Device Start End Sectors Size Type
/dev/sda1 2048 43007 40960 20M Microsoft basic data
/dev/sda2 43008 45055 2048 1M BIOS boot
/dev/sda3 45056 126975 81920 40M EFI System
/dev/sda4 126976 14745566 14618591 7G Linux filesystem

As the system is allocating only 7GB, now you can run the disk-expand, which worked well for me.
fdisk -l
Device Start End Sectors Size Type
/dev/sda1 2048 43007 40960 20M Microsoft basic data
/dev/sda2 43008 45055 2048 1M BIOS boot
/dev/sda3 45056 126975 81920 40M EFI System
/dev/sda4 126976 937703054 937576079 447.1G Linux filesystem

DEFECT Report for hpkg install miners:
for security reason (+ newbies not allowed more than 2 urls): url and path are replaced by (url) and (path)
HiveOS 0.6-208@210818 from your SSD (/dev/sda) following a usb cloning (/dev/sdb) + disk-expand
hpkg install miners

Updating repository
Hit:1 (url1)
Hit:2 (url2)
Reading package lists… Done
Installing 140 miners
hive-miners-beamcl Installing
Reading package lists…
Building dependency tree…
Reading state information…
The following additional packages will be installed:
hive-miners-beamcl-1.0.82
The following NEW packages will be installed:
hive-miners-beamcl hive-miners-beamcl-1.0.82
0 upgraded, 2 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B/1434 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package hive-miners-beamcl-1.0.82.
dpkg: unrecoverable fatal error, aborting:
files list file for package ‘ca-certificates’ contains empty filename
E: Sub-process (path) dpkg returned an error code (2)
Error installing hive-miners-beamcl
hive-miners-beamcuda Installing
Reading package lists…
Building dependency tree…
Reading state information…
The following additional packages will be installed:
hive-miners-beamcuda-1.0.0.82
The following NEW packages will be installed:
hive-miners-beamcuda hive-miners-beamcuda-1.0.0.82
0 upgraded, 2 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B/1700 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package hive-miners-beamcuda-1.0.0.82.
dpkg: unrecoverable fatal error, aborting:
files list file for package ‘ca-certificates’ contains empty filename
E: Sub-process (path) dpkg returned an error code (2)
Error installing hive-miners-beamcuda
hive-miners-bminer Installing
Reading package lists…
Building dependency tree…
Reading state information…
The following NEW packages will be installed:
hive-miners-bminer
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B/4854 B of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package hive-miners-bminer.
dpkg: unrecoverable fatal error, aborting:
files list file for package ‘ca-certificates’ contains empty filename
E: Sub-process (path) dpkg returned an error code (2)
Error installing hive-miners-bminer
^C

It really works! Thank you for your contribution :slight_smile: