Results 1 to 2 of 2

Thread: change primary Linux partitions into logical

  1. #1
    Join Date
    Oct 2012

    change primary Linux partitions into logical

    Dear All,

    I need a little help:

    I would like to merge my Ubuntu primary drives into a logical drive . Of course I dont want to lose any of my data. (I have no any optical or another external drive to backup just an USB with Ubuntu LIVE).

    At this moment my HD looks like this (everything is primary drive):
    sda1 ext4 / (root)
    sda2 ext4 /home
    sda3 linux/swap
    sda4 NTFS /Windows8
    and I got unallocated place as well

    So how can I put those Ubuntu drives (sda1-2-3) under one logical drive without any data losing?
    Is it possible?

    Thanks for your help in advance!

  2. #2
    Join Date
    Jun 2009
    Chicago Suburbs
    Ubuntu 14.04 Trusty Tahr

    Re: change primary Linux partitions into logical

    Welcome to the forums.

    Moved to your own thread.

    Even though question seems same, old thread was over a year old. And some tools have changed.

    Also is drive MBR not gpt as that makes a big difference? All partitions in gpt are primary.

    First backup partition table, use your drive for sdX or sda, sdb etc.
    sudo sfdisk -d /dev/sda > parts.txt

    To convert a partition from primary to logical, at least one free (unallocated) sector must exist between the partition and the one that precedes it.
    Fixparts - Repair broken partition tables (not overlapping issues) & delete Stray gpt data from MBR drives

    Be sure to have current copy of Ubuntu liveCD as you may have to reinstall grub2 or update fstab. And know how to add Boot-Repair as an easy way to fix grub if necessary. UUID should not change but every place that you use the old way of device like /dev/sda1 will have to be changed as sda1 will be the primary extended and then logical partitions start at sda5.

    WARNING for Windows 8 Dual-Booters
    It defaults shutdown to a hybrid hibernation/off state for fast boot
    But then files may be corrupted similar to Windows 7 Hibernation:
    Reboot/mount issues
    For info on UEFI boot install & repair - Updated Mar 2015:
    Please use Thread Tools above first post to close thread when/if answered completely.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts