OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> Usb Key Linux Distro
post Mar 31 2007, 11:25 AM
Post #1

Group: Members
Posts: 2,342
Joined: 30-July 06
Member No.: 10,575

I'm looking to run Linux off of a USB drive (512MB). I would like to have:

-A 2.6.x kernel
-Hardware detection so I can use it on any machine
-The ability to uninstall whatever came with the distro
-GCC readily available
-Some space left over so I can actually use it as a USB drive

Any suggestions?
Go to the top of the page
+Quote Post
Start new topic
post Apr 2 2007, 07:16 AM
Post #2

Group: Members
Posts: 1,562
Joined: 7-April 05
From: Sydney, Australia
Member No.: 6,806

yes to the PC off the zaurus thing, however itwill stuff up your Z's ability to read the 3rd drive partion, or if you dont want to share files between your Z and the PC then you can do it with a file backed block device

basically its a matter of playing with the modprobe cmdline args, then pulgging it in and setting it up like a regular usb distro

instead why not use PC-net and VNC or X11, run samba to copy the files from theZ such as an xserver or vnc viewer and then run the apps on the Z, not the best solution if you are running the stock firmware but if you are using pdaXrom or OZ it can be quite nice. then you dont have to worry about keeping you settings in sync. i relise there may be a HP issue there

as for turning a normal distro into a usb one, the teqnique is not that hard and the "lots of writes to flash" is simple to evercome, in fstab make /tmp a tmpfs, depending on if you want logs or not you can do it for /var as well (not recomended). the real flash wearer is syslog, so if you have /var as tmpfs you dont need to worry otherwise you might want te tell it to not flush the buffers to disk so results get cached for awhile, that and enable laptop mode which will delay it even futher

if it crashehs you dont get the logs but i rarley use syslog logs to fix a computer that crashehs at random, i normaly use it for setup and config problems, so tmpfs is probely all right

noatime is somthing you might want to add as well, if you are really brave you could hack the OS to be mainly RO, but this requires in depth knowlage of the file system hiracy and how the prgrams you run interact with the system, before i orget, /dev can be tmpfs because it only gets written at boot and its contents are dynamically rebuilt

that said some distros work better than others, debian and gentoo are probelly 2 of the best to convert (knoppix is bassed of debian) but YMMV

app selection is important, did you know zsh syncs on every command, i didnt at first and couldnt work out why my HD kept spining up when testing laptop mode on the Z

the other option you have is to load the FS into a tmpfs then piviot root, ifyou have home as a seperate partion then you can mount it to keep your settings however this can make things like program updates hard to do

if you want more info just post what you need
Go to the top of the page
+Quote Post

