Link to home
Create AccountLog in
Avatar of jjoz
jjozFlag for Australia

asked on

How to regrow the Ubuntu Linux disk size from 8 GB to 20 GB without losing the data ?

Hi All,

I wonder if this is possible to extend or regrow the Linux hard disk partition from 8 GB to 20 GB without losing the existing data on the partition ?

at the moment this Ubuntu Linux is deployed on top of VMware and I've just regrow the hard drive from 8 GB into 20 GB but can't see the effect immediately.

can anyone suggest how to do this without losing the data ?

Thanks,
JJ
Avatar of jjoz
jjoz
Flag of Australia image

ASKER

and I found some strange error message when i do the fdisk -l ?
LinuxHDD.jpg
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
that's quite normal, I wouldn't worry about it.

From this output the disk has been extended to 20GB.

But what you need to do is use Gparted

gparted.sourceforge.net/

to resize the partition /dev/sda1, but first you'll need to move

/dev/sda2
/dev/sda5

down the disk, to give you space to re-size /dev/sda1

have a look at this guide here

http://www.howtoforge.com/partitioning_with_gparted
Avatar of jjoz

ASKER

hm.. so it is more complex than I'd thought before, because in Windows vista and above the tool is builtin and easy to use without losing much data.

let me try that.
gparted wont let u loose any data.
and also it is available in the software centre.
Avatar of jjoz

ASKER

thanks man, unfortunately this is a server linux so i can't see the nice GUI :-|
ASKER CERTIFIED SOLUTION
Avatar of wdfdo1986
wdfdo1986
Flag of Sri Lanka image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of jjoz

ASKER

Thanks mate !