#[SOLVED] Installing arch with windows as dualboot, dual drive

403 messages · Page 1 of 1 (latest)

nocturne furnace
#

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?

#

Also I saw chatgpt, it gave me this command for formatting /dev/sdb2 partition
mkfs.ext4 /dev/sdb2
Will this work?

hard moon
#

Just double check that sdb2 is the correct partition

nocturne furnace
#

Wait lemme boot to linux iso

#

This is what I see in lsblk

nocturne furnace
hard moon
#

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

nocturne furnace
hard moon
#

umount /mnt

nocturne furnace
#

Did the command above, how to check now

hard moon
#

Did it show any errors?

nocturne furnace
#

No

hard moon
#

do ls /mnt

#

Does it show any files?

nocturne furnace
#

Yes the old wsl folder (I don't need it)

hard moon
#

If you are sure that this is the correct partition you can run the umount command and format it

nocturne furnace
#

And like '$RECYCLE.BIN"

#

It's saying correct unmount to umount y/n

hard moon
#

there is no 'n' in the command

#

just a u

#

no idea why

nocturne furnace
#

Ok

#

Now how to format?

#

Or next step

hard moon
#

mkfs.<filesystem> /dev/sdb3

#

you said you want ext4 so use mkfs.ext4

nocturne furnace
#

Alr formatted partition

#

Next step?

hard moon
#

Check the wiki

#

.aw Installation Guide

vagrant currentBOT
hard moon
#

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

nocturne furnace
#

Do I need to take that partition to /mnt?

hard moon
#

Also mount your windows EFI partition which I assume is where you want to install the bootloader onto

hard moon
#

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

hard moon
nocturne furnace
#

Ok did it, now

hard moon
#

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

nocturne furnace
#

pacstrap -K /mnt base linux linux-firmware
Is this cmnds?

hard moon
nocturne furnace
true spire
#

Don't use chatgpt any further for this, all the commands are in the guide

hard moon
#

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

nocturne furnace
#

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?

hard moon
# nocturne furnace Holy such a long list

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

hard moon
#

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

nocturne furnace
#

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

hard moon
#

or search the arch wiki for it. There is usually a page for almost everything

hard moon
#

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

nocturne furnace
#

Even detects on windows

#

And if I try to install driver it will make windows die until I get to safe mode

hard moon
#

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

nocturne furnace
hard moon
#

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

nocturne furnace
#

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

hard moon
#

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

true spire
#

Did you reboot yet from the install?

hard moon
nocturne furnace
true spire
#

Oh then don't worry about gpu drivers

hard moon
#

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

nocturne furnace
true spire
#

Do it after you reboot

nocturne furnace
hard moon
hard moon
#

damn

nocturne furnace
#

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?

hard moon
#

but you don't need secure boot

#

It's not 'secure' at all and doesn't protect you from anything

nocturne furnace
#

My windows needs it

hard moon
#

Does it not start without it?

nocturne furnace
#

Defender pops brh

hard moon
nocturne furnace
#

For many times I was finding to disable it in windows 11, in 10 it was possible but on 11 idk

hard moon
#

Half of the defender warnings are just data collection, the other are real

nocturne furnace
hard moon
#

You don't really need a second antivirus nowadays

#

Just don't click on shady links

nocturne furnace
hard moon
#

Defender is annoying but will take care of most stuff

nocturne furnace
#

Alr 0.83 mb left to download

nocturne furnace
#

Alr installation complete

hard moon
hard moon
nocturne furnace
#

Alr is this the end of installation?

hard moon
#

That looks fine

nocturne furnace
#

Can u explain me next steps (boot related)

#

I am scared to touch boot folders lol

hard moon
#

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

hard moon
# nocturne furnace I am scared to touch boot folders lol

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

nocturne furnace
#

How to create hostname

hard moon
#

are you chrooted?

nocturne furnace
#

I'm at 3.5

nocturne furnace
hard moon
#

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

nocturne furnace
#

It is saying to create file hostname

hard moon
#

So you just type <your editor> /etc/hostname, type in your data and then save

nocturne furnace
#

Nano not found

hard moon
#

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

nocturne furnace
#

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?

hard moon
#

arch is minimal, most packages will have to be installed manually

hard moon
#

it's basically the same as the "Computer name" on windows

nocturne furnace
#

Hmm

hard moon
#

anything is fine. Just don't use spaces

nocturne furnace
#

Jst write name and save?

hard moon
#

yeah

#

on nano Ctrl+X should save and exit

nocturne furnace
#

Uh how to save lol

nocturne furnace
#

Also I do need to setup user?

hard moon
nocturne furnace
#

And what is 3.8

hard moon
#

The bootloader

nocturne furnace
#

Do i need to do it?

hard moon
#

do you want to use a linux Bootloader like Grub or the Windows one?

hard moon
nocturne furnace
hard moon
#

but grub is probably the easiest choice

nocturne furnace
#

When boot

hard moon
#

then to install grub

#

install the following packages: grub and efibootmgr

#

install them using pacman

nocturne furnace
#

Ok

#

Installed

hard moon
#

if you do lsblk do you still see the efi partition mounted on /efi?

nocturne furnace
#

I see /efi on sda1

hard moon
#

alright

nocturne furnace
#

And / on sdb3

hard moon
#

you should be able to run grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=Arch

nocturne furnace
#

Ok installing

#

Done

#

What's initramfs

#

I left that step

hard moon
# nocturne furnace What's initramfs

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

nocturne furnace
#

So do i need it?

hard moon
#

Probably not but it doesn't hurt running it

nocturne furnace
#

Ok

hard moon
#

pacstrap should have generated your initramfs automatically

#

you are still not done with grub though

#

open /etc/default/grub in your text editor

nocturne furnace
#

Opened

hard moon
#

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

nocturne furnace
#

Ok, leave it false?

hard moon
#

yeah

nocturne furnace
#

Saved

hard moon
#

alr

#

now generate the grub config using grub-mkconfig -o /boot/grub/grub.cfg

nocturne furnace
#

Oh wait

#

Do i need to set nomodeset

hard moon
#

don't think so

#

Did fedora not work without it?

nocturne furnace
#

Fedora didn't work unless types radeon.modeset=0

hard moon
nocturne furnace
#

Where

hard moon
#

same way you did on fedora

#

/etc/default/grub I think

nocturne furnace
#

Oh

hard moon
#

This is the line you probably want to add it on

#

after loglevel=3 quiet

nocturne furnace
#

Done

hard moon
#

rerun grub-mkconfig after any changes to the grub config

nocturne furnace
#

Only grub-mkconfig

hard moon
nocturne furnace
#

Done

hard moon
#

ok the installation should be over now

#

Did you install network tools for connecting to the internet

nocturne furnace
#

Oh wait lemme install, good timing

hard moon
#

If you use KDE plasma you'll probably want dhcpcd and Network Manager

nocturne furnace
#

How to install

hard moon
#

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

nocturne furnace
#

On chroot

hard moon
#

you also need microcode for your CPU

hard moon
nocturne furnace
hard moon
hard moon
nocturne furnace
#

Pacman?

hard moon
#

yeah

nocturne furnace
#

It's old cpu i5 3230m

hard moon
#

any intel cpu will need intel-ucode

#

you do need to update your initramfs after this one

nocturne furnace
#

Didn't needed that in fedora but ok I will install

hard moon
#

mkinitcpio -P if I remember correctly

hard moon
#

like most things

#

Arch is a DIY distro

#

you are expected to install most things by yourself

nocturne furnace
#

After mkinitcpio -P?

hard moon
#

I think you are done now

#

Did you enable the network services?

nocturne furnace
#

It said initcpio image generation successful

hard moon
#

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

hard moon
nocturne furnace
hard moon
#

you need to enable the services in chroot

#

and they'll start automatically on boot

nocturne furnace
#

Hmm

hard moon
#

you will connect to the WiFi after booting

#

using the nmtui command

#

if that's done you can exit chroot using exit

nocturne furnace
#

Ok done

hard moon
#

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

nocturne furnace
#

/mnt boot as well?

hard moon
#

you should see everything be gone in lsblk too

nocturne furnace
#

Hmm

#

Ok reboot?

hard moon
#

yeah

nocturne furnace
#

Alr in boot device optiosn

hard moon
#

choose 'Arch'

#

and it should put you into grub

nocturne furnace
#

Yes i came

hard moon
#

alr

#

now just select arch at the top and you should hopefully be in

#

oh wait

#

did you set a root password?

nocturne furnace
#

I don't need

hard moon
#

you won't be able to login without a password

#

You don't have a normal user yet

nocturne furnace
#

-_-, now chroot again?

hard moon
#

no actually

#

there is a simpler way

#

are you still in grub?

nocturne furnace
#

No in arch

hard moon
#

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

nocturne furnace
#

I'm in

hard moon
#

ok

#

do you see the modeset option?

#

go there and add init=/bin/bash after it

nocturne furnace
#

Yes

hard moon
#

this will bypass the login screen

#

and put you straight into bash

#

where you can run passwd to set the password

nocturne furnace
#

Ok, I did now run?

hard moon
#

yes

#

F10 to run I think

nocturne furnace
#

In rootfs ~

hard moon
#

alright

#

just type passwd

#

and set your password

nocturne furnace
#

Passwd not found

hard moon
#

did you do it all in lower case?

nocturne furnace
#

Yes

hard moon
#

try /usr/bin/passwd

nocturne furnace
hard moon
#

wait

#

your root wasn't mounted correctly

#

did you run genfstab previously?

nocturne furnace
#

I did very previous

#

Might be issue

hard moon
#

ok you'll have to boot back into the iso

nocturne furnace
#

Ok wait

hard moon
#

poweroff commands don't work here so I think you just need to hold the power button

nocturne furnace
#

Alr getting in iso

#

I'm in

hard moon
#

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

nocturne furnace
#

Looks good

hard moon
#

alright

#

run genfstab again just like in the wiki

nocturne furnace
#

Done

hard moon
#

make sure to do this OUTSIDE chroot

nocturne furnace
#

Yes did outside chroot

hard moon
nocturne furnace
#

This is output

hard moon
#

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

nocturne furnace
#

Deleted last 4 lines of /dev/sda1 and /dev/sdb3

hard moon
#

Let's ignore this for now

nocturne furnace
#

Set passwd from chroot?

hard moon
#

yeah

nocturne furnace
#

In chroot

#

I'm in chroot

hard moon
#

Just run passwd

#

and set a password

nocturne furnace
#

Done

hard moon
#

alright

#

exit, umount -R /mnt and try rebooting

nocturne furnace
#

It's saying login, but password after

hard moon
nocturne furnace
#

I'm in

hard moon
#

alright

#

try running nmtui

nocturne furnace
#

Yes

hard moon
#

I think if you go to edit connection you should see your WiFi

#

and you should be able to connect

nocturne furnace
#

I can't see wifi, only ethernet and loopback

hard moon
nocturne furnace
#

Hp envy m6

#

But ih iwctl

hard moon
#

try typing ip link in the terminal

#

and then send the output

nocturne furnace
#

Showing wifi

hard moon
#

or actually

#

go back to nmtui

#

and go to 'activate connection'

#

then try activating your wifi device

#

probably starts with Wlan

nocturne furnace
#

Now I can see wifis

hard moon
#

alr

nocturne furnace
#

Activated

hard moon
#

did you activate the wlan device and connect to your WiFi?

nocturne furnace
#

I'm connected to wifi

hard moon
#

alr

#

type ping google.com to check if it works correctly

#

you should get back 64 bytes

nocturne furnace
#

I got

hard moon
#

alr

#

you probably need a user now

nocturne furnace
#

Yes

hard moon
#

let me find the command

nocturne furnace
#

Wait, I need to go rn so will do tmrw?

#

Btw Thank you so much for such big help

#

Thanks

hard moon
#

useradd -m -G wheel <username>

nocturne furnace
#

Will see ya tmrw

hard moon
#

Make sure to ping me when you are back because I may not see it immideately

nocturne furnace
#

Ok

#

lol im in windows, works great dualboot

true spire
#

Nice

#

... solved

vagrant currentBOT
#

#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

nocturne furnace
true spire
#

?

nocturne furnace
#

I'll tomorrow do more like de and all things i need

spark fogBOT
#

qbot [.] received a thank you cookie!

true spire
#

Okay but you solved the issue you made the thread about

#

?

nocturne furnace
true spire
#

Then mark this as solved and make another thread if you run into issues

nocturne furnace
#

Ok closing thread, as dualboot issue solved btw

true spire
#

Don't be a help vampire

nocturne furnace
#

Uh how to close it?

#

Nvm got it

#

[SOLVED] Installing arch with windows as dualboot, dual drive