You are not logged in.

#1 2011-12-02 10:34:44

Hibernate
Member
From: Stockholm, Sweden
Registered: 2011-07-12
Posts: 100

Installing to an USB

I'm trying to install Arch Linux on a USB drives so that it can be started from any computer.
Either I get that Linux is waiting for a device, it freezes before the bootloader menu start or
that no file system exists.

The setup I want is a 50 MB ext2 partition for /boot, and a ~8 GB ext4 partition for /.
The bootloader should be syslinux (the bootloader used on the installation images).

I have tried with taking the boot folder from an installation images and dd in
either /usr/var/syslinux/mbr.bin or the MBR from an installation USB (dd 440
bytes from the beginning to the beginning), with and without running
extlinux --install.

Any suggestion on how the get the bootloader to load an installed Arch Linux from USB?


Ex animo
Hibernate

Last edited by Hibernate (2011-12-02 10:35:42)

Offline

#2 2011-12-02 11:17:33

trontonic
Member
Registered: 2008-07-21
Posts: 80

Re: Installing to an USB

Have you tried using unetbootin, just for checking that the USB stick is actually bootable? Have you tried another USB stick? Sometimes they can be problematic.

Offline

#3 2011-12-02 19:49:59

Hibernate
Member
From: Stockholm, Sweden
Registered: 2011-07-12
Posts: 100

Re: Installing to an USB

I'll look into unetbootin.

The USB stick is bootable, all by USB drives have been used for booting the Arch Linux installation.
I have not, yet tested installing Arch on another USB, but I do not see any reason why it would be more successful.

Offline

#4 2011-12-02 21:18:32

nomilieu
Member
Registered: 2010-07-03
Posts: 133

Re: Installing to an USB

Is there any particular reason you have to use syslinux?

I always just fire up qemu and use the install CD (with grub as the bootloader).

Offline

#5 2011-12-02 22:59:27

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,902
Website

Re: Installing to an USB

I just copied a vt-only install to a 3GB partition on my 4GB USB stick, installed grub to it, configured that to boot Arch, fixed the fstab file (UUIDs are your friend), and disabled any unnecessary daemons (it uses systemd). I also created a 1GB partiton for data storage.


Works fine. Although, I wish I'd copied a 32-bit install instead.

No need for any Live USB creation software or any bollocks like that. Just cp -rp.

Possibly it should be optimized some more so that writes are non-existent, but meh.

Last edited by WorMzy (2011-12-02 23:00:59)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2011-12-03 23:02:25

trontonic
Member
Registered: 2008-07-21
Posts: 80

Re: Installing to an USB

The unetbootin suggestion was only meant for testing. (ref "Live USB creation software bollocks")

Offline

#7 2011-12-12 09:53:57

Hibernate
Member
From: Stockholm, Sweden
Registered: 2011-07-12
Posts: 100

Re: Installing to an USB

@nomilieu No it's just that I prefer syslinux over grub.

@WorMzy UUIDs is good idea to use, I'll test it when I have time to continue with this.

Offline

Board footer

Powered by FluxBB