I have this setup:I've decided to switch to Elementary OS Luna (fork of Ubuntu 12.04) as my main Linux distro. Now I need to delete my Ubuntu partition so I could add capacity to my eOS which only has 10Gb.Currently my eOS is in /dev/sda9, and Ubuntu in /dev/sda8/. I forgot where my bootloader is installed, so I ran bootinfoscript, which returned this:`============================= Boot Info Summary: ================================> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of     the same hard drive for core.img. core.img is at this location and looks     in partition 94 for .sda1: __________________________________________________________________________File system:       ntfsBoot sector type:  Windows Vista/7: NTFSBoot sector info:  No errors found in the Boot Parameter Block.Operating System:  Boot files:        /bootmgr /Boot/BCDsda2: __________________________________________________________________________File system:       ntfsBoot sector type:  Windows Vista/7: NTFSBoot sector info:  No errors found in the Boot Parameter Block.Operating System:  Windows 7Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exesda3: __________________________________________________________________________File system:       ntfsBoot sector type:  Windows Vista/7: NTFSBoot sector info:  No errors found in the Boot Parameter Block.Operating System:  Boot files:        /bootmgr /boot/bcdsda4: __________________________________________________________________________File system:       Extended PartitionBoot sector type:  -Boot sector info: sda5: __________________________________________________________________________File system:       ntfsBoot sector type:  Windows Vista/7: NTFSBoot sector info:  According to the info in the boot sector, sda5 starts                    at sector 2048.Operating System:  Boot files:        sda6: __________________________________________________________________________File system:       swapBoot sector type:  -Boot sector info: sda7: __________________________________________________________________________File system:       ext4Boot sector type:  Grub2 (v1.99)Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda7                    and looks at sector 851823520 of the same hard drive                    for core.img, but core.img can not be found at this                    location.Operating System:  Boot files:        /grub/grub.cfg /extlinux/extlinux.confsda8: __________________________________________________________________________File system:       ext4Boot sector type:  Grub2 (v1.99)Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda8                    and looks at sector 860224256 of the same hard drive                    for core.img. core.img is at this location and looks                    for (,msdos9)/boot/grub on this drive.Operating System:  Ubuntu 13.04Boot files:        /etc/fstabsda9: __________________________________________________________________________File system:       ext4Boot sector type:  -Boot sector info: Operating System:  elementary OS LunaBoot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img`I need advice as to how to proceed. I mean, does removing the Ubuntu and the /dev/sda7/ partition NOT mess up my GRUB? Please help, thank you.
Can I safely delete the Ubuntu 12.04 partition and use the unallocated space for my Elementary OS?
ubuntu;partition;boot loader;elementary os
In general, there's no reason why you shouldn't be able to delete the Ubuntu partition or install Elementary OS on top of it.In the vast preponderance of cases, Linux distros attempt to detect all available OS installations (including buggy, obsolete products from Redmond, WA), construct a boot menu based on the detected installations, and then install GRUB to the MBR of the boot drive.  As such, your GRUB boot menu probably will be reconstructed from scratch when you install Elementary OS.If the Elementary OS installation fails (more precisely, if it fails before it attempts to install GRUB), and assuming you haven't moved or resized any of the other partitions, you should still be able to boot to your other partitions using the leftover GRUB config in the bootblocks.ADDENDUM: @d4ryl3 clarified his question by asking: Will removing the Ubuntu and the /dev/sda7/ partition NOT mess up my GRUB?  The answer to that is, Probably not.It depends on who last installed GRUB, how GRUB is configured to look for partitions, and how you want to repartition your disk.  If GRUB is configured to look for volume IDs or volume labels, then you'll probably be okay, since volume IDs generally don't change when partitions are moved around, and volume labels definitely don't (unless you do so explicitly).If OTOH GRUB is configured to look for raw partition numbers, then you'll still probably be okay.  /dev/sda7, for example, is known as /dev/sda7 by virtue of being the seventh entry in the partition table found in the MBR.  Deleting a partition typically means marking a partition entry as invalid or hidden; it typically does not mean moving all the following entries up to fill the deleted entry, since doing so would cause all those entries to get new partition numbers.  If partition numbers get changed, then the GRUB installation should be re-run so it knows the latest partition geometry.The ways you can be bitten badly are if the partition entries are moved around, or the data blocks described by the partition are moved around and GRUB needed something out of where the data blocks used to be.  Neither scenario appears likely in your case.  However, you haven't described how you want to repartition the disk, which can affect the outcome.Two things you should probably take care to do after repartitioning and before rebooting:Re-run the system utility that detects all OS partitions and re-installs GRUB to the MBR.Create a bootable USB stick with GRUB on it so you have half a chance of repairing any damage.