Using Gparted to remove 2 of 3 partitions

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
Speighthoven
Level 1
Level 1
Posts: 4
Joined: Sat Dec 04, 2021 3:34 pm

Using Gparted to remove 2 of 3 partitions

Post by Speighthoven »

Hi!
I have Windows 10 installed on my laptop and recently I set up dual boot with Linux Lxde. Not happy with Lxde, I then installed Linux Mint 19.2 to try it out, and I love it!
So, I now have Lxde, Windows 10, and Mint.
I want to remove two of the three partitions, and stick with Mint. Although I have read much on how to delete partitions, I'm not sure if I can use Gparted from within Mint to delete the other two partitions.

Any clarification greatly appreciated!

David
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.
MAlfare

Re: Using Gparted to remove 2 of 3 partitions

Post by MAlfare »

Speighthoven wrote: Sat Dec 04, 2021 3:59 pm ..... I'm not sure if I can use Gparted from within Mint to delete the other two partitions.
Why not?
Of coarse they must not be mounted in Mint.
Speighthoven
Level 1
Level 1
Posts: 4
Joined: Sat Dec 04, 2021 3:34 pm

Re: Using Gparted to remove 2 of 3 partitions

Post by Speighthoven »

Thanks... I just want to avoid deleting essential boot files (MBR).. I don't know which partition they are on
User avatar
ricardogroetaers
Level 6
Level 6
Posts: 1368
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: Using Gparted to remove 2 of 3 partitions

Post by ricardogroetaers »

Speighthoven wrote: Sun Dec 05, 2021 3:35 am Thanks... I just want to avoid deleting essential boot files (MBR).. I don't know which partition they are on
It is recommended to post a picture of Gparted showing your "disk".
Don't forget to click on the "view" menu and enable "show device information".
All columns of the Gparted interface must be "readable" (see picture).

Or optionally the output of the command:
sudo parted -l
Attachments
Captura de tela_2021-12-05_05-14-26.png
Speighthoven
Level 1
Level 1
Posts: 4
Joined: Sat Dec 04, 2021 3:34 pm

Re: Using Gparted to remove 2 of 3 partitions

Post by Speighthoven »

...I'm still digging through all the help sections to find out how to insert an image in my reply... but the only post found so far talks about uploading to an image sharing site to get a link, or downloading more software...

To avoid making this an un-necessarily long day, here's the simpler method:

Model: ATA SAMSUNG HM320JI (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ntfs boot
2 525MB 102GB 101GB primary ntfs
3 102GB 320GB 218GB extended
6 102GB 202GB 100GB logical ext4
5 202GB 320GB 118GB logical ext4
User avatar
kato181
Level 9
Level 9
Posts: 2565
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Using Gparted to remove 2 of 3 partitions

Post by kato181 »

Just click on the Insert image 9th icon above the text box.
User avatar
ricardogroetaers
Level 6
Level 6
Posts: 1368
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: Using Gparted to remove 2 of 3 partitions

Post by ricardogroetaers »

From the output of the "parted" command one reasonably assumes:
- MBR partitioning (also called msdos).
- first primary partition is boot partition.
- Windows 10 installed on the second primary partition.
- Linux is installed on the first and second logical partition within the extended partition.
Who is Linux Lxde and who is Mint 19.2 is a mystery.
Only you can clarify.

At first, you can delete the second primary partition, where presumably Windows 10 is, and the logical partition where Linux Lxde is (which one is it?).

One problem is that by deleting these partitions your disk can get messed up, i.e. with empty spaces between partitions.

It is recommended to first copy (backup) your data (texts, spreadsheets, photos, presentations, videos, ....) to a safe place before deleting the desired partitions.
Systems and programs can be reinstalled (it will only take a little work), but losing your data is a big loss). How much is your data worth?

It is recommended to have more information before deleting the partitions you want.
Start with Linux Mint 19.2 and post the output of the commands:

This command will show you where Linux Mint 19.2 is:

lsblk -f


This tricky command will show you where Grub is:

sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/: //' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1. 96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: NO GRUB Y ;; esac\""
Speighthoven
Level 1
Level 1
Posts: 4
Joined: Sat Dec 04, 2021 3:34 pm

Re: Using Gparted to remove 2 of 3 partitions

Post by Speighthoven »

Thanks so much for that information, (I know which is Mint and which is Lxde by their size.) As there's nothing presently of value on any of the partitions of this machine, I can proceed and hopefully learn.
Thanks again!
Locked

Return to “Installation & Boot”