Ubuntu :: Gparted - Convert A Logical Partition To Primary?
Mar 13, 2011
Problem:Here's what I had, they basically needed to switch places.C: Windows Primary (The contents of this was my boot partition)D: Extended Logical (I wanted this to become the primary)I googled what to do, and believe it or not it seems people really didn't have a solution besides reformatting it?We learn from our mistakes. That's why I'm posting what I did to see if someone knows a better way!What I did:First I used an Ubuntu LiveCD or 10.04. (Not .1 oh noes)Then I opened up gparted and shrank the extended partition so I would have enough room to move them around.I mounted both the C: and D: partitions and copied the data over to the primary from the logical.I deleted the logical and then moved and resized the primary!Then I flagged the primary partition boot.Well that's one way to get from logical to primary with your data
This is my partition table....(in the image) Now I would like to install windows in the unpartitioned space after a long time..... I tried but could not do that. I understood that Windows needs only primary partitions!
So I tried to convert this logical one into primary, but of no use... Is it possible to convert that unpartitioned space which is under logical drive to a primary one!
Around 2008 i seem to remember PartEd on the command-line was able to rescue deleted partitions and gave a choice of whether to recover the partition as a Primary or Logical Partition. I have tried testdisk but didn't really grok what i was doing. I successfully moved a "Windows Recovery" partition to the end of my hard-drive, immediately after the drive's Extended Partition.
I have been running a dual boot system for a while now and I haven't logged onto the Windows side for quite a while. I'm ready to whack it.
What I want to do is get rid of sda1, sda2, sda3 partitions(all Windows related) - migrate my Linux install(sda5) to a Primary partition, migrate the swap out of the extended partition, and then make everything else my "data"(ext4) partition...so basically go to 2 primary partitions and a swap.
I know how to ultimately get to my one big "data" partition, but the part I'm not so sure or comfortable with is whacking the current Primary partitions and migrating the Ubuntu install to the new primary partition.
Device Boot Start End Blocks Id System /dev/sda1 1 13 102400 de Dell Utility Partition 1 does not end on cylinder boundary. /dev/sda2 * 13 1926 15360000 7 HPFS/NTFS
I'm currently dual booting Windows 7 64bit and Ubuntu 10.10 each on primary partitions. Then on the other 2 partitions I have the manufacturer recovery partition (which I am not sure I should remove...), and then a partition for storage and files. Now I want an Arch Linux installation on the hard drive, but obviously I cannot create a new primary partition because I already have 4. I found out that linux can run from a logical partition (which you can have multiple of)..However I do not want to format my Ubuntu partition and I'd prefer to keep the data on there all intact. Is there a way to move my Ubuntu installation (on the primary partition) to an extended partition where I could put multiple logical partitions for multiple linux installations?
I am running a dual boot of WIndows XP and Xubuntu 10.10 and I want to have an NTFS partition so I access files in both OSs. From what I understand, it has to be a Primary Partition, not a logical one, right? The thing is, GParted doesn't give me the option to create a Primary Partition, only a Logical one inside sda2 (Xubuntu).
P. s.: I am running GParted from inside the Live CD.
After fixing drive partition numbers, I got the following error from cfdisk: Code: FATAL ERROR: Bad logical partition 6: enlarged logical partitions overlap Press any key to exit cfdisk However, I can see all my partitions with fdisk and gparted, I can mount and use all of them.I used the following guide to fix the drive numbers order: Reorder partition drive numbers in linux | LinkedBits Does somebody know whet is cfdisks problem and how can I fix it?
I have first installed Windows7 to sda2 (sda1 being the MBR). Then I installed Ubuntu as follows: sda3 /boot, sda5 swap (sda4 being the Extended partition), sda6 /, sda7 /home. So far so good. Windows and Ubuntu worked fine. I also planned to create another partition for data and two more partitions for Arch Linux. And here is the problem.I just assumed that the Extended partitions were created logical but actually they are also primary. So, as things stand, all my 7 partitions are primary and I cannot create any more partitions.I must've erred somewhere during the Ubuntu installation. Is it possible ti change the Extended partitions into logical, without affecting all the stuff within? Any ideas? Otherwise I will have to delete everything after Windows and install Ubuntu again, making sure that I create logical partitions in the Extended part
So I noticed while using guided partitioning that most distro installers will attempt to create a logical partition for the root file system besides the swap and /boot on the HDD. Why is this the case? Why does the partition for root file system have to be logical and not primary?
I have 3 Ubuntu installations & a PCLINUXOS, plus Windows XP installed on one hard disk. I still can boot to each one of them and can mount each one using Ubuntu.
The problem "may" have occurred when I reduced the size of some linux partitions using gparted. I still have plenty of space in each of those partitions.
When I started gparted all of the HD was unallocated. I did that from each ubuntu installation and the PCLINUX installation, plus LIVECDs. All indicated the space was unallocated.
When I did an fdisk -l from a Puppy Linux LiveCD I got a normal start and ends of each partition.
When I tried it from Ubuntu installation or live cd, I received the following types of responses:
Code: ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda5
Disk /dev/sda5: 28.5 GB, 28566397440 bytes 255 heads, 63 sectors/track, 3473 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System ubuntu@ubuntu:~$ sudo fdisk -u /dev/sda5
The number of cylinders for this disk is set to 3473.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Plus the Windows partition seems to go over its limits.
Since all of my OS installations are still working, I don't know how critical this is. From reading another post, I understand this might be able to be fixed by making some changes in fstab.
I've installed Arch Linux onto my Western Digital SATA drive.I love it, best ever, however, I need the fglrx proprietry driver for better 3-d performace, and decided to create a new partition. I decided to install Linux Mint.Sadly, in all my noobishness, I forgot about the 4 primary partition limit (oops!) and as I have /, /home, swap, and /boot partitions (all primary) already installed, I have run into a bit of a problem.I resized my /home partition (almost 500GB) to about 225, and was then told I have over 200GB unusable space. Is it possible for me to change at least 1 of my primary partitions to logical partitions AND keep all the data intact (AND edit the arch configuration so that it'll still work) so I can install a second linux? I sincerely doubt it
So I tried adding a new, 2nd hard drive to my Ubuntu 9.04 desktop for some additional storage and only managed to kill my system so that it won't boot up anymore (I just get a blinking cursor after the BIOS does its thing).I could sure use a little help getting back to a functioning system, and then adding the second drive. I tried following the instructions from this link to add the 2nd drive:
(So the forum rules won't let me post the link, neato. Here it is with spaces added): h t t p s : / / h e l p . u b u n t u . c o m / c o m m u n i t y / I n s t a l l i n g A N e w H a r d D r i v e
I installed fedora 13 64 bit and it works great but I encountered several issues when setting up guest OS with KVM. The problem seems to be related to selinux. But let me first ask question about logical volume. By Default fedora created logical volumes:
"If you expect that you or other users will store data on the system, create a separate partition for the /home directory within a volume group. With a separate /home partition, you may upgrade or reinstall Fedora without erasing user data files." seems to suggest I have to create a separate physical partition and assign that to /home. But reading elsewhere it seems to suggest logical volume acts like a partition. My goal is to make it easy in case fedora is hosed and I have to re-install it without affecting /home where my cirtical data resides. Given above do I need to create a separate physical partition or I am just fine?
I have a second hard disk that originally had windows and all my data. Windows is hosed but I can see my data from within Fedora and Windows is gone and I created created new partition in its place which used ot be the C:/ drive appears as 53 Gb filesystem. My data which was originally D drive appears as 215 GB filesystem. As given in [URL] I want to create a new logical volume in 53 Gb filesystem which I want to use as space for virtual disk to install guest OS's in KVM. Currrently 53 GB filesystem is mounted as /media/3467BH89JK789 but this does not work well with KVM. how do I create this logical volume out of 53 Gb filesystem partition and add proper selinux info and do I add to vg_vostrolx volume group and in a different volume group?
I started withsda1 windows restore sda3 extendedsda5 swapsda6 /mandrivasda7 /SUSE 11.3 sda8 /SUSE 11.2I then made some changes with gparted (from PartedMagic 5.5) to create an ntfs partition to simulate a condition where someone may want to delete that partition and use the free space for linux. I then deleted that partition, sda2 then sda5 (swap) and taking some screenshots, went about resizing partitions to use that free space and then recreate swap. the intention being to create a basic guide on how to go about this.I have previously only had my swap at the end of the extended partition, deleting itand recreating it later had caused little trouble.I realize that a resize/move operation would have been a better choice.What I was not expecting was the partition number changes that occurred.
Code: root@PartedMagic:~# fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes
I want to install more than 3 linux distributions on single disk - my test machine.Is it possible to create boot partition on logical partition whitch resides in extended partition (and boot successfuly of course)? My boot loader lives elswere (primary partition or MBR).
I usually repartition a disk by backing up, deleting the partitions, formatting them and repartition. I just did a 200 gig backup (so i am safe) and i want to join 2 (ext3) partition together, sdb1 (data4) and sdb5 (data5) into one big partition. Is there a way to do it without scraping the data in sdb5 (data5). It would save me from rewriting the data back to that new partition (200 gig is time consuming).
I was reading another thread about someone with a bad partition table and I decided to join this forum. I'm not going to take any drastic actions with the partition (/dev/sda3) in question. I am going to wait for instructions on what to do first. I am not very good with Linux and need some hand holding. System: DELL 4550 Dual-Booted with XP and Ubuntu. Works OK, just no swap. Well, here's what I did: I deleted a partition for Windows XP Pro because it was a trial, and it ran out. I then decided to slide the swap partition for the Ubuntu Linux that I dual-boot into over. (If this was successful, I was going to try expanding the root partition to take up the unused space.) I used Gparted on a CD to do this, as I figured it was safe to do.
I now cannot mount the swap space at bootup (and have to go into a backup version of the OS), although I can use Gparted in Linux to execute the "swapon" command, and it appears that it worked because I now see "swapoff" as an option on the context menu. (I actually don't even need a swap partition, except to hibernate.) If I highlight the swap partition and click on "Drive" on Gparted's menu bar and select "Create Partition Table", it will erase all data on /dev/sda, so how do I fix the bad partition table non-destructively?
I want to give Mandriva 2010 a shot, and I want to resize my 500gb /home partition (logical) to make some room. It's an ext4 partition. Do you reckon I'll be safe resizing it from the Mandriva installer? or should I use an Ubuntu LiveCD first?
I deleted Ubuntu partition from Windows and it deleted one of the LOgical partition(used for Data storage) along with it.Anny ideas how to recover that Logical partition?Windows disk manager now displays that partition as 'FRee Space'
I have a logical partition formatted with NTFS and created (from Windows) after Ubuntu 9.10 was installed. It's name is "Volume". Now, it doesn't show under places nor nautilus. I think it is shown when using the Live CD again. It is shown in Volume Manager. How can I have it show up next to my other partitions?
I somehow messed up my filesystem. I installed Ubuntu directly with LVM. This created an extended partition including a logical one. When I run out of space, I just increased my space (through VMware) and then added a new PRIMARY partition.
Then I added this one to the volumegroup and increased the logical volume. After I did this a few times, there were no longer any primary partitions allowed (only 4). Then I resized the FS, resized the logical volume, resized the volume group, and removed the physical volume. Now I'm no longer able to create an extended volume (only one) but it's not at the end (there are other primary partitions behind this one at the disk), so I'm not able to create some logical volumes.
What is the best possibility to add some space to the LVM and being able to do this a few times in the future again?
fdisk -l for sda:
There was a /dev/sda3 at the end of the disk. I already deleted this partition.
So the order on the disk is: sda1 | sda2 (extended) | sda5 (logical referred in sda2) | sda4 | free space
Does it matter that there is type "Linux" for sda4 or can I without damaging the lvm just change it (with cfdisk) to "Linux LVM"?
Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x58b258b2
There already exist an os XP before my installing of ubuntu.When I installed my ubuntu 9.10, I selected to install grub2 on the logical partition sda7. But when I typed command sudo dd if=/dev/sda7 of=mbr bs=512 count=1, I found that the file mbr was eerily full of zero bytes. How does this happen? Or grub2 can't be installed on a logical partition? But it works very well along with win7 rather than XP.
know the best way to shrink the Windows 7 64 bit primary partition (C: drive)? The C: drive was originally just over 900 GB free space. I shrunk it using Windows 7 Disk Management, but it would only let me shrink to 468 GB, which I did. I want to shrink it to 100 GB. Will G-Parted work for this? Will I be able to boot into Windows after I use G-Parted? Or will I have to use the Repair Disc to fix Windows? If so, will the Repair Disc work. I have a new PC. I had Ubuntu 10.10 dual booted with Windows XP on my old PC.
right now I've been playing around with Ubuntu using Wubi and I would like to actually install Ubuntu onto its own partition. But I dont want to lose my Windows OS either (I need it for applications like MATLAB and LabVIEW).
My issue is, my laptop currently already has three primary partitions. One for windows, one for recovery and one "SYSTEM_DRV" (used to hold OEM windows license info apparently). I dont want to mess with any of those partitions. my question is, can I still install Ubuntu when I only have one primary partition?
I read about extended and logical partitions in the guide, but the wording was pretty confusing. All it said was Ubuntu needs two partitions, it didnt say if the partitions could be any type.
I'm using Fedora 14 x86_64 I have the following partition table code....
I want to take 200GB from the /home Extended-Logical Partition, and install Archlinux on it, how do I do that? Note: In this 200GB Free Extended Space I want to create another 4 Logical Partitions for Archlinux.