Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Arch Linux Help > Linux on a stick

Forgot Password?
 Arch Linux Help   Help an discussion related to Arch

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-26-2009   #1 (permalink)
Linux Newbie
 
Join Date: Jul 2007
Location: Here. There. Anywhere.
Posts: 115
Send a message via AIM to ryokimball Send a message via Yahoo to ryokimball
Linux on a stick

Hey! I seem to be having trouble with putting Arch linux on my USB drive, now to the point where I'm looking for other options. I mostly just need to be able to run Netbeans in my own environment --Netbeans is the 'recommended' environment for my Java class, but there are so many frekkin' limitations on the school computers that I have lost my patience with them.

As for what I have tried, essentially I have gone through Arch's liveCD install with a cutsom disk layout (just one giant ext2 on the flash, mounted to /mnt). I told it I will be booting from usb and whilst editing Grub's menu.lst I made root point to UUID=<some big hex humber>. I was changing in fstab at first as well, but of late I have just been editing grub's params just to make sure it can get past that point.

So, if you see any errors in my trying to install Arch to USB I would love to hear them. But my actual reason for posting is to see who has successfully made their own Linux-on-a-stick and what they did to do it.
ryokimball is offline  


Reply With Quote
Old 01-26-2009   #2 (permalink)
Linux Engineer
 
jmadero's Avatar
 
Join Date: Jul 2007
Location: California
Posts: 1,454
I have installed several distros on USB, here are some instructions specific for Arch.

ArchWiki :: Install from USB stick - ArchWiki

With Ubuntu it's a bit easier because you can just install it with a GUI that comes easy to install or with an easy command (or two). Arch is a bit harder but by no means impossible. Good luck
__________________
Ubuntu 9.10 the Koala of all Koalas
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, KDE & GDM

"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"
jmadero is offline   Reply With Quote
Old 01-26-2009   #3 (permalink)
Just Joined!
 
Charles4809's Avatar
 
Join Date: Nov 2008
Location: Utrecht, NL
Posts: 92
May be this thread can help you out:

http://www.linuxforums.org/forum/mis...sb-drives.html

It's about bootable usb sticks, but not Arch specific
Charles4809 is offline   Reply With Quote
Old 01-26-2009   #4 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
I assume you have installed Arch to the USB ... I did a similar thing and have mounted the usb stick on another PC to list a few things which may or may not help you ...
Code:
Disk /dev/sdc: 4076 MB, 4076863488 bytes
255 heads, 63 sectors/track, 495 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          13      104391    b  W95 FAT32
/dev/sdc2   *          14         396     3076447+  83  Linux
/dev/sdc3             397         429      265072+  82  Linux swap / Solaris
/dev/sdc4             430         495      530145    7  HPFS/NTFS
fstab
Code:
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
/dev/sdb2 / ext3 defaults 0 1
/dev/sdb3 swap swap 0 0
grub menu.lst
Code:
# (0) Arch Linux
title  Arch Linux root (hd1,1)
root   (hd1,1)
kernel /boot/vmlinuz26 root=/dev/sdb2 ro
initrd /boot/kernel26.img
I struggled for a while to get an ISO image to boot from USB ... but don't remember getting the Arch install to boot a problem ... may just be old age

The bit I did not understand about your explaination was the mounting to /mnt ... do you mean you have one partition as root and another partition mounted to /mnt on the same drive?
Jonathan183 is offline   Reply With Quote
Old 01-27-2009   #5 (permalink)
Linux Newbie
 
