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

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #15 on: May 21, 2007, 04:27:19 pm »
As a follow-up, I finally found a good distro: Debian. It installs easily (through expert mode), is a "full" distro, and has large numbers of packages. A basic dev environment (X11, fuxbox, GCC/G++, and an editor) and Links2 fits very nicely on a 512MB USB key.

Just thought I'd let people know.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #16 on: June 06, 2007, 06:24:11 pm »
How do you enable compression on an ext2 filesystem? I've been looking, but I can't find an answer (I get the impression I'm searchingly challenged, though).

I'm looking to have room for a few more apps.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3686
    • View Profile
Usb Key Linux Distro
« Reply #17 on: June 06, 2007, 06:51:04 pm »
ext2 doesn't have compression, use cramfs or squashfs

try damnsmalllinux for a debian based mini linux that'll fit on a usb key


--edit-- missed off the fact there's a specific "how to" for fitting onto a USB key
« Last Edit: June 06, 2007, 06:51:58 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #18 on: June 06, 2007, 08:43:19 pm »
Quote
How do you enable compression on an ext2 filesystem? I've been looking, but I can't find an answer (I get the impression I'm searchingly challenged, though).

I'm looking to have room for a few more apps.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162721\"][{POST_SNAPBACK}][/a][/div]
You'll probably have to do a squashfs for some directory. Which means you'll have to screw around with your path and init a little, I suspect.
  This is actually a good reason to use knoppix from usb-it is already compressed and set up to function. Moving it to USB is easy, as per the instructions at pendrivelinux, ansd sufficiently large usb keys are pretty cheap. I think I saw 2Gig usb keys for about 30-40 usd the other day.
**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 #19 on: June 06, 2007, 09:04:01 pm »
Quote
Quote
How do you enable compression on an ext2 filesystem? I've been looking, but I can't find an answer (I get the impression I'm searchingly challenged, though).

I'm looking to have room for a few more apps.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162721\"][{POST_SNAPBACK}][/a][/div]
You'll probably have to do a squashfs for some directory. Which means you'll have to screw around with your path and init a little, I suspect.
  This is actually a good reason to use knoppix from usb-it is already compressed and set up to function. Moving it to USB is easy, as per the instructions at pendrivelinux, ansd sufficiently large usb keys are pretty cheap. I think I saw 2Gig usb keys for about 30-40 usd the other day.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162729\"][{POST_SNAPBACK}][/a][/div]
If I had a 1GB+ USB drive, I wouldn't have to worry about compression.  

So there's no way to enable filesystem compression?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #20 on: June 06, 2007, 09:16:29 pm »
Fair enough.

what about something like UPX?

Could be a bit of a pain to get setup, but it might do what you want (and you'd have done something kinda cool, too)
**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 #21 on: June 06, 2007, 09:28:52 pm »
I'll take a look at that...

Of course, if I had a good curses-based text editor, I wouldn't need X, which would free up a lot of space. Know of any? I'm using C++.
« Last Edit: June 06, 2007, 09:29:09 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #22 on: June 06, 2007, 10:28:22 pm »
Just good ol nano, which I suspect you're already familiar with.

Emacs works with curses I'm pretty sure.  Maybe have a look into that?
**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 #23 on: June 06, 2007, 10:41:15 pm »
Oops, I meant programming editor. Yes, I use Nano a LOT, but it's not very good at syntax highlighting  
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Usb Key Linux Distro
« Reply #24 on: June 06, 2007, 10:46:33 pm »
Quote
As a follow-up, I finally found a good distro: Debian. It installs easily (through expert mode), is a "full" distro, and has large numbers of packages. A basic dev environment (X11, fuxbox, GCC/G++, and an editor) and Links2 fits very nicely on a 512MB USB key.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161792\"][{POST_SNAPBACK}][/a][/div]
So how do you install debian to a USB stick from your desktop?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Usb Key Linux Distro
« Reply #25 on: June 06, 2007, 11:17:32 pm »
Quote
Quote
As a follow-up, I finally found a good distro: Debian. It installs easily (through expert mode), is a "full" distro, and has large numbers of packages. A basic dev environment (X11, fuxbox, GCC/G++, and an editor) and Links2 fits very nicely on a 512MB USB key.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161792\"][{POST_SNAPBACK}][/a][/div]
So how do you install debian to a USB stick from your desktop?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162744\"][{POST_SNAPBACK}][/a][/div]
I bet if you simply format the usb stick as bootable ext2, and stick to a 386 kernel you can simply install and it will work on most x86 machines (you'd have to have a bunch of modules on board that way, though)

I haven't done it-this was what I've been assuming, and now I'm curious to check my guess.
**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 #26 on: June 07, 2007, 10:37:25 am »
I basically stuck it in a computer with generic networking and integrated graphics, booted the Debian install CD in expert mode*, and chose the USB key as the install drive, formatting it as EXT2 to prevent excessive wear.

I also added an entry to GRUB to allow for booting on computers with a SATA drive.

*I used expert so I could just do that minimal install, then add the packages I wanted later.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3686
    • View Profile
Usb Key Linux Distro
« Reply #27 on: June 07, 2007, 01:25:10 pm »
you'd wear out the usb stick less if you create a small partition on your hard drive which was very slightly smaller than the usb stick, installed linux into it then copied the partition to the usb stick. be sure to change fstab to mount as "noatime"
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Cyril92

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Usb Key Linux Distro
« Reply #28 on: July 10, 2007, 07:47:18 am »
Does it answer to first question ? here
« Last Edit: July 10, 2007, 07:47:44 am by Cyril92 »
SL-C760 (Cacko ROM), 256Mb CF,512Mb SD
Pentopia stylus 3in1,CF wifi , CE-RH1
looking for : SL5500
Previous : C3000,C860 & 6000L.

BluePanther

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://http:\\www.ncf.ca\~ba600
Usb Key Linux Distro
« Reply #29 on: July 10, 2007, 09:12:12 am »
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]

I'm running slax off a 512 USB and have plenty of space left,
I'm not sure if gcc is there to start with, I put the windows install files on there so I could put it on other machnes with DJGCC.
SL-C3200
Ambicom WL 1100C-CF

My Old Machines
http://www.ncf.ca/~ba600