Flash the SSD
If you are using the automated prepare-ors.py script you can skip this step, it will be done within the script.
Using the tar file containing the slapos and re6st licenses, do the following:
- Take an empty SSD, insert the SSD in the USB to M2 SATA adaptor and then plug the USB to your computer.
- Run the flash_image command:
- Input your gitlab username and password when asked
If you are a manufacturer of Rapid.Space
Using the tar file containing the slapos and re6st licenses that Rapid.Space prepared for you, do the following
Example command:
Log in to the portable callbox as sdr
sdr@callbox-light-001:~$ cd ~/simpleran-maintenance/oss
Change ORS800-1755709360.tar and ORS800 according to your needs:
sdr@callbox-light-001:~/simpleran-maintenance/oss$ sudo ./flash_image.py flash --tar-file ~/simpleran-maintenance/data/ORS800-1755709360.tar ORS800 --no-band --no-git
# Example output
$> chmod 755 /tmp/tmp57surwnl
$> /home/sdr/simpleran-maintenance/oss/../utils/detect-ssd.sh
Automatically detecting SSD...
$> lsblk --json --bytes /dev/sda
$> wipefs -a /dev/sda
$> dd if=/home/sdr/simpleran-maintenance/oss/../data/ssd-ors-2025-03-17.img of=/dev/sda status=progress bs=1M
7792906752 bytes (7.8 GB, 7.3 GiB) copied, 72 s, 108 MB/s
7431+1 records in
7431+1 records out
7792906752 bytes (7.8 GB, 7.3 GiB) copied, 206.459 s, 37.7 MB/s
$> sgdisk -s /dev/sda
The operation has completed successfully.
$> parted /dev/sda resizepart 2 468862094.0s
Information: You may need to update /etc/fstab.
$> sgdisk -s /dev/sda
The operation has completed successfully.
$> e2fsck -f /dev/sda2
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda2: 202259/409600 files (0.3% non-contiguous), 1404650/1627105 blocks
$> resize2fs -p /dev/sda2
resize2fs 1.46.5 (30-Dec-2021)
Resizing the filesystem on /dev/sda2 to 58332305 (4k) blocks.
The filesystem on /dev/sda2 is now 58332305 (4k) blocks long.
$> mount /dev/sda2 /tmp/tmput5ibzqv
$> find /tmp/tmput5ibzqv/etc/opt/slapos/ssl -mindepth 1 -delete
$> find /tmp/tmput5ibzqv/etc/re6stnet -mindepth 1 -delete
$> chmod 755 /tmp/tmput5ibzqv
$> sed -i s/orsXX/ors800/ /tmp/tmput5ibzqv/etc/hosts /tmp/tmput5ibzqv/etc/hostname
Successfully wrote device (serial_number: ORS800, password: xxxxxx)
$> umount /tmp/tmput5ibzqv