Hello.
I use that script for formatting a new hard disk=>
That code works perfectly on a Virtual system with VMWare.
The disk is formatted with all the partitions and accessible.
Sadly, the same code, with same configuration than VMWare but using VirtualBox gives that error =>
Why, with same config, I get that error with VirtualBox and all works like charm with VMWare ?
Many thanks to help.
Fre;D
I use that script for formatting a new hard disk=>
Code:
#!/bin/sh
gpart create -s gpt da0
gpart add -t freebsd-boot -l gpboot -b 40 -s 512K da0
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0
gpart add -t freebsd-ufs -l gprootfs -b 1M -s 2G da0
gpart add -t freebsd-swap -l gpswap -s 512M da0
gpart add -t freebsd-ufs -l gpvarfs -s 1G da0
gpart add -t freebsd-ufs -l gptmpfs -s 256M da0
gpart add -t freebsd-ufs -l gpusrfs -a 1M da0
gpart show -l da0
newfs -U /dev/gpt/gprootfs
newfs -U /dev/gpt/gpvarfs
newfs -U /dev/gpt/gptmpfs
newfs -U /dev/gpt/gpusrfs
That code works perfectly on a Virtual system with VMWare.
The disk is formatted with all the partitions and accessible.
Sadly, the same code, with same configuration than VMWare but using VirtualBox gives that error =>
Code:
gpart: geom 'da0' exists
gpart: start '40'Invalid argument
gpart: start '2048': No space left on device
Why, with same config, I get that error with VirtualBox and all works like charm with VMWare ?
Many thanks to help.
Fre;D