FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-30-2011, 01:12 PM
Dennis Jacobfeuerborn
 
Default resize2fs

On 08/30/2011 04:54 AM, Ed Morrison wrote:
> Hi All:
>
> I am trying to resize a centos (5.2) VM drive. I use VMware and I have
> increased the size of the drive by 40G. I am running resize2fs on
> /dev/sdb1 (which is my root partition) but when I do I get this error:
>
> [root@centos ~]# resize2fs /dev/sdb1 120G
> resize2fs 1.39 (29-May-2006)
> The containing partition (or device) is only 19970795 (4k) blocks.
> You requested a new size of 31457280 blocks.
>
> How can I change the block size?
>
> I have also tried to use gparted live cd but it will not allow me to
> increase the size even though it sees 40g of unused space. I can only
> create a new partition.
>
> Any help would be appreciated.

After having resized the virtual drive have you also resized the partitions
inside the VM? Doing a "fdisk /dev/sdb" will probably show you a 40G drive
but the partitions will still have the old size and you need to extend them
before you can extend the filesystems on them.

Regards,
Dennis
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 10:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org