Join Date: Jul 2007
Location: Here. There. Anywhere.
Posts: 115
Send a message via AIM to ryokimball Send a message via Yahoo to ryokimball
Thanks for the replies!
I'll go ahead and respond as much as I can although I haven't had time to actually play with the project any more.
jmadero: I found a thing called Crunchbang that I am tempted to try, and probably will after giving up on Arch (which may take a while --I likes mi Arch). It's Ubuntu-based and also has a focus on USB. As for the ArchWiki link, what you provided is for putting the install image onto a USB drive. There is also a link for putting Arch on a USB drive (which is where I got the idea for the UUID from), but that's pretty much where I get stuck. Actually, the next-to-last thing I'm going to try with Arch is to install the installer image and try to customize it from there. Mostly now I'm trying to succeed where I have failed rather than find alternative solutions.
Charles4809: The forum link doesn't help me much but I have bookmarked the links thereof for some future reading (specifically the Mayhofer one). Thanks again ^,^
jonathan183: One thing that has my attention on your configurations is in the menu.lst --you have the drive marked as (hd1,1), which of course means second drive second partition. Why this catches my attention is that the ArchWiki on this indicates that it should always be (hd0,0), since it is relatively the first drive. I will play with that configuration more, but the scary part is this --I have about 10 drives of sorts connected to my computer. BIOS even lets me choose their order so I can dual boot without messing with Window's' stuff. But this leads to varying (hdN,N)s. And this is not to mention the different computers I willl be using. How might you circumvent this?
ryokimball is offline   Reply With Quote
Old 01-27-2009   #6 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
I just tried booting the system on the USB drive ... and it no longer boots I'm sure it was working ... maybe I played with partitions since. I seem to remember there was something odd about the way BIOS recognised the USB drive. I'm going to do a fresh install to USB ... I'll let you know how it goes.
Jonathan183 is offline   Reply With Quote
Old 01-27-2009   #7 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
Sequence I just followed (from Arch x86_64-2008.03-1 CD) ...

Boot from CDROM - even though system is set to boot from CDROM/USB/hard drive the USB pen drive is listed as sdb.

Formated the drive, created two partitions
sdb1 (102MB) boot partition
sdb2 (rest of thumb drive) root

Installed base package, plus links and sudo (base would do but I like to setup sudo before I connect to the net and have links incase I need help).

Select boot from usb and firewire as part of system config. Install grub to sdb.

Finish install and reboot system. Get grub error 15 - file not found.
Change default grub from
Code:
root (hd1,0)
kernel /vmlinuz26 root=/dev/sdb2 ro
to
Code:
root (hd0,0)
kernel /vmlinuz26 root=/dev/sdb2 ro
System now boots from USB ...
Jonathan183 is offline   Reply With Quote
Old 01-27-2009   #8 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
using uuid for Arch boot on USB pendrive

Quote:
Originally Posted by ryokimball View Post
BIOS even lets me choose their order so I can dual boot without messing with Window's' stuff. But this leads to varying (hdN,N)s. And this is not to mention the different computers I willl be using. How might you circumvent this?
For uuid entries you need something like below
Code:
title Arch with uuid
uuid 1243....
kernel /vmlinuz26 root=/dev/disk/by-uuid/4321...
initrd /kernel26.img
Note uuid 1234... is your boot partition, uuid=4321... is your root partition.

Last edited by Jonathan183; 01-28-2009 at 12:27 AM.. Reason: correct kernel parameter info
Jonathan183 is offline   Reply With Quote
Old 01-28-2009   #9 (permalink)
Linux Engineer
 
jmadero's Avatar
 
Join Date: Jul 2007
Location: California
Posts: 1,454
For my computer I have to put the USB in after the bios is almost done loading. If I just boot the computer on with a USB in it doesn't recognize it and doesn't boot from it.
__________________
Ubuntu 9.10 the Koala of all Koalas
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, KDE & GDM

"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"
jmadero is offline   Reply With Quote
Old 01-28-2009   #10 (permalink)
Just Joined!
 
Charles4809's Avatar
 
Join Date: Nov 2008
Location: Utrecht, NL
Posts: 92
The BIOS in my computer states that any storage device above 512 MB will be considered a HDD, no matter if it's USB or PATA or SATA connected.
Therefore if i want to boot from a 1 Gig USB i have to change the priority of my HDD's, rather than telling to boot from USB.
Charles4809 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:32 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2