Author Topic: Usb Key Linux Distro  (Read 647014 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« on: March 31, 2007, 03:25:59 pm »
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?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #1 on: March 31, 2007, 11:29:06 pm »
Quote
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157683\"][{POST_SNAPBACK}][/a][/div]
damn small linux not (DSL-n)?  looks like it might suit
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #2 on: April 01, 2007, 10:06:19 am »
Quote
Quote
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157683\"][{POST_SNAPBACK}][/a][/div]
damn small linux not (DSL-n)?  looks like it might suit
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157708\"][{POST_SNAPBACK}][/a][/div]
Can you uninstall whatever you want? It looks good otherwise.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #3 on: April 01, 2007, 02:17:48 pm »
Quote
Quote
Quote
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157683\"][{POST_SNAPBACK}][/a][/div]
damn small linux not (DSL-n)?  looks like it might suit
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157708\"][{POST_SNAPBACK}][/a][/div]
Can you uninstall whatever you want? It looks good otherwise.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157734\"][{POST_SNAPBACK}][/a][/div]
It is so small I never bothered, But I think there is a roll-your-own method (not sure, though)
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #4 on: April 01, 2007, 02:23:06 pm »
I'll give it a try with Bochs and check it out...Any other suggestions are still welcome, though.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #5 on: April 01, 2007, 08:50:53 pm »
Quote
I'll give it a try with Bochs and check it out...Any other suggestions are still welcome, though.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157755\"][{POST_SNAPBACK}][/a][/div]
ran into a recommendation for pclinuxos when I was checking to see if there was a dsl roll your own. No idea what it actually does.  Might be worth a quick look, though
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #6 on: April 01, 2007, 10:08:07 pm »
Quote
Quote
I'll give it a try with Bochs and check it out...Any other suggestions are still welcome, though.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157755\"][{POST_SNAPBACK}][/a][/div]
ran into a recommendation for pclinuxos when I was checking to see if there was a dsl roll your own. No idea what it actually does.  Might be worth a quick look, though
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157764\"][{POST_SNAPBACK}][/a][/div]
PCLinuxOS seems to be a full distro (it says it needs 5GB of disk space)
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #7 on: April 01, 2007, 10:59:10 pm »
Quote
Quote
Quote
I'll give it a try with Bochs and check it out...Any other suggestions are still welcome, though.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157755\"][{POST_SNAPBACK}][/a][/div]
ran into a recommendation for pclinuxos when I was checking to see if there was a dsl roll your own. No idea what it actually does.  Might be worth a quick look, though
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157764\"][{POST_SNAPBACK}][/a][/div]
PCLinuxOS seems to be a full distro (it says it needs 5GB of disk space)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157768\"][{POST_SNAPBACK}][/a][/div]
LMAO  told you I didn't know what it did    sorry.

If you are desperate you can do a knoppix remaster yourself.. just strip it out and put back the stuff you need.  Might take more time (especially if you did addional compression), but it would certainly work
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #8 on: April 01, 2007, 11:03:57 pm »
Quote
Quote
Quote
Quote
I'll give it a try with Bochs and check it out...Any other suggestions are still welcome, though.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157755\"][{POST_SNAPBACK}][/a][/div]
ran into a recommendation for pclinuxos when I was checking to see if there was a dsl roll your own. No idea what it actually does.  Might be worth a quick look, though
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157764\"][{POST_SNAPBACK}][/a][/div]
PCLinuxOS seems to be a full distro (it says it needs 5GB of disk space)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157768\"][{POST_SNAPBACK}][/a][/div]
LMAO  told you I didn't know what it did    sorry.

If you are desperate you can do a knoppix remaster yourself.. just strip it out and put back the stuff you need.  Might take more time (especially if you did addional compression), but it would certainly work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157772\"][{POST_SNAPBACK}][/a][/div]
Any chance of just installing some "regular" (eg not live-CD) distro onto USB instead of a hard disk? Would it work without hardware detection?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #9 on: April 01, 2007, 11:47:48 pm »
never tried it.  is this for multiple computers? how similar are they if so?

If it were me, I'd give a shot at dsl-n. If I couldn't make that do what I wanted, I'd strip down knoppix and do a remaster. If I thought that was going to take too much time, I'd have a quick peek at what I might do with Slax. If none of the above worked, I'd use my zaurus
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Usb Key Linux Distro
« Reply #10 on: April 02, 2007, 12:22:58 am »
Quote
Any chance of just installing some "regular" (eg not live-CD) distro onto USB instead of a hard disk?
I've heard of people doing this but the concern is that some non-live distro's will do a lot of writes to the Flash and wear it.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Usb Key Linux Distro
« Reply #11 on: April 02, 2007, 07:48:04 am »
Asked this before but.  is it possable to boot a PC off of a Zaurus?

ie Zaurus in the USB port looking like a disk, turn PC on boot off of a live Linux distro on the Zs SD card.

Use the same files and I386 versions of apps used on the Z.

Turn off, walk off with the Z and all the days work in your pocket.

Possible?

Comments?

Cheers
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Usb Key Linux Distro
« Reply #12 on: April 02, 2007, 11:16:43 am »
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
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #13 on: April 02, 2007, 02:18:25 pm »
I'm thinking I'll burn DSL-N to a CD and give it a shot...Worst case I just manually remove all of the extra stuff I don't want.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Usb Key Linux Distro
« Reply #14 on: April 02, 2007, 03:35:11 pm »
Quote
Asked this before but.  is it possable to boot a PC off of a Zaurus?
ie Zaurus in the USB port looking like a disk, turn PC on boot off of a live Linux distro on the Zs SD card.
Use the same files and I386 versions of apps used on the Z.
Turn off, walk off with the Z and all the days work in your pocket.
Possible?
Comments?
Cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157785\"][{POST_SNAPBACK}][/a][/div]
It is a great idea.
But just adding on to what Da_Blitz said... one other consideration is that it will be kinda poky because of the limited speed you get from the Zaurus's USB host mode. You will probably want to consider a light distro.
I have run windows apps off a usb 1.1 connection using MojoPac. Lets just say I remember how fund twiddling my thumbs was.
« Last Edit: April 02, 2007, 03:35:37 pm by Antikx »
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment