Delete Partitions from Old Linux Mint Installation?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
weslowsk
Level 1
Level 1
Posts: 41
Joined: Wed Jun 23, 2010 1:06 am

Delete Partitions from Old Linux Mint Installation?

Post by weslowsk » Sun Feb 18, 2018 8:11 pm

I was running LM 17 until several months ago when I decided to move to LM 18. I did not upgrade in place; rather, I installed LM 18 alongside LM 17 in a separate partition on the same disk.
Over several weeks, I migrated all of the applications/data that I needed from LM 17 to LM 18. Now, I'm ready to reclaim the partition space on my hard disk which is currently being taken up by LM 17.

I'm wary about removing the old LM 17 partitions because they have lower partition numbers than LM 18 and I'm concerned that once they're removed, my LM 18 partition number will bump down and things will get "messed up".

Here is a screenshot from GParted of the disk partitions:

Image

LM 18 root is mounted at /dev/sda6
LM 17 root is /dev/sda4 partition; LM 17 /home is /dev/sda5 partition

If I remove partitions #4 and #5, will that cause #6 to bump down to #4? Or, will it stay at #6?

I checked my /etc/fstab and there is no reference to any /dev/sda; rather, there are only references to partitions by UUIDs and IDs. So, it sounds promising that any partition changes I make won't need to be reflected in /etc/fstab...right?

Any other tips anyone can suggest for what I'm trying to do?

User avatar
AZgl1500
Level 8
Level 8
Posts: 2262
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Delete Partitions from Old Linux Mint Installation?

Post by AZgl1500 » Sun Feb 18, 2018 10:20 pm

Were it me, I would save Timeshift and Grsync and SystemBack to an ExtUSB HDD.

This is overkill I am told, but I know that I can put it back together.

Save your Personal Data also... I backed up all of that today. No problems.

Reinstall 18.3 from fresh and let it claim the entire disk.

then restore from the ExtHDD and you will be all good to go.

Ext4 Partition ExtUSB HDD.png

weslowsk
Level 1
Level 1
Posts: 41
Joined: Wed Jun 23, 2010 1:06 am

Re: Delete Partitions from Old Linux Mint Installation?

Post by weslowsk » Mon Feb 19, 2018 12:48 pm

thanks for the tip...I'll give it some consideration.

Any other advice out there? Specifically, will dropping the smaller numbered partitions cause problems?

User avatar
austin.texas
Level 20
Level 20
Posts: 12053
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Delete Partitions from Old Linux Mint Installation?

Post by austin.texas » Mon Feb 19, 2018 12:54 pm

weslowsk wrote:
Mon Feb 19, 2018 12:48 pm
will dropping the smaller numbered partitions cause problems?
No.
I have done it - no problem.
You just have to be sure that Mint 18 is in control of your Grub menu (MBR) before deleting Mint 17
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
austin.texas
Level 20
Level 20
Posts: 12053
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Delete Partitions from Old Linux Mint Installation?

Post by austin.texas » Mon Feb 19, 2018 12:59 pm

Also, after deleting Mint 17, you will want to update Grub to remove the reference to 17

Code: Select all

sudo update-grub
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

weslowsk
Level 1
Level 1
Posts: 41
Joined: Wed Jun 23, 2010 1:06 am

Re: Delete Partitions from Old Linux Mint Installation?

Post by weslowsk » Mon Feb 19, 2018 1:16 pm

Yes. I could also do that with Grub Customizer too, right? Just remove all the entries pointing to Mint 17?

User avatar
AZgl1500
Level 8
Level 8
Posts: 2262
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Delete Partitions from Old Linux Mint Installation?

Post by AZgl1500 » Mon Feb 19, 2018 1:25 pm

Grin :D

All of those little "Gotchas" are why I do the full backups, and then just do a full Install to format the whole drive, and then restore the "State of things" from my ExtHDD :mrgreen:

Nothing can go awry that way. :roll:

User avatar
austin.texas
Level 20
Level 20
Posts: 12053
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Delete Partitions from Old Linux Mint Installation?

Post by austin.texas » Mon Feb 19, 2018 1:53 pm

weslowsk wrote:
Mon Feb 19, 2018 1:16 pm
Yes. I could also do that with Grub Customizer too, right? Just remove all the entries pointing to Mint 17?
I suppose you could, but I banned Grub Customizer from my machines a long time ago because I did not like what it does behind the scenes... :evil:
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

weslowsk
Level 1
Level 1
Posts: 41
Joined: Wed Jun 23, 2010 1:06 am

Re: Delete Partitions from Old Linux Mint Installation?

Post by weslowsk » Mon Feb 19, 2018 2:32 pm

Thanks for the tip. I wasn't aware what GC does under the covers. I've had no problems with it so far, but it sounds like it complicates things. I appreciate your viewpoint on the matter.
I'll keep my eye on it.

weslowsk
Level 1
Level 1
Posts: 41
Joined: Wed Jun 23, 2010 1:06 am

Re: Delete Partitions from Old Linux Mint Installation?

Post by weslowsk » Sun Apr 15, 2018 8:03 am

I finally got around to doing this. I decided to surgically remove partitions instead of copying/wiping the whole disk.
No issues at all in the whole process. Because I have a GPT disk and the disk was using primary partitions, there was no renumbering of partitions when I removed partitions.
When I removed the LM17 partitions and fired up Grub Customizer in LM18, GC detected that the partitions were gone and it automatically cleaned up those LM17 entries from Grub for me. All I had to do was persist its changes which I did.

Post Reply

Return to “Other topics”