Posts in this topic
Capn_Fish   Usb Key Linux Distro   Mar 31 2007, 11:25 AM
adf   QUOTE(Capn_Fish @ Mar 31 2007, 07:25 PM)I...   Mar 31 2007, 07:29 PM
Capn_Fish   QUOTE(adf @ Mar 31 2007, 10:29 PM)QUOTE(Capn_...   Apr 1 2007, 06:06 AM
adf   QUOTE(Capn_Fish @ Apr 1 2007, 02:06 PM)QUOTE(...   Apr 1 2007, 10:17 AM
Capn_Fish   I'll give it a try with Bochs and check it out...   Apr 1 2007, 10:23 AM
adf   QUOTE(Capn_Fish @ Apr 1 2007, 06:23 PM)I...   Apr 1 2007, 04:50 PM
Capn_Fish   QUOTE(adf @ Apr 1 2007, 07:50 PM)QUOTE(Capn_F...   Apr 1 2007, 06:08 PM
adf   QUOTE(Capn_Fish @ Apr 2 2007, 02:08 AM)QUOTE(...   Apr 1 2007, 06:59 PM
Capn_Fish   QUOTE(adf @ Apr 1 2007, 09:59 PM)QUOTE(Capn_F...   Apr 1 2007, 07:03 PM
adf   never tried it. is this for multiple computers? h...   Apr 1 2007, 07:47 PM
Antikx   QUOTE(Capn_Fish @ Apr 1 2007, 09:03 PM)Any ch...   Apr 1 2007, 08:22 PM
craigtyson   Asked this before but. is it possable to boot a P...   Apr 2 2007, 03:48 AM
Antikx   QUOTE(craigtyson @ Apr 2 2007, 05:48 AM)Asked...   Apr 2 2007, 11:35 AM
Da_Blitz   yes to the PC off the zaurus thing, however itwill...   Apr 2 2007, 07:16 AM
Capn_Fish   I'm thinking I'll burn DSL-N to a CD and g...   Apr 2 2007, 10:18 AM
Capn_Fish   As a follow-up, I finally found a good distro: Deb...   May 21 2007, 12:27 PM
ShiroiKuma   QUOTE(Capn_Fish @ May 21 2007, 09:27 PM)As a ...   Jun 6 2007, 06:46 PM
adf   QUOTE(ShiroiKuma @ Jun 7 2007, 02:46 AM)QUOTE...   Jun 6 2007, 07:17 PM
Capn_Fish   How do you enable compression on an ext2 filesyste...   Jun 6 2007, 02:24 PM
adf   QUOTE(Capn_Fish @ Jun 6 2007, 10:24 PM)How do...   Jun 6 2007, 04:43 PM
Capn_Fish   QUOTE(adf @ Jun 6 2007, 07:43 PM)QUOTE(Capn_F...   Jun 6 2007, 05:04 PM
adf   Fair enough. what about something like UPX? Coul...   Jun 6 2007, 05:16 PM
speculatrix   ext2 doesn't have compression, use cramfs or s...   Jun 6 2007, 02:51 PM
Capn_Fish   I'll take a look at that... Of course, if I h...   Jun 6 2007, 05:28 PM
adf   Just good ol nano, which I suspect you're alre...   Jun 6 2007, 06:28 PM
Capn_Fish   Oops, I meant programming editor. Yes, I use Nano ...   Jun 6 2007, 06:41 PM
Capn_Fish   I basically stuck it in a computer with generic ne...   Jun 7 2007, 06:37 AM
speculatrix   you'd wear out the usb stick less if you creat...   Jun 7 2007, 09:25 AM
Cyril92   Does it answer to first question ? here   Jul 10 2007, 03:47 AM
BluePanther   QUOTE(Capn_Fish @ Mar 31 2007, 03:25 PM)I...   Jul 10 2007, 05:12 AM
Dromede   capn_fish, maybe www.puppylinux.com will suit your...   Jul 10 2007, 05:26 AM
Capn_Fish   I tried Puppy, and it was pretty good, especially ...   Jul 10 2007, 05:51 AM
Capn_Fish   Sadly, I only just got to try booting Debian off o...   Jul 13 2007, 05:55 PM
adf   QUOTE(Capn_Fish @ Jul 14 2007, 01:55 AM)Sadly...   Jul 13 2007, 06:24 PM
Capn_Fish   It has nothing to do with Xorg AFAICT, as it happe...   Jul 14 2007, 06:18 AM
T3_slider   QUOTE(Capn_Fish)It has nothing to do with Xorg AFA...   Jul 14 2007, 06:07 PM
Capn_Fish   QUOTE(T3_slider @ Jul 14 2007, 09:07 PM)QUOTE...   Jul 14 2007, 07:49 PM
T3_slider   I would try it out, but I don't have any LCD s...   Jul 15 2007, 07:36 PM
Capn_Fish   QUOTE(T3_slider @ Jul 15 2007, 10:36 PM)I wou...   Jul 16 2007, 08:21 AM
Capn_Fish   On a slightly different topic (No need to start a ...   Dec 6 2007, 07:42 PM
adf   QUOTE(Capn_Fish @ Dec 6 2007, 06:42 PM) O...   Dec 6 2007, 08:10 PM
Capn_Fish   Thanks. I didn't feel like going all the way t...   Dec 8 2007, 07:20 PM

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th November 2017 - 04:06 AM