[SOLVED]USB booting

Ask questions about Arch Linux ARM. Please search before making a new topic.

[SOLVED]USB booting

Postby EliasJonsson » Fri Jun 24, 2022 4:05 am

Does Archlinuxarm support usb booting?
Wanting to use a USB-connected SSD with a Raspberry Pi 4.
Last edited by EliasJonsson on Fri Jun 24, 2022 3:48 pm, edited 1 time in total.
EliasJonsson
 
Posts: 3
Joined: Fri Jun 24, 2022 3:21 am

Re: USB booting

Postby solskogen » Fri Jun 24, 2022 7:36 am

Yes, it does. You just need to modify /etc/fstab and /boot/cmdline.txt to reflect you real device.
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: USB booting

Postby EliasJonsson » Fri Jun 24, 2022 8:03 am

$this->bbcode_second_pass_quote('solskogen', 'Y')es, it does. You just need to modify /etc/fstab and /boot/cmdline.txt to reflect you real device.

Would you mind sharing a working example of those two files, please? :D
EliasJonsson
 
Posts: 3
Joined: Fri Jun 24, 2022 3:21 am

Re: USB booting

Postby EliasJonsson » Fri Jun 24, 2022 2:50 pm

Did some digging and it turned out making Arch Linux ARM boot from an SSD is pretty hard. Here, have a guide on how to install EndeavourOS from an Arch Linux ARM micro SD card. It takes max 10 minutes:

$this->bbcode_second_pass_code('', '
#install arch linux arm on an sd card, then boot it.
#insert USB SSD
su
pacman -S wget git parted core/btrfs-progs dosfstools
git clone https://github.com/endeavouros-arm/image-install.git
cd image-install
./install-image-V2.X.sh #where X is a number.
#do the installation
poweroff
#remove the SD card
#boot USB SSD
su
cd ~
#now run the script in the root home folder.
reboot
#log in as root, do not su
cd /root/install-script/
./endeavour-ARM-install-V2.7.sh #the version might vary
# Enjoy Arch Linux ARM on your SSD!
')

thanks to jfabernathy for showing the way


continue on with https://arm.endeavouros.com/headless-server-install/
Last edited by EliasJonsson on Sun Jul 10, 2022 5:04 am, edited 7 times in total.
EliasJonsson
 
Posts: 3
Joined: Fri Jun 24, 2022 3:21 am

Re: [SOLVED]USB booting

Postby solskogen » Sat Jun 25, 2022 3:30 pm

This is mine (with btrfs)


$this->bbcode_second_pass_code('', '[solskogen@seraphim ~]$ cat /boot/cmdline.txt
root=LABEL=ALARMROOT rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 audit=0 quiet')

$this->bbcode_second_pass_code('', '[solskogen@seraphim ~]$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
LABEL=ALARMBOOT /boot vfat defaults 0 0
LABEL=ALARMROOT / btrfs defaults,compress=zstd:6,nobarrier,commit=300 0 0
LABEL=ALARMSWAP none swap sw 0 0

tmpfs /var/log tmpfs defaults,noatime,nosuid,nodev 0 0
tmpfs /tmp tmpfs noatime,nosuid,mode=1777 0 0')
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests