How to dual boot Linux and Windows on a Dell XPS15
HTML-код
- Опубликовано: 4 окт 2024
- Dual boot Ubuntu and Windows so each OS can run on metal. I'm using a new 13th Gen Intel loaded Dell XPS 15.
👀 gear I use: (including course creation and youtube stuff): www.amazon.com...
▶️ XPS 15 Setup for Software Development - • Setting up a new XPS 1...
▶️ Ways to Install Xcode video: • best way to install Xc...
▶️ Setting up new MacBook for software development - • Setting up new MacBook...
▶️ Apple M1 and Developers Playlist - my tests so far - • Apple Silicon and Deve...
💻NativeScript training courses - nativescriptin...
(Take 15% off any premium NativeScript course by using the coupon code YT2020)
👕👚iScriptNative Gear - nuvio.us/isn
#xps15 #softwaredevelopment #dellxps15
- - - - - - - - -
❤️ SUBSCRIBE TO MY RUclips CHANNEL 📺
Click here to subscribe: / alexanderziskind
- - - - - - - - -
🏫 FREE COURSES
NativeScript Core Getting Started Guide (Free Course) - nativescriptin...
NativeScript with Angular Getting Started Guide (Free Course) - nativescriptin...
Upgrading Cordova Applications to NativeScript (Free Course) - nativescriptin...
- - - - - - - - -
📱LET'S CONNECT ON SOCIAL MEDIA
ALEX ON TWITTER: / digitalix
NATIVESCRIPTING ON TWITTER: / nativescripting
- - - - - - - - - - Наука
JOIN: youtube.com/@azisk/join
Personal choice here ---> Create 3 partitions: root (/), swap AND home - all personal files will be stored in the latter. If you need to reinstall / change the OS for another linux distro, personal files will be safe. Might be useful.
thanks for this idea :)
How much gb should I give to home??
@@jainampunamia9823
There isn't a magic number here... it really depends on how much memory is available and how it will be used. You should first assess how many GBs will be consumed with all required software, save 2~8GB for swap and the remaining amount could be assigned for /home.
I have a question, i have windows on my internal ssd and i installed a 1tb nvme ssd that i wanna install parrotsec on. Think pad t580 what partitions should I make. @fernandom.1228
@@jciabatoni
Unless there is a specific need in which an additional partition is required/recommended, I would stick with the 3 mentioned above. 👍
Great video. This is what I need to do to my XPS15, and now I'm more confident to give it a try. Thanks very much.
Sometimes you need to disable windows fast boot in the control panel. It helps a lot when dual booting or trying a live image.
This type of videos is so helpful thank you, Alex!
I never had many issues dual booting, but the last time i did was in 2016. Have been rocking full Linux for a while now.
I'm pretty sure you didn't need to create a swap partition, because Ubuntu creates a swap file which expands according to your needs and can be configured.
This was a blast from the past for me. I used to switch distros every week like it was candy. I stopped dual booting after I built my first PC in 2014 and Windows wouldn't allow me to install linux. I think it was my fault because I installed Windows first and then I assumed Windows changed the BIOS to only allow Microsoft approved software. Come to find out after days of research, that the UEFI or whatever was preventing any Linux distro to be installed. The only one that I was able to install was Ubuntu 14 LTS which at the time was behind several versions. I gave up after weeks of research. I found out that the new motherboards lock out any OS that is not Microsoft approved because they are deemed 'unsafe'. Great! Fantastic. Great video !!
Thank You sir for this Helpful video ❤ I kinda like the way you don't edit those error during and also show us all the complete process that really helps in countering those same errors so Thanks again
Wow! Thank you! I'm learning some Windows stuff. (Safe boot - location & Shrink Volume) 👨💻
I recently bought Dell XPS 15 9530 and I really don't get the logic of default being set to RAID in BIOS, its nuisance specially if you install second SSD like Samsung 990 Pro, which apparently doesn't work well with Intel drivers. This video also made me realize how much pain it is to dual boot Linux alongside windows.
My idea was to partition the second SSD and boot Linux exclusively from that, but all this hassle is probably not worth it.
Thanks bro. This video is really helpful. I installed mint first with the help of your video, did not like it much and now installed Ubuntu. Thanks again.
Just disable bitlocker and switch to AHCI. That worked for me with both windows and Linux working perfectly fine.
How did you disabled the bit Locker?
@@kamentim run command prompt as administrator and type: manage-bde -off c:
Great video! Ironically I just missed it after taking the same plunge to dual boot Ubuntu and Windows on my XPS 17 a few weeks ago. I was going into this expecting to have to reinstall Windows, but I found out the safe mode method of getting the AHCI drivers loaded from a random forum post. Now that that's all sorted both OSes run perfectly on my machine, on separate drives just to ensure a rogue Windows update doesn't brick my Linux install or something.
Could I know where you take that AHCI drivers ? I search for Dell Inspiron 14 I cannot find that?
I read online that the Linux kernel version for this 22.04 LTS was not fully compatible for Intel 12 and 13th gen with that P and E cores architecture, can you do a comparison with an updated kernel ? Anw love your content man keep it up !
I was thinking about this video for couple of days and its finally here, damn I am so lucky. This guy is so good at explainging things.
If you are gona make changes on the BIOS is better to deactivate bitlocker (or disk encription on Home Editions) to prevent the bitlocker recovery key prompt every time you boot Windows. And Ubuntu should be capable of install with secure boot enable as default.
😣 i definitely should have done that first
Darn dude, typing out those bitlocker recovery keys is like having your mother in law moving in with you for just a couple months and a year have passed... She is still with you.
it’s like having to pick up your dog’s waste, and then the whole neighborhood’s dogs’ waste
@@AZisk you win, just disgusting. I know the feeling, I have 7 dogs, all strays...
Battery life comparison (Windows vs Ubuntu), please!
i think battery life would be most interesting topic for a linux laptop (which is also most tidious one to film) i expect to see pretty nice compile performance with linux system and this translates to poor battery life. Maybe you can uninstall dedicated gpu and use igpu to test battery life?? also thanks for the nice video. one note thoug;i think when it asks you to enter bitlocker key you can go back to boot menu and seitch back settings (instead of entering bitlocker key)
This helped a lot. Thank you so much!
well ubuntu does support secure boot so you doesn't have to do any of this just install ubuntu with secure boot on
Big fan of your work! Hi from Australia :)
Yo man love your content
If you don't know how to boot into your BIOS settings, just go to Windows Settings->Open Security and Updates-> Go to recovery option->click on Restart now option-> Your system now goes into a blue screen with first 2 options-> click Advanced settings and in there click uefi firmware settings)..... now your system restarts and shows options for Boot configurations, and other options, now just select the bios settings and you will get into the same thing shown in the video
WOOW, THAT WAS VERY USEFUL LESSON FOR DEVELOPERS WHO USES MULTI CROSS PLATFORM DEV TOOLS
HUGE THANKS, I HAVE LEARNED PRICELESS TECHNIQUES 👍🏻👍🏻👍🏻🦁🦁🦁🦁🦁👑👑👑👑👑
Thank you so much sir for the very detailed instructions! Like & Subscribed!
Very interesting, I encountered the same problems myself but did not know what to do with it :)
Thank you for the really clear guide! One clarification: if you choose btrfs instead of ext4 for Linux partitions, it should support RAID storage.
Great video. Just what I needed for a new dell xps purchase that shipped with Windows, but the price was just too good.
I've tried installing dual boot before and never ran into those troubles, so very useful video as usual. I'm looking forward to seeing some machine learning tests in that Linux XPS.
Absolute life saver! Thank you so much for this, love the channel!
Windows(RaidON --> AHCI) --> SafeMode automatically helps and reinstall needed drivers :)
The challenges with Linux is that not all device drivers are there. Sometimes the SD card reader doesn't work any more, or the wifi chip.
it's a game, but at least my lenovo ideapad 5 works wonderfully on it
Nice Alex! I was an xps user a couple of years ago, and wanted to do dual boot W and L... never managed to do it correctly.
Switched to mac now 😂
I'm not sure if it was mentioned in another comment or in the video, but, if you have your system in Legacy BIOS, you first need to change it to UEFI (this part involves going all the way back to partitioning your disk, because you need to merge it again if you already separate it, and start from there).
I’m amazed! I followed these steps one by one and tried not to panic and it worked! If I would have ran into any other issues than the ones you faced I would have been smoked…
Can I reenable safe boot now or will that destroy everything?
Similar things happened to me on the HP, you have to disable dump protection, boot protection, activate legacy, verify that SATA was not with a Rapid Storage system, verify Bitlocker.
Check if the partitions are MBR or GPT.
All these steps are extremely important haha otherwise you will have a lot of headaches
This video is exactly what i wanted as i have exactly the same problems.. Thanks I know also on Ubuntu website they do mention another solution .. but your version looks very do-able .
Some benchmarks with complex spring boot project building time and Unit test running
can you make tutorial how to remove ubuntu from dual boot and most importantly how to uninstall grub proper way to leave just windows sorry if my English is bad
You shouldn't have to disable secure boot. Ubuntu works just fine with it since the kernel has a key. Also, instead of going into the bios and reordering the boot options you should just need to hit F12 at the time you were hitting F2. That should allow you to select the USB drive. I don't have an answer for the RAID bit because I would have just reinstalled Windows.
Can u explain a bit the workaround logic behind? Why safe mode first could help fixing it
On Dell’s, F12 for boot selection.
Generally, once you’ve installed Ubuntu, GRUB2 would normally be first on the UEFI boot order after the installer restart and by default it’d boot to Ubuntu with Windows somewhere down the list.
After logging into Ubuntu and go over whatever OOBE steps u do, u can install grub customizer to change the grub boot order if u want Windows to be first. At this point, just use grub as the first boot option in UEFI settings.
Bonus, remember to configure the timezone settings on Linux so that it doesn’t mess up the time on Windows every time u switch between the 2 OS’s.
Thanks a lot it helped me a lot thank u so much great video
Feel like watching OS focused channel
Oh my God, sir, you are a life saver. Thank you very, very much!
Thanks for showing the process with the pitfalls too. What kind of development will you be doing with Linux?
you do not need to turn off secure boot for popular linux distros. just small niche ones.
I suggest you to save recovery file un safe usb drive to saving time next time. This happen even turn on or after turn back on. It is little bit annoying but anyway this working for me.
Hi Alex, thanks for the video. Interesting that this procedure seems to get even more complicated rather than easier. I would recommend using a virtual machine for Linux instead on a Windows host. No need to mess around with partitioning, secure boot, Bitlocker, BIOS (except maybe for enabling virtualization), etc. You can get rid of a VM fast and easy. Backup, snapshots, restore, cloning are simple to use and make things a lot easier when developing. And you can run your Windows and Linux in parallel instead of choosing one over the other when booting. I don't think that dual boot is the way to go today. I think the only advantage it has is running on bare metal. Especially with Linux the performance gain is not that much compared to a VM, I think - I might be mistaken. Maybe you can do a comparison with some example projects?
i am working on some ROS robotic project which run ~280 packages at the same time, including precetion with AI model, which VM cannot handle it well, not mentioning about VM not supporting the GPU driver
you can disable bitlocker and decrypt your drive prior to messing with it, then you won't have problems. They started to encrypt drives by default since windows 11 for some reason. At the same time they removed my good password and made me use 4 digit pincode...
But, i hate dual boot with any linux distro with Windows 11, because when you workin on windows, the windows will lost the performance especially when the system start for indexing the files.
Why didn't you disable bitlocker when it popped up the first time. I think that could have saved you a lot of time( and security as well but maybe worth giving up)
Battery life optimisation with linux is a bit of effort and normally slightly worse than OEMs Winows settings. Best results i got was with Pop OS from System 76. Out of the box good battery and hybrid gpu support.
The most interesting things are not shown: does wifi work, what about speakers and microphone, is it possible to switch to power safe mode and use integrated video card?
Thanks Alex, I've got my XPS15 9520 i7-12700 dual booting now. I've used Pop!_OS 22.04 alongside Windows 11 (the original Dell version). Once installed, it seems that Pop can cope with the "RAID" setting, so I'm leaving that as it is. I've not got my grub menu working yet, so I currently need to F2 and change boot order to swap OS on reboot ... but this might be because Ieft the setting at RAID. I set up separate root, boot/efi, swap and home partitions. Pop has then also added another swap file, so I've got more swap (my 4G partition and Pop's additional 16G file) than intended, but that can stay as it is for now, as I can turn off my 4G but not the other 20G. Unlike my old XPS13 (from 2018) I can't seem to set the sleep mode to deep as /sys/power/mem_sleep can't be written. But since it is usually plugged in that's not stopping me from working. So, I'd better get the Linux setup finished and do some of that work now! Thanks again for the great video ... one of many great videos.
Dont use rufus or other same software. You can just mount the image and copy files from it to your usb drive :)
Really good ❤️ thank you
It’s a bit of an odd request, but i wonder if you could do a video seeing how difficult it’d be to have a workflow that includes two macs and universal control.
For me, i need >=3 displays for my job, and i’m tempted to try a mac mini + macbook air instead of buying a macbook pro/max.
Ventoy is your friend. Much easier than rufus. By the way, when will you compare linux with mac on virtual machine?
Hi Alex, thanks for the great walkthrough. Would you recommend using a VM or Dual boot: I’m little concerned about OS upgrade. Will it wipe the boot menu again?
Go for dual boot, even if you have good hardware vm will still be slow comparably. Also you can just turn off the bit locker in windows before doing the installation then you'll not need to enter bit locker key if you access the windows drive from linux.
Great instructions! How do I do the same thing the other way around: I have a laptop that already has Ubuntu on it, and I want to create a grub menu that allows me to select Windows 11 as well.
Getting to dualboot Ubuntu and Windows is a nightmare. Doesn't matter the machine.
Great work, thanks mate
Great video, thanks a lot! But, how can I undo all changes?
I hate laptops which come with Windows license on them since they're strictly locked under the secure boot. What kind of shit is that? Why can't there be more laptops with no OS installed?
i hate the secure boot feature
its because that's the way Microsoft earn money from manufacturer and give free upgrade for the users, and that's how manufacture price up their product
Awesome :-) thank you for your tutorial. A question, but your speaker and subwoofer work under linux ?
Haha, welcome to the world of dualboot and distrohopping😄 many computers have a key (F11 often) for bootmenu. Switch off fastboot if u want access ntfs from linux. I use a separate second ESP (linux efi partition) for cleaner setups. I can heartly recommend "refind" as a bootmanager for efi systems. I dont use bitlocker nor secure boot as i permanently reinstall linux. Sudo apt install refind. You can manage bootorders in linux via bootmgr -o.
ventoy is awesome for hving multiple isos n one falsh drive
I've past bad experiences with dual booting....think it's safer running one of them in a vm
> raid on
weird, on Fedora (and Arch, NixOS), the kernel driver vmd was always loaded properly. I did have to disable it because there's a bug on linux that makes the storage get stuck at the highest power usage level.
to fix bitlocker problem follow these steps :-
1. Turn On Secure boot
2.Boot in WIndows
3.After booting in Windows go to settings and search Drive encryption
4.Turn off Drive encryption
5. Turn off Secure boot again.
and boom! now its gona work fine 😁
awesome! thanks!
uff… I don't think I can handle that much stress at the moment, but WSL 2 getting out of memory is pretty annoying as well.
I have dual boot Linux and Windows on my computer but don't know when I need Linux, would you show out what you do on Linux ? :)
Alex Ziskind I'm more interested in ARM releases. Did you upgrade your Surface Pro X to Surface Pro 9 SQ3?
I just got a used ThinkPad for Linux. I didn't want to deal with dual booting one machine.
How long is battery life in linux?
Clean and Neat ❤
Why would Dell set RAID on by default on their laptops??
The only issue with dual boot with the same drive when the system get corrupted it's all gone windows and Linux that is why i prefer to have each OS to have there own drive at least reinstall one drive without the other drive to be affected .
awesome man
Grt tutorial.... but now all my bitlocked partition of windows are shown as locked in linux. Cannot access them....anybidea how to go about that?
Why entering 100k and 8000 instead of power of two...
Why on kali the screen generate PWM lines and does not in windows?
Hi there, need a little help here 😣......so i was able to install Ubuntu perfectly but every time when I reboot my system the GRUB menu does not appear and each time I have to press F9 key for boot menu and select Ubuntu to launch it every time
you're gonna keep getting that recovery key prompt everytime you just get off of ubunto and want to go into windows because of the bitlocker. gotta disable the ssd's bitlocker so you don't get that problem anymore. Do this at your own risk
I'm happy with linux, so imma keep it disabled
Waaaait... how much does having the swap will it hurt an NVME SSD by degradation?
Forget to mention, if laptop use those pesky enterprise BitLocker encryption. Need to write down the BitLocker key or disable BitLocker in Windows first, before resize and reboot system, otherwise booting into windows later will required enter BitLocker key, without key you will be lock out of the Windows.
Dell doesn't like dual boots, in other brands is not that difficult
At 2:44 in the video he talks about changing the boot order to UEFI but which do you set it to - UEFI for the c: drive or UEFI for the USB stick where you have the ISO file saved ? He doesn't show a screen shot of his settings which is not helpful !
Anyone help me out on this one ?😁
After the dual boot I'm able to run Ubuntu without any error, but, Windows OS is resulting in an error.
Not sure what I did wrong. How do I fix this ?
I am using Dell XPS 15 9500. My bootable drive is not appearing in the bios menu. Does anyone has any idea why
is this possible on an older laptop? thinkpad from 2016 for example..
does the Ubuntu support all the hardware of XPS? - like WiFi card, Nvidia card, Bluetooth and all
Anyone reading this - Can you recommend laptop for someone if they wants to learn everything like game, android, web dev, ai, ml, cybersecurity stuff? Also 3d modelling, rendering (software- blender), digital art stuff? Preferably under INR 70k . Also is it better to get it online or offline? Basically a laptop where they can explore whatever the want to.
My screen got stuck on ubuntu after power off? Why and how to fix it?
7:02 instead you might want to use /swapfile instead of creating separate partition for that
sorry to disturb. is it possible to fully install it on the flash drive? Don't wanna partition my internal ssd
@@willy7968 oh no worries :) yes you can but ready to get slow write/read speeds as it heats up easily so not recommended. better partition the ssd
I have read some docs about swapfile and swap space volume, the later on seem has a faster speed, but the former one has more flexibility to adjust size
@@thomasluk4319 could you have a chance to send the doc please? I didn’t know there has been a catch
This stuff crashed my os and now i cant boot in windows again even after turning raid on
I constantly have to enter the Bitlocker number - is this correct or can it be canceled?