RoninDojo setup/installation fails - "System Setup" forcefully chooses `/dev/sda1` (/boot) instead of `/dev/sda2` (/)
Hello,
I am trying to install RoninDojo on RaspPi4 on an external SSD drive (2TB). I am not using an SSD card. I use the Raspberry Pi Imager to install the RoninDojo Manjaro image directly to the external SSD, ssh in and run through the initial setup.
=== Initial Configuration ===>
There are two primary partitions: /dev/sda2
mounted on /boot
and /dev/sda1
mounted on /
[dojo@dojo ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
dev 3.7G 0 3.7G 0% /dev
run 3.9G 13M 3.9G 1% /run
/dev/sda2 1.8T 2.4G 1.8T 1% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 0 3.9G 0% /tmp
/dev/sda1 458M 56M 403M 13% /boot
tmpfs 781M 0 781M 0% /run/user/1000
[dojo@dojo ~]$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
PARTUUID=b2daef46-01 /boot vfat defaults,noexec,nodev,showexec 0 0
PARTUUID=b2daef46-02 / ext4 defaults 0 1
As the issues are related to the /mnt/usb
directory, here is a snapshot of it's configuration at this point. Note that is mounted on /dev/sda2
which has 1.8TB of space.
[dojo@dojo ~]$ df -h /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 1.8T 2.4G 1.8T 1% /
[dojo@dojo ~]$ ls -al /mnt
total 8
drwxr-xr-x 2 root root 4096 Feb 25 2021 .
drwxr-xr-x 17 root root 4096 Jan 14 17:48 ..
And swap configuration
[dojo@dojo ~]$ swapon -s
Filename Type Size Used Priority
/dev/zram0 partition 11995432 0 100
=== Errors encountered during System Setup ===>
After updating the system, cloning RoninDojo and entering the System Setup, I am presented with numerous errors regarding /mnt/usb
running out of disk space
The issue appears to be the System Configuration choosing to use /dev/sda1
(which is mounted as /boot
) rather than /dev/sda2
(which is mounted as /
)
***
Formatting the SSD...
***
/dev/sda1 is mounted; will not make a filesystem here!
...
***
Mounted /dev/sda1 to /mnt/usb
***
***
Displaying the name on the external disk...
***
NAME SIZE LABEL
sda1 457.8M BOOT_MNJRO
***
Check output for /dev/sda1 and make sure everything looks ok...
***
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 458M 56M 402M 13% /boot
***
Creating swapfile...
***
mkswap: /mnt/usb/swapfile: insecure permissions 0644, fix with: chmod 0600 /mnt/usb/swapfile
swapon: /mnt/usb/swapfile: insecure permissions 0644, 0600 suggested.
***
Creating swapfile entry in /etc/fstab
***
...
***
Creating Tor directory...
***
mkdir: cannot create directory ‘/mnt/usb/tor’: No space left on device
stat: cannot statx '/mnt/usb/tor': No such file or directory
chown: cannot access '/mnt/usb/tor': No such file or directory
...
mkdir: cannot create directory ‘/mnt/usb/docker’: No space left on device
Is there any way to get around this? If I could force the System Setup to use /dev/sda2
instead of /dev/sda1
that would likely fix all my issues
Thanks