You are not logged in.
Hi everyone,
Today I decided to move from Debian to Arch. I followed the Installation guide to the letter, except at the pacstrap phase where i added nano, vim, and sudo. But after that when I boot, it kernel panics and says that it couldnt find a init. When I told GRUB to load systemd it says it failed to start it. After that I tried to install another init but I seemed to need AUF and when I used git to use yay, it said I can build only in non root user to prvevent damage. The problem is you cant change users in chroot. I even tried add AUF to pacman but then it gives a 404 error. Could someone help me out? Thanks in advance ![]()
Offline
Did you install base when you ran pacstrap?
Offline
You don't want to randomly try to install a different init if you're new to Arch that will end in desaster. Find out why systemd was apparently not installed. Post your exact pacstrap command and assuming you can chroot the output of
pacman -Qikk systemdOffline
Did you install base when you ran pacstrap?
Yes i did
Offline
You don't want to randomly try to install a different init if you're new to Arch that will end in desaster. Find out why systemd was apparently not installed. Post your exact pacstrap command and assuming you can chroot the output of
pacman -Qikk systemd
I checked and systemd is installed, thsi is my pacstrap command
pacstrap -K /mnt base linux linux-firmware vim nano sudoLast edited by hecker6942 (2023-05-10 17:22:27)
Offline
Then make sure your bootloader config has the correct root= entry.
Offline
And as I mentioned, systemd is installed, only the kernel says there is a problem with it.
Offline
Then make sure your bootloader config has the correct root= entry.
Could you tell me how
Offline
You don't want to randomly try to install a different init if you're new to Arch that will end in desaster. Find out why systemd was apparently not installed. Post your exact pacstrap command and assuming you can chroot the output of
pacman -Qikk systemd
How do i copy the output of the command
Offline
Post your bootloader config as well in that case.
As for how to post outputs and files from the terminal: https://wiki.archlinux.org/title/List_o … n_services
Offline
Offline
grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root dffd01ee-8500-4b0f-b34f-22b77bac12a7
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if [ ${grub_platform} != pc ]; then
set linux_gfx_mode=keep
elif hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-dffd01ee-8500-4b0f-b34f-22b77bac12a7' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root dffd01ee-8500-4b0f-b34f-22b77bac12a7
linux /boot/vmlinuz-6.2.0-20-generic root=UUID=dffd01ee-8500-4b0f-b34f-22b77bac12a7 ro quiet splash $vt_handoff
initrd /boot/initrd.img-6.2.0-20-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-dffd01ee-8500-4b0f-b34f-22b77bac12a7' {
menuentry 'Ubuntu, with Linux 6.2.0-20-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-20-generic-advanced-dffd01ee-8500-4b0f-b34f-22b77bac12a7' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root dffd01ee-8500-4b0f-b34f-22b77bac12a7
echo 'Loading Linux 6.2.0-20-generic ...'
linux /boot/vmlinuz-6.2.0-20-generic root=UUID=dffd01ee-8500-4b0f-b34f-22b77bac12a7 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.2.0-20-generic
}
menuentry 'Ubuntu, with Linux 6.2.0-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-20-generic-recovery-dffd01ee-8500-4b0f-b34f-22b77bac12a7' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root dffd01ee-8500-4b0f-b34f-22b77bac12a7
echo 'Loading Linux 6.2.0-20-generic ...'
linux /boot/vmlinuz-6.2.0-20-generic root=UUID=dffd01ee-8500-4b0f-b34f-22b77bac12a7 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.2.0-20-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+x64.efi)" {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root dffd01ee-8500-4b0f-b34f-22b77bac12a7
linuxefi /boot/memtest86+x64.efi
}
menuentry 'Memory test (memtest86+x64.efi, serial console)' {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root dffd01ee-8500-4b0f-b34f-22b77bac12a7
linuxefi /boot/memtest86+x64.efi console=ttyS0,115200
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p2)' --class windows --class os $menuentry_id_option 'osprober-efi-0AB8-33CD' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 0AB8-33CD
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Arch Linux (on /dev/nvme0n1p6)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-edbd248e-5115-42e4-956f-43dcf77a7261' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 0AB8-33CD
linux /vmlinuz-linux root=/dev/nvme0n1p6
initrd /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux (on /dev/nvme0n1p6)' $menuentry_id_option 'osprober-gnulinux-advanced-edbd248e-5115-42e4-956f-43dcf77a7261' {
menuentry 'Arch Linux (on /dev/nvme0n1p6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-linux--edbd248e-5115-42e4-956f-43dcf77a7261' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 0AB8-33CD
linux /vmlinuz-linux root=/dev/nvme0n1p6
initrd /initramfs-linux.img
}
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###Offline
Scimmia wrote:Then make sure your bootloader config has the correct root= entry.
Could you tell me how
find the UUID with: https://wiki.archlinux.org/title/Persis … ng#by-uuid
and then add the kernel parameter
root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxin your case to /etc/default/grub under GRUB_CMDLINE_LINUX=here
and don't forget to update the grub configs:
grub-mkconfig -o /boot/grub/grub.cfgLast edited by jl2 (2023-05-10 19:32:38)
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
Offline
hecker6942 wrote:Scimmia wrote:Then make sure your bootloader config has the correct root= entry.
Could you tell me how
find the UUID with: https://wiki.archlinux.org/title/Persis … ng#by-uuid
and then add the kernel parameterroot=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxin your case to /etc/default/grub under GRUB_CMDLINE_LINUX=here
and don't forget to update the grub configs:grub-mkconfig -o /boot/grub/grub.cfg
what is there in xxxxxxx-xxxxxxxx-xxxx-xxxxx-xxxxxxxxxx
Offline
jl2 wrote:hecker6942 wrote:Could you tell me how
find the UUID with: https://wiki.archlinux.org/title/Persis … ng#by-uuid
and then add the kernel parameterroot=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxin your case to /etc/default/grub under GRUB_CMDLINE_LINUX=here
and don't forget to update the grub configs:grub-mkconfig -o /boot/grub/grub.cfgwhat is there in xxxxxxx-xxxxxxxx-xxxx-xxxxx-xxxxxxxxxx
ls -l /dev/disk/by-uuid/pick your root fs. it is the actual number. write out UUID
Last edited by jl2 (2023-05-10 19:42:57)
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
Note depending on how old that GRUB is it might not be able to boot current Arch kernels as they disabled an old compat option not necessary on newer GRUBs
Offline
Note depending on how old that GRUB is it might not be able to boot current Arch kernels as they disabled an old compat option not necessary on newer GRUBs
It's the latest version , I ran sudo apt-get update and it only updated gnome-characters
Offline
i mean sudo apt-get upgrade
Offline
and the grub config file is resetting to defualt every time i edit it.
P.S. I was wondering, , should i reinstall grub in arch instead of using the one in ubuntu.
Offline
and the grub config file is resetting to defualt every time i edit it.
P.S. I was wondering, , should i reinstall grub in arch instead of using the one in ubuntu.
no, don't install it from Arch, it will confuse everything!
do you at least update grub from your other distro?
i mean sudo apt-get upgrade
btw you can edit posts
Last edited by jl2 (2023-05-11 07:40:47)
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
[
do you at least update grub from your other distro?
Yes, I do , I last did it right now
Offline
lsblk -fThere's a vfat partition w/ the UUID 0AB8-33CD - make sure that's mounted somewhere and in doubt run "lsblk -f" again (so it also shows its use)
The "ls -lR /path/to/where/you/mounted/0AB8-33CD"
Offline
lsblk -fThere's a vfat partition w/ the UUID 0AB8-33CD - make sure that's mounted somewhere and in doubt run "lsblk -f" again (so it also shows its use)
The "ls -lR /path/to/where/you/mounted/0AB8-33CD"
OK, thats fine
Offline
What's fine?
The implication was to post the output.
Offline