Modify partition layout on a drive while keeping Linux setup intact
Modify partition layout on a drive while keeping Linux setup intact
I’m curious about the best way to adjust these partitions without affecting your current Linux setup on sda5. You’re trying to remove sda2, sda3, and sda4 while leaving sda5 active, so you don’t break the boot process. Since you already have a Gparted USB, it should help you change partitions safely without worrying about mounting issues. I understand you prefer stability over Ubuntu, which is known to be less reliable. Regarding why sda5 comes before sda4, it’s likely due to the order in which they were installed during initial setup. When modifying GRUB entries, you’d typically edit the boot configuration file (usually /etc/inittab or similar) to reflect the new order. Let me know if you need guidance on that part!
You have EFI set up. Generally Grub is placed in the EFI partition, unless you remove it, then no changes affect breaking Grub. I recommend chrooting into your preferred Linux distribution, then reinstalling Grub and updating the GRUB configuration. This process works if you're using a USB live environment. You can mount necessary directories like /dev/sdaX, /boot/efi, etc., and run grub-install followed by update-grub. After installation, consider running update-grub again in your system to ensure all entries are recognized, similar to how it's done with Windows.
Thanks for your assistance. It seems my SDA5 partition is still labeled as sda5 instead of sda2. I can confirm it works, and I need to delete the Windows boot entry and the old Linux boot entry in the UEFI. That part should be the simplest. Appreciate your support!
It's good to hear it's functioning! A few notes for the future and anyone listening: Partition numbers don't affect their actual sequence on the disk—they've always been consistent, similar to MSDOS partition tables and still true with GPT. The assigned number is simply the first available one, though tools might assign any free number. Changing partitions can shuffle these numbers, but it's not a big concern since it doesn't matter what they are. Generally, don't depend on them or disk node labels; use partition or FS UUIDs instead. Also, GUI utilities often miss details—like the start and end points of a partition—which aren't always clear. For instance, the listing in your example only shows sizes, not boundaries. This could complicate resizing partitions later. It's safer to use the command line, which works across different environments and even if your system fails. If you need more info from GUI tools, try adjusting settings or checking for extra columns. To sum up: keep GRUB separate from previous Linux setups, as it might still be present, and stick with CLI commands for reliability.