I have a SSD for windows, and hdd with 3 partitions, one for arch linux with 190gb made in windows, rest of 2 with data, I don't want to wipe whole disk while installing. I used archinstall but it is showing me full drive instead of the partition i made. But I can see the partition as named /dev/sdb2 but can't select it. Is there anyway to install arch linux on that partition?
#[SOLVED] Installing arch with windows as dualboot, dual drive
403 messages · Page 1 of 1 (latest)
Also I saw chatgpt, it gave me this command for formatting /dev/sdb2 partition
mkfs.ext4 /dev/sdb2
Will this work?
It will
Just double check that sdb2 is the correct partition
Ok
Wait lemme boot to linux iso
This is what I see in lsblk
I'm in live iso
You said your Linux partition was 190G so I think you want to format /dev/sdb3
You can try mounting it to see if it's the correct one
mount /dev/sdb3 /mnt
If it isn't formatted it will just give you an error which in this case is good
Also how to dismount
umount /mnt
Did the command above, how to check now
Did it show any errors?
No
Yes the old wsl folder (I don't need it)
If you are sure that this is the correct partition you can run the umount command and format it
yes
there is no 'n' in the command
just a u
no idea why
Installation Guide
you should be able to start from the pacstrap stage
chapter 2.2
or chapter 2.1 if you want to set mirrors for faster download speeds
Do I need to take that partition to /mnt?
yes you should mount it
Also mount your windows EFI partition which I assume is where you want to install the bootloader onto
How
Best place to mount it nowadays is /efi so for you mount /dev/sda1 /mnt/efi --mkdir
After mounting it you should be able to see an 'EFI' directory when doing ls /mnt/efi
The --mkdir will just create the directory if it doesn't exist (which it shouldn't yet) btw
Ok did it, now
If you've mounted both partitions you can start from chapter 2.2
Also do a sanity check with lsblk
Just to make sure everything is fine
It is fine
pacstrap -K /mnt base linux linux-firmware
Is this cmnds?
yeah that looks fine
Ok installing packages
Don't use chatgpt any further for this, all the commands are in the guide
Ok
If you want to check what a command does you can use man <command>, or install teeldear which gives you a simplified explanation and some use cases for each command with tldr <command>
Here's an example. Literally one of the best programs you can have on your system
Ok, now installing packages (might take long cuz my net is slow)
Holy such a long list
Btw when linux is installed, will I be able to like see the windows 11 boot menu which lets u choose either windows to open or linux?
Yeah those are all the packages needed for a basic linux installation. They don't take much space though because most of them follow the Unix philosophy which is make small programs that only do one thing, but do it really well. This is why you end up with so many dependencies
Yeah
You can either use the Grub bootloader for this (which is pretty simple, but works well) or use the Windows bootloader. I don't know how you configure the latter though so you will have to look that up
Also how to disable the amd/Radeon gpu as ih it in my lappy (in which installing) which had fried many years ago
Note it is a dgpu, igpu is intel
You can probably blacklist the amdgpu driver. I don't remember how you do this myself so you will have to ask in #quick-questions after installing
or search the arch wiki for it. There is usually a page for almost everything
Ok np
You may not need to even do anything at all
If it's fully dead the kernel may not even pick it up and just not load the driver to begin with
It's partial dead still detectable
Even detects on windows
And if I try to install driver it will make windows die until I get to safe mode
Windows and Linux work differently. Just because windows detects it, doesn't mean that on Linux it will be detected
or it may be detected but simply not load the driver. Drivers do some basic checks when launched, if they fail they'll just not load
You can test this all out later
It's like fully dead, tried every single version of it in windows but never work, and I don't need either as it will fry os ik
You can see if the driver loads with this command. In my case it's loaded so you see output. If it doesn't for you you'll get an error or no output
Will try it on boot
Btw which de would be good, i like hyprland (by looks) but kde as of beginner, but will afterwards I will be able to switch to hyprland if I needed to
A DE like KDE is probably the best place to start from. Hyprland is a Window Manager which means it needs a lot of configuration to work. As you said you can always switch later on when you are more comfortable with the terminal and editing config files
Did you reboot yet from the install?
They are pacstrapping
Still on downloading
Oh then don't worry about gpu drivers
Also are you sure your GPU is fried? If it doesn't work right on Windows it may be because of other issues like broken drivers
I suggest you test it in a game or something like that first because it may just work
No, it doesn't work, tried every single driver, from amd to my lappy manufacturer, nothing works
Do it after you reboot
It will not even let me, what happens if I try to install it, it might freeze install at mid (when display driver installs) or it may install but malfunction the other drivers (it does mostly with intel one)
Did you make sure to remove old drivers before installing the new ones with DDU?
Even used ddu
damn
Every single thing tried up, many ppl have same issue (possible solution is resoldering of gpu) but for this thing, heh will be not available today
Is it safe to enable secure boot afterwards?
Not without configuring it on linux first
but you don't need secure boot
It's not 'secure' at all and doesn't protect you from anything
My windows needs it
Does it not start without it?
Defender pops brh
Just tell it to shut up
He's kinda suprememe for windows 11 lol
For many times I was finding to disable it in windows 11, in 10 it was possible but on 11 idk
Don't disable defender, just ignore the warnings or press the button that lets you ignore the specific error
Half of the defender warnings are just data collection, the other are real
Ih second antivirus Kaspersky one
Hmm
Defender is annoying but will take care of most stuff
Alr 0.83 mb left to download
Does packages include audio drivers too?
Alr installation complete
The kernel comes with a lot of audio drivers. Check if those work after boot first. If not you can just install the correct ones afterwards. You'll have to google your system to see what audio driver package you need on Linux
ok, you can just continue with the installation guide
Alr is this the end of installation?
That looks fine
Can u explain me next steps (boot related)
I am scared to touch boot folders lol
You just need to run the genfstab command for now
Don't worry it won't break anything
It will generate an fstab file which is what tells the system what partitions to automatically mount at boot
Also don't worry about this too much. The worst thing you can do is make your system unbootable in which case you can just fix it through the Live USB later on. It's not like Windows where if you can't fix it, you need to do a full reinstall where you may lose all your files
How to create hostname
are you chrooted?
I'm at 3.5
Yes
You can install a text editor like nano to edit the /etc/hostname file
personally I would suggest micro. It has some more typical keybinds like Ctrl+X,ctrl+C and ctrl+V for cut copy and paste
It is saying to create file hostname
Most linux text editors create the file automatically upon saving
So you just type <your editor> /etc/hostname, type in your data and then save
Nano not found
yeah you need to install it using pacman
for installing packages you use pacman -S <package>
so for nano pacman -S nano
as I said earlier, you should probably install teeldear which will show you the basic commands for any package in case you forget them
Also tried to run iwctl in chroot (confirming I get net in os) but it also said not found
I'm in nano what to type?
it's not installed by default. Install that as well
arch is minimal, most packages will have to be installed manually
just type in a name for your linux system
it's basically the same as the "Computer name" on windows
Hmm
anything is fine. Just don't use spaces
Jst write name and save?
Uh how to save lol
you can do that after booting if you want to
And what is 3.8
The bootloader
Do i need to do it?
do you want to use a linux Bootloader like Grub or the Windows one?
you do need a bootloader to boot
Grub, cuz want to edit the grub file for Radeon
I am pretty sure the driver blacklisting happens after booting and not in the bootloader
but grub is probably the easiest choice
As of fedora ik, I use to disable gpu on grub
When boot
oh ok
then to install grub
install the following packages: grub and efibootmgr
install them using pacman
if you do lsblk do you still see the efi partition mounted on /efi?
I see /efi on sda1
alright
And / on sdb3
you should be able to run grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=Arch
it's basically a mini compressed linux system that takes care of some stuff like loading some special drivers before booting into your actual system
So do i need it?
Probably not but it doesn't hurt running it
Ok
pacstrap should have generated your initramfs automatically
you are still not done with grub though
open /etc/default/grub in your text editor
Opened
Find this line at the bottom of the file
and remove the hashtag
This will let grub locate other operating systems like Windows so that you can boot into them easily
Ok, leave it false?
yeah
Saved
Fedora didn't work unless types radeon.modeset=0
ok then enter that in
Where
Done
rerun grub-mkconfig after any changes to the grub config
Only grub-mkconfig
no add -o /boot/grub/grub.cfg
Done
ok the installation should be over now
Did you install network tools for connecting to the internet
Oh wait lemme install, good timing
If you use KDE plasma you'll probably want dhcpcd and Network Manager
Hmm
How to install
pacman -S dhcpcd networkmanager
after installing them enable their systemd services using systemctl enable dhcpcd and systemctl enable NetworkManager
Oh yeah I also almost forgot
On chroot
you also need microcode for your CPU
yes
Microcode wat
Make sure to install intel-ucode since you said you are on an intel cpu
it's basically firmware for your CPU
Pacman?
yeah
It's old cpu i5 3230m
any intel cpu will need intel-ucode
you do need to update your initramfs after this one
Didn't needed that in fedora but ok I will install
mkinitcpio -P if I remember correctly
on distros like that it's usually automatically installed
like most things
Arch is a DIY distro
you are expected to install most things by yourself
Hehe
After mkinitcpio -P?
It said initcpio image generation successful
If you forget to do networking you'll not be able to install anything and you'll need to boot back into the live ISO to fix it
yes that's good
After the install
Ok in chroot
Hmm
you will connect to the WiFi after booting
using the nmtui command
if that's done you can exit chroot using exit
Ok done
then unmount /mnt and everything under it using umount -R /mnt
and reboot
Spam your boot menu key when restarting because grub may not be the default yet
/mnt boot as well?
if you use the -R flag it unmounts /mnt and everything under it like /mnt/efi
you should see everything be gone in lsblk too
yeah
Alr in boot device optiosn
Yes i came
alr
now just select arch at the top and you should hopefully be in
oh wait
did you set a root password?
I don't need
-_-, now chroot again?
No in arch
Ok reboot and go back into grub
instead of pressing enter at the top option, press 'e'
it should let you edit the boot entry
I'm in
Yes
this will bypass the login screen
and put you straight into bash
where you can run passwd to set the password
Ok, I did now run?
In rootfs ~
Passwd not found
did you do it all in lower case?
Yes
try /usr/bin/passwd
ok you'll have to boot back into the iso
Ok wait
poweroff commands don't work here so I think you just need to hold the power button
alr
mount your partitions again
so /dev/sdb3 to /mnt
and /dev/sda1 to /mnt/efi
then check lsblk
to make sure everything looks ok
Looks good
Done
make sure to do this OUTSIDE chroot
Yes did outside chroot
Can you do nano /mnt/etc/fstab and send the output?
whoops. The command appends to the file which means you have duplicate entries
Delete the last 4 lines
Though that means your fstab was fine before already so not sure why grub couldn't load the root filesystem correctly
Deleted last 4 lines of /dev/sda1 and /dev/sdb3
Let's ignore this for now
Set passwd from chroot?
yeah
Done
It's saying login, but password after
that's good. Just type in root for the user and then your root password you just set
I'm in
Yes
I think if you go to edit connection you should see your WiFi
and you should be able to connect
I can't see wifi, only ethernet and loopback
what laptop are you using? Maybe you need a specific network package
Showing wifi
or actually
go back to nmtui
and go to 'activate connection'
then try activating your wifi device
probably starts with Wlan
Now I can see wifis
alr
Activated
did you activate the wlan device and connect to your WiFi?
I'm connected to wifi
alr
type ping google.com to check if it works correctly
you should get back 64 bytes
I got
Yes
let me find the command
Wait, I need to go rn so will do tmrw?
Btw Thank you so much for such big help
Thanks
useradd -m -G wheel <username>
Will see ya tmrw
Make sure to ping me when you are back because I may not see it immideately
#17680 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: http://0x0.st/8Rt9.png
Thank you
Continued rn
?
I'll tomorrow do more like de and all things i need
Hmm thanks for the inf
qbot [.] received a thank you cookie!
Uh yes, but I need to do more things like de but tmrw
Then mark this as solved and make another thread if you run into issues
Ok closing thread, as dualboot issue solved btw
Don't be a help vampire