You are not logged in.

#1 2012-03-24 13:46:46

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

[SOLVED] Install Arch Linux on USB Stick!

So, here is the deal. I want to install Arch Linux on a USB Stick so I can plug it at any computer and have my system... with me smile

I've had a little bit experience with Arch so I know a few things about it... used it for a few months before on a real system.

My USB stick is a HighSpeed 17-20 MBPS and it's 16 GB capacity.

So how do I do it? big_smile

Last edited by 1lj4z1 (2012-04-05 07:25:53)

Offline

#2 2012-03-24 13:49:28

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

1lj4z1 wrote:

So how do I do it? big_smile

You start by reading the wiki.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2012-03-24 13:53:09

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

Xyne wrote:
1lj4z1 wrote:

So how do I do it? big_smile

You start by reading the wiki.

True! The thing is I Googled about it and didn't saw the wiki.... let's see.

Offline

#4 2012-03-24 13:53:41

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: [SOLVED] Install Arch Linux on USB Stick!

1lj4z1 wrote:

I've had a little bit experience with Arch so I know a few things about it... used it for a few months before on a real system

I'm beginning to doubt that...

Offline

#5 2012-03-24 13:55:05

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

1archgamenon2 wrote:
1lj4z1 wrote:

I've had a little bit experience with Arch so I know a few things about it... used it for a few months before on a real system

I'm beginning to doubt that...

It's been a long ago and I don't remember everything... I used to write stuff down in order to remember. So... smile

Offline

#6 2012-03-24 14:53:30

magicalChicken
Member
From: in the sky
Registered: 2012-03-03
Posts: 73
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

One problem I can see right away with this ideas is the fact that depending on the different hardware you may need to reconfigure the system and install additional modules. Sometimes getting some hardware to work with arch takes a lot of work. If all you want is to have a mobile, lightweight linux distro, maybe try puppy.

Offline

#7 2012-03-24 14:58:04

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

magicalChicken wrote:

One problem I can see right away with this ideas is the fact that depending on the different hardware you may need to reconfigure the system and install additional modules. Sometimes getting some hardware to work with arch takes a lot of work. If all you want is to have a mobile, lightweight linux distro, maybe try puppy.

Well I am trying to have a minimal distro based on gnome or xfce with a gnome-terminal or the xfce terminal running and surf browser, but I want compiz running....

The modules are loading on the boot... I don't think there is going to be a problem?

Last edited by 1lj4z1 (2012-03-24 14:58:41)

Offline

#8 2012-03-26 12:56:19

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

So I decided to just have pekwm using zsh, xfce4-terminal and that's all i need. is there anything else i need to know? any tips or tricks? smile

Offline

#9 2012-03-26 13:14:36

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Install Arch Linux on USB Stick!

Be prepared to chroot into the disk for fix ups and you need to put at least 'usb' in /etc/mkinitcpio.conf. Then rebuild the initramfs image.

Offline

#10 2012-03-26 14:16:06

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

Well I don't need to chroot, i am running it live. I'll see about mkinitcpio.conf but I can't understand what you mean rebuilding initramfs? What is that exactcly?

Offline

#11 2012-03-26 14:29:33

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Install Arch Linux on USB Stick!

I made a live usb stick a year ago and /dev/sdx didn't come out right and as far as i remember usb was not in initramfs image per default, so no boot was possible from the stick. Let's assume that you install Arch from a boot/install usb stick unto another usb stick which you will use live, then partitions might get mixed up in grub. And if you can't fix usb in the initramfs image at install time, you will have to chroot into the new live stick and fix those things.  By the way, I'm still using that stick on my netbook. The SSD was crap.

Offline

#12 2012-03-26 14:58:16

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: [SOLVED] Install Arch Linux on USB Stick!

I'm using occasionally Arch installed on HDD-USB, I've just added usb hook to mkinitcpio.conf and removed autodetect (more modules=more hardware supported). So far it worked on 3 different computers (all of them have one main HDD so no grub issues, but it's no biggie if it doesn't boot right away, you can always edit grub on-the-fly by pressing "e")

About USB stick: installing on USB stick is not the same as running it in LIVE mode! Consider yourself warned.

If you just install it you really should read about SSD optimizations because USB flash cells also have limited read/write cycles (actually is less robust and sophisticated than SSD). Something to look at: noatime mount option, disable swap if not necessary, profile-sync-daemon and so on...


1lj4z1 wrote:

Well I don't need to chroot, i am running it live. I'll see about mkinitcpio.conf but I can't understand what you mean rebuilding initramfs? What is that exactcly?

It means if you fiddle with mkinitcpio you should run:

# mkinitcpio -p linux

afterwards or bad things will happen

Last edited by masteryod (2012-03-27 15:37:13)

Offline

#13 2012-03-27 09:12:00

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

I see. Okay guys thanks... we'll see how it goes.

Offline

#14 2012-04-03 17:46:33

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

I am thinking of a concept. Here is the deal. I have 16 GB of RAM memory on my system and I am thinking of this, is there any way that i load the whole usb file on memory on boot and then when i shutdown to save all the data from the memory to the flash disk? tongue I am having crazy ideas I know!

Offline

#15 2012-04-04 09:16:55

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

Anyone?

Offline

#16 2012-04-04 10:00:09

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Install Arch Linux on USB Stick!

Here's the general idea:

• Create a custom LiveCD.
https://wiki.archlinux.org/index.php/Building_a_Live_CD

• Boot it.
https://wiki.archlinux.org/index.php/US … O_from_RAM

• Suspend to disk.
https://wiki.archlinux.org/index.php/Su … nd2disk.29


Have fun!

Last edited by DSpider (2012-04-05 08:15:39)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#17 2012-04-05 07:25:19

1lj4z1
Member
From: milky way galaxy
Registered: 2011-03-25
Posts: 63
Website

Re: [SOLVED] Install Arch Linux on USB Stick!

Thx..

Offline

Board footer

Powered by FluxBB