Manjaro Difference between pages "GRUB/Restore the GRUB Bootloader" and "Installation Guides"

Difference between pages "GRUB/Restore the GRUB Bootloader" and "Installation Guides"

From Manjaro
(Difference between pages)
imported>Roland
 
imported>Handy
 
Line 1: Line 1:
= Overview =
= Overview =


As with any Linux operating system, the GRUB ('''GR'''and '''U'''nified '''B'''ootloader) is responsible for booting up Manjaro. If for any reason your GRUB is not working - perhaps due to being corrupted, mis-configured, or even deleted - then it may not be necessary to reinstall Manjaro as a consequence. '''The GRUB can instead be fully repaired and restored, retaining your installed Manjaro system'''. To undertake this task, you will need to use your Manjaro installation media (e.g. CD/DVD or USB Flashdrive).
{{Tip|For best results, please ensure that Manjaro is connected to the internet prior to starting the installation process.}}


Installation guides for every release of Manjaro have been provided below for both beginners and experienced users. These guides may also be used to install Manjaro as a main operating system, or within a virtual machine environment using '''[https://www.virtualbox.org/ Oracle's Virtualbox]'''. Rebooting your computer (or starting your virtual machine) after connecting your installation media should be sufficient to start the process.  If you find that your computer continues to boot into your existing operating system despite this, then check that:


= Boot the Manjaro Installation Media =
* The ISO Download and/or installation media has not been corrupted, and that
* Your disc drive or USB flash-drive, depending on which you are using to install, is listed higher up in the boot order than your hard drive, which means that it will be booted from first.


'''1.''' Insert and boot your Manjaro installation media.


'''2.''' Select your '''preferred language''' (F2) and '''keyboard layout''' (F3).
Checking and amending your boot order, if necessary, will require either going into your computer's ''BIOS settings'', if installing Manjaro as your main operating system,
or
into Virtualbox's ''System Settings'' if installing in a virtual machine.


{{tip|Setting the language and keyboard layout are undertaken by pressing the ''Function'' (F) keys. As many computers have multiple functions assigned to each function key, it may be necessary to hold down another key first to use them. For example, on a HP G62 laptop, to use the function keys, the 'fn' key must first be pressed and held.}}


