LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (http://www.linuxquestions.org/questions/arch-29/)
-   -   USB persistent and personalized installation (http://www.linuxquestions.org/questions/arch-29/usb-persistent-and-personalized-installation-946341/)

SignorX 05-22-2012 01:57 PM

USB persistent and personalized installation
 
Hi! First of all sorry for my bad English.
I want to install Arch on a USB pendrive in persistent mode. But I want to personalize it before installation, using Archiso (or something similar), so that I can install the same configuration on many USB drive. How can I do this?
Thank you

PS: I found this on the internet, but I cannot understand whether it is pertinent and how to apply that suggestion

Babertje 05-27-2012 03:54 AM

ArchWiki is your friend: see https://wiki.archlinux.org/index.php/Usb_install

floppy_stuttgart 05-27-2012 06:37 AM

Quote:

Originally Posted by SignorX (Post 4685006)
Hi! First of all sorry for my bad English.
I want to install Arch on a USB pendrive in persistent mode. But I want to personalize it before installation, using Archiso (or something similar), so that I can install the same configuration on many USB drive. How can I do this?
Thank you

PS: I found this on the internet, but I cannot understand whether it is pertinent and how to apply that suggestion

good question. I never got the right answer anywhere (cow_device=.. dont work).
My old question is here: http://www.linuxquestions.org/questi...grafic-942777/
So, I will look carefully at any answer here.
Information: a persistence of changes on USB stick is easy with www.tinycorelinux.net
Arch? could not see any easy persistence method, after USB install, till now.

Babertje 05-27-2012 08:46 AM

Few months ago I needed a quick solution for a portable web-demo with php on a stick. Installed on my laptop but had the Harddisk removed during installation. In this case I created first 2 partitions on a 16GB stick on for / and one for /srv but in your case make this /home. Follow the guide link in my previous post.

few remarks
  • Set it up with UUID in grub
  • Use /tmpfs to reduce Read/Write actions
  • Remarks for desktop usage: Include all xf86-video-* packages
  • Add the command: /etc/look4swap.sh in your rc.local, see below

This script searches for an available swap partiton on the host computer,if it ain't there, oh well bad luck!
Code:

#!/bin/bash
# /etc/look4swap.sh - script
if [ `fdisk -l |grep -c "82  Linux"` -eq 0 ] # note there are 2 spaces between 82 and Linux !Important!
then
  echo "no swap found"
else
  swaps=`fdisk -l |grep "82  Linux" |awk '{print $1}'`
  swapon $swaps
fi

After installation: Clean the entire package cache: pacman -Scc
Quote:

Warning: This clears the entire package cache. Doing this is not recomended for normal installations since you cannot downgrade anymore but it can easy save about ++1GiB of space.

jefro 05-27-2012 04:59 PM

To the OP.

Use pendrivelinux.com or other info to install Arch with persistence. Update or add if you can or what you want. Not all things can be done with this type of install.

Then just dd the flash to some image or other usb flash devices and it should work.


All times are GMT -5. The time now is 06:18 AM.