Choose style:

Author Topic: Reinstall Peppermint Grub (SOLVED)  (Read 297 times)

0 Members and 1 Guest are viewing this topic.

Offline arky217

  • Member
  • ***
  • Posts: 170
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Reinstall Peppermint Grub (SOLVED)
« on: June 19, 2019, 07:25:35 pm »
I installed another distro (pclinuxos) alongside Peppermint 10 and it
didn't give me an option to not install grub.

Well, although I can boot to Peppermint 10 ok in pclinuxos's grub,
I want to have Peppermint control grub again because
I intend to delete pclinuxos.

How do I reinstall Peppermint's grub to sda ?
« Last Edit: June 20, 2019, 10:47:27 am by arky217 »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26112
  • Karma: 2845
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Reinstall Peppermint Grub
« Reply #1 on: June 19, 2019, 10:21:45 pm »
IN PEPPERMINT, what's the output from:
Code: [Select]
sudo fdisk -l
and
Code: [Select]
blkid
and
Code: [Select]
mount
and
Code: [Select]
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy BIOS"
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline arky217

  • Member
  • ***
  • Posts: 170
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Reinstall Peppermint Grub
« Reply #2 on: June 19, 2019, 10:59:20 pm »
IN PEPPERMINT, what's the output from:
Code: [Select]
sudo fdisk -l
and
Code: [Select]
blkid
and
Code: [Select]
mount
and
Code: [Select]
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy BIOS"

***********************************************************

jim@jim-550-110 ~ $ sudo fdisk -l
[sudo] password for jim:
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 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
Disklabel type: dos
Disk identifier: 0x1f08e751

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048 102402047 102400000 48.8G 83 Linux
/dev/sda2       102404094 234440703 132036610   63G  5 Extended
/dev/sda5       209430528 234440703  25010176 11.9G 82 Linux swap / Solaris
/dev/sda6       102404096 163844095  61440000 29.3G 83 Linux
/dev/sda7       163846144 209428479  45582336 21.8G 83 Linux

Partition table entries are not in disk order.




Disk /dev/sdb: 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: 0x2f8ef7bd

Device     Boot     Start        End    Sectors   Size Id Type
/dev/sdb1            2048  409602047  409600000 195.3G 83 Linux
/dev/sdb2       409602048 1953523711 1543921664 736.2G 83 Linux

***********************************************************

jim@jim-550-110 ~ $ blkid
/dev/sda1: LABEL="rootMX17.1" UUID="93be0104-08c4-4b94-9410-1ff5a8bd4dbb" TYPE="ext4" PARTUUID="1f08e751-01"
/dev/sda5: UUID="b23ac40f-725e-4219-86b3-8a1ecce17f56" TYPE="swap" PARTUUID="1f08e751-05"
/dev/sda6: UUID="d28d2699-ac54-412e-8e42-62e3b683ce3a" TYPE="ext4" PTTYPE="dos" PARTUUID="1f08e751-06"
/dev/sda7: LABEL="pclinuxos" UUID="16702325-26b3-4e2f-81b5-48ce174b0506" TYPE="ext4" PARTUUID="1f08e751-07"
/dev/sdb1: LABEL="Snapshots" UUID="23dc87d2-d525-409d-a1ce-4386eb8b2a5e" TYPE="ext4" PARTUUID="2f8ef7bd-01"
/dev/sdb2: LABEL="Storage" UUID="d52621a1-7b56-414e-b2b9-dbc7c19150c2" TYPE="ext4" PARTUUID="2f8ef7bd-02"

*************************************************************

jim@jim-550-110 ~ $ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=6087516k,nr_inodes=1521879,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1222156k,mode=755)
/dev/sda6 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=37,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13162)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1222152k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

*******************************************************

jim@jim-550-110 ~ $ [ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy BIOS"
Legacy BIOS



Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26112
  • Karma: 2845
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Reinstall Peppermint Grub
« Reply #3 on: June 20, 2019, 09:22:42 am »
Okay you should just be able to boot into Peppermint, then FROM WITHIN PEPPERMINT, run:
Code: [Select]
sudo grub-install /dev/sda
then
Code: [Select]
sudo update-grub
But whenever editing grub, it's a good idea to have a LiveUSB handy just in case .. then if necessary we can reinstall grub from that.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline arky217

  • Member
  • ***
  • Posts: 170
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Reinstall Peppermint Grub
« Reply #4 on: June 20, 2019, 10:46:56 am »
Thank you sir; you are the man !

Actually, I think I had to do this before,
but I just forgot how.

I will definitely make a note of the procedure
in case there's a next time.

Again, thank you; this forum is Peppermint's icing on the cake.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26112
  • Karma: 2845
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Reinstall Peppermint Grub (SOLVED)
« Reply #5 on: June 20, 2019, 11:10:13 am »
you're most welcome arky217, glad I could help :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec