HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Resize Partition (http://www.howtoforge.com/forums/showthread.php?t=49427)

Gecko 14th October 2010 09:41

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.

falko 15th October 2010 15:11

Quote:

Originally Posted by Gecko (Post 241827)
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
?

Gecko 16th October 2010 21:31

Quote:

Originally Posted by falko (Post 241957)
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

falko 17th October 2010 12:05

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.

alexmartin 29th July 2011 08:52

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.

Adamkkk 2nd August 2011 09:14

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.


All times are GMT +2. The time now is 18:30.

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