home
clear breadcrumbs
search
login
 
live usb
arch linux create live usb https://www.youtube.com/watch?v=yaThYGr37DI installing from vm with usb already setup from the archiso cli: lsblk to display devices the first partition is the boot (efi) partition, Command (? for help): n Partition number (1-128, default 1): First sector (34-60063710, default = 2048) or {+-}size{KMGTP}: Last sector (2048-60063710, default = 60063710) or {+-}size{KMGTP}: +200M Current type is 8300 (Linux filesystem) Hex code or GUID (L to show codes, Enter = 8300): ef00 Changed type of partition to 'EFI system partition' next create the root partition, Command (? for help): n Partition number (2-128, default 2): First sector (34-60063710, default = 411648) or {+-}size{KMGTP}: Last sector (411648-60063710, default = 60063710) or {+-}size{KMGTP}: Current type is 8300 (Linux filesystem) Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem' no swap partition with portable install format partitions: mkfs.fat -F32 /dev/sdb1 mkfs.ext4 -O "^has_journal" /dev/sdb2 create the boot directory: mkdir -p /mnt/boot/efi mount the partitions: mount /dev/sdb2 /mnt mount /dev/sdb1 /mnt/boot/efi install packages: pacstrap /mnt base linux linux-firmware nano generate fstab file using the U flag (uuid): genfstab -U /mnt >> /mnt/etc/fstab check the fstab file: cat /mnt/etc/fstab arch-chroot /mnt setup time zone: timedatectl list-timezones |grep New_York ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime hwclock --systohc edit locale file: nano /etc/locale.gen #en_US.UTF-8 UTF-8 remove the hashtag save the file locale-gen nano /etc/locale.conf LANG=en_US.UTF-8 nano /etc/hostname arch-usb nano /etc/hosts 127.0.0.1 localhost ::1 localhost 127.0.0.1 arch-usb.localdomain arch-usb add pw for root passwd pacman -S grub efibootmgr networkmanager network-manager-applet mtools dosfstools reflector git base-devel linux-headers bluez bluez-utils cups xdg-utils xdg-user-dirs nano /etc/mkinitcpio.conf HOOKS=(base udev block keyboard autodetect modconf filesystems fsck) mkinitcpio -p linux grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable --recheck grub-mkconfig -o /boot/grub/grub.cfg systemctl enable NetworkManager systemctl enable bluetooth systemctl enable org.cups.cupsd ***** useradd -mG wheel pete passwd pete EDITOR=nano visudo # %wheel ALL=(ALL) ALL (remove hashtag) exit umount -a boot into usb sudo su nmtui systemd journal: mkdir /etc/systemd/journald.conf.d nano /etc/systemd/journald.conf.d/usbstick.conf [[Journal]] Storage=volatile RuntimeMaxUse=30M