Jump to content

Cloned disk thinks it's smaller than it is?


Recommended Posts

Posted (edited)

I just clonezilla'd my fog servers system over on to a larger HD.

Linux still sees it as a smaller drive.

When I type

df -h

I get this output...

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             226G  143G   72G  67% /
varrun                474M  216K  474M   1% /var/run
varlock               474M     0  474M   0% /var/lock
udev                  474M   40K  474M   1% /dev
devshm                474M     0  474M   0% /dev/shm

 

This is showing 226G as the HD size when in fact it is now 500G.

 

I have gParted the drive so that the main partition is about 490G?

 

Can anyone suggest what I have missed.

Edited by reggiep
Posted
is gparted showing any unallocated space on the new drive?

id suggest it hasnt mounted/expanded /SDA1

 

I moved the swap file to the end with gparted and expanded my /dev/sda1 to fill the gap.

Any ideas how I can make it mount/expand the drive/partition?

Posted
If you've extended the partition you'll need to extend the filesystem to match, maybe : resize2fs /dev/sda1

 

Funnily enough I have just run that after a google search.

 

It's still running, I ran resize2fs -p /dev/sda1 just so I can see what it's doing.

 

cheers

Posted
might be worth checking if there is an option in clonezilla to make full use of avaliable space (norton ghost for example allows this) so you wont need to manually resize partitions after imaging

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...