Dual boot: Difference between revisions
Line 35: | Line 35: | ||
* [https://www.makeuseof.com/fix-dual-booting-linux-wrong-windows-time/ Dual-Booting Linux Messed Up Windows Time? Here’s How to Fix It] | * [https://www.makeuseof.com/fix-dual-booting-linux-wrong-windows-time/ Dual-Booting Linux Messed Up Windows Time? Here’s How to Fix It] | ||
* When you switch between Windows and Linux, you’ll notice that the time can get messed up. This is because Linux uses UTC internally, while Windows time is based on your local time zone. The fix is a quick Windows Registry tweak – run regedit (in admin mode) and navigate to '''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation'''. Create a new Dword (32-bit) value named '''RealTimeIsUniversal''' and set the value to 1. | * When you switch between Windows and Linux, you’ll notice that the time can get messed up. This is because Linux uses UTC internally, while Windows time is based on your local time zone. The fix is a quick Windows Registry tweak – run regedit (in admin mode) and navigate to '''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation'''. Create a new Dword (32-bit) value named '''RealTimeIsUniversal''' and set the value to 1. | ||
== Decide on your new partitions == | |||
(Triple boot case) Looking at a typical scenario with a 512GB SSD, we might choose to resize our Windows total down to 128GB (between all the various partitions), add a 128GB ‘data’ partition formatted to NTFS together with two 128GB ‘distro’ partitions for Linux installs, each formatted to ext4 so they are ready to go. If you find yourself installing a number of distros and needing more space for specific ones, you can always change the split point between the partitions later, without needing to reinstall, again courtesy of the GParted Live tool. | |||
== Install your distros == | |||
* If prompted, choose not to use a separate swap partition. | |||
* If the installer doesn’t create a swap file for you, you can do this after your first boot. To create a 4GB swap file for example, you would do the following – create the file with '''sudo fallocate -l 4G /swapfile'''. Set the swap file permissions with '''sudo chmod 600 /swapfile'''. Tell the system to use the swap space with '''sudo mkswap /swapfile'''. Finally, enable the swap with '''sudo swapon /swapfile'''. To enable this to happen on each reboot, you need to add a line to your fstab file in '''/etc/fstab''', with the value '''/swapfile n one s wap s w 0 0'''. | |||
== Dual Boot Ubuntu 22.04 LTS and Windows 11 == | == Dual Boot Ubuntu 22.04 LTS and Windows 11 == |
Revision as of 18:40, 23 September 2023
Dual boot Windows and Ubuntu
Dual Booting with Windows. In your Windows install, open Control Panel and head to “Power Options”. Select “Choose what the power buttons do”, select “Change settings that are currently unavailable”, then disable the “fast startup” setting. Note that Windows updates may occasionally turn this setting back on without asking, so if you are unable to boot into Pop!_OS, check this setting first.
Dual Booting Ubuntu and Windows With a SSD and a HDD
Preparation
On my Dell Precision laptop
- Disable RST/Intel Rapid Storage Technology. Go to BIOS and change SATA interface/configuration from RAID (or IDE) mode to AHCI.
- You've got a single HDD/SSD set up in RAID (RST) mode, and the Ubuntu installer won't recognize your HDD/SSD until you switch your disk setting in the BIOS from RAID to AHCI.
- AHCI vs IDE: What’s the Difference Between AHCI and IDE (screenshots)
- What does AHCI Mode, IDE Mode, RAID Mode, & SATA Mean in the BIOS settings
- Turn off BitLocker on Windows C:\ drive.
- See the instruction on ubuntu.com
BIOS -> UEFI
Modern PCs now ship with UEFI instead of BIOS. UEFI performs the same basic functions as BIOS, but removes many limitations. First, UEFI allows booting from drives over 2.2GB in size, something not possible with BIOS, courtesy of the GPT partitioning scheme rather than MBR. UEFI can run in 32-bit or 64-bit mode, for faster boot times and much improved setup UIs, with the potential for high-res graphics and mouse support. As a mini-OS, UEFI enables advanced troubleshooting and recovery options.
Secure boot
Secure Boot is likely to be turned on by default in the UEFI settings of your machine, which will work fine for most distros but will limit your ability to run proprietary drivers. The setting can be easily disabled, but does leave your machine more susceptible to being compromised by rootkits from Windows. Ensure your antivirus is up to date and take extra care.
My case
- /dev/sda - Windows
- /dev/sdb - bigdisk
- /dev/sdc - Linux
When I need to upgrade Linux,
- No need to unplug Windows SSD
- Run the live Linux (it's a little slow to show the first screen on my 2008 ECS P45T-A computer)
- Run GParted and delete all partitions on /dev/sdc
- Accept the default option to install Linux Mint alongside Windows 10
- Continue the installation
System time/Fix the time offset
- Dual-Booting Linux Messed Up Windows Time? Here’s How to Fix It
- When you switch between Windows and Linux, you’ll notice that the time can get messed up. This is because Linux uses UTC internally, while Windows time is based on your local time zone. The fix is a quick Windows Registry tweak – run regedit (in admin mode) and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation. Create a new Dword (32-bit) value named RealTimeIsUniversal and set the value to 1.
Decide on your new partitions
(Triple boot case) Looking at a typical scenario with a 512GB SSD, we might choose to resize our Windows total down to 128GB (between all the various partitions), add a 128GB ‘data’ partition formatted to NTFS together with two 128GB ‘distro’ partitions for Linux installs, each formatted to ext4 so they are ready to go. If you find yourself installing a number of distros and needing more space for specific ones, you can always change the split point between the partitions later, without needing to reinstall, again courtesy of the GParted Live tool.
Install your distros
- If prompted, choose not to use a separate swap partition.
- If the installer doesn’t create a swap file for you, you can do this after your first boot. To create a 4GB swap file for example, you would do the following – create the file with sudo fallocate -l 4G /swapfile. Set the swap file permissions with sudo chmod 600 /swapfile. Tell the system to use the swap space with sudo mkswap /swapfile. Finally, enable the swap with sudo swapon /swapfile. To enable this to happen on each reboot, you need to add a line to your fstab file in /etc/fstab, with the value /swapfile n one s wap s w 0 0.
Dual Boot Ubuntu 22.04 LTS and Windows 11
How to Dual Boot Ubuntu 22.04 LTS and Windows 11
Change the default boot OS
See Grub.
Reverse to Windows only
If you want to revert your machine back to completely stock defaults, you need to remove the additional partitions, resize the main partition and remove GRUB (if you are reverting to Windows). You should re-enable Secure Boot if you turned it off, but there’s no harm in leaving the system in AHCI rather than RAID mode if you changed that too. GRUB is removed using the Windows startup repair tools.
Dual boot Pop!_OS and Windows
https://support.system76.com/articles/dual-booting/
Dual boot Ubuntu and Arch Linux
http://www.linuxandubuntu.com/home/dual-boot-ubuntu-and-arch-linux
Manage your bootloaders
- When running multiple OSes, whether they are Linux or Windows, they will often be in contention for control of the bootloader. This typically manifests itself as either your machine booting straight into Windows or one or more of your distros disappearing from the boot menu. In the case of the former, this is often due to a Windows update or version upgrade – GRUB gets completely removed and has to be reinstalled. The quickest and easiest option is via the boot-repair tool and a live CD, but if even this doesn’t work, you can use the GRUB rescue prompt to boot a distro of your choice before doing a full reinstall.
- From the prompt, you first need to tell GRUB which partition it needs to using. Using ls will give you your disks and partitions, which you can also list to look for your vmlinuz file. To set the root, use the set root=(hdX,Y) command, where X is the disk number and Y is the partition number (be aware that if you have a USB stick inserted, the disk number might change). After setting root, you can tell GRUB to load the config file with configfile /boot/grub/grub.cfg and you should be back at your regular menu and able to boot into your distro. Once in, force a reinstall with sudo grub-install /dev/sdx, where sdx is the disk reference (e.g. /dev/sda). Reboot and everything should be repaired!
MultiSystem – Create a MultiBoot USB from Linux
- How to Install Multiple Linux Distributions on One USB using MultiBootUSB (Linux/Windows)
- To test Boot ISO function, Ubuntu needs to run 'sudo apt-get install qemu'. See Virtualbox -> QEMU.
- When select USB disk, it must be a partition (eg /dev/sdb1) instead of a drive (eg /dev/sdb). By default, MultiBootUSB will only show the drive but the drop-down list will show the partition if it has been created before.
- I have installed ubuntu, linuxmint, manjaro-xfce, CentOS, tails.
- https://sourceforge.net/projects/multisystem/
- https://www.pendrivelinux.com/multiboot-create-a-multiboot-usb-from-linux/
- http://www.makeuseof.com/tag/combine-multiple-iso-images-burn-single-bootable-iso-image-file/
Create customized ubuntu iso
- Cubic.
- Ubuntu Mini Remix (~200MB). Note that this is a live ubuntu which can't be installed even we can remaster it to include Desktop Environment, packages, et al. See this FAQ.
- Ubuntu customization kit - linux.com howtogeek. The project has not been updated since 2013-01-16.
- Ubuntu Builder - lifehacker. It looks the project is abandoned.
- Customizer - quite information from its website. The manuals/user guide 3.x p46 talks about how to make the iso installable instead of just a live CD (e.g. apt-get install ubiquity ubiquity-frontend-gtk). N.B. Installing ubiquity should be run once we have installed all software we want; i.e. if we want to install xfce4 we should install xfce4 before we install ubiquity. Also for some reason, Customizer crashed when I tried to create an iso if I have installed xubuntu-desktop, ubiquity and ubiquity-frontend-gtk.
Note that the Ubuntu Mini Remix by default contains only 3 repositories. We may want to add some more.
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
while for example an official v14.04 xubuntu contains 22 sources,
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ trusty universe deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu trusty-security main restricted deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted deb http://security.ubuntu.com/ubuntu trusty-security universe deb-src http://security.ubuntu.com/ubuntu trusty-security universe deb http://security.ubuntu.com/ubuntu trusty-security multiverse deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu trusty partner # deb-src http://archive.canonical.com/ubuntu trusty partner ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu trusty main deb-src http://extras.ubuntu.com/ubuntu trusty main
- http://askubuntu.com/questions/409607/how-to-create-a-customized-ubuntu-server-iso It gives a long instruction based on command line.
- http://razvangavril.com/linux-administration/custom-ubuntu-server-iso/ The instruction is organized and is very similar to the above.
- http://amjjawad.blogspot.com/2013/07/ubuntu-mini-iso-installation-process.html It does not talk about creating a customized iso. It talks about how to install Ubuntu from the minimal CD (~40M). The minimal CD will download the packages in the installation process.
Netboot
- Ubuntu Netboot Install
- Videos