Difference between revisions of "GRUB/Restore the GRUB Bootloader"

imported>Richard
imported>Richard
Line 22: Line 22:


= Identify and Prepare the Installed Partition(s) =
= Identify and Prepare the Installed Partition(s) =
{{tip|'''If you had installed Manjaro using the ''assisted preparation'' method''' - whereby the installer automatically prepared and partitioned your computer's hard disk for you - then you will have the same four partitions as those listed by the author, below. This will include a separate Boot partition, named ''/dev/sda1''.}}
{{tip|'''If you had installed Manjaro using the ''assisted preparation'' method''' --whereby the installer automatically prepared and partitioned your computer's hard disk for you-- then you will have the same four partitions as those listed by the author, below. This will include a separate Boot partition, named ''/dev/sda1''.}}
 


{{note|The procedure given below may also be described as [https://wiki.archlinux.org/index.php/Change_Root chroot](ing).}}
{{note|The procedure given below may also be described as [https://wiki.archlinux.org/index.php/Change_Root chroot](ing).}}
Line 32: Line 31:
  sudo su
  sudo su


'''2.''' List your partitions. This is necessary in order to identify the partition your Manjaro system is installed on. If you have used a separate boot partition, it will be necessary to identify this as well. For a list of your paritions, enter the command:
lsblk -f


'''2.''' List your partitions. This is necessary in order to identify the partition your Manjaro system is installed on. If you have used a separate boot partition, it will be necessary to identify this as well. For a list of your paritions, enter the command:
  or


  sudo blkid
  sudo blkid -o list -c /dev/nul




Line 46: Line 48:




If you are still unsure, then you can also use an application called ''gparted'', which should be selectable from your desktop menu. This will provide a simple visual illustration of the partitions on your hard drive(s). If a seperate partition for the GRUB exists, it will be marked as 'bootable', and should only be about 100MB in size.
If you are still unsure, then you can also use an application called ''gparted'', which should be in Menu > System > GPartEd. This will provide a simple visual illustration of the partitions on your hard drive(s). If a separate partition for the GRUB exists, it will be marked as 'bootable', and should only be about 100MB in size.




Line 59: Line 61:




'''IF''' you have used a seperate partition for your GRUB bootloader, then this must also be mounted. The syntax to mount a separate partition used to boot is:
'''IF''' you have used a separate partition for your GRUB bootloader, then this must also be mounted. The syntax to mount a separate partition used to boot is:


  mount /dev/'''[partition used for GRUB]''' /mnt/boot
  mount /dev/'''[partition used for GRUB]''' /mnt/boot




In this instance, a seperate partition - ''/dev/sda1'' - has been used for the GRUB, and will be mounted using the following command:
In this instance, a separate partition --''/dev/sda1''-- has been used for the GRUB, and will be mounted using the following command:


  mount /dev/'''sda1''' /mnt/boot
  mount /dev/'''sda1''' /mnt/boot


{{note|Again, if you have not used a seperate boot partition, then it (obviously) does not need to be mounted!}}
{{note|Again, if you have not used a separate boot partition, then it (obviously) does not need to be mounted!}}




'''3.''' Change to the root directory of your mounted partitions. This is undertaken so that you are working from  - and with - your installed system, rather than the installation media. To do so, it will be necessary to enter a series of commands in the following order:
'''3.''' Change to the root directory of your mounted partitions. This is undertaken so that you are working from  --and with-- your installed system, rather than the installation media. To do so, it will be necessary to enter a series of commands in the following order:


  mount -t proc proc /mnt/proc
  mount -t proc proc /mnt/proc
Line 80: Line 82:




'''4.''' Install the software applications ''mtools'' and ''os-prober''. mtools is a collection of tools to access Microsoft Operating Systems (i.e. MS-DOS). os-prober is a utility that detects if there are any other operating systems present. Install them with the following command:
'''4.''' Install the software applications ''mtools'' and ''os-prober''. mtools is a collection of tools to access MS-DOS disks from GNU/Linux and Unix without mounting them. os-prober is a utility that detects if there are any other operating systems present. Install them both with the following command:


  pacman -S mtools os-prober
  pacman -S mtools os-prober
Anonymous user