LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 12-02-2010, 02:49 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
How to shrink a partition of a Linux VMWare guest?


VMWare tools allows me to shrink the "disk" for a Windows guest. vmware-toolbox presents me with the option to "Select the partitions you wish to shrink." on a Linux guest. However, there are no partitions shown to be selected. Anyone had success doing this?

TIA,

Ken
 
Old 12-02-2010, 02:50 PM   #2
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Original Poster
Rep: Reputation: 96
I hate it when I answer my own question - a little investigation tells me that this will not work on a journaling file system. I guess I had best create future Linux VMs with ext2 - what a pain.

Ken
 
Old 12-02-2010, 03:46 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,261
Blog Entries: 54

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
Not using vmware-tools but booting a Linux guest from an ISO containing (g)parted hasn't posed any partition or file system resizing problems for me yet.
 
Old 12-02-2010, 05:06 PM   #4
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Original Poster
Rep: Reputation: 96
Thanks unSpawn. I booted my Ubuntu 10.04 VM from a like live CD on one monitor while reading the pared docs on the other. I invoked parted and - bottom line - the VM is ext4 and it appears that parted does not support ext4 nor ext3. Pray tell what trick do you use (or do you not have ext4 or ext3 partitions in your VMs?)

Ken
 
Old 12-02-2010, 05:32 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,261
Blog Entries: 54

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
Uh. Sorry. ext3 needs resize2fs. I just use the Gparted Live CD. Haven't touched ext4 yet but apparently resize2fs speaks ext4 as well.

Last edited by unSpawn; 12-02-2010 at 05:36 PM. Reason: //More *is* more.
 
Old 12-02-2010, 05:45 PM   #6
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Original Poster
Rep: Reputation: 96
That's what I thought - the error message told me to go pound sand and use resize2fs. I have 5 TB on my newly rebuilt server to backup VMs and other stuff so I don't really NEED to shrink - just thought I would explore the methodology. I will give resize2fs a try after I re-inflate my Ubuntu VM (I just erased it and replaced it with a backup copy from the server after parted didn't).

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux guest on Vmware is not communicating to other guest machines Saravana Linux - Virtualization and Cloud 2 10-25-2009 11:14 PM
rEFIt problem, cannot boot linux after using gparted to shrink non-OS partition jeberd Linux - Software 6 01-29-2009 01:51 AM
Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5) afz_linux Linux - Newbie 3 12-30-2008 12:20 AM
VmWare Guest Install Fedora 9 "Format partition sd0" Spiritual Warrior Linux - Software 10 06-06-2008 11:59 AM
how to convert vmware guest os to native partition ? pleasehelpme Linux - General 1 06-29-2005 09:36 AM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration