On 29/05/13 20:34, Erlend Boe wrote:
> Hi all,
> 
> is there a reason why sailfishos.vdi has a virtual size of  only 1.95 GB?

Yes - during the creation process a full image is created and I decided to use a
'reasonable' size. In the futre I plan to automate the process below on boot to
allow automatic response to VDI growth.

> My application fails to install, as I have a mysql DB that is 1.7 GB.
> 
> Is there a way that I can extend the virtual size?
> I'm on mac osx 10.8.

Yes, but first make a backup of the vdi - really!

Also this won't work if you have vbox snapshots so ensure you remove any you 
have.

poweroff emulator and from the host shell run:
 VBoxManage modifyhd ~/SailfishOS/emulator/sailfishos.vdi --resize 65536
This is very fast!

Reboot emulator
ssh in as root and run:

fdisk /dev/sda

Type each letter followed by <return> in the following - all the '1' are digit
one - no lowercase L :) There's a few where we want the default

Now to delete partition 1, type:
 d
recreate using full size, type:
 n
 p
 1
 <ret>
 <ret>

make it bootable, type
 a
 1

Now we use the 'expert menu' to set the partition start to 1, type:
 x
 b
 1
 1
 r

Write and exit, type
w

Easiest now is to reboot so back at the emulator root prompt:
 reboot

When it reboots, login as root again and run:
 resize2fs /dev/sda1
This is very fast!


You should now have a 64Gb disk

HTH

> 
> PS: I am working around the issue by sharing a directory with virtual box, so 
> the issue not blocking me.
> 
> Regards,
> Erlend
> 
> _______________________________________________
> SailfishOS.org Devel mailing list
> 

_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to