Arch Linux Install and Dual Boot with Windows 10 (UEFI) | Step by Step w/ Networking | 2021 Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey savvy people at savvy Nick here and today I'll be installing windows in Archie Linux side by side with the UEFI insulation for Arch Linux this will assume that you've already have or will install a copy of Windows like I have here in front of me and that you're wanting to add on Arch Linux to dual boot with Windows I will warn you however that going through this process is not easy and will require partitioning if your existing hard disk which if done incorrectly has the potential of messing up both platforms and leaving your computer unbootable with that being said make sure to always keep it backup of your data before making any changes to your system and I highly suggest doing this before continuing at the very least I suggest trying this on a Windows platform that you don't care about potentially losing your data on and that you can fiddle around with first before applying it to another computer and with that being said I'll go ahead and begin so let's go ahead and search for the disk manager if you just type in disk you'll see something called create and format hard disk partitions let's go ahead and click on that and once that opens up we'll see a couple disks here you can see I have a cd-rom and a disk 0 which has a recovery partition for Windows as well as an EFI system for booting purposes and then of course the root C directory here which I currently have around 120 gigs available to me so of course make sure that you select the proper volume on which you want to install Arch Linux on since I only have the one C directory here I know that's the correct one I'm gonna go ahead and select that I currently have about 85 percent of it free or a right around 100 gigs so what I can do is right-click on the C Drive and then I can shrink the volume this will go ahead and give me space so I can install our clinics so we get to enter the amount that we want to shrink the C Drive by and I currently have the available size of around 103 megabytes I'm going to go ahead and use about 60 gigs here so that's around 6 0 0 0 0 so this says it's gonna take up to 60 gigs and what the size of the C Drive will be after everything's said and done I usually go ahead and suggest around 32 gigs at a minimum for most Linux distributions but Arch Linux can be installed on much less than that alright and once you've specified them on the space you want to shrink we'll go ahead and hit shrink now you can see that we have this unallocated space well for me that's around fifty nine gigs we'll say and that's where I plan on installing Arch Linux on to so after I'm done with this I'm gonna go ahead and exit out and download Arch Linux so now I'm here on the Arch Linux dot org website where I'm gonna go ahead and hit the download button so I can get Arch Linux alright and once you're on the downloads page go ahead and scroll down and find yourself a mirror to go ahead and download from since I'm in the US I'm gonna go ahead and search for the for a u.s. mirror in Columbia works well for me so I'm gonna go ahead and download from there as you can tell here we have the x86 64-bit ISO image available to us this is what we're interested in and the 64 signifies the type of architecture that this arch linux image can be installed on so today we'll be installing it on a 64-bit computer I'm gonna go ahead and select this and let it download it'll take a few minutes here and now that I've downloaded ISO I'm going to launch and use the Belinda at your app in order to flash the image onto a USB or CD so I'm gonna search for bull and etcher and launch it real quick well I nature is an easy to use application available for Windows Mac and Linux I'll go ahead and put a link in the description below if you want to download the application you can also use any other application that can create a bootable disk such as unetbootin or Rufus let's go ahead and select the image that we just got done downloading and we'll do that by selecting an image and you can see here that we have the Arch Linux 20 2005 o1 so may 1st edition of the x86 64 bit image and I'm gonna go ahead and select that and hit open if you have a USB CD or dvd already in your computer Valona Chur will automatically detect it so make sure to go ahead and change to the proper device where you want to flash the image on to just make sure that the USB CD or dvd that you're selecting doesn't have anything on it and that everything can be erased on it because it will be once Arch Linux is flashed on to it so I only have the one USB drive and that's the one I want to select so I'm gonna go ahead and hit continue after that I'm gonna go ahead and hit the flash button and give bilenda at your administrative privileges to go ahead and continue flashing after you flashed a disc you'll take it over to the computer or server where you want to install Arch Linux on and then insert it then you'll have to boot into your BIOS in order to change settings around and select a newly-created bootable disk to boot first this is usually done by finding the correct key to boot into your BIOS for your particular computer it's usually one of the F keys like f2 or f10 following that you'll find a tab usually called boot order and exchange to order around so that the bootable disk is first to boot after you have that setup you'll save and exit out of your BIOS and you'll be able to load into Arch Linux for the install so after this is done I'm gonna actually hit exit here alright and another way we can try booting into that bootable disk is directly from Windows if we search for something called boot in a Start menu you have this change of an startup options and it says it's related to boot menu so let's go ahead and click on that and here we have the advanced startup so we can select the restart Now button and then we'll get a menu here where we can hopefully select the USB CD or dvd that we just created so I have this use a device let's go ahead and click on that ok and once you're in here you can go ahead and select the device where you flashed Arch Linux on to I flashed mine on this device here if you don't see your device you can always turn off your computer and try booting into your BIOS and changing out the boot order so I'm going to go ahead and select on this and give it a few seconds to load and now in front of me I have the option to go ahead and load into the Arch Linux live image I so as you can see at the top I have the Arch Linux Arch ISO x86 64 bit UEFI CD option available to me and that's the one I'm going to select if you're new and stopping by to watch an install today please take a moment to subscribe below and hit the notification bell for more installs tutorials and tips about Linux and various operating systems all right let's select the first option and begin the install alright and if you've made it to the screen you are ready to go ahead and start installing our chi'lan expand line interface looks a little different than mine I went ahead and added a font and change the size so so we'd be better able to go ahead and see the commands that I'm issuing if you need a different key map than the default US standard you can use the load keys command to go ahead and load the key map in so you could do something like load keys and then if you tab you'll get a list of various different available layouts for keys so maybe in the i386 you can search for the QWERTY layout and inside porty there's a bunch of possibilities that you can look through but the default here is us English and that works great for me some don't have to really load keys I'm going to go ahead and clear this out and then I'm gonna go ahead and verify that I have EFI supported BIOS firmware so if we do LS sys firmware efi and we have this efi VARs directory we should get some kind of output here if you don't get output you more than likely have MBR enabled BIOS and this installation doesn't really pertain to you because there's a few different installation methods you might want to go ahead and search for another install otherwise if you do get an output we're ready to go ahead and check if we have an internet connection so I'm gonna use IP link in order to verify that I have some type of a network adapter installed and as you can see on number two I have en p0s 3 which is my adapter and the state says it's up so we can test and see if we can ping Arch Linux org in order to confirm our connection and I'm successfully able to go ahead and ping Arch Linux org so I'm gonna do ctrl c tags it out of that command and now it's time to update the system clock and check the status so I'll do that by doing time date CTL all together with sect ntp to true and i won't get any kind of a readout but the next thing i'll do is check the status so time date CTL status and that will tell me the status of the current time and you can see that the system clock is now synchronized if you went ahead and made it this far please hit the like button it really does help me out so now we're ready to go ahead and create the root file partition and the swap partition so we'll do this using a tool called CF disk and then press enter so here you can see the various different partitions that are available currently on the system and of course I don't want to touch any of these that are currently here because those are the Windows partitions currently on my machine so those will be left alone what I want to do instead is go down to the free space and press ENTER to create a new partition now we're being asked for the partition size well I want to leave a little bit for swap space so I'm gonna go ahead I'll use 56g for gigabytes of space since I have 58.6 available and save about 2.6 for my swap space I'm gonna go ahead and press ENTER and now you can see that we have a Linux file system type of 56 gigs and the device is going to be called SD a5 we'll want to make note of that because that's going to be a root file partition and we'll need to use that later so we want to also create some swap space here which is just used as a memory overflow if your physical memory gets filled up so I'm gonna press ENTER again and a partition size well I want to fill it all the way up so I'm going to use the 2.6 gigs that's suggested press ENTER and now I want to change the type so we're gonna scroll over to type with our arrow key hit type and change it from Linux file system to Linux swap its press ENTER and now you can see that we have two partitions created here one for the Linux root filesystem and one for the Linux swap I'm going to go ahead and write these changes now so if I use the arrow keys and go to write I can go ahead and allow these changes to be made now again you want to be very careful that you didn't change anything on the window side of things otherwise you can screw your windows system up and always make sure to go ahead and back your data up before making any kind of changes to your disk I'm gonna go ahead and write and then just type in yes to go ahead and confirm the right after that the partition table has been altered and as it says below and now it's done so I'm gonna go ahead and quit out of CF disk and format the newly created root partition to ext4 and then format the swap so to format the root partition I'm going to use mkfs ext4 so we can format it as ext4 and i'm gonna call out dev SD a5 and why am i using SD a5 well as you can see up top dev SD a5 is where our Linux file system exists and that's the one that we want to make a ext for formatted so I'm gonna go ahead and press Enter now yours might have a different number so make sure to specify whatever number so SDA whatever number you have your Linux file system on that's why I said to remember it earlier and now we're gonna go ahead and format that swap partition so we're going to do m'kay swap space dev and the swap space was created at least on mine on SDA 6 go ahead and put the number in according to whatever yours and it being and press enter so here it told us that it created 2.6 gigs of swap space and in order to turn that swap on will you swap on and dev and the same SD a6 and since that's where our swap is located go ahead and do that no errors and now that we created the filesystem let's go ahead and make sure to mount it so we can do that by doing mount dev SD a5 which is my Linux root filesystem and I'm going to mount that on to a folder called mount in the root directory let's also make a directory for mounting the efi partition that's available to us so we can use that later and mount the efi partition on there so using CF disk I'm just going to show something real quick so we're looking for the efi system and windows already has one so we can reuse that for our arch linux installed so dev slash SDA 2 for me is where my efi system is currently located so that's what i want to make note of i'm gonna go ahead and quit out of here so what i'll do is make a directory first and i'm gonna make it in mount efi and then I'm going to mount dev SDA to since that's my efi system on the windows side to that new directory the mount efi directory alright and once I've done that I can go ahead and now install the essential packages to make our system run so we can do that by using pack strap and we'll put that into the mount directory since that's where we mounted our root filesystem let's go ahead and get the base package the linux package and the linux firmware package in order to get our system a run the press enter.now all the packages now all the packages will be downloaded and installed this might take a while so go ahead and give it a few minutes here to run [Music] [Music] and after those packages are done installing will generate the fstab file using our UUID and we can do that by doing gen-f stab space - capital u and that's on our mount directory and we'll put that in mount etsy fstab and once that's generated we're ready to go ahead and change the root directory to the newly created root filesystem we do that by doing arch - chroot and since we're mounted on them and then T directory let's go ahead and do /mnt you can see now that we're changed into our new file system and if I do LS you'll see some of the typical folders that you would find in a root directory alright now that we're in here let's go ahead and set up our time zone first for the new system by creating a link and we'll do that by doing Ln - SF and we want to search for a time zone inside the user share zone info folder go ahead and tab a couple times to see all the available different zones as you can see here there's plenty available mine's in the US so I'm gonna go ahead and use the US folder and then look at the available territories as well I can see that Eastern is available and that's the one I'm going with and I want to specify this to go to Etsy local time go ahead press enter and now let's sync the hardware clock by doing HW o'clock space two dashes and sis - HC following that we're gonna install a text editor I'm going to install nano so if I do pac-man the capitalist Y nano that should synchronize the databases and install nano do I want to proceed yes I do give it a few moments alright let's open up a file now and that's going to be with nano so nano forward slash Etsy locale a with an e there dot Jen and there should be some stuff written in this file what we want to do here is search for the locale a that pertains to us and uncomment it so so for me it's the US so I'm gonna use the ctrl W to go ahead and search for us for me it's en underscore US so I'm going to go ahead and search for and here I found the one that I wanted to use all I have to do is uncomment this line by getting rid of the hashtag in front and once I've done that I can go ahead and write this file out by doing control X and saying yes to save the modified buffer and pressing in or to overwrite the file all right so let's do locale a - Jen in order to generate our locale I'm gonna press ENTER and you can see that the generation was complete and it's on the locale that I selected now we need to go ahead and create a new file so we'll use nano again and it's gonna be in /xe forward slash locale dot config so conf and press enter you can see it's a new file in here I want to put the same locale that I use for my language so laying equal en-us dot utf-8 for me I'm gonna go ahead and save and exit so ctrl X yes I want to save and yes I want to write the file alright and if you have a keyboard layout that's not the default which is us English you'll need to make sure to change that to be a persistent change by editing the Oetzi VN console config file I'll let you look up how to do that otherwise we'll continue on with the default US English keyboard layout will create a hostname file now using nano so Nano in Etsy host name and all we want to type in here is the host name that we want to use for the computer so this is what other computers will see it as on a shared network so I'm gonna use Savin it for me you can put whatever you want in here just make sure to go ahead and remember what you put in here I'm gonna go ahead and save and exit out of here and write out the file following that I want to open up nano Etsy posts and in here I just want to write a few lines to set up my local IP settings so 127.0.0.1 I'm going to tab once and do localhost for that then colon colon 1 I'm gonna tab twice there and do localhost again and 127 dot 0 dot one dot 1 and this is going to be my domain so I'm just gonna use the host name that I had before and you savvy Nick dot local domain I'll tab once more and just put the host name once more savvy Nick you can of course change this if you have a specific IP address that you want to assign to your local domain I'm going to go ahead and save this and right out to the file now in order to go ahead and use an internet connection on this new system that we're trying to install we're gonna go ahead and grab a few packages using pac-man so pac-man with the capital s Y and I'm willing to install a few packages here so net CTL will be the first package give it a few moments here I went ahead and chose net CTL to be my network manager you can go ahead and look up a different network manager if you're used to using something else or if you're just interested in your choices I'm going with the default here so I'm just going to press Enter and yes I do want to install and here is something to make note of a little bit is there's optional dependencies with net CTL and some important ones that we actually want to install so dialogue and DHCP CD as well as WPA supplicant and the if' plug D is are things I want I want to go ahead and install so I'll do that as well and I'll do pac-man again sy and I'm just going to type those in so dialog space DHCP CD W a supplicant and I F plug D I'm gonna press ENTER and install those packages real quick this will help me connect automatically to the Internet and set up the network properly once I boot in to my newly installed system after that I want to go ahead and add another user besides the root user with their own home directory and I'll add them to the wheel group you can investigate what other groups are available in the system or if you just like to do this post install and add another user and what the root user you can - but I'll do it right now so user add I'm gonna make them part of the group wheel audio and video and then I'm gonna make a new home directory called savvy Nick and that's what my user will be called as well go ahead press enter and now I wanted to find a password for savvy Nick so I'm gonna do passwd type in the user savvy Nick that we just created go ahead and put a password in and confirm that password says that the pass over those updated successfully and I'll let me just make sure that the home savvy Nick directory exists and it sure does so I'm good there we're getting pretty close to finishing up with install here just a few more steps we can now install a bootloader so I'll choose grew up for this one and also grab the EFI boot manager since this is an EFI install by doing pac-man - s and we can do grub as well as the EFI boot MGR yes we want to install that alright in the last thing I want to install this with pac-man is pac-man and - ass and install OS - prober which will help us detect the Windows operating system alongside our arch linux install here so this is important don't forget to get all this prober I'm gonna go ahead and finish that out and I don't see any errors let's go ahead and do grub - Install Now to install grub a target system here is an x86 64 bit system and it's got efi enabled bios so - - efi - directory will have to specify that directory is going to be located in the efi directory which we mounted earlier and then we want to specify that the bootloader ID is going to be grub alright and the installation is finished and no errors were reported so great one last thing is to make a V config file for grub so grub - MK config and then we'll do - oh for where to output it well I'll put it to boot grub into the grub config file so grub dot CFG give it a few moments and if things go properly what you'll see is that grub with OS b prober detected and found a Windows boot manager on well my desk being SD a two years might be something different but as you can see dev SDA - and it recognized that there's an efi partition for Windows so if you saw that image you've successfully detected your Windows system great job alright and after we've finished creating the configuration file for grub what I want to do is set the root user password we already created a user but we want to set the password for the root user so I'm gonna go ahead and just type in pass WD and let's put in our password and confirm it says that the password was updated successfully and at this point I'm gonna go ahead and exit and reboot so we can reboot into our newly created system alright and I went ahead and stopped the automatic timeout for the grub menu and as you can see here we have the grub bootloader asking us which system we want to select so we have the Arch Linux system available as well as the Windows system available to us too so let's go ahead and just check if Windows is working properly still I'm just gonna go ahead and press ENTER and then login to my Windows system alright I'm gonna log in and I can still log in so everything's great here I'm just gonna check the disk and in here you can see that we have some newly created discs so this is that swap space I created and the root file partition here I'm gonna go ahead and exit out and just restart once more so I can get into my Arch Linux side of this dual boot system so here's arch linux in front of me i'm gonna go ahead and let it automatically timeout and it automatically boots into Arch Linux and as you can see I'm here welcomed by a log in here so I'm gonna try that new user I created savvy Nick and then I'm gonna go ahead put my password in and I'm logged in as savvy Nick great congratulations if you made it this far you've successfully dual booted arch linux with Windows let's go ahead and try logging in as the root user as well su root and then type in the password for root and you can see that I'm now the root user the one last thing I want to look at is if I actually have a connection to the Internet so I'm just gonna go ahead and do ping Google here and it says temporary failure and name resolution that's because I went ahead and installed that net CTL for my network manager but really haven't configured anything quite yet so I'm gonna go ahead and do that next first thing I want to do is change directories while I'm using route to Etsy net CTL and in this directory I'm going to L us some of the files out and I have a few folders available so I want to copy something from the examples folder into this directory so I'll do that by doing CP examples forward slash let me list out what we have available I want the Ethernet DHCP for my instance you might want one of the wireless configurations if you have a wireless connection mine's an Ethernet wired connection so I'm gonna use the Ethernet DHCP and I want to go ahead and copy that over to the net CTL folder so here and you can name it whatever you want here for a custom profile so I'm just gonna name a custom DHCP profile for myself and press enter now I should have that file and I assured you so I'm gonna open it up with Nano and in here I see that the interface is currently set to eth0 well I don't think that's what mine's called so I'm gonna go ahead and take a look I'm just gonna go ahead and exit out control X and following that clear the screen and type IP space link and this gives me the network adapter name which is e np0 s3 yours might be something different but I want to make note of that and use that inside this custom profile so I'm going to open up the custom profile back up and I'm gonna change the interface to be a np0 s3 and the other thing I want to do is set my DHCP client to what I installed which was the HCP ECD for me and of course if you downloaded a different network manager you don't want to really follow along you're done installing everything but I got a few more things set up here so after that I'm gonna save and exit out of this file and now I want to enable the profile by doing net CTL enable and that custom DHT profile that I created you can see now that it's been enabled and finally I want to go ahead and enable the DHCP service as well I can do that by doing system CTL enable DHCP CD dot service and press enter at this point let me go ahead and try pinging google again and I get a failure but I want to go ahead and reboot real quick just to test and make sure that my services start running all right I'm gonna log back in and see if I can ping Google this time and I sure can as you can tell I'm successful at painting out to Google at this point my services have had started and everything seems to be running great that means that the DHCP client was able to grab an IP address from the router and everything seems to be running it'll be a very similar process if you want to get a Wi-Fi interface set up you'll just have to use one of the Wi-Fi profile examples and type in your username and password as well as what adapter your Wi-Fi is using well I hope you enjoyed this installation tutorial on how to dual boot with Windows 10 in Arch Linux I know this one took a while but it's very rewarding whenever you get Arch Linux finally installed and working and now you're free to go ahead and customize it however you want so the next few things you would probably do is go grab a desktop environment and install some packages that you like using so you can have a graphical user interface or just keep it minimal the way it is right now let me know if you have any questions comments or suggestions in the comment section below also make sure to subscribe for future videos and make sure to like the video thanks for watching
Info
Channel: SavvyNik
Views: 77,454
Rating: 4.9272337 out of 5
Keywords: arch linux dual boot windows 10, dual boot arch linux and windows 10, arch linux install, install arch linux dual boot windows 10, arch linux, install arch linux, arch linux dual boot, arch linux install uefi, arch linux installation, arch install, how to install arch linux, arch linux install 2021, how to install arch linux dual boot windows 10, arch linux 2020, arch linux windows 10 dual boot, installing arch linux, arch dual boot windows 10, archlinux, savvynik, linux, guide
Id: LGhifbn6088
Channel Id: undefined
Length: 27min 37sec (1657 seconds)
Published: Tue May 19 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.