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.
Write an article for LinuxForums Today! Win Great Prizes!
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.
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"
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
# (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?
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?
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.
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
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"
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.
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