VirtualBox/Preparing a disk image: Difference between revisions
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
# quit | # quit | ||
# umount /dev/sda1 -- F-11 auto mounts the disk, so unmount it for the next script | # umount /dev/sda1 -- F-11 auto mounts the disk, so unmount it for the next script | ||
# /mnt/live/LiveOS/livecd-iso-to-disk --overlay-size-mb 256 --home-size-mb | # /mnt/live/LiveOS/livecd-iso-to-disk --overlay-size-mb 256 --home-size-mb 160 --unencrypted-home --delete-home /dev/sr0 /dev/sda1 | ||
#* 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. <s>(This option causes login problems on VirtualBox with the liveuser account and should be skipped for now.)</s> | #* 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.) <s>(This option causes login problems on VirtualBox with the liveuser account and should be skipped for now.)</s> | ||
#* the --unencrypted-home option prevents password protection and encryption on the /home/liveuser folder. This releaves the overhead on the compressed sqaushfs 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. | |||
# shutdown -h now | # shutdown -h now | ||
# Unmount CDROM in Vbox config | # Unmount CDROM in Vbox config |