VirtualBox/Preparing a disk image: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
# toggle 1 boot | # toggle 1 boot | ||
# quit | # quit | ||
# umount /dev/sda1 -- (not required with | # umount /dev/sda1 -- (not required with soas-2-blueberry.iso) | ||
# /media/ | # /media/soas-2-blueberry/LiveOS/livecd-iso-to-disk --overlay-size-mb 300 --home-size-mb 160 --unencrypted-home --delete-home /dev/sr0 /dev/sda1 | ||
#: (for earlier versions of SoaS, like Strawberry, use /mnt/live/LiveOS/livecd-iso-to-disk ...<br>soas05.iso carries an incompatible version of livecd-iso-to-disk, see [http://bugs.launchpad.net/soas/+bug/417415 this bug report].) | #: (for earlier versions of SoaS, like Strawberry, use /mnt/live/LiveOS/livecd-iso-to-disk ...<br>soas05.iso carries an incompatible version of livecd-iso-to-disk, see [http://bugs.launchpad.net/soas/+bug/417415 this bug report].) | ||
#* the --overlay-size-mb NNN option creates space for persistence of changes on the disk; otherwise, a liveOS disk is read-only. | #* the --overlay-size-mb NNN option creates space for persistence of changes on the disk; otherwise, a liveOS disk is read-only. | ||
#* the --home-size-mb NNN option creates space for saving the /home/liveuser folder if you want to update the OS image while keeping the user files. (In this case, skip the new disk creation and parted steps and leave out the --home-size-mb NNN option at this step and continue on.) | #* the --home-size-mb NNN option creates space for saving the /home/liveuser folder if you want to update the OS image while keeping the user files. (In this case, skip the new disk creation and parted steps and leave out the --home-size-mb NNN option at this step and continue on.) | ||
#* the --unencrypted-home option prevents password protection and encryption on the /home/liveuser folder. This releaves the overhead on the compressed | #* the --unencrypted-home option prevents password protection and encryption on the /home/liveuser folder. This releaves the overhead on the compressed squashfs and should be more robust to file system failures (outside of security). | ||
#* the --delete-home option is used to avoid an error message while requesting both a new home (with --home-size-mb) and a persistent home (with--unencrypted-home). You wouldn't use this option on an upgrade. | #* the --delete-home option is used to avoid an error message while requesting both a new home (with --home-size-mb) and a persistent home (with--unencrypted-home). You wouldn't use this option on an upgrade. | ||
# shutdown -h now | # shutdown -h now | ||
Line 35: | Line 35: | ||
# Mount VBoxGuestAdditions.iso in its place. | # Mount VBoxGuestAdditions.iso in its place. | ||
# Boot VM | # Boot VM | ||
#* (Fails for | #* (Fails for soas-2-blueberry.iso, cycling between a character mode and graphics mode screen.) | ||
# Open Terminal | # Open Terminal | ||
# su - | # su - |