If you already have an existing /home partition or
directory be sure to read this section prior to
your installation of Manjaro [https://wiki.manjaro.org/index.php?title=Partitioning_Overview_and_Existing_Partition_Tables#Where_Using_an_Existing_Linux_Partition_Table]
By default a fresh Manjaro installation will not
overwrite the relevant configuration files in your
/home folder. Though you do have the option to have
Manjaro do that.
This page [https://wiki.manjaro.org/index.php?title=Important_hidden_.dot_files_in_your_home_partition] may also be of some use to those that
have an existing /home (partition or directory).


'''3.''' Boot Manjaro Linux. It does not matter which boot option you choose, as the installation media is being used solely to repair/reinstate the GRUB, and not to install a fresh system.
= Manjaro Installation Guides =


'''4.''' Open the terminal or access the command line of the live CD.


* '''From the desktop environment''': open the terminal from your desktop menu, or
<div style="float: left; width: 50%">
* '''From the command line''' (e.g. NET-Edition or having used the ''Boot in Text mode'' option): enter the default username (manjaro) and password (manjaro) to log in.
* [[Graphical Installation Guide for Beginners 0.8.8 | Graphical Installation Guide for Beginners]]
: ''Our new graphical installer is easier than ever!''
</div>


<div style="float: right; width: 50%">
* [[Graphical Installation Guide for Experienced Users 0.8.8 | Graphical Installation Guide for Experienced Users]]
: ''Create your own partitions in the new graphical installer.''
</div>
<div style="clear: both"></div>


= Identify and Prepare the Installed Partition(s) =


'''1.''' Ensure that you are using the Root account, which is identified by a hash ('#') at the beginning of the command line, rather than a dollar ('$'). To switch to Root, enter the command:
<div style="float: left; width: 50%">
* [[Installation Guide for the NET Edition 0.8.10 | Installation Guide for the NET Edition]]
: ''Highly customized Manjaro installation!''
</div>


sudo su
<div style="clear: both"></div>


{{tip|The password - if requested - will be ''manjaro''}}


= Other Guides =


'''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:
<div style="float: left; width: 50%">
* [[Installation to SSD (quick guide)]]
: ''An example of how to install Manjaro to SSD for experienced users''.


sudo blkid


* [[UEFI - Install Guide]]
: ''If your machine's motherboard runs UEFI/EFI you should read this guide. ''


In this particular instance, the partitions for the author's Manjaro system are as follows:


* '''/dev/sda1''': Boot partition
* [[Important hidden .dot files in your home partition]]
* '''/dev/sda2''': Swap partition
: ''These files can save your time when reinstalling or installing a new distro.''
* '''/dev/sda3''': Manjaro system
</div>
* '''/dev/sda4''': Space for personal files.


{{tip|You can also use an application called '''gparted''' from the desktop menu to look at your partitions. This can help you identify what they are, if you are unsure. For example, if a seperate partition for the GRUB exists, it should only be about 100MB in size.}}
<div style="float: right; width: 50%">
* [[Partitioning Overview and Existing Partition Tables]]
: ''Basic overview of partition structure, & useful pointers re. existing partitions. Look here if you have an existing /home partition for options re. your existing config files''.




'''3.''' Mount your Manjaro system partition. The syntax to mount the Manjaro system partition is:
* [[cfdisk Basic Partitioning Scenarios]]
: ''How to create two or three partition schemes to install Manjaro''.


mount /dev/'''[partition used for Manjaro system]''' /mnt


* [[Manual Configuration Guide]]
: ''How to manually edit the necessary configuration files''.


In this instance, as the Manjaro system partition is ''/dev/sda3'', this will be mounted using the following command:
</div>
<div style="clear: both"></div>


mount /dev/'''sda3''' /mnt
= Manjaro Installation Guide Archive=


If for any reason you need to find out how to install an earlier release of Manjaro - or are just interested see how the system has progressed since the first release - then '''[[Installation Guide Archive|the Installation Guide Archive]]''' may be of interest.


'''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:


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


* '''[[Download Manjaro]]'''
* '''[[Check a Downloaded ISO Image For Errors]]'''
* '''[[Burn an ISO File]]'''


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


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!}}
'''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 sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/dev/pts/
chroot /mnt
'''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:
pacman -S mtools os-prober
= Restore the GRUB =
'''1.''' Install a new GRUB bootloader with the following command:
grub-install /dev/sda
'''2.''' Recheck to ensure the that installation has completed without any errors:
grub-install --recheck /dev/sda
'''3.''' Finally, configure the freshly installed GRUB bootloader:
update-grub
or manually with
grub-mkconfig -o /boot/grub/grub.cfg
All done. Now you can close the terminal and reboot your system for the change to take effect.
= Troubleshooting =
=== Arch Linux is not recognized ===
If Arch Linux wasn't recognized after an update-grub then probably your Arch installation is missing the package lsb-release.
[[Category:Troubleshooting]]
[[Category:Contents Page]]
[[Category:Contents Page]]

Revision as of 00:51, 26 November 2015

Overview

Tip
For best results, please ensure that Manjaro is connected to the internet prior to starting the installation process.

Installation guides for every release of Manjaro have been provided below for both beginners and experienced users. These guides may also be used to install Manjaro as a main operating system, or within a virtual machine environment using Oracle's Virtualbox. Rebooting your computer (or starting your virtual machine) after connecting your installation media should be sufficient to start the process. If you find that your computer continues to boot into your existing operating system despite this, then check that:

  • The ISO Download and/or installation media has not been corrupted, and that
  • Your disc drive or USB flash-drive, depending on which you are using to install, is listed higher up in the boot order than your hard drive, which means that it will be booted from first.


Checking and amending your boot order, if necessary, will require either going into your computer's BIOS settings, if installing Manjaro as your main operating system, or into Virtualbox's System Settings if installing in a virtual machine.


If you already have an existing /home partition or
directory be sure to read this section prior to 
your installation of Manjaro [1] 
By default a fresh Manjaro installation will not
overwrite the relevant configuration files in your
/home folder. Though you do have the option to have
Manjaro do that.

This page [2] may also be of some use to those that
have an existing /home (partition or directory).

Manjaro Installation Guides

Our new graphical installer is easier than ever!
Create your own partitions in the new graphical installer.


Highly customized Manjaro installation!


Other Guides

An example of how to install Manjaro to SSD for experienced users.


If your machine's motherboard runs UEFI/EFI you should read this guide.


These files can save your time when reinstalling or installing a new distro.
Basic overview of partition structure, & useful pointers re. existing partitions. Look here if you have an existing /home partition for options re. your existing config files.


How to create two or three partition schemes to install Manjaro.


How to manually edit the necessary configuration files.

Manjaro Installation Guide Archive

If for any reason you need to find out how to install an earlier release of Manjaro - or are just interested see how the system has progressed since the first release - then the Installation Guide Archive may be of interest.


See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.