deleting a distro safe within a multiboot environment

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
samye

deleting a distro safe within a multiboot environment

Post by samye »

Hello folks,

Maybe there is a thread to this (that i didnt find) I would apriciate your quick help in that:

I have a pre-installed windows 7 and two linux distros (that happened to be installed twice due to a mistake:)
I want to delete both distros and install two other ones. Since I am not very experienced with boot-loaders, I am afraid i might do something wrong.

Can you give me a quick suggestion how to either delete them safely (without causing a boot problem) or overwrite them when i install the new distro.

my hd looks like this:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002a375

Device Boot Start End Blocks Id System
/dev/sda1 * 1 8841 71007569 7 HPFS/NTFS
/dev/sda2 8841 30401 173187777+ 5 Extended
/dev/sda5 15830 30401 117049558+ 7 HPFS/NTFS
/dev/sda6 8841 12315 27906928 83 Linux
/dev/sda7 15538 15829 2337792 82 Linux swap / Solaris
/dev/sda8 12315 15399 24769536 83 Linux
/dev/sda9 15399 15538 1115136 82 Linux swap / Solaris

Partition table entries are not in disk order

I guess the preinstalled windows 7 (its an acer notebok) is on the first partition only?
I'd love to just format everything i dont need and then install a new Mint on it... but will GRUB intelligently manage all the changes?

THANK YOU
very much
Samye
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
SimonTS

Re: deleting a distro safe within a multiboot environment

Post by SimonTS »

OK - my tuppence worth...

I would start off by saying that you don't need two swap partitions. Any number of distros can share a swap space - just don't format the space after the first install or you will change the UUID.

I would start off by booting into the Linux distro that you are more comfortable with. Run gParted and delete the root partition for the other distro and its swap partition, then run 'sudo update-grub'.
Now I would boot from a Live image and install the first new distro.

Once it is up and running, repeat the same procedure to get rid of the other distro that you didn't want, resize the partition to include the wasted swap-space and install the 2nd new distro.
Locked

Return to “Installation & Boot”