Find the answer to your Linux question:
Results 1 to 6 of 6
I'm pretty new in Linux. I managed to increase disk space in VmWare by typing vmware-vdiskmanager -x 6GB file.vmdk In spite of the fact that I see 6GB of space ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    3

    Linux VmWare disk space

    I'm pretty new in Linux.
    I managed to increase disk space in VmWare by typing vmware-vdiskmanager -x 6GB file.vmdk
    In spite of the fact that I see 6GB of space in VmWare I'm not able to use it in Suse Linux.
    In SuSe is still disk size 3.6 GB.
    So here is my disk information.



    How can I use this space that I enabled in VmWare?
    I read fdisk manual but don't know how to use it.
    Many thanks for your help.

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    506
    Look at the output of this command (as root) (the switch is lowercase L):
    fdisk -l /dev/sda

    Hard disks have 4 partitions. I don't know, but I would guess vmware expanded one of the unused partitions. That's what fdisk will tell you.

    If that's what happened, you have three choices.
    • Backup, reformat and restore. This is the best choice.
    • Format the new space as another partition and mount it. You could, for example, move everything from /home to the new partition, delete the old /home tree and mount the new one as /home. That would make use of the new space, though with an artificial limit to how much /home could grow.
    • Format the new space as another partition and mount it as before, but use the new space for something else. This is the easiest, but maybe the least useful.
    Last edited by KenJackson; 05-09-2008 at 11:44 PM. Reason: Changed /dev/sda2 to /dev/sda

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    4

    Never expanded a disk but,

    you should look at the partition table and modify your partition tables with a tool like parted. You must resize / relocate the partitions to use the new space.

    Try "fdisk -l" instead of "df" to view partition information.

  4. #4
    Just Joined!
    Join Date
    May 2008
    Posts
    3

    I don't see these 4 partitions

    This is my Linux SuSe disk content



    I don't see these unused or unallocated partitions.
    Ok, I will try KenJackson's propositions and let you know how it went.

  5. #5
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    506
    It worked for you. Notice you now have 783 cylinders, but you are only using 522 of them. So there are 261 more cylinders (2GB) available that are not included in any partition.

    So you could now create another partition with with fdisk, format it with mke2fs, mount it somewhere and use it.

    Or you could backup everything on /dev/sda2, delete the partition, create a new one that uses all available space, and restore. That will give you the desired results, though it's the most trouble.

  6. #6
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    I don't see these unused or unallocated partitions.
    Ok, I will try KenJackson's propositions and let you know how it went.
    A disk (even a virtual one) can have up to 4 partitions. One or more of these can be extended partitions which in turn can have more partitions in them.

    You can have non partitioned areas on the disk. When you changed the size of your virtual disk the old partitions remained as they were so you now have 2 gig unpartitioned space. To use it you can create a new 2gig partition and mount some where on the file system or you can change the size of your existing partition (not the swap)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...