Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Red hat linux 5.4 on my VMware workstation and it worked finem but the filesize of linux was not as per my requirements.

VMware only gave 3GB to my root (/) which is very small. How can I adjust the filesize of linux while installing it on VMware.

share|improve this question

migrated from Jun 1 '11 at 0:01

This question came from our site for professional and enthusiast programmers.

VMWare has no control over how large filesystems are; it only has control over how large a block device to grant to the guest VM. If you want to give the VM guest a larger block device, it might be easier to create a new VM from scratch. (While the resize2fs(8) tool can resize filesystems, it scares me.) Maybe you can just add another block device in VMWare, so that you can mount it on /usr or /home or /var, wherever it would make most sense for your deployment.

If you dislike how the Red Hat installer has partitioned your guest block devices, that has nothing to do with VMWare, and instead on choices made during installation. A 3gig / sounds fine to me, assuming you've got more storage on other filesystems.

share|improve this answer
i need to install oracle on this machine... do you still think 3GB is fine.. – Femme Fatale May 31 '11 at 21:05
@ShahJee, no idea: (a) depends on the sizes of your other filesystems (b) depends on the amount of data you intend to store in your oracle deployment. – sarnold May 31 '11 at 21:06
okay, let me give you a brief how i am going about this installation. As you have eloquently said that VMware has nothing to do with file size (very true). It only gives you an option of hard disk size. Now after installation when i df -h my os it only gives 3 gb to my root. I want to extend this. How can i extend this. Because when you are installing without VMware linux ask you about its file size. Here i am not given this option as VMware fixes itself... – Femme Fatale May 31 '11 at 21:14

You need to customize the VM when you create it and specify the disk size.

share|improve this answer
Disk size does not affect the file structure of OS – Femme Fatale May 31 '11 at 21:19
What do you mean disk size does not affect the file structure of OS? RHEL allocates the remaining free space on the disk to the root (after allocating /boot) unless you specifically override the default partitioning scheme. – JamesA May 31 '11 at 21:28
no it does not... atleast not in my case. – Femme Fatale May 31 '11 at 21:44
Post the output of cat /proc/partitions and df so we can see your allocations. – JamesA May 31 '11 at 21:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.