#1  
Old 14th October 2010, 08:41
Gecko Gecko is offline
Junior Member
 
Join Date: Oct 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resize Partition

Hello.

I have Ubuntu 10.04 LTS on a 500GB drive. Works great. The drive is 1 partition for the OS and a small swap partition.

I want to shrink the OS Partition to around 300GB so I can use the other 200GB for iSCSI on my network.

If I boot the system with a Live CD, use GParted to resize the partition, will I lose the data or it's ability to boot from that partition?

thanks.
Reply With Quote
Sponsored Links
  #2  
Old 15th October 2010, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Quote:
Originally Posted by Gecko View Post
If I boot the system with a Live CD, use GParted to resize the partition, will I lose the data or it's ability to boot from that partition?

thanks.
That depends on how full the partition is. Do you use LVM? What's the output of
Code:
lvdisplay
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th October 2010, 20:31
Gecko Gecko is offline
Junior Member
 
Join Date: Oct 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
That depends on how full the partition is. Do you use LVM? What's the output of
Code:
lvdisplay
?
I'm not using LVM

fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e8fc9

Device Boot Start End Blocks Id System
/dev/sda1 * 1 60050 482351593+ 83 Linux
/dev/sda2 60051 60801 6032377 5 Extended
/dev/sda5 60051 60801 6032376 82 Linux swap / Solaris
Reply With Quote
  #4  
Old 17th October 2010, 11:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

In that case I'd either try GParted or this link: http://www.howtoforge.com/linux_resi...xt3_partitions

Make a backup of your important data before you try it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 29th July 2011, 07:52
alexmartin alexmartin is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Most probably the data should be loss. Since the data's are not stored in sequence. The best way please do take backup the necessary data and then shrink the disk as mentioned falko. Once you have please update with this forum. So it would be useful info for all.

Thanks and best of luck.
Reply With Quote
  #6  
Old 2nd August 2011, 08:14
Adamkkk Adamkkk is offline
Junior Member
 
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default backup before you resize the partition

i think you'd better backup your data before you do anything to the partitions.
Resizing partitions with any tools can be dangerous.
and by the way, maybe you can try this free partition manager, i used it to enlarge the C drive, quite reliable and safe.
Good luck.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
enlarge my partition? candy1111 Smalltalk 6 11th May 2011 05:00
Can all the installation and configuration be automated (Kickstart) gabby Installation/Configuration 0 30th January 2010 19:47
www, mysql folder in limited /var partition by mistake bpmee Installation/Configuration 1 2nd October 2009 14:12
HOWTO use a keyfile for an encrypted swap partition charles HOWTO-Related Questions 0 10th January 2009 16:10
how to partition and install ubuntu in free spcae after installed vista sarahanat HOWTO-Related Questions 1 16th July 2008 17:19


All times are GMT +2. The time now is 13:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.