You are not logged in.
So, 1st, not only am I an Arch noob, Im a Linux noob ! XD
I figured, the fastest way to swim is to jump and hope the survival reflexes kick in !
Like, prior to tinkering a bit yesterday, I knew SUPER basics like, sudo, ls, cd, nano .... and thats about it.
So please be kind, I suppose at some point with usage i'll get somewhere respectable, but for now, many concepts are alien to me.
I did try a search on the forums with "btrfs gpt efi", to no useful results ...
And as for the Wiki, very detailed, tells you what you need to do, but I think it assumes you have some bases and every thing is quite modular and is now quite connected between each other ...
As i like to tell, the best tool UX/UI doesnt require any prior experience of training ![]()
My end-goal is to have the bestest leanest most efficient and snappy Linux machine to run Steam Proton, Lutris, discord and my general web browsing. ( Gamer plebs right ?)
I absolutely love the look of Budgie ! So that's gonna be the DE or look I'm aiming for.
I'll want all the quality of like thingies like :
-Calendar, calculator, Office suite, gimp, image viewer and editor, vlc, spotify, chromium, network/wifi panel in the taskbar, vpn client like openvpn and/or wireguard, file manage (is dolphin the best?), a pacman package manager to have a nice GUI to update the system and apps and that also gives acces to AUR (Yaourt?)
Ideally, I want the initial install the almost only interaction Ill ever have again with the Terminal XD
(Yeah yeah , noob pleb ... whatever, I like to tinker to make thing work, but once it work, I want it dumb simple)
So I'm learning in VirtualBox (ain't as crazy as to just wipe my PC ... before being sure I an build a working OS XD)
Im trying to install arch-linux with BTRFS over GPT on EFI (I activated the EFI option on virtual box)
SO, I couldn't find an all-in up-to-date command line by command line guide for this perticular scenario.
I always end-up stuck on :
mkinitcpio -p linux [enter]
ERROR : specified kernel image does not exist: '/bootvmlinuz-linux'
So here STEP by STEP what I did :
VirtualBox Settings modifications :
2048M system memory
Enable EFI checked
Processor 2 Cores
PAE/NX Enabled
Video Memory maxed @128M
Checked the Solid State Drive Checkbox in my .vdi settings (Host Drive is an SSD) .vdi = 24GB
Start Machine (Black screen after boot selection for a while, doesnt happen in BIOS mode, then Arch does his [OK] thingies) then gets to root@archiso
/*checking internet*/
ping -c 3 google.com [enter] => all is fine
/*update packages*/
pacman -Syy [enter]
/*create GPT partitions, create EFI boot, create Swap partition, create root partition*/
gdisk /dev/sda [enter]
o [enter] y [enter]
n [enter] [enter] [enter] +512M [enter] EF00 [enter] /*sda1*/
n [enter] [enter] [enter] +4G [enter] 8200 [enter] /*sda2*/
n [enter] [enter] [enter] [enter] [enter] /*sda3*/
w [enter] y [enter]
/*create btrfs filesystem, mount and create subvolumes*/
mkfs.btrfs -L arch /dev/sda3 [enter]
mount /dev/sda3 /mnt [enter]
cd /mnt [enter]
btrfs subvolume create _active [enter]
btrfs subvolume create _active/rootvol [enter]
btrfs subvolume create _active/tmp [enter]
btrfs subvolume create _snapshots [enter]
cd [enter]
/*create fat filesystem for the EFI boot, wasnt in the guide i followed, but if not done, mount /dev/sda1 /mnt/boot would not work ...*/
mkfs.vfat -F32 -n "EFI" /dev/sda1 [enter]
/*create swap ?*/
mkswap -L swap /dev/sda2 [enter]
umount /mnt [enter]
mount -o subvol=_active/rootvol /dev/sda3 /mnt [enter]
mkdir /mnt/{home,tmp,boot} [enter]
mount -o subvol=_active/tmp /dev/sda3 /mnt/tmp [enter]
mount /dev/sda1 /mnt/boot [enter]
/*download the install packages*/
pacstrap /mnt base base-devel btrfs-progs [enter]
/*not sure what fstab does, but doing the fstab thingie*/
genfstab -U /mnt >> /mnt/etc/fstab [enter]
genfstab -U /mnt/boot >> /mnt/etc/fstab [enter]
/*did that to have something looking like my guide, then manually edited in the /dev/sda2 swap
Somewhat, mine had the LABEL=* and the UUID=* for each filesystem instead of just the LABEL like in the guide. */
# Satic information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3 LABEL=arch
UUID=ce32ee04-030d-4319-ba5b-f0508362291d / btrfs rw,relatime,ssd,space_cache,subvolid=258,subvol=/_active/rootvol,subvol=/_active/rootvol 0 0
# /dev/sda3 LABEL=arch
UUID=ce32ee04-030d-4319-ba5b-f0508362291d /tmp btrfs rw,relatime,ssd,space_cache,subvolid=259,subvol=/_active/tmp,subvol=/_active/tmp 0 0
# /dev/sda1 LABEL=EFI
UUID=9FB8-625F /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda2 LABEL=swap
UUID=4c2a087e-f22e-423a-8313-2ac5a09d06f0 none swap defaults 0 0
*/rooting "in the /mnt environment?'ish?*/
arch-chroot /mnt [enter]
/*setting locales*/
ln -sf /usr/share/zoneinfo/America/Montreal /etc/localtime [enter]
hwclock --systohc [enter]
nano /etc/locale.gen [enter]
/* uncomment (remove #) en_US.UTF-8 UTF-8 [ctrl+x] y [enter]*/
locale-gen [enter]
nano /etc/locale.conf [enter] /* add LANG=en_US.UTF-8 [ctrl+x] y [enter]*/
/*setting host stuff*/
echo myhostname > /etc/hostname [enter]
nano /etc/hosts [enter]
# Static table lookup for hostnames
# See hosts(5) for details.
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
127.0.1.1 myhostname.localdomain myhostname
[ctrl+x] y [enter]
--Big Edit to follow up and keep clean--
passwd [enter] type password [enter] retype [enter]
/* Creating a new initramfs */
nano /etc/mkinitcpio.conf /*Remove fsck and add btrfs to HOOKS [ctrl+x] y [enter]
mkinitcpio -p linux [enter] /* BINGO !!!! */
/*bootloader*/
bootctl install [enter]
nano /boot/loader/loader.conf [enter]
timeout 3
default arch-btrfs
editor 0
[ctrl+x] y [enter]
/*microcode package*/
/* !!! IF NOT IN VIRTUALBOX !!! */
pacman -S intel-ucode (if intel cpu)
pacman -S amd-ucode (if AMD cpu)
/*btrfs loader config file*/
nano /boot/loader/entries/arch-btrfs.conf
/* use the appropriate # ucode.img, remove the # and delete the other, if VBOX, NONE */
title Arch Linux
linux /vmlinuz-linux
#initrd /intel-ucode.img
#initrd /amd-ucode.img
initrd /initramfs-linux.img
options root=LABEL=arch rw rootflags=subvol=_active/rootvol
root=LABEL=arch reference the "mkfs.btrfs -L arch /dev/sda3 [enter]" commande at the beginning. -L puts a label on the filesystem, and the one specified here was "arch", if not "arch" use the right label in root=LABEL=xxxx.
/* install Network Manager*/
pacman -S networkmanager [enter] y [enter]
systemctl enable NetworkManager [enter]
/*we are done in chroot for now*/
exit [enter]
umount -R /mnt [enter]
reboot [enter]
.....
FUUUUUUUUU
::running early hook [udev]
starting version 239
::running hook [udev]
::Triggering uevent...
::running hook [btrfs]
Scanning for Btrfs filesystems
:mounting 'LABEL-arch' on real boot
mount: /new_root: special device LABEL-arch does not exist.
You are now being dropped into an emergency shell.
sh: cant't acces tty; job control turned off
did made a Typo in my arch-btrfs.conf ? Like I put a "-" instead of a "=" between LABEL and arch ... ?
How the hell do I go back to fix it??
arch-chroot /mnt [enter]
sh: arch-root: not found
cd /mnt
sh: cd: can't cd to /mnt: No such file or directory
So now we are here ![]()
I need a command by command help, I haven't ingested the "concepts" enough yet to just take instructions ![]()
Hell, for learning to fish stake, if you give explanations on what does what with the commands, that would be even better !
I am quite ok with just restarting the whole thing from the start if it keep things simple and can be used in the future as a full guide ![]()
And if any charitable soul could continue this "command line by command line" guide to help me finish till the end, that would be super awesome !! ^_^
*A, I hope, long term Arch user !
Last edited by Altheran (2018-09-10 01:16:41)
Offline
mkinitcpio has to be run inside the chroot, you did an exit before.
Offline
genfstab -U /mnt >> /mnt/etc/fstab [enter]
genfstab -U /mnt/boot >> /mnt/etc/fstab [enter]The second command should have produced a broken fstab but the fstab you posted seems reasonable.
exit the chroot then what is the output of
findmnt /mnt/boot
findmnt /mnt
ls /mnt/bootOffline
mkinitcpio has to be run inside the chroot, you did an exit before.
Duuuuuuuuuuh XD So close !!!
And yeah as for the fstab, I edited the whole thing to have something sane ...
But without the 2nd fstab on /mnt/boot, there was no entry for the boot filesystem ...
Well, I'll try all of this again and get back with the result !
Thanks ![]()
Offline
Please use code tags when pasting to tha boards: https://wiki.archlinux.org/index.php/Co … s_and_code
Offline
Please use code tags when pasting to tha boards: https://wiki.archlinux.org/index.php/Co … s_and_code
mmmk ... still not super sure how to use it ...
I paste the bunch of text in a pastebin client?, then what ?
Will it create a hidable textbox in my post ?
Offline
So I edited my post to get to where I am at.
(Will fix everything with some pastebin stuff as soon as I figure out how it works
)
Offline
Just click the BBCode link at the bottom left of every text box.
Offline