You are not logged in.

#1 2009-02-28 12:35:50

miggols99
Member
Registered: 2007-06-10
Posts: 424

Install Arch to USB flash drive?

I'm want to install Arch to a USB drive to use it anywhere. It there a proper way to do this? When I last tried it there was a bunch of errors...

Offline

#2 2009-03-01 00:32:46

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Install Arch to USB flash drive?

- Use ext2.
- Add elevator=deadline and rootdelay=10 to the boot options.
- Disable the automatic updating of the locate database (or just don't load crond at all if you don't use it for anything).
- In /etc/rc.local:

echo 1 > /sys/block/$(mount | grep "on / " | awk '{print $1}' | sed 's:/dev/::')/queue/iosched/fifo_batch  #"This stops the scheduler grouping reads and writes in an effort to reduce disk head seeks - doing so is futile on a device with no heads to seek." (Tim Auton)
mkdir /dev/shm/tmp
mount -o bind /tmp /dev/shm/tmp
mount -o bind /var/tmp /dev/shm/tmp

- You might even want to move your logs there, too:

mkdir /dev/shm/logs /dev/shm/logs/gdm /dev/shm/logs/old
touch /dev/shm/logs/btmp /dev/shm/logs/wtmp
mount -o bind /var/log /dev/shm/logs

Last edited by Wintervenom (2009-03-01 10:52:39)

Offline

#3 2009-03-30 15:14:56

techprophet
Member
Registered: 2008-05-13
Posts: 209

Re: Install Arch to USB flash drive?

Have you tried this Miggols (or Wintervenom)? I am looking at doing the same thing.

Offline

Board footer

Powered by FluxBB