Announcement
Collapse
No announcement yet.
Virtualbox / Kubuntu Question
Collapse
This topic is closed.
X
X
-
So the image is the right size, its just the partition table that is off, boot a live cd and run gparted to correct this.
- Top
- Bottom
-
BTW, here is the output from df -h & fdisk -l:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.2G 5.9G 35M 100% /
udev 998M 12K 998M 1% /dev
tmpfs 404M 760K 403M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1009M 80K 1009M 1% /run/shm
none 100M 12K 100M 1% /run/user
SharedDrive 150G 109G 41G 74% /media/sf_SharedDrive
fdisk -l
Disk /dev/sda: 35.2 GB, 35236347904 bytes
255 heads, 63 sectors/track, 4283 cylinders, total 68820992 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006f945
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 64626687 32312320 83 Linux
/dev/sda2 64628734 68818943 2095105 5 Extended
/dev/sda5 64628736 68818943 2095104 82 Linux swap / Solaris
- Top
- Bottom
Leave a comment:
-
First, the 4GB you set was the maximum size for that image, the actual disk would have allocated more space as it needed up upto that amount.
Second, dd copies the entire disk, including the partition table, but if you have not edited it then the partition will remain the same size but you will now have a large amount of unallocated space at the end of the disk. To fix this boot a live cd and use gparted to change the partition size. Gparted should also grow the filesystem to fill the new partition size.
However, if you are dding a vm drive file to another vm drive file you might not have any extra space to expand into... You might beable to increase the size of the virtual image from within virtualbox and then use gparted to increase the size of the partition.
- Top
- Bottom
Leave a comment:
-
BTW, dynamic allocation is intended to save drive space by allowing the VDI to grow to it's maximum size. You limited yourself to 4GB.
It's better to over-allocate when using dynamic allocation.
- Top
- Bottom
Leave a comment:
-
Yes, dd re-creates the drive image so you've imaged a 4GB drive onto a 32GB space. In a hardware environment, you might be able to resize the 4GB drive into the 32GB space but I don't know if you can do that in a VM. If you booted to another VM, attached the 32GB drive to it as a second drive, and then ran a tool like partition manager it might work.
Likely it's be less effort to re-install instead. Hind-sight and all I know; but I usually use an 8GB virtual drive for my linux VM's. 32GB is overkill IMO.
Another possibility if you're opposed to a re-install is to attach a second 4GB virtual drive to your current VM and mount it as part of your filesystem.
- Top
- Bottom
Leave a comment:
-
Virtualbox / Kubuntu Question
Hello All,
Back again with a blatant display of ignorance.
I installed Kubuntu (12.10) on a VirtualBox disk that was 4GB. It was set for dynamic allocation, but that did not seem to be working right. It never "grew".
So I created another larger vb disk (32GB ~ just to be safe) and did a quick vanilla install on that.
Then I booted up using the CD image and did a "dd" from the old to the new.
Everything looks OK in the partitioning (kpartition), but it is complaining that I am out of room when I really am not.
Any ideas where I have gone awry?Tags: None
- Top
- Bottom
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: