Over the years, I've just been installing new OS's side by side and now my HDD is looking like a total partition mess.
I want to KEEP the following;
Windows 7 (464GB Filesystem)
Ubuntu 11.04 (12GB Filesystem)
And the following should be removed...
Xubuntu (21GB Filesystem)
Backtrack (136GB Filesystem)
That leaves the 11GB filesystem left over, but I have no idea what the fuck that partition actually is :facepalm: All that's inside it is this...
Finally, here is what my HDD looks like in Gparted;
And here is the output from running fdisk -l;
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25583 205495416 7 HPFS/NTFS
/dev/sda2 25584 81977 452981607+ 7 HPFS/NTFS
/dev/sda3 81978 121483 317331945 5 Extended
/dev/sda5 118914 121483 20643493+ 83 Linux
/dev/sda6 117575 118913 10755486 7 HPFS/NTFS
/dev/sda7 81978 97485 124567947 83 Linux
/dev/sda8 116351 117574 9831748+ 82 Linux swap / Solaris
/dev/sda9 99048 115642 133299306 83 Linux
/dev/sda10 115643 116350 5686978+ 82 Linux swap / Solaris
/dev/sda11 97486 98975 11968393+ 83 Linux
/dev/sda12 98976 99047 578308+ 82 Linux swap / Solaris
Now, I'm trying to work out what's installed where. It's fucking confusing, I've made a right mess of it all :facepalm: From what I can tell...
sda 1 - Windows XP
sda 2 - Windows 7
sda 3 - I have no fucking idea what sda3 is (help please?)
sda 4 doesn't exist.
sda 5 - Xubuntu
sda 6 - I don't know what sda6 is.
sda 7 - NOT A FUCKING CLUE WHAT THIS IS
sda 8 - swap for above
sda 9 - Backtrack Linux
sda 10 - Swap for Backtrack
sda 11 - Ubuntu 11.04
sda 12 - Swap for Ubuntu 11.04
So, I've worked out that I need to remove the following;
sda 1
sda 5
sda 7
sda 8
sda 9
sda 10
And finally, onto my final question...
What's the best, safest method of removing these partitions? Should I use Gparted to delete them, or simply right click on each partition in the first screenshot and select the "format" option?
Comments
You've made several key mistakes while organising your partitions, which resulted in a completely messed up layout of your partitions. I'm quite sure the fastest way to fix this is to make two backups of all your data, remove all partitions and start fresh. It is possible to keep the partitions you want to keep intact, but that's going to be a hell of a lot of work and it's going to take a VERY long time that way.
To answer a couple of your questions:
This here is the partition layout you should be aiming for:
Now if you wanna keep your installed systems and solve this mess by moving & resizing partitions (keep in mind this will take a LOT of time, aim for a couple days, because al lot of data will have to be moved during the moving / resizing of your partitions), here's how I would do it:
I hope this helps.
Thanks for that massive reply, I needed that help pretty bad.
sda 3 is an extended partition which hosts logical partitions that if I am correct are non-bootable when it comes to Windows.
Anyway, since I dead tired I can't help you much. The best thing you can do is, back everything you need and get rid of
SDA 3 [Format/del]
That will remove.
sda 3 - I have no fucking idea what sda3 is (help please?)
sda 4 doesn't exist.
sda 5 - Xubuntu
sda 6 - I don't know what sda6 is.
sda 7 - NOT A FUCKING CLUE WHAT THIS IS
sda 8 - swap for above
sda 9 - Backtrack Linux
sda 10 - Swap for Backtrack
sda 11 - Ubuntu 11.04
sda 12 - Swap for Ubuntu 11.04
Next when the logical volumn is removed you will get 928+300+ GB unallocated space which will then merge with 2.28 MB of free space.
So it will become like this.
SDA 1
SDA 2
Unallocated
Now next you will do is,
Make one more primary partition [200 GB]
SDA 1
SDA 2
SDA 3
SDA 4 [Extended]
SDA 5 [Logical]
SDA 6 [swap]
SDA 7 and so on.
but since you want to remove windows Xp....
In short, it might be best if start from scratch and work your way up. Like Install Windows 7 in SDA 1, install Unbuntu in SDA 2 , use SDA 3 as a primary partition for future OS, and then use SDA 4 for extended partition and add swap space in there.
In that way you will have two durable OS'es out of your problem reach and you can mess around with other OS'es in other partition or just use Vmware or Virtualbox.
Or even better, like dfg said, use a VM.
Yeah I was going to say this, and being on Linux just complicates the factor because so many tools I'm familiar with on Windows can clear that problem up with a few clicks. But yeah, in general dual boot and partition is dead and if it isn't it should be. Virtualization is the way to go, it's the future, and it's the least fuck upable method for running multiple operating systems with the bonus of having them run at the same time without a restart or partitioning needed.
Hopefully it all gets sorted out but it seems like a lot less painful to move anything important off the drive and just reformat and get all your partitions back. Only time I'd ever partition a drive would be to organize clusters of files based off type (which is no longer needed these days) or for networking purposes.
Gparted is ok but the DM tool is faster.
Check this out.
http://www.psychocats.net/ubuntu/installing
Can I use the built-in disk doodah which comes in the Ubuntu installer Live CD?
Yes you can. You can also do it during the installation procedure. Both are just gparted, a very goot GUI partitioning tool.
When you're in GParted, you'll see your Windows 7 partitions. Usually 2 of them, one of about 100 MB, one however big you decided to make it.
When you're in the installer, you'll need to assign the mount points. If you made a boot partition, assign it to /boot. Assign your first root partition the / mount point and I think you can assign swap to your swap. Then install.
This is one of the things I hate about ubuntu: you've installed a couple of 'em already but you still know nothing about the way the system works, so when you try to do anything yourself or different from the ubuntu way, you're stuck. Read this page: http://www.faqs.org/docs/linux_admin/x264.html If you want to get into linux, read the whole guide.
Also, I don't suppose you could tell me how I'd go about installing a second Linux distro on my hard disk after installing Ubuntu?
Easy, use the same /boot partition (but DON't format it during the installation, that way the bootloader will be overwritten but the kernel will be saved so your other system is still bootable) and a different root partition. Some installers automatically detect all other OS's and will add 'em to the bootloader menu, some won't. Before installing, make a backup of your grub configuration on a thumbdrive (/boot/grub/menu.lst or /boot/grub/grub.conf or /boot/grub/grub.cfg depending on distro and grub version) so you can add the right lines to the new configuration file if necessary.
Thanks for the help!
So, how can I get my Windows to boot when I select it from GRUB?
EDIT: There's also a FAT32 partition on the end of my drive of 238GB - don't worry about that, I plan on formatting that to NTFS when I can boot into windows.
Yo Dawg!! We heard you like partitions.
So we put partitions in your partitions
within your partitions....
Also, I've read that it's a common problem and that I simply need to pop a Windows repair disc in, fix the bootloader and then reinstall GRUB. Sound like a plan?
The thing I don't get is why it shows your windows partition as "unknown". It should show it as an NTFS partition. I'm affraid something went wrong while you created your ubuntu partitions and it corrupted your windows system partition. Try this thingy. If that does it, reinstall grub and you're good to go. If that doesn't do it, a reinstall might be in order.
Also, you're going to have to resize your extended partition to contain all your free space or you won't be able to use it (you already have 4 primary partitions)
And your Windows partition is way too big IMO, but that's just personal taste.
I'm a bit confused with this extended partition too. How exactly do I extend that shit?
Oh, and I install a LOT of Steam games on my Windows partition which is why I made it so big. Is that alright?
Just right-click it in the partition list and click "resize/move", then you should be able to resize it. But you will have to do it from a live disc, you can't edit an extende partition when you've got mounted logical partitions.
And there's nothing wrong with a big windows partition, it's just a waste of space if you don't use it. If you think you need that much space all is good.
At least with VM you can just out with the old and in with the new. I don't seem to have lag issues with VM either. Off topic a little but food for thought bro.
Yeah, I've dabbled with VM in the past but I preferred to have a solid install Also, I tried another few times to get Ubuntu to install properly but it kept breaking Windows :facepalm: I ended up letting Ubuntu do all the partitioning itself, which was much easier despite it being totally gay.
Well, it made my partitioning look really weird
Why did it create one large partition for everything instead of giving me a boot partition, etc etc?
I dunno. I'm fairly happy though, and I've got my data on a separate partition which makes everything a fuck load easier.