[Debian VM] mount drive in Virtualbox VM
See original GitHub issueBuild sdcard is okay, failed to mount drive on Virtualbox
# RASPIBLITZ DATA DRIVE Status
# BASICS
isMounted=0
isBTRFS=0
# SETUP INFO
isSSD=0
hddCandidate='sda'
hddBytes=536870912000
hddGigaBytes=500
hddPartitionCandidate='sda4'
hddDataPartitionBytes=289970061312
hddPartitionGigaBytes=270
hddFormat='ext4'
hddError='data mount failed'
hddError='storage mount failed'
hddAdapterUSB=''
hddAdapterUSAP=0
# RAID
isRaid=0
raidCandidates=0
# SWAP
isSwapExternal=0
Displaying Info Message: Please Login for Setup
## WAIT LOOP: USER SETUP/UPDATE/MIGRATION
# PROVISION PROCESS with setupPhase(setup)
Temp mounting (2) data drive (sda)
Temp mounting (2) result: 0
Refreshing links between directories/drives ..
# Sourcing /mnt/hdd/raspiblitz.conf
# RASPIBLITZ CONFIG FILE
raspiBlitzVersion='1.7.1'
lcdrotate=1
lightning=none
network=bitcoin
chain=main
hostname='test'
runBehindTor=on
# Sourcing /var/cache/raspiblitz/temp/raspiblitz.setup
# RASPIBLITZ SETUP STATE
setPasswordA=1
setPasswordB=1
setPasswordC=1
hostname=test
lightning=none
network=bitcoin
chain=main
# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1996184 0 1996184 0% /dev
tmpfs 402592 548 402044 1% /run
/dev/sda1 226603524 4781400 210238432 3% /
tmpfs 2012960 0 2012960 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 32768 20 32748 1% /var/cache/raspiblitz
/dev/sda2 942764 81452 796084 10% /boot
/dev/sda4 277618756 707256 262736424 1% /home
tmpfs 402592 0 402592 0% /run/user/1002
# lsblk -o NAME,FSTYPE,LABEL
NAME FSTYPE LABEL
sda
├─sda1 ext4
├─sda2 ext4
├─sda3 swap
└─sda4 ext4
sr0
# Update /home/admin/raspiblitz.info
state=provision
message='Starting Provision'
baseimage=Debian
cpu=x86_64
board=
ramMB=3931
ramGB=4
network=bitcoin
chain=main
localip='10.0.2.15'
online='1'
dnsworking=1
fsexpanded=0
displayClass=headless
displayType=
setupStep=0
setupPhase='setup'
fundRecovery=0
hostname=
hddCandidate='sda'
hddGigaBytes=500
hddBlocksBitcoin=
hddBlocksLitecoin=
hddGotMigrationData=
# migrationFile()
# setting PASSWORD A
OK - password A changed for user pi, root, admin & bitcoin
...
Calling _provision.setup.sh for basic setup tasks ..
EXIT _provision.setup.sh BECAUSE OF ERROR STATE (4)
This can also happen if _provision.setup.sh has syntax errors
# /home/admin/raspiblitz.provision-setup.log
###################################
# _provision.setup.sh
###################################
*** Prepare bitcoin ***
error='no data drive mounted'
_Originally posted by @nyxnor in https://github.com/rootzoll/raspiblitz/issues/2711#issuecomment-983047128_
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to mount a shared folder in VirtualBox - PragmaticLinux
Select your virtual machine and open its settings dialog. · Locate the Shared Folders category and click the little folder icon with the...
Read more >How to mount a VirtualBox shared folder? [closed] - Server Fault
In the resulting pop-up window, select Machine Folders in the Folders List and then click the "Add a New Shared Folder Definition" button...
Read more >Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS
Open VirtualBox · Right-click your VM, then click Settings · Go to Shared Folders section · Add a new shared folder · On...
Read more >How to enable a Virtualbox shared folder for Linux guest ...
In VirtualBox, go to the Devices menu -> Shared Folders menu -> Shared folders settings. ... In the window that opens, on the...
Read more >virtualbox.org • View topic - How to mount a drive?
You should use the /etc/rc.local file instead, but that is your choice. ... create the share in VBox under shared folders. Do not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

after build:
sr0 is the CDROM btw (just ignore)
Now shut down:
sudo shutdown nowand mount a new disk:
it appears as
sda:and is picked up correctly:
Mounted:
This works now, see the notes at https://github.com/rootzoll/raspiblitz/tree/dev/alternative.platforms#virtual-machine