Resize Partition

Discussion in 'Technical' started by Gecko, Oct 14, 2010.

  1. Gecko

    Gecko New Member

    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.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    That depends on how full the partition is. Do you use LVM? What's the output of
    Code:
    lvdisplay
    ?
     
  3. Gecko

    Gecko New Member

    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
     
  4. falko

    falko Super Moderator Howtoforge Staff

  5. alexmartin

    alexmartin New Member

    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.
     
  6. Adamkkk

    Adamkkk New Member

    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.
     

Share This Page