Ubuntu Installation :: The Incredible Shrinking Extended Partition
Oct 26, 2010
I have been attempting to set up a bunch of partitions on a bunch of hard disks, in preparation for installing Maverick. I will be setting up a number of RAID partitions, so I will install from the alternate disk (ubuntu-10.10-alternate-amd64.iso). Now ever since they added support for GRUB2 and a new partition type and align-to-megabyte and a whole bunch of other goodness, partitioning has been buggy. This has been true for Maverick and Lucid. Even the 10.04.1 version (an Ubuntu LTS!) still has problems. Every time I try something else, some other bizarre bug rears its ugly head. (Yes, I have been reporting them on Launchpad when I find a new one.)
In order to move forward on this project, I have been using a variety of partitioning tools. I temporarily installed Maverick on a small partition, and have used Disk Utility (palimpsest) and GParted while booted into that. Occasionally when things get really strange I boot up the latest version of System Rescue Disk, which contains the latest version of gparted. I use these various tools to try out various partitioning schemes, just laying out empty partitions that will be formatted or assembled into RAID arrays later. When I get all the desired partitions set up, I will boot into the alternate installer and do the final installation. (I don't want to do the entire thing within the alternate installer because it makes my head hurt. I do have a lot of partitions.) This has been going on for weeks now. Every time I try something different, something weird happens, and I have to try various workarounds, or switch to different tools. Basically, my partitions eventually become unstable.
Here's the latest mind boggler: Disk Utility displays nice graphical maps of your partitions. This image includes before and after screenshots showing what happens to my partitions occasionally. We start with three primary partitions and one extended partition. The extended partition goes all the way to the end of the disk. We put a small logical partition into the extended partition, at the beginning of it. We can then click on the "free" portion of the extended partition and create additional logical partitions if we like.
Afterwards, the extended partition has magically shrunk itself down until it is the same size as the small logical partition it contains. The free space has migrated out of the extended partition, and is now useless, as you can't have more than four primary+extended partitions. Disk Utility won't let you create another partition. What happened between the Before and After pictures? I don't know. I do know that I did not ever tell any tool to change the size of any partition. Moving or resizing partitions can trigger various known bugs, so I never even try to do that, I just delete partitions and start over.
I recently decided to resize a partition on my HDD (partition on which Ubuntu was previously installed).This was in order to remove Ubuntu from one of my HDD. I got rid of the Grub loader by booting on my windows system recovery disk and using Bootrec.exe/FixMbr and my computer now boots directly into windows. I then deleted the Ubuntu partition.
To get to the heart of the problem, I am trying to move the free space that is in the extended partition out and merge it with C. I tried doing this with my Gparted liveCD but it didn't work. I didnt have anything to save the error message onto, but I will try the process again when I get home and save the error onto my external drive so that I can post it here.
I wanted to shrink my Windows NTFS partition to allow me to grow my extended partition which contains my Linux partitions, namely to grow my swap space and home directory some however it just fails at enlarging the extended partition. Is this a known problem because I know there were rewrites to the storeage backend of Anaconda.
I am not really sure if the title makes any sense or if it even possible. Basically I am currently triple booting with Mac osx on the first partition windows 7 on the second and ubuntu linux on the 3rd with a swap partition. So basically on my 2TB harddrive
Mac (200gb) Windows (200gb) Linux (200gb) Swap (8gb) NTFS(1592gb)
The last partition is formatted as ntfs using Gparted, windows cannot detect it. The windows disk partitioner shows the swap and ntfs partitions as unformatted. I can unformat the space and use the windows partition to add format it as ntfs but it would format the linux swap partition as well. I am worried that it could potentially screw up everything on my harddrive. My question is. What do I need to do to get the ntfs parition recognized by windows (should I use the windows partitioner)?
I have just over 20GB of empty space on C:. When I click it under disk-management, the window comes up and says I can only resize it 192 MB less than what it is. But I have 20GB free. Any ideas on what is wrong? I also have this odd 9.56GB partition that is empty. DM says it's "EISA configuration"...whatever that is. I am planning to allocate about 10GB for F11 if this pans out ok.
I've installed Windows 7 + XP + Ubuntu 10.10 and Mac Os X on my PC. The problem is that XP wont boot. I've tried a lot of fixes for the last 2 days but still nothing. So I've come to conclusion that it might be probably due to its partition (dev/sda being inside of another Extended partition (dev/sda3) as you guys can see on the attachment. If so, how can I move it out of the extended partition.
just got a new laptop with Windows 7 Home Premium 64bit pre-installed, and when I boot into my 11.04 CD, there is no simple option to install alongside windows 7. Only the options to erase the entire disk (wiping windows) or manually specifying partitions. I'd like to keep my windows install as I use it for gaming, but I don't want to mess around with partitions while I don't know what I'm doing. According to the 'Allocate disk space' part of the installation, all 4 primary partitions are being used, a main one for the Windows 7 install, one entitled HP tools, and another two I forget the names of. I have looked up that I may need to turn a primary partition into an extended one,
I recently installed Jaunty in my departmental machine which is having 70 GB harddisk and 512 MB RAM. Before installing I partitioned the Hard disk by using Gparted of Live CD into Four compartments namely
1. Primary partition of 30 GB of file type ext3 2. Extended partition of 39 GB which I divided again into two logical Partition of 20 GB and 19 GB. Labelled it as D and E 3. 1 GB of swap partition
I installed the Jaunty in primary partition, gave the mount point as /The problem is I am not able to copy or save file in the extended partition namely D and E
I bought a PC with Window Vista on it as my partner needs it. Using gparted I set up Primary partitions for Vista OS (sda1) and Ubuntu OS (sda2), plus an extended partition for Vista files, Ubuntu /home and swap:
fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 1 3969 31880961 7 HPFS/NTFS /dev/sda2 3970 5294 10643062+ 83 Linux
My problem is Vista (as always). The 30GB I allocated is not enough, even just for the OS and it won't now boot from GRUB, though I can see it from GRUB. I don't want to do anything that risks a problem for Ubuntu. Will grub still see both OS if I wipe sda1 (Vista OS) and reinstall Vista OS on the extended partition sda6? Ideally I would like to merge sda1 with sda6 and install Vista on that, but that looks way too risky / impossible.
Edit - There is another drive on the PC which is much larger and I use for backup. Is there any scope for installing Vista on that one so that GRUB still identifies both. Not ideal as I like having one as the backup for the other.
I successfully partitioned my desktop with Gparted and made it into an XP/Ubuntu dual boot.
Now i'm trying to do the same with my netbook (eee pc 1000he), and the existing partitions look funny:
How should I change this to prepare for installing Ubuntu? Can I just install to the unallocated space on the extended partition? I don't need optimal efficiency here, I just need to know where to install Ubuntu for a workable dual boot.
It's confusing to me that Windows is on an extended partition, and also that /dev/sda2 has the boot flag (this drive contains nothing but two undeletable folders titled "amd 64" and "i386"). This set-up is the result of a Windows re-install at a sketchy computer shop.
im trying to shrink my vista partition with gparted inside ubuntu. I run gparted (and yes i have ntfsprogs) but when i select the ntfs partition and select move/resize it brings up free space preceding... new size... and free space following.so when i input the new size the resize/move button greys out and when i change the freespace following it just puts back my original new size and back and forth.from what i have read i need to run the gparted livecd and go from there. is this true? i know how to do it with diskpart in windows, how to in ubuntu and eventually get rid of windows.my system is 64-bit. [URL]
I am a new user of Linux, and I actually had a task that is the ability to resize (specifically Shrink) storage of Virtual Machine, I was thinking that the best to start on is to know how to resize partition in linux using command line since our VM runs in Linux environment.
I am completely new to Linux in general, and have recently downloaded Fedora 15 KDE spin. I tried dual-booting between Windows 7 and Fedora by shrinking one of my Windows partitions (I have two, this partition not containing the Windows installation). I tried shrinking it to 30 GB less than the total space available on the partition, and after pressing continue, received an error (which I unfortunately dismissed quickly and can't remember). In the file manager, Fedora showed that my partition changed from 1.3Tb to 1.2 Tb, but I couldn't access it. Upon rebooting into Windows, I still can't access it, receiving a "format drive before use" popup and then error stating that it is possibly of a different filesystem or corrupt.
Unfortunately, I stupidly didn't backup any of my data (which I will be sure to remember to do in the future). I installed EASEUS Partition Master 8.0.1 Home Edition, which states that my drive is still of NTFS filesystem and has the total space it should. However, upon clicking "check drive," it states there are no errors and when trying to "explore files," it doesn't find any (yet it shows the correct amount of used and unused space). I then tried running TestDisk, but only allows me to check my media drive E, which is my dvd drive that has my Fedora Live CD in it (which cannot be ejected manually or through Windows, an error stating it cannot be ejected). I didn't go through with TestDisk for my DVD drive because I needed to verify the type of partition (which to my knowledge shouldn't even exist). It shows 700 something MiB / 600 something MiB. Although I have decent general knowledge about computers, I am a complete novice when it comes to doing something like this.
I have serwer Debian with my website. My provider splited the disc into 5GB partition for / and 495GB partition for /var. Everything was going ok for over two years but now I don't have enough memory on /. I'd like to increase the partition but the problem is that /var is just next to it so I can't easily change the end of the first one. I need some safe solution. It might be even just shrinking partition for /var, adding new one after if it helps anyhow (I have about 450GB free memory).
# parted print GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA ST3500418AS (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags 1 512B 5369MB 5369MB primary ext3 boot 2 5369MB 500GB 494GB primary ext3 3 500GB 500GB 538MB primary linux-swap(v1)
Using a small hard drive (180 GB) dual booting windows XP for gaming and Ubuntu 9.10 for my other stuff during install I didnt know how much of each partition i would use, so i did 50-50 1 for ext3 and one for NTFSHowever after awhile it seems I have run out of space on my NTFS and have tons of unused space on my ext3.What I am wanting to do is shrink some of that ext3 down and give it it NTFS, I did a little searching and found a couple of old posts but I was a little sketchey on em. Simply looking for some personal Methods or Tools you have used and a starting point of how to use them.
I have nearly 200GB of space free on the HD with my linux main EXT4 partition, and I'm wondering if I can convert a large part of this to a new NTFS partition that I can use for my windows XP paralell install?
Basically, what do I have to do to resize and create the new partition and how do I get windows to recognize it?
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.
extended sata partition shrunk at 15 partition limit, how to re-enlarge i hit the 15 partition limit, forgetting it now exists for sata drives, thinking i would add more. upon creation of the 15th, it squished the end of the extended partition to meet the last logical partition, leaving a large unallocated portion after the extended partition, which seemingly nothing can be done with, just sat being wasted space. i have since deleted a few of those partitions, but so far have still failed to find a way to recoup the unallocated space back into the extended partition.
if necessary, i'll do it the painful long winded way of backing up and starting the extended partition again from scratch, but i really rather wouldnt have to do that. i'm sure there must be a way of telling the extended partition to once again reach the end of the drive.
In an attempt to shrink my Data partition on my 500GB drive I had succeded in shrinking it but I think I have broken the partition table as now it refuses to mount. When trying to mount I get this error mount: wrong fs type, bad option, bad superblock on /dev/sda2 I have done some searching around but most fixes haven't worked because they are based on ext2/3 File systems and this partition is ext4. Using Ubuntu 10.04 x64.
I've got a server that needs more space. To achieve this we added space (by extending the VMware disk attached to it).Normally this isn't an issue, because we just add an new partition and LVM it from there, but this host predates our deployment of LVM everywhere.
Our current theory is that the unallocated sectors can not be assigned because they aren't part of the extended partition, and thus ... we go in a circle.So what i believe the way forward is to extend sda4 so that i can then create an sda10 inside of it. Anyone have any ideas on how to do this? I was thinking gparted may do the trick ... but being a server i'm in runlevel3, with no X...