Installing the LWP: Difference between revisions

From LWP-Wiki
Jump to navigation Jump to search
 
(27 intermediate revisions by 2 users not shown)
Line 2: Line 2:
== Before you begin ==
== Before you begin ==
Make a '''backup''' of your data stored on the disk of your PC, if any. You can use a usb device or your home directory. Your home directory is network storage and does not get touched during the installation.<br>
Make a '''backup''' of your data stored on the disk of your PC, if any. You can use a usb device or your home directory. Your home directory is network storage and does not get touched during the installation.<br>
If you have sudo rights, you should know where you’ve put your files. If you don’t have sudo rights, you can only place files in '''/mnt/D/''' and '''/var/tmp''' or maybe in '''/tmp''' if you never restart your PC.<br>
If you have sudo rights, you should know where you’ve put your files. If you don’t have sudo rights, you can only place files in '''/var/tmp''' or maybe in '''/tmp''' if you never restart your PC.<br>
Some of you will have extra disks in your PC, these will not be touched during the installation. If and how these extra disks are mounted differs greatly. If you have sudo rights, you can add them to the fstab yourself after the installation. Ask [mailto:lwp@rug.nl us] to add them if you don’t.<br>
Any extra disks in your PC will not be touched during the installation. Ask [mailto:lwp@rug.nl us] to make them available after the installation.<br>
The installation of the '''LWP''' will require '''120GB''' of disk space. A '''dual-boot''' installation will require at least '''250GB''' of disk space.<br>
 
To use LWP we require the following partitions:<br>
- EFI/esp type partition, can be between 100-500Mb (does not need to be formatted)<br>
- linux boot: 1-2Gb, leave unformatted<br>
- linux root: 100Gb or more, leave unformatted<br>
- linux swap: optional but recommended for desktop systems to be equal to the amount of available RAM<br>
 
If your disk already contains an EFI type partition, it is safe to remove all linux type partions. If the remaining free space is large enough (>= 100Gb) all needed partitions will be created automatically.
If there is no EFI partition and you want to be able to dualboot Windows/Linux you will have to start by re-installing Windows. THIS WILL WIPE THE DISK!
 
Existing Windows partitions are left untouched. You can use the cfdisk command from the menu to delete and create partitions, make sure to "write" your changes before exiting cfdisk. Beware that resizing existing partitions will not change the underlying filesystem.<br>
 
After you've made your backups, restart your PC.<br>
After you've made your backups, restart your PC.<br>
== Make the BIOS UEFI ready ==
It is probably best to ask for help with this, but you can do this yourself:
  - press ESC while the computer powers on
  - select BIOS menu
  - select Advanced
    - select Boot Options
      - enable UEFI boot   
    - select Secure Boot Configuration
      - Legacy Support Disabled and Secure Boot disabled
  - save and reboot
  - press ESC while the computer powers on
  - select BIOS menu
  - select Advanced
    - select Boot Options
      - under UEFI boot order move network IPV4 to the top
  - save and reboot
If you want to be able to use Windows (UWP/UFC) as well as Linux (LWP), install Windows first and leave about 100Gb free space for Linux.
Installing Windows takes about 50 min. Installing LWP also takes about 50 min.
== (re)Install the LWP ==
== (re)Install the LWP ==
* At startup, press '''F12''' to boot from the network.<br>
On most systems, booting from the network is configured as default. If that is not the case on your system, you can press '''F12''' directly after you turn on your PC to boot from the network.<br>
[[File:Ipxe-lwp.jpg|thumb|none|The ipxe menu for LWP only.]]
* From the menu, choose '''Install LWP'''. [[File:Efi-networkboot-lwp-only-install.png|thumb|none|The ipxe menu for LWP only.]]
* From the menu, choose '''Install LWP'''.<br>
This will start the installer and give you a login screen.<br>
* That's it. The rest happens automatically.<br>
* Login with your UG account. [[File:Unattend_login.png|thumb|none|The installer login screen.]]
The installation will take 30-45 minutes to finish depending on your hardware. After the installation is finished your system will automatically restart. When the LWP starts the first time, some configuration still has to be done. You will see the following screen.<br>
* Choose "Standard LWP" for the fully automated installation. [[File:Choose_install.png|thumb|none|Standard LWP install.]]
[[File:First-boot.png|thumb|none|First time starting the LWP.]]
* Confirm your choice and the install will start. It takes around 1 hour. [[File:Confirm_install.png|thumb|none|Confirm installation.]]
This should disappear after a few minutes (~5 minutes). When it’s done the login screen will appear and you can login.<br>
That's it. The rest happens automatically. When it’s done the login screen will appear and you can login. [[File:LWP-login-screen.png|thumb|none|The LWP login screen.]]
[[File:Login-screen.png|thumb|none|The LWP login screen.]]


== (re)Install Dual-boot UWP/LWP ==
== (re)Install dual-boot UWP/LWP ==
If only the LWP has to be (re)installed follow the procedure for '''(re)Install the LWP''', but the '''Install LWP''' menu-item is in the '''Maintenance''' sub-menu.<br>
If only the LWP has to be (re)installed follow the procedure for [[#(re)Install the LWP| '''(re)Install the LWP''']], but the '''Install LWP''' menu-item is in the '''Maintenance''' sub-menu.<br>
''<needs image ipxe menu lwp-dual>''<br>
[[File:Efi-networkboot-dualboot-maintenance-menu.png|thumb|none|The ipxe maintenance sub menu for dual-boot.]]
The servicedesk can help you (re)install the UWP on your machine.<br>
The servicedesk can help you (re)install the UWP on your machine.<br>
<br>
<br>
Line 25: Line 57:
== Not enough space ==
== Not enough space ==
=== LWP only ===
=== LWP only ===
If the LWP doesn’t fit the following message will appear.<br>
==== Wipe the system disk ====
[[File:Wipe-disk.png|thumb|none|Installer did not find enough free disk space.]]
First make sure you have not forgotten to backup any data on the disk.
If you’ve made backups of all your data on the disk, you can tell the installer to erase the entire disk by typing exactly “'''I am Sure, Wipe My Disk'''” and hitting the '''Enter''' key. The installer will then delete all partitions and continue as normal. If you type anything else the installer will abort without doing anything to your system and display the following message.<br>
In the network boot menu (press '''F12''' directly after turning on your PC) from the '''Maintenance''' sub-menu, select '''Parted Magic''' to start it.<br>  
[[File:Call-servicedesk.png|thumb|none|No suitable disk found. The CIT servicedesk can assist.]]
[[File:Efi-networkboot-lwp-only-maintenance.png|thumb|none|The ipxe maintenance sub menu.]]
We are going to create a new and empty partition table for the disk. If it didn't start automatically (it should) start '''GParted''' by opening the '''Partition editor''' program from the desktop.
[[File:Gparted-lwponly.png|thumb|none|Example partitions LWP only PC.]]
Make sure you have your system disk selected in the top right corner; It should be selected by default.
Go to '''Device''' and select '''Create Partition Table'''.
[[File:Gparted-device-createptable.png|thumb|none|Create partition table.]]
Select '''gpt''' as the new partition table type, click '''Apply''' and you're done. The disk is now completely empty and ready for a fresh installation.
 
=== Dual-boot ===
=== Dual-boot ===
==== Resize the UWP partition ====
==== Resize the UWP partition ====
If you’re familiar with resizing partitions and/or not afraid of losing anything because you make backups like you're supposed to, consider resizing the UWP NTFS partition if you have enough free space there. You can use '''Parted Magic''' for this.<br>
If you’re familiar with resizing partitions and/or not afraid of losing anything because you make backups like you're supposed to, consider resizing the UWP NTFS partition if you have enough free space there. You can use '''Parted Magic''' for this.<br>
In the network boot menu (press '''F12''' directly after turning on your PC) from the '''Maintenance''' sub-menu, select '''Parted Magic''' to start it.<br>
In the network boot menu (press '''F12''' directly after turning on your PC) from the '''Maintenance''' sub-menu, select '''Parted Magic''' to start it.<br>
''<needs image ipxe menu lwp-dual maintenance>''<br>
[[File:Efi-networkboot-dualboot-maintenance-parted-magic.png|thumb|none|The ipxe maintenance sub menu for dual-boot.]]
Resize the NTFS partition using '''GParted''' (which starts automatically) so you have 120GB free space to install the LWP in. This 120GB should include the current lwproot partition and the swap partition if they exist, because those are removed and the space reused.<br>
Resize the NTFS partition using '''GParted''' (should start automatically, else open the "Partition editor" program from the desktop) so you have at least 100GB of free space to install the LWP in.<br>
[[File:Gparted-dual.png|thumb|none|Example partitions dual-boot PC.]]
[[File:Gparted-dual.png|thumb|none|Example partitions dual-boot PC.]]
A more detailed explanation on Parted Magic can be found [[Parted_Magic| here]].<br>
A more detailed explanation on Parted Magic can be found [[Parted_Magic| here]].<br>
After resizing is done, restart your system and [[#LWP only| start the LWP installer]], the installation should now continue without any problems.<br>
After resizing is done, restart your system and [[#(re)Install the LWP| start the LWP installer]], the installation should now continue without any problems.<br>

Latest revision as of 09:42, 31 October 2025

Before you begin

Make a backup of your data stored on the disk of your PC, if any. You can use a usb device or your home directory. Your home directory is network storage and does not get touched during the installation.
If you have sudo rights, you should know where you’ve put your files. If you don’t have sudo rights, you can only place files in /var/tmp or maybe in /tmp if you never restart your PC.
Any extra disks in your PC will not be touched during the installation. Ask us to make them available after the installation.

To use LWP we require the following partitions:
- EFI/esp type partition, can be between 100-500Mb (does not need to be formatted)
- linux boot: 1-2Gb, leave unformatted
- linux root: 100Gb or more, leave unformatted
- linux swap: optional but recommended for desktop systems to be equal to the amount of available RAM

If your disk already contains an EFI type partition, it is safe to remove all linux type partions. If the remaining free space is large enough (>= 100Gb) all needed partitions will be created automatically. If there is no EFI partition and you want to be able to dualboot Windows/Linux you will have to start by re-installing Windows. THIS WILL WIPE THE DISK!

Existing Windows partitions are left untouched. You can use the cfdisk command from the menu to delete and create partitions, make sure to "write" your changes before exiting cfdisk. Beware that resizing existing partitions will not change the underlying filesystem.

After you've made your backups, restart your PC.

Make the BIOS UEFI ready

It is probably best to ask for help with this, but you can do this yourself:

 - press ESC while the computer powers on
 - select BIOS menu
 - select Advanced
   - select Boot Options
     - enable UEFI boot    
   - select Secure Boot Configuration
     - Legacy Support Disabled and Secure Boot disabled
 - save and reboot
 - press ESC while the computer powers on
 - select BIOS menu
 - select Advanced
    - select Boot Options
      - under UEFI boot order move network IPV4 to the top
 - save and reboot 

If you want to be able to use Windows (UWP/UFC) as well as Linux (LWP), install Windows first and leave about 100Gb free space for Linux. Installing Windows takes about 50 min. Installing LWP also takes about 50 min.

(re)Install the LWP

On most systems, booting from the network is configured as default. If that is not the case on your system, you can press F12 directly after you turn on your PC to boot from the network.

  • From the menu, choose Install LWP.
    The ipxe menu for LWP only.

This will start the installer and give you a login screen.

  • Login with your UG account.
    The installer login screen.
  • Choose "Standard LWP" for the fully automated installation.
    Standard LWP install.
  • Confirm your choice and the install will start. It takes around 1 hour.
    Confirm installation.

That's it. The rest happens automatically. When it’s done the login screen will appear and you can login.

The LWP login screen.

(re)Install dual-boot UWP/LWP

If only the LWP has to be (re)installed follow the procedure for (re)Install the LWP, but the Install LWP menu-item is in the Maintenance sub-menu.

The ipxe maintenance sub menu for dual-boot.

The servicedesk can help you (re)install the UWP on your machine.

Note: Reinstalling the UWP will also require reinstalling the LWP. Reinstalling the LWP does not require reinstalling the UWP, as long as there is enough disk space for the LWP to fit.

Not enough space

LWP only

Wipe the system disk

First make sure you have not forgotten to backup any data on the disk. In the network boot menu (press F12 directly after turning on your PC) from the Maintenance sub-menu, select Parted Magic to start it.

The ipxe maintenance sub menu.

We are going to create a new and empty partition table for the disk. If it didn't start automatically (it should) start GParted by opening the Partition editor program from the desktop.

Example partitions LWP only PC.

Make sure you have your system disk selected in the top right corner; It should be selected by default. Go to Device and select Create Partition Table.

Create partition table.

Select gpt as the new partition table type, click Apply and you're done. The disk is now completely empty and ready for a fresh installation.

Dual-boot

Resize the UWP partition

If you’re familiar with resizing partitions and/or not afraid of losing anything because you make backups like you're supposed to, consider resizing the UWP NTFS partition if you have enough free space there. You can use Parted Magic for this.
In the network boot menu (press F12 directly after turning on your PC) from the Maintenance sub-menu, select Parted Magic to start it.

The ipxe maintenance sub menu for dual-boot.

Resize the NTFS partition using GParted (should start automatically, else open the "Partition editor" program from the desktop) so you have at least 100GB of free space to install the LWP in.

Example partitions dual-boot PC.

A more detailed explanation on Parted Magic can be found here.
After resizing is done, restart your system and start the LWP installer, the installation should now continue without any problems.