Choose style:

Author Topic: Want to remove Linux Mint [Solved]  (Read 311 times)

0 Members and 1 Guest are viewing this topic.

Offline Haywire

  • nOOb
  • *
  • Posts: 5
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Want to remove Linux Mint [Solved]
« on: February 23, 2019, 11:06:57 am »
Hi
Fairly new to Linux and have Linux Mint and Peppermint Linux installed on my laptop. I would like to remove Linux Mint and use the additional space for my Peppermint Linux. How do I go about just removing Linux Mint without affecting my Peppermint install
Thanks
« Last Edit: February 24, 2019, 04:21:34 am by zebedeeboss »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 24514
  • Karma: 2698
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Want to remove Linux Mint
« Reply #1 on: February 23, 2019, 12:39:45 pm »
Can you boot into Peppermint and post the output from:
Code: [Select]
sudo fdisk -l
and
Code: [Select]
blkid
and the contents of
Code: [Select]
xed /etc/fstab
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Haywire

  • nOOb
  • *
  • Posts: 5
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Want to remove Linux Mint
« Reply #2 on: February 23, 2019, 12:55:00 pm »

Disk /dev/loop0: 50.7 MiB, 53182464 bytes, 103872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 53.7 MiB, 56287232 bytes, 109936 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 174 MiB, 182419456 bytes, 356288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 91 MiB, 95416320 bytes, 186360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 34.8 MiB, 36503552 bytes, 71296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x1ee2caca

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1  *          2048 1031444331 1031442284 491.8G 83 Linux
/dev/sda2       1031444478 1953523711  922079234 439.7G  5 Extended
/dev/sda5       1031444480 1953523711  922079232 439.7G 83 Linux


/dev/sda1: UUID="1b2308b8-d854-4ee0-b900-d1874c42f69c" TYPE="ext4" PARTUUID="1ee2caca-01"
/dev/sda5: UUID="6ad71fc1-d39f-4601-bace-dc669055450b" TYPE="ext4" PARTUUID="1ee2caca-05"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"


# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=6ad71fc1-d39f-4601-bace-dc669055450b /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 24514
  • Karma: 2698
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Want to remove Linux Mint
« Reply #3 on: February 23, 2019, 02:22:35 pm »
Oh this may be awkward because sda5 (the Peppermint partition) is inside an extended partition (sda2)....

Basically you need to

a) Boot to a Peppermint LiveUSB

b) Fire up GParted, and delete /dev/sda1

c) still in GParted, resize /dev/sda2 to fill the entire drive (so resize it to the left)

d) move /dev/sda5 all the way to the left, so it's now still inside sda2, but now at the beginning)

e) Now resize sda5 to the right to fill the empty space inside sda2

f) possibly reinstall GRUB from within a chroot environment.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Haywire

  • nOOb
  • *
  • Posts: 5
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Want to remove Linux Mint
« Reply #4 on: February 23, 2019, 02:27:12 pm »
What is this? possibly reinstall GRUB from within a chroot environment.

I think I can follow the rest but not sure what the above is

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 24514
  • Karma: 2698
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Want to remove Linux Mint
« Reply #5 on: February 23, 2019, 03:45:25 pm »
If moving the partitions around breaks the GRUB bootloader, you're going to need to reinstall GRUB from a LiveUSB environment

I can explain how to do this, but only when we know whether  sda5 remained designated as sda5.



GRUB may also get broken if the other distro is currently the one controlling GRUB .. in either case it's fixable.

See here:
https://help.ubuntu.com/community/Grub2/Installing#via_ChRoot
for further information
« Last Edit: February 23, 2019, 03:47:46 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Haywire

  • nOOb
  • *
  • Posts: 5
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Want to remove Linux Mint
« Reply #6 on: February 23, 2019, 04:37:05 pm »
Well went through all your steps except the bootloader....restarted and the bootloader still shows option to boot into Peppermint or Linux Mint...... but when choosing Peppermint booted right up. Once in I brought up gparted and the following is a screen shot

https://photos.app.goo.gl/NhoCt7axscTiSt6V9

Seems fine. Thanks for all your help......Should I be cleaning up the options on startup?




Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 24514
  • Karma: 2698
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Want to remove Linux Mint
« Reply #7 on: February 23, 2019, 05:03:07 pm »
As Peppermint is still booting, you should now (from within Peppermint) run:
Code: [Select]
sudo update-grub
this should remove the "Mint" option from the GRUB menu.
« Last Edit: February 23, 2019, 05:04:39 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Haywire

  • nOOb
  • *
  • Posts: 5
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Want to remove Linux Mint
« Reply #8 on: February 23, 2019, 05:22:44 pm »
Done and cleaned up

Thanks for the help MUCH appreciated.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 24514
  • Karma: 2698
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Want to remove Linux Mint [Solved]
« Reply #9 on: February 24, 2019, 10:33:45 am »
You're most welcome